Ok but application is automaticaly generated in NetBeans 6.9 and it containes only one .jsp page it is index.jsp. And i chosed Tomcet 5.5 and J2EE 1.4.
<?xml version="1.0" encoding="UTF-8"?> <web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=" http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"> <context-param> <param-name>javax.faces.PROJECT_STAGE</param-name> <param-value>Development</param-value> </context-param> <servlet> <servlet-name>Faces Servlet</servlet-name> <servlet-class>javax.faces.webapp.FacesServlet</servlet-class> <load-on-startup>1</load-on-startup> </servlet> <servlet-mapping> <servlet-name>Faces Servlet</servlet-name> <url-pattern>/faces/*</url-pattern> </servlet-mapping> <session-config> <session-timeout> 30 </session-timeout> </session-config> <welcome-file-list> <welcome-file>faces/index.jsp</welcome-file> </welcome-file-list> </web-app> And project use web-app version="2.4". On Thu, Dec 30, 2010 at 10:14 PM, Mark Eggers <its_toas...@yahoo.com> wrote: > From the following, it looks like Tomcat is running fine: > > Dec 30, 2010 6:55:42 PM org.apache.catalina.startup.Catalina start > INFO: Server startup in 2031 ms > > From the following, it looks like your application is not running fine: > > Dec 30, 2010 7:15:58 PM org.apache.catalina.startup.HostConfig deployWAR > INFO: Deploying web application archive TestATom5.war > Dec 30, 2010 7:15:59 PM org.apache.catalina.core.StandardContext start > SEVERE: Error listenerStart > Dec 30, 2010 7:15:59 PM org.apache.catalina.core.StandardContext start > SEVERE: Context [/TestATom5] startup failed due to previous errors > > > Please note the following differences in Tomcat 5.5.x and Tomcat 6.0.x: > > From http://tomcat.apache.org/tomcat-5.5-doc/index.html > Apache Tomcat version 5.5 implements the Servlet 2.4 and JavaServer Pages > 2.0 specifications > > From http://tomcat.apache.org/tomcat-6.0-doc/index.html > Apache Tomcat version 6.0 implements the Servlet 2.5 and JavaServer Pages > 2.1 specifications > > Could the fact that your application runs on Tomcat 6.0 and not 5.5 be due > to this? > > When you're developing in NetBeans and choose a server for the application, > you can set the Java EE version. For Tomcat 6, the version defaults to Java > EE 5 with an option to choose J2EE 1.4. For Tomcat 5.5, it defaults to J2EE > 1.4. When you choose J2EE 1.4, you have an additional option to set the > source code level to 1.4 (defaults to this). > > If you first developed for Tomcat 6.0.29 and accepted the defaults, the > result will not be appropriate for running under Tomcat 5.5.31. Check your > web.xml file and see what version of the servlet specification you're using. > > 2.4 version (this will run in both Tomcat 5.5.x and Tomcat 6.0.x): > > <web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation= > "http://java.sun.com/xml/ns/j2ee > http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"> > > > (sorry for the word-wrap on the last line) > > 2.5 version (this will run in Tomcat 6.0.x): > > <web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation= > "http://java.sun.com/xml/ns/javaee > http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"> > > > (sorry for the word-wrap on the last line) > > > Tomcat 7 (supported by NetBeans 7 the last time I checked) will run both as > well. > > . . . . just my two cents. > > /mde/ > > ----- Original Message ----- > > From:Sasa Rakic <sas...@gmail.com> > To:Tomcat Users List <users@tomcat.apache.org> > Cc: > Sent:Thursday, December 30, 2010 12:28:27 PM > Subject:Re: Tomcat 5.5 problem > > 1.I put .war file from my JSF project in to webapps folder of my apache > tomcat 5.5.31 directory. > .../apache tomcat 5.5.31/webapps/MyProject.WAR > 2.From the command prompt i start startup.bat file which is positioned in > .../apache tomcat 5.5.31/bin/startup.bat. > > And Tomcat does not work. If i do same thing with Tomcat 6.0 it works fine. > When i try to repeat all this useing NetBeans the result is the same. > > In Tomcat command window i get message: > > My catalina out looks like this: > > Dec 30, 2010 6:55:39 PM org.apache.catalina.core.AprLifecycleListener init > INFO: Loaded APR based Apache Tomcat Native library 1.1.20. > Dec 30, 2010 6:55:39 PM org.apache.catalina.core.AprLifecycleListener init > INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters > [false], random [true]. > Dec 30, 2010 6:55:40 PM org.apache.coyote.http11.Http11AprProtocol init > INFO: Initializing Coyote HTTP/1.1 on http-8080 > Dec 30, 2010 6:55:40 PM org.apache.coyote.ajp.AjpAprProtocol init > INFO: Initializing Coyote AJP/1.3 on ajp-8009 > Dec 30, 2010 6:55:40 PM org.apache.catalina.startup.Catalina load > INFO: Initialization processed in 1594 ms > Dec 30, 2010 6:55:40 PM org.apache.catalina.core.StandardService start > INFO: Starting service Catalina > Dec 30, 2010 6:55:40 PM org.apache.catalina.core.StandardEngine start > INFO: Starting Servlet Engine: Apache Tomcat/5.5.31 > Dec 30, 2010 6:55:40 PM org.apache.catalina.core.StandardHost start > INFO: XML validation disabled > Dec 30, 2010 6:55:41 PM org.apache.coyote.http11.Http11AprProtocol start > INFO: Starting Coyote HTTP/1.1 on http-8080 > Dec 30, 2010 6:55:42 PM org.apache.coyote.ajp.AjpAprProtocol start > INFO: Starting Coyote AJP/1.3 on ajp-8009 > Dec 30, 2010 6:55:42 PM org.apache.catalina.storeconfig.StoreLoader load > INFO: Find registry server-registry.xml at classpath resource > Dec 30, 2010 6:55:42 PM org.apache.catalina.startup.Catalina start > INFO: Server startup in 2031 ms > Dec 30, 2010 6:56:29 PM org.apache.coyote.http11.Http11AprProtocol pause > INFO: Pausing Coyote HTTP/1.1 on http-8080 > Dec 30, 2010 6:56:29 PM org.apache.coyote.ajp.AjpAprProtocol pause > INFO: Pausing Coyote AJP/1.3 on ajp-8009 > Dec 30, 2010 6:56:30 PM org.apache.catalina.core.StandardService stop > INFO: Stopping service Catalina > Dec 30, 2010 6:56:30 PM org.apache.coyote.http11.Http11AprProtocol destroy > INFO: Stopping Coyote HTTP/1.1 on http-8080 > Dec 30, 2010 6:56:30 PM org.apache.coyote.ajp.AjpAprProtocol destroy > INFO: Stopping Coyote AJP/1.3 on ajp-8009 > Dec 30, 2010 6:57:11 PM org.apache.catalina.core.AprLifecycleListener init > INFO: Loaded APR based Apache Tomcat Native library 1.1.20. > Dec 30, 2010 6:57:11 PM org.apache.catalina.core.AprLifecycleListener init > INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters > [false], random [true]. > Dec 30, 2010 6:57:12 PM org.apache.coyote.http11.Http11AprProtocol init > INFO: Initializing Coyote HTTP/1.1 on http-8080 > Dec 30, 2010 6:57:12 PM org.apache.coyote.ajp.AjpAprProtocol init > INFO: Initializing Coyote AJP/1.3 on ajp-8009 > Dec 30, 2010 6:57:12 PM org.apache.catalina.startup.Catalina load > INFO: Initialization processed in 1625 ms > Dec 30, 2010 6:57:12 PM org.apache.catalina.core.StandardService start > INFO: Starting service Catalina > Dec 30, 2010 6:57:12 PM org.apache.catalina.core.StandardEngine start > INFO: Starting Servlet Engine: Apache Tomcat/5.5.31 > Dec 30, 2010 6:57:12 PM org.apache.catalina.core.StandardHost start > INFO: XML validation disabled > Dec 30, 2010 6:57:13 PM org.apache.coyote.http11.Http11AprProtocol start > INFO: Starting Coyote HTTP/1.1 on http-8080 > Dec 30, 2010 6:57:14 PM org.apache.coyote.ajp.AjpAprProtocol start > INFO: Starting Coyote AJP/1.3 on ajp-8009 > Dec 30, 2010 6:57:14 PM org.apache.catalina.storeconfig.StoreLoader load > INFO: Find registry server-registry.xml at classpath resource > Dec 30, 2010 6:57:14 PM org.apache.catalina.startup.Catalina start > INFO: Server startup in 1906 ms > Dec 30, 2010 6:57:38 PM org.apache.coyote.http11.Http11AprProtocol pause > INFO: Pausing Coyote HTTP/1.1 on http-8080 > Dec 30, 2010 6:57:38 PM org.apache.coyote.ajp.AjpAprProtocol pause > INFO: Pausing Coyote AJP/1.3 on ajp-8009 > Dec 30, 2010 6:57:39 PM org.apache.catalina.core.StandardService stop > INFO: Stopping service Catalina > Dec 30, 2010 6:57:39 PM org.apache.coyote.http11.Http11AprProtocol destroy > INFO: Stopping Coyote HTTP/1.1 on http-8080 > Dec 30, 2010 6:57:39 PM org.apache.coyote.ajp.AjpAprProtocol destroy > INFO: Stopping Coyote AJP/1.3 on ajp-8009 > Dec 30, 2010 7:15:56 PM org.apache.catalina.core.AprLifecycleListener init > INFO: Loaded APR based Apache Tomcat Native library 1.1.20. > Dec 30, 2010 7:15:56 PM org.apache.catalina.core.AprLifecycleListener init > INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters > [false], random [true]. > Dec 30, 2010 7:15:57 PM org.apache.coyote.http11.Http11AprProtocol init > INFO: Initializing Coyote HTTP/1.1 on http-8080 > Dec 30, 2010 7:15:57 PM org.apache.coyote.ajp.AjpAprProtocol init > INFO: Initializing Coyote AJP/1.3 on ajp-8009 > Dec 30, 2010 7:15:57 PM org.apache.catalina.startup.Catalina load > INFO: Initialization processed in 1782 ms > Dec 30, 2010 7:15:57 PM org.apache.catalina.core.StandardService start > INFO: Starting service Catalina > Dec 30, 2010 7:15:57 PM org.apache.catalina.core.StandardEngine start > INFO: Starting Servlet Engine: Apache Tomcat/5.5.31 > Dec 30, 2010 7:15:57 PM org.apache.catalina.core.StandardHost start > INFO: XML validation disabled > Dec 30, 2010 7:15:58 PM org.apache.catalina.startup.HostConfig deployWAR > INFO: Deploying web application archive TestATom5.war > Dec 30, 2010 7:15:59 PM org.apache.catalina.core.StandardContext start > SEVERE: Error listenerStart > Dec 30, 2010 7:15:59 PM org.apache.catalina.core.StandardContext start > SEVERE: Context [/TestATom5] startup failed due to previous errors > Dec 30, 2010 7:16:00 PM org.apache.coyote.http11.Http11AprProtocol start > INFO: Starting Coyote HTTP/1.1 on http-8080 > Dec 30, 2010 7:16:00 PM org.apache.coyote.ajp.AjpAprProtocol start > INFO: Starting Coyote AJP/1.3 on ajp-8009 > Dec 30, 2010 7:16:00 PM org.apache.catalina.storeconfig.StoreLoader load > INFO: Find registry server-registry.xml at classpath resource > Dec 30, 2010 7:16:00 PM org.apache.catalina.startup.Catalina start > INFO: Server startup in 2875 ms > Dec 30, 2010 7:26:50 PM org.apache.catalina.startup.HostConfig > checkResources > INFO: Undeploying context [/TestATom5] > Dec 30, 2010 7:26:50 PM org.apache.catalina.startup.HostConfig deployWAR > INFO: Deploying web application archive TestATom5.war > Dec 30, 2010 7:26:51 PM org.apache.catalina.core.StandardContext start > *SEVERE: Error listenerStart > *Dec 30, 2010 7:26:51 PM org.apache.catalina.core.StandardContext start > SEVERE: Context [/TestATom5] startup failed due to previous errors > Dec 30, 2010 7:26:58 PM org.apache.coyote.http11.Http11AprProtocol pause > INFO: Pausing Coyote HTTP/1.1 on http-8080 > Dec 30, 2010 7:26:58 PM org.apache.coyote.ajp.AjpAprProtocol pause > INFO: Pausing Coyote AJP/1.3 on ajp-8009 > Dec 30, 2010 7:26:59 PM org.apache.catalina.core.StandardService stop > INFO: Stopping service Catalina > Dec 30, 2010 7:26:59 PM org.apache.coyote.http11.Http11AprProtocol destroy > INFO: Stopping Coyote HTTP/1.1 on http-8080 > Dec 30, 2010 7:26:59 PM org.apache.coyote.ajp.AjpAprProtocol destroy > INFO: Stopping Coyote AJP/1.3 on ajp-8009 > Dec 30, 2010 9:08:14 PM org.apache.catalina.core.AprLifecycleListener init > INFO: Loaded APR based Apache Tomcat Native library 1.1.20. > Dec 30, 2010 9:08:14 PM org.apache.catalina.core.AprLifecycleListener init > INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters > [false], random [true]. > Dec 30, 2010 9:08:15 PM org.apache.coyote.http11.Http11AprProtocol init > INFO: Initializing Coyote HTTP/1.1 on http-8080 > Dec 30, 2010 9:08:15 PM org.apache.coyote.ajp.AjpAprProtocol init > INFO: Initializing Coyote AJP/1.3 on ajp-8009 > Dec 30, 2010 9:08:15 PM org.apache.catalina.startup.Catalina load > INFO: Initialization processed in 2422 ms > Dec 30, 2010 9:08:15 PM org.apache.catalina.core.StandardService start > INFO: Starting service Catalina > Dec 30, 2010 9:08:15 PM org.apache.catalina.core.StandardEngine start > INFO: Starting Servlet Engine: Apache Tomcat/5.5.31 > Dec 30, 2010 9:08:16 PM org.apache.catalina.core.StandardHost start > INFO: XML validation disabled > Dec 30, 2010 9:08:17 PM org.apache.catalina.core.StandardContext start > SEVERE: Error listenerStart > Dec 30, 2010 9:08:17 PM org.apache.catalina.core.StandardContext start > SEVERE: Context [/TestATom5] startup failed due to previous errors > Dec 30, 2010 9:08:19 PM org.apache.coyote.http11.Http11AprProtocol start > INFO: Starting Coyote HTTP/1.1 on http-8080 > Dec 30, 2010 9:08:19 PM org.apache.coyote.ajp.AjpAprProtocol start > INFO: Starting Coyote AJP/1.3 on ajp-8009 > Dec 30, 2010 9:08:19 PM org.apache.catalina.storeconfig.StoreLoader load > INFO: Find registry server-registry.xml at classpath resource > Dec 30, 2010 9:08:19 PM org.apache.catalina.startup.Catalina start > INFO: Server startup in 4282 ms > Dec 30, 2010 9:10:12 PM org.apache.coyote.http11.Http11AprProtocol pause > INFO: Pausing Coyote HTTP/1.1 on http-8080 > Dec 30, 2010 9:10:12 PM org.apache.coyote.ajp.AjpAprProtocol pause > INFO: Pausing Coyote AJP/1.3 on ajp-8009 > Dec 30, 2010 9:15:58 PM org.apache.catalina.core.AprLifecycleListener init > INFO: Loaded APR based Apache Tomcat Native library 1.1.20. > Dec 30, 2010 9:15:58 PM org.apache.catalina.core.AprLifecycleListener init > INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters > [false], random [true]. > Dec 30, 2010 9:15:59 PM org.apache.coyote.http11.Http11AprProtocol init > INFO: Initializing Coyote HTTP/1.1 on http-8080 > Dec 30, 2010 9:15:59 PM org.apache.coyote.ajp.AjpAprProtocol init > INFO: Initializing Coyote AJP/1.3 on ajp-8009 > Dec 30, 2010 9:15:59 PM org.apache.catalina.startup.Catalina load > INFO: Initialization processed in 2359 ms > Dec 30, 2010 9:16:00 PM org.apache.catalina.core.StandardService start > INFO: Starting service Catalina > Dec 30, 2010 9:16:00 PM org.apache.catalina.core.StandardEngine start > INFO: Starting Servlet Engine: Apache Tomcat/5.5.31 > Dec 30, 2010 9:16:00 PM org.apache.catalina.core.StandardHost start > INFO: XML validation disabled > Dec 30, 2010 9:16:01 PM org.apache.catalina.core.StandardContext start > SEVERE: Error listenerStart > Dec 30, 2010 9:16:01 PM org.apache.catalina.core.StandardContext start > SEVERE: Context [/TestATom5] startup failed due to previous errors > Dec 30, 2010 9:16:03 PM org.apache.coyote.http11.Http11AprProtocol start > INFO: Starting Coyote HTTP/1.1 on http-8080 > Dec 30, 2010 9:16:03 PM org.apache.coyote.ajp.AjpAprProtocol start > INFO: Starting Coyote AJP/1.3 on ajp-8009 > Dec 30, 2010 9:16:03 PM org.apache.catalina.storeconfig.StoreLoader load > INFO: Find registry server-registry.xml at classpath resource > Dec 30, 2010 9:16:03 PM org.apache.catalina.startup.Catalina start > INFO: Server startup in 3782 ms > > > I also tried JDK 5 but the problem is same ! > > > Thank you very much, > > Sasa! > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > >