This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I have developed a java application and it work fine on my own server where is installed Tomcat (this server is not the develpment machine). When I call the index.php with my browser I can see the expected result (as well if I do the deployment with the war file or if I upload the file of the application. As my application work fine I uploaded the files on my remote site (here I can only upload the files, I can't use the war file) which use also Tomcat. But when I call the URL I have the following error :
exception org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: 11 in the jsp file: /index.jsp Generated servlet error: [javac] Compiling 1 source file
/usr/local/jakarta-tomcat4.1/work/Standalone/chemical-sourcing.com/Marvinb/index_jsp.java:7: package chemaxon.calculations does not exist import chemaxon.calculations.ElementalAnalyser;
But the chemaxon library is in the lib folder as on my own server ?
What I am doing wrong ? Thanks you for your help, Jean-Marie
You can upload the jar file as many times as you'd like, but it will not take effect until the web app can be reloaded. The brute force approach is to restart the server, but if you an convice the owner of the server to set up the Tomcat manager for your context, you will be able to stop and start the web app itself without requiring a server restart.
and get the manager control panel. You will need to have the server owner set you up as a Tomcat user with the "manager" role.
If you have set up your web app in a virtual host, you can add the manager app to that host by adding the following context declaration to the host declaration in server.xml. Here's an example from an OS X/Tomcat 5.0.25 setup:
Of course, you would need to adjust the path as suitable for your own installation. [ May 25, 2005: Message edited by: Bear Bibeault ]
Joined: Apr 24, 2005
Thank you for this very interresting answer. Now I have to know if I can do that !