|
Hi all,
I am new to java; earlier i was working in .net (c#). My company assigned me an existing web project which is developed in java (jsp). i have installed jdj7 and Apache Tomcat 7 as service on my machine. Whenever i placed my project in webapps folder it generate an error in logs (Catalina)
Sep 12, 2013 3:11:45 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory C:\Tomcat 7\webapps\myproject
Sep 12, 2013 3:11:57 AM org.apache.catalina.core.StandardContext startInternal
SEVERE: Error listenerStart
Sep 12, 2013 3:11:57 AM org.apache.catalina.core.StandardContext startInternal
SEVERE: Context [/myproject] startup failed due to previous errors
Thanks
rmshah
Developer
|
|
|
|
|
That's not a Java issue, try one of the Apache forums.
Veni, vidi, abiit domum
|
|
|
|
|
Anybody knows how to call the XEN hypercalls by the c program. Anybody know means guide me.
|
|
|
|
|
|
I have this text file on the web called, accounts and what it should look like it when people add their account is
name;password
name2;password
the ";" is so it can be split into an array later
im trying to do this with-out a server, an example, not a gaming server, more like a web host server example, im not sure how I am to allow a person to make account with-out whiping all the data and adding it agian, this is how i got it going when adding an account
copy text file data
add text file data to program
clear text file data
add data from program program and new account info
I want it to go
add account data to text file
I was wondering if this is possible to do? and if so how?
|
|
|
|
|
This is exactly what databases are designed for, and text files are not. Why not use a database?
|
|
|
|
|
because its too complicated
|
|
|
|
|
A worse excuse could not be made for learning something new.
Expand your knowledge, if you stop because "its too complicated", how are you ever going to get better?
[Edit]
Modifying text files (despite the HUGE security hole where I can get your usernames and passwords) is, in my opinion, complicated. Might be OK while you have a small user base, but try getting concurrent operations and losing users/passwords when you write the file twice.
|
|
|
|
|
As Ron suggests, you should use a database for this; and it really is not that complicated. Trying to modify a text file in the way you describe is prone to errors and losing all your data. You could read the file at startup and keep it all in memory. Then every time you get a new account add it to your in memory list and write the complete file back to disk. However, this method is still not totally secure.
Veni, vidi, abiit domum
|
|
|
|
|
C.CoderCreator wrote: I was wondering if this is possible to do?
If there is no server then EVERYONE must have access to the file system. So that means NO internet.
If that is ok with you then the way this is typically handled is with a "file lock". Depending on what the clients look like and the OS then there might be native support for this. However there are non-OS supported ways that are almost workable for simple cases. Failures usually result in locked applications. Failures are very likely to occur. So likely that if they don't occur that would be an abnormal situation.
You can google for "file lock" to find more information if the limitations are ok.
|
|
|
|
|
Potentially try to have two+ threads doing file IO operations, have them synchronized & you might have to close the stream upon every operation.
I'm going to be honest, it's not the most effective way to do FileIO, but as long as the file gets updated after each thread gets closed & you re-read the data before processing on each thread, you should be able to perform operations with a single file, on two+ threads.
Keep in mind that a synchronous thread will affect performance by "taking turns" with data processing, but I doubt you'll need to operate at a very very fast speed to see the difference.
|
|
|
|
|
how to connect assests folder content such as text files or property files to database
|
|
|
|
|
Is this a Java question, and if so, please give some proper detail about your problem.
Veni, vidi, abiit domum
|
|
|
|
|
|
i have many dictionary data files in my assests folder. i have developed a dictionary for android and some other apps for this im using the data from assets folder so then the app is becoming slow.. and im new to technology and dont have knowledge on database, what would be the better option
|
|
|
|
|
Then go and research the various database options available to Android.
Veni, vidi, abiit domum
|
|
|
|
|
|
I want to make a project on voice storage and recognition in java.
Can some one tell me how to begin and proceed for it?
Nehajava
|
|
|
|
|
|
|
How to access desktop application from html page without using ActiveXObject because using it the programme runs only on IE.
<html>
<head>
<title>Application Executer</title>
<!-- <HTA:APPLICATION ID="oMyApp"
APPLICATIONNAME="Application Executer"
BORDER="no"
CAPTION="no"
SHOWINTASKBAR="yes"
SINGLEINSTANCE="yes"
SYSMENU="yes"
SCROLL="no"
WINDOWSTATE="normal">-->
<script type="text/javascript" language="javascript">
function RunFile() {
WshShell = new ActiveXObject("WScript.Shell");
WshShell.Run("c:/windows/system32/ooVoo.exe", 1, false);
}
</script>
</head>
<body>
<input type="button" value="Run oovoo" onclick="RunFile();"/>
</body>
</html>
|
|
|
|
|
You can't; that is specifically disallowed by browsers for security reasons.
Veni, vidi, abiit domum
|
|
|
|
|
|
You could find out by reading any introductory Java reference, or take a look at the Java Tutorials[^].
Veni, vidi, abiit domum
|
|
|
|
|
Classname objectname=new Classname();
|
|
|
|