Tomcat 7 war file deploy
Solution 1
There is problem with tomcat to start or stop with eclipse. Its best to start and stop tomcat with the bat files in bin folder.
Solution 2
In your console message, I do not find the deploying of "JavaServerFaces.war". In eclipse, open your server setting file,under "Server Location " check if the option "Use tomcat installation (.......) ". if it is checked, then check the deploy name if it "webapps". if not then, change it to "webapps".
And if, this all are correct, then possibly your .war file is making fault.
Comments
-
bali208 almost 2 years
I am trying to load a WAR file to my Tomcat 7, and I am using eclipse to start or stop the Server.
I pasted the war file in TOMCAT_HOME/webapps folder and I started the server.
The server Started fine and i got the below console message.
10 Dec, 2012 9:10:46 AM org.apache.catalina.core.AprLifecycleListener init INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: F:\Program Files\Java\jdk1.6.0_37\jre\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;F:/Program Files/Java/jre6/bin/client;F:/Program Files/Java/jre6/bin;F:/Program Files/Java/jre6/lib/i386;C:\Program Files\AMD APP\bin\x86;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files\Windows Live\Shared;C:\Program Files\QuickTime\QTSystem\;.;F:\Program Files\Java\jdk1.6.0_37\bin;F:\apache-maven-3.0.4\bin;;F:\eclipse-juno;;. 10 Dec, 2012 9:10:46 AM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["http-bio-8090"] 10 Dec, 2012 9:10:46 AM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["ajp-bio-8009"] 10 Dec, 2012 9:10:46 AM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 484 ms 10 Dec, 2012 9:10:46 AM org.apache.catalina.core.StandardService startInternal INFO: Starting service Catalina 10 Dec, 2012 9:10:46 AM org.apache.catalina.core.StandardEngine startInternal INFO: Starting Servlet Engine: Apache Tomcat/7.0.33 10 Dec, 2012 9:10:46 AM org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler ["http-bio-8090"] 10 Dec, 2012 9:10:46 AM org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler ["ajp-bio-8009"] 10 Dec, 2012 9:10:46 AM org.apache.catalina.startup.Catalina start INFO: Server startup in 211 ms
But when i try to access my application it gave me ERROR 404, File not Found.
I checked the application TOMCAT_HOME/webapps there i found both my war file and a folder of same name - "JavaServerFaces"
TOMCAT_HOME/webapps directory :
The Server is ON, war file is present, A folder structure is generated, but still i am not able to access my application which gives
HTTP Status 404 - /JavaServerFaces/xhtml/hello.xhtml
Any solutions for proper deployment and running of war file on tomcat 7?
-
bali208 over 11 yearsI am manually copy pasting the war file. I am using eclipse only to start or stop the server . Instead of using startup.bat and shutdown.bat. The application is still in 404 state. I dont know why. Any alternate ways of deploying my war file in Tomcat 7 ? Any Manager app or GUI to deploy my war file in tomcat 7 ? My war file is running fine in JBoss 7, but not on tomcat.