Re: Tomcat started and localhost:8080 is loading
Hi Priya, Thank you for the response. I started eclipse with -clean option. error remains the same. Tomcat version and home directory are configured in mongrel settings. How do I check plug-in is installed properly or not? Installed JRE is poiting to jdk directory. Regards, On Mon, Aug 29, 2011 at 12:09 PM, Priya Ram Prasad priya@gmail.comwrote: Hi, I don't think there is any problem with the tomcat. Did you add the plugin properly and started the eclipse with -clean option ? Check your Tomcat version and tomcat home directory in eclipse preference. Also whether your eclipse's installed JRE is pointing to jdk directory. Thanks, Priya
Re: Tomcat started and localhost:8080 is loading
The plug-in is already in the plugins directory. I started eclipse with -clean option. Sorry for a naive question.The eclipse console does not show any error. Is error trace, the file localhost_access_log.date.txt? If yes, please find the entry below: 127.0.0.1 - - [29/Aug/2011:00:21:28 -0400] GET / HTTP/1.1 404 - 0:0:0:0:0:0:0:1 - - [29/Aug/2011:00:21:38 -0400] GET /manager HTTP/1.1 404 - 0:0:0:0:0:0:0:1 - - [29/Aug/2011:00:21:47 -0400] GET /manager HTTP/1.1 404 - 0:0:0:0:0:0:0:1 - - [29/Aug/2011:00:21:55 -0400] GET /manager/status HTTP/1.1 404 - 0:0:0:0:0:0:0:1 - - [29/Aug/2011:00:22:12 -0400] GET /manager/status HTTP/1.1 404 - 0:0:0:0:0:0:0:1 - - [29/Aug/2011:00:22:19 -0400] GET / HTTP/1.1 404 - 127.0.0.1 - - [29/Aug/2011:00:33:20 -0400] GET / HTTP/1.1 404 - 0:0:0:0:0:0:0:1 - - [29/Aug/2011:00:33:34 -0400] GET / HTTP/1.1 404 - 0:0:0:0:0:0:0:1 - - [29/Aug/2011:00:33:43 -0400] GET /manager HTTP/1.1 404 - 0:0:0:0:0:0:0:1 - - [29/Aug/2011:00:33:49 -0400] GET /manager/status HTTP/1.1 404 - 127.0.0.1 - - [29/Aug/2011:00:34:22 -0400] GET /RecommendationApp/registration.jsp HTTP/1.1 404 - 127.0.0.1 - - [29/Aug/2011:00:34:23 -0400] GET /favicon.ico HTTP/1.1 404 - 127.0.0.1 - - [29/Aug/2011:13:49:13 -0400] GET / HTTP/1.1 404 - 127.0.0.1 - - [29/Aug/2011:13:49:39 -0400] GET /RecommendationApp/registration.jsp HTTP/1.1 404 - 127.0.0.1 - - [29/Aug/2011:13:49:42 -0400] GET /favicon.ico HTTP/1.1 404 - 127.0.0.1 - - [29/Aug/2011:14:23:53 -0400] GET / HTTP/1.1 404 - 0:0:0:0:0:0:0:1 - - [29/Aug/2011:14:24:42 -0400] GET /manager HTTP/1.1 404 - 0:0:0:0:0:0:0:1 - - [29/Aug/2011:14:24:50 -0400] GET / HTTP/1.1 404 - 127.0.0.1 - - [29/Aug/2011:14:25:10 -0400] GET /RecommendationApp/registration.jsp HTTP/1.1 404 - 127.0.0.1 - - [29/Aug/2011:14:25:11 -0400] GET /favicon.ico HTTP/1.1 404 - 127.0.0.1 - - [29/Aug/2011:14:50:39 -0400] GET / HTTP/1.1 404 - 127.0.0.1 - - [29/Aug/2011:14:53:28 -0400] GET / HTTP/1.1 404 - 127.0.0.1 - - [29/Aug/2011:14:54:39 -0400] GET / HTTP/1.1 404 - 127.0.0.1 - - [29/Aug/2011:14:54:55 -0400] GET /RecommendationApp/registration.jsp HTTP/1.1 404 - 127.0.0.1 - - [29/Aug/2011:14:54:55 -0400] GET /favicon.ico HTTP/1.1 404 - 127.0.0.1 - - [29/Aug/2011:15:09:47 -0400] GET / HTTP/1.1 404 - 127.0.0.1 - - [29/Aug/2011:15:10:03 -0400] GET /RecommendationApp/registration.jsp HTTP/1.1 404 - 127.0.0.1 - - [29/Aug/2011:15:10:04 -0400] GET /favicon.ico HTTP/1.1 404 - 0:0:0:0:0:0:0:1 - - [29/Aug/2011:15:10:35 -0400] GET /manager HTTP/1.1 404 - 0:0:0:0:0:0:0:1 - - [29/Aug/2011:15:10:40 -0400] GET / HTTP/1.1 404 - 127.0.0.1 - - [29/Aug/2011:15:15:54 -0400] GET / HTTP/1.1 404 - 0:0:0:0:0:0:0:1 - - [29/Aug/2011:15:17:37 -0400] GET / HTTP/1.1 404 - 0:0:0:0:0:0:0:1 - - [29/Aug/2011:15:17:42 -0400] GET /manager HTTP/1.1 404 - 127.0.0.1 - - [29/Aug/2011:16:26:26 -0400] GET / HTTP/1.1 404 - 127.0.0.1 - - [29/Aug/2011:16:26:27 -0400] GET /RecommendationApp/registration.jsp HTTP/1.1 404 - 127.0.0.1 - - [29/Aug/2011:16:26:29 -0400] GET /favicon.ico HTTP/1.1 404 - -- On Mon, Aug 29, 2011 at 3:07 PM, Priya Ram Prasad priya@gmail.comwrote: Hi, Add the plugin to eclipse\plugins and then run eclipse with -clean option. Can you send the error trace when you open localhost:8080 page ? thanks On Mon, Aug 29, 2011 at 1:32 PM, Pratibha S psund...@gmail.com wrote: Hi Priya, Thank you for the response. I started eclipse with -clean option. error remains the same. Tomcat version and home directory are configured in mongrel settings. How do I check plug-in is installed properly or not? Installed JRE is poiting to jdk directory. Regards, On Mon, Aug 29, 2011 at 12:09 PM, Priya Ram Prasad priya@gmail.com wrote: Hi, I don't think there is any problem with the tomcat. Did you add the plugin properly and started the eclipse with -clean option ? Check your Tomcat version and tomcat home directory in eclipse preference. Also whether your eclipse's installed JRE is pointing to jdk directory. Thanks, Priya
Tomcat started and localhost:8080 is loading
Hi, I'm using Tomcat 7.0 and Eclipse Indigo. I'm using Mongrel plug-in for Tomcat. When I start startup.sh, I can load the localhost:8080 page. But when I start Tomcat from Eclipse, it is able to start but I'm unable to load the localhost page. Explorer says, could not connect to localhost:8080. From here, ( http://stackoverflow.com/questions/2280064/tomcat-started-in-eclipse-but-unable-to-connect-to-link-to-http-localhost8085) I changed the settings of server to use Tomcat Installation rather than from workspace. But still I'm unable to load the page. My Catalina.out is not showing any errors (it is given below) Please guide me. - INFO: Starting service Catalina Aug 28, 2011 8:38:48 PM org.apache.catalina.core.StandardEngine startInternal INFO: Starting Servlet Engine: Apache Tomcat/7.0.20 Aug 28, 2011 8:38:48 PM org.apache.catalina.startup.HostConfig deployDirectory INFO: Deploying web application directory manager Aug 28, 2011 8:38:48 PM org.apache.catalina.startup.HostConfig deployDirectory INFO: Deploying web application directory host-manager Aug 28, 2011 8:38:49 PM org.apache.catalina.startup.HostConfig deployDirectory INFO: Deploying web application directory ROOT Aug 28, 2011 8:38:49 PM org.apache.catalina.startup.HostConfig deployDirectory INFO: Deploying web application directory examples Aug 28, 2011 8:38:49 PM org.apache.catalina.startup.HostConfig deployDirectory INFO: Deploying web application directory docs Aug 28, 2011 8:38:49 PM org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler [http-bio-8080] Aug 28, 2011 8:38:49 PM org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler [ajp-bio-8009] Aug 28, 2011 8:38:49 PM org.apache.catalina.startup.Catalina start INFO: Server startup in 1667 ms Aug 28, 2011 11:02:37 PM org.apache.catalina.core.StandardServer await INFO: A valid shutdown command was received via the shutdown port. Stopping the Server instance. Aug 28, 2011 11:02:37 PM org.apache.coyote.AbstractProtocol pause INFO: Pausing ProtocolHandler [http-bio-8080] Aug 28, 2011 11:02:39 PM org.apache.coyote.AbstractProtocol pause INFO: Pausing ProtocolHandler [ajp-bio-8009] Aug 28, 2011 11:02:40 PM org.apache.catalina.core.StandardService stopInternal INFO: Stopping service Catalina Aug 28, 2011 11:02:40 PM org.apache.coyote.AbstractProtocol stop INFO: Stopping ProtocolHandler [http-bio-8080] Aug 28, 2011 11:02:40 PM org.apache.coyote.AbstractProtocol stop INFO: Stopping ProtocolHandler [ajp-bio-8009] Aug 28, 2011 11:02:40 PM org.apache.coyote.AbstractProtocol destroy INFO: Destroying ProtocolHandler [http-bio-8080] Aug 28, 2011 11:02:40 PM org.apache.coyote.AbstractProtocol destroy INFO: Destroying ProtocolHandler [ajp-bio-8009] ---
Re: Error starting Tomcat
Hi Konstantin Kolinko, I had copied servlet-api.jar into the tomcat/lib directory while adding external jars. Now I have removed that jar file and any other jar files I have added extra from the tomcat/lib folder. Now, the server is starting. Thank you for the help. Regards, Pratibha On Fri, Aug 26, 2011 at 7:06 AM, Konstantin Kolinko knst.koli...@gmail.comwrote: 2011/8/26 Pratibha S psund...@gmail.com: Hi Konstantin Kolinko, thank you for the reply. Did you mean tomcat/webapps/examples/WEB-INF/lib? No. Do not touch Tomcat installation and return it to its original state. There is no servlet-api.jar there. Please correct me if I got it wrong. You have to start from scratch and describe what exact error it was, before you broke your Tomcat installation, and how your project is configured. You should not have servlet-api.jar in your own project - it should be only a part of Apache Tomcat runtime. It should not be in WebContent/WEB-INF/lib. There is a FAQ on Eclipse + Tomcat somewhere. Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Error starting Tomcat
Hi, I'm a newbie. I'm unable to start Tomcat from Eclipse Indigo and getting the error below. I checked forums and found that I need to remove servlet.api from CLASSPATH. I removed the entry in the Libraries and also tried removing the file from tomcat/lib. Now, Eclipse is not recognizing javax.servlet.annotation and some other servlet classes. Please help. Aug 25, 2011 6:00:34 PM 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: /usr/lib/jvm/java-6-openjdk/jre/lib/i386/server:/usr/lib/jvm/java-6-openjdk/jre/lib/i386:/usr/lib/jvm/java-6-openjdk/jre/../lib/i386:/usr/lib/jvm/java-6-openjdk/jre/lib/i386/client:/usr/lib/jvm/java-6-openjdk/jre/lib/i386::/usr/java/packages/lib/i386:/usr/lib/i386-linux-gnu/jni:/lib/i386-linux-gnu:/usr/lib/i386-linux-gnu:/usr/lib/jni:/lib:/usr/lib Aug 25, 2011 6:00:34 PM org.apache.tomcat.util.digester.SetPropertiesRule begin WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:RecommendationApp' did not find a matching property. Aug 25, 2011 6:00:35 PM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler [http-bio-8080] Aug 25, 2011 6:00:35 PM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler [ajp-bio-8009] Aug 25, 2011 6:00:35 PM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 1634 ms Aug 25, 2011 6:00:35 PM org.apache.catalina.core.StandardService startInternal INFO: Starting service Catalina Aug 25, 2011 6:00:35 PM org.apache.catalina.core.StandardEngine startInternal INFO: Starting Servlet Engine: Apache Tomcat/7.0.20 Aug 25, 2011 6:00:35 PM org.apache.catalina.startup.Catalina start SEVERE: Catalina.start: org.apache.catalina.LifecycleException: Failed to start component [StandardServer[8005]] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:152) at org.apache.catalina.startup.Catalina.start(Catalina.java:621) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:322) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:450) Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardService[Catalina]] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:152) at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:727) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148) ... 7 more Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina]] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:152) at org.apache.catalina.core.StandardService.startInternal(StandardService.java:443) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148) ... 9 more Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost]] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:152) at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1033) at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:291) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148) ... 11 more Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[]] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:152) at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1033) at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:774) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148) ... 14 more Caused by: java.lang.NoSuchMethodError: javax.servlet.ServletContext.getSessionCookieConfig()Ljavax/servlet/SessionCookieConfig; at org.apache.catalina.deploy.WebXml.configureContext(WebXml.java:1308) at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1390) at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:896) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:322) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5103) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:148) ... 17 more Aug 25, 2011 6:00:35 PM org.apache.catalina.startup.Catalina start INFO:
Re: Error starting Tomcat
Hi Konstantin Kolinko, thank you for the reply. Did you mean tomcat/webapps/examples/WEB-INF/lib? There is no servlet-api.jar there. Please correct me if I got it wrong. Regards, Pratibha On Thu, Aug 25, 2011 at 6:38 PM, Konstantin Kolinko knst.koli...@gmail.comwrote: 2011/8/26 Pratibha S psund...@gmail.com: Hi, I'm a newbie. I'm unable to start Tomcat from Eclipse Indigo and getting the error below. I checked forums and found that I need to remove servlet.api from CLASSPATH. I removed the entry in the Libraries and also tried removing the file from tomcat/lib. Now, Eclipse is not recognizing javax.servlet.annotation and some other servlet classes. Please help. No. You have to remove it from WEB-INF/lib only. Put it back in all other places. Caused by: java.lang.NoSuchMethodError: javax.servlet.ServletContext.getSessionCookieConfig()Ljavax/servlet/SessionCookieConfig; at org.apache.catalina.deploy.WebXml.configureContext(WebXml.java:1308) Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org