Hi guys, please help me with my problem here.
I have two similiar web application, one can be started by tomcat, and another doesn't
One is under webapps/book_store folder, which is working correctly.
Another is under webapps/book_store_jsf, which is almost exactly the same application (except the project name in build.xml), which can't be started by tomcat.
This is the console log when I start the tomcat server:
book_store can be accessed, but book_store_jsf doesn't. Can anyone find out what am I doing wrong here?
I'm aware that in line 16, the log tells me that tomcat doesn't like my servlet-2.3.jar. I've deleted the file, but still it doesn't work.
You are on the right track. The servlet.jar file is in Tomcat and shouldn't be included in your WAR. But once you deployed a WAR with it in, the jar kind of hangs around.
Stop Tomcat. Delete the applet WAR and the WAR directory from TOMCAT_HOME/webapps. While you're at it, delete the directory from TOMCAT_HOME/work/Catalina/localhost as well. Redeploy the WAR and restart Tomcat.
It's an annoying Tomcat-ism. If you deploy a WAR and it gets exploded, the exploded version is then considered to be the authoritative version. If you copy in a new WAR file, the updated WAR is ignored.
Sources may include data from the Fakebook Research Foundation with support from Gargle University