2013年10月5日星期六

Tomcat on hot deployment

I had to use the tomcat5.5, due to a change java class does not automatically update , I'll upgrade a plug-in, open a web page after the upgrade , all 404 errors, so I reinstall tomcat5.5 jdk, can not solve problem
Now I installed tomcat7.0 now tomcat installation directory / conf / Catalina / localhost add items xml configuration file as follows:



with URL "http://localhost:8080/CW/" you can see the CW directory of files and folders

, click the WebRoot directory , the original index.jsp open java classes in a row error was estimated to be no such category ( is not the case WebRoot settings will not only identify the documents, not WebRoot went inside with a Src directory within the directory within the java file ? should be set up in there ? )
If I set the xml configuration in


with URL "http://localhost:8080/CW/" shows "HTTP Status 404 - / CW /" Error

Internet search a few days tomcat hot deployment methods can not solve , who helped me find out why , thank you

------ Solution ------------------------------------ --------
there may be a JDK version compatibility issues with TOMCAT ?
------ For reference only -------------------------------------- -
I was originally and is now jdk tomcat5.5, have been installed on three machines in normal use. Just too many variables as the server 's configuration , this will not work out how . If not then try to reinstall an XP . Just have to reinstall mysql database so I do not know the garbage problem would not be so annoying
------ For reference only -------------------- -------------------
finally resolved, because tomcat can not be installed in the Program Files directory , because the directory has a space. JDK can be installed in this directory. Tomcat directly on the root directory of C on the line.

没有评论:

发表评论