I am not too familiar with tomcat and servlets and i am in charge of moving a tomcat application to a new server.
The current application runs under tomcat 4.03 (win2k) and i am trying to get it to run under tomcat 5.0 (win2k3)
The app is built in many small .class files that do one set of tasks (one is for db stuff, one for file access...)
The app works on the new server after i adjusted some configurations except it pops this error on a few pages: AccesIO:FindChem:java.io.FileNotFoundException: webapps\UsefulApp\out\chem.out (The system cannot find the path specified)
This happens in one of the class files that gets called to read files from webapps\UsefulApp\out
The line where to problem occurs is the following:
BufferedReader in = new BufferedReader(new FileReader("webapps\\UsefulApp\\out\\chem.out"));
It works if i replace that path with an absolute one but it works on the current server as is.
Adjusting tomcat configuration would be much preferred than recompiling the code here as i don't have all the files that were used to compile the app.
Any suggestions would be greatly appreciated as i have already spent much time on this issue. Yes i used google and read thru the apache tomcat docs but something is still escaping me.
Thanks
The current application runs under tomcat 4.03 (win2k) and i am trying to get it to run under tomcat 5.0 (win2k3)
The app is built in many small .class files that do one set of tasks (one is for db stuff, one for file access...)
The app works on the new server after i adjusted some configurations except it pops this error on a few pages: AccesIO:FindChem:java.io.FileNotFoundException: webapps\UsefulApp\out\chem.out (The system cannot find the path specified)
This happens in one of the class files that gets called to read files from webapps\UsefulApp\out
The line where to problem occurs is the following:
BufferedReader in = new BufferedReader(new FileReader("webapps\\UsefulApp\\out\\chem.out"));
It works if i replace that path with an absolute one but it works on the current server as is.
Adjusting tomcat configuration would be much preferred than recompiling the code here as i don't have all the files that were used to compile the app.
Any suggestions would be greatly appreciated as i have already spent much time on this issue. Yes i used google and read thru the apache tomcat docs but something is still escaping me.
Thanks