|Republish does not work (static resources) [message #776082]
||Sat, 07 January 2012 06:49
| Paul Pentosa
Registered: January 2012
When i run my webapp in eclipse i get an 404 error as soon as i call the dispatcher Servlet. First i thought there must be something wrong in the code but everthing seemed to be fine.|
I looked up the org.eclipse.wst.server.core and the classes folder of the wtpwebapps was empty, so it's clear that Tomcat can't find the class file.
I exported the project as a war file and deployed it with the manager app of the tomcat gui. This time it worked without a problem. After that i tried it again in eclipse and here it worked, too. So i again looked up the classes folder in wtpwebapps and found the comiled servlets.
it happens that the content of my dynamic web project does not get published correctly. The web module and the server are marked as "Synchronized", but only partial content is deployed to wtpwebapps. I have to remove the project from the server, then do a rightclick --> Build Project and add again the web module to fix the problem.
When i modify a jsp, i immediately see in the servers tab that tomcat republishes. If i do the same with servlet no change takes place in the tab.
So why does Tomcat not republishes the static resources ?
I am new to java/webapplications and eclipse, so please tell me what i'm doing wrong.
Thank you in advance,
Powered by FUDForum
. Page generated in 0.01969 seconds