Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Tomcat doesn't run correctly!
Tomcat doesn't run correctly! [message #191426] Fri, 13 April 2007 09:55 Go to next message
Eclipse User
Originally posted by: cestoTOGLIMI.email.it

Hi,

I'd just installed on my eclipse 3.2.2 (FC6) WTP 1.5 but I cannot run
tomcat correctly.

I'm using tomcat 5.5.23 and if I try to launch it outside Eclipse from a
shell it runs well.

When I try to run it from the server view in eclipse it starts, but the
page I see on localhost:8080 is:
^^^^^^^^^^^^^^^^
HTTP Status 404 - /

type Status report

message /

description The requested resource (/) is not available.
Apache Tomcat/5.5.23
^^^^^^^^^^^^^^^^
Here is the output in the console:
^^^^^^^^^^^^^^^^
Apr 13, 2007 3:34:34 PM org.apache.catalina.core.AprLifecycleListener
lifecycleEvent
INFO: The Apache Tomcat Native library which allows optimal performance
in production environments was not found on the java.library.path:
/opt/bin/sviluppo/jdk/jdk1.5.0_11/jre/lib/i386/client:/opt/b in/sviluppo/jdk/jdk1.5.0_11/jre/lib/i386:/opt/bin/sviluppo/j dk/jdk1.5.0_11/jre/../lib/i386:
Apr 13, 2007 3:34:34 PM org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Apr 13, 2007 3:34:34 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1033 ms
Apr 13, 2007 3:34:34 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Apr 13, 2007 3:34:34 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.23
Apr 13, 2007 3:34:34 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Apr 13, 2007 3:34:35 PM org.apache.myfaces.config.FacesConfigurator
feedStandardConfig
INFO: Reading standard config
org/apache/myfaces/resource/standard-faces-config.xml
Apr 13, 2007 3:34:35 PM org.apache.myfaces.config.FacesConfigurator
feedWebAppConfig
INFO: Reading config /WEB-INF/faces-config.xml
Apr 13, 2007 3:34:35 PM org.apache.myfaces.config.FacesConfigurator
logMetaInf
INFO: Starting up MyFaces-package : myfaces-api in version : 1.1.5 from
path :
file:/home/luke/workspace/.metadata/.plugins/org.eclipse.wst .server.core/tmp0/webapps/testUpload/WEB-INF/lib/myfaces-api -1.1.5.jar
Apr 13, 2007 3:34:35 PM org.apache.myfaces.config.FacesConfigurator
logMetaInf
INFO: Starting up MyFaces-package : myfaces-impl in version : 1.1.5 from
path :
file:/home/luke/workspace/.metadata/.plugins/org.eclipse.wst .server.core/tmp0/webapps/testUpload/WEB-INF/lib/myfaces-imp l-1.1.5.jar
Apr 13, 2007 3:34:35 PM org.apache.myfaces.config.FacesConfigurator
logMetaInf
INFO: MyFaces-package : tomahawk-sandbox not found.
Apr 13, 2007 3:34:35 PM org.apache.myfaces.config.FacesConfigurator
logMetaInf
INFO: MyFaces-package : tomahawk not found.
Apr 13, 2007 3:34:35 PM org.apache.myfaces.shared_impl.util.LocaleUtils
toLocale
WARNING: Locale name in faces-config.xml null or empty, setting locale
to default locale : en_US
Apr 13, 2007 3:34:35 PM org.apache.myfaces.config.FacesConfigurator
handleSerialFactory
INFO: Serialization provider : class
org.apache.myfaces.shared_impl.util.serial.DefaultSerialFact ory
Apr 13, 2007 3:34:35 PM
org.apache.myfaces.webapp.StartupServletContextListener initFaces
INFO: ServletContext
'/home/luke/workspace/.metadata/.plugins/org.eclipse.wst.ser ver.core/tmp0/webapps/testUpload/'
initialized.
Apr 13, 2007 3:34:35 PM org.apache.catalina.core.StandardContext filterStart
SEVERE: Exception starting filter ExtensionsFilter
java.lang.ClassNotFoundException:
org.apache.myfaces.component.html.util.ExtensionsFilter
at
org.apache.catalina.loader.WebappClassLoader.loadClass(Webap pClassLoader.java:1359)
at
org.apache.catalina.loader.WebappClassLoader.loadClass(Webap pClassLoader.java:1205)
at
org.apache.catalina.core.ApplicationFilterConfig.getFilter(A pplicationFilterConfig.java:207)
at
org.apache.catalina.core.ApplicationFilterConfig.setFilterDe f(ApplicationFilterConfig.java:302)
at
org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:78)
at
org.apache.catalina.core.StandardContext.filterStart(Standar dContext.java:3635)
at
org.apache.catalina.core.StandardContext.start(StandardConte xt.java:4222)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.j ava:1014)
at org.apache.catalina.core.StandardHost.start(StandardHost.jav a:736)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.j ava:1014)
at org.apache.catalina.core.StandardEngine.start(StandardEngine .java:443)
at org.apache.catalina.core.StandardService.start(StandardServi ce.java:448)
at org.apache.catalina.core.StandardServer.start(StandardServer .java:700)
at org.apache.catalina.startup.Catalina.start(Catalina.java:552 )
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:2 95)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:43 3)
Apr 13, 2007 3:34:35 PM org.apache.catalina.core.StandardContext start
SEVERE: Error filterStart
Apr 13, 2007 3:34:35 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [/testUpload] startup failed due to previous errors
Apr 13, 2007 3:34:36 PM org.apache.coyote.http11.Http11BaseProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Apr 13, 2007 3:34:36 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Apr 13, 2007 3:34:36 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/217 config=null
Apr 13, 2007 3:34:36 PM org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
Apr 13, 2007 3:34:36 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 2111 ms

^^^^^^^^^^
And here is the output when I stop it:

Apr 13, 2007 3:41:18 PM org.apache.coyote.http11.Http11BaseProtocol pause
INFO: Pausing Coyote HTTP/1.1 on http-8080
Apr 13, 2007 3:41:19 PM org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
Apr 13, 2007 3:41:19 PM org.apache.catalina.core.StandardContext stop
INFO: Container
org.apache.catalina.core.ContainerBase.[Catalina].[localhost ].[/testUpload]
has not been started
Apr 13, 2007 3:41:19 PM org.apache.coyote.http11.Http11BaseProtocol destroy
INFO: Stopping Coyote HTTP/1.1 on http-8080
Apr 13, 2007 3:41:19 PM org.apache.catalina.core.AprLifecycleListener
lifecycleEvent
INFO: Failed shutdown of Apache Portable Runtime

Any ideas?

Thanks

LuKe
Re: Tomcat doesn't run correctly! [message #191437 is a reply to message #191426] Fri, 13 April 2007 10:55 Go to previous message
Larry Isaacs is currently offline Larry Isaacs
Messages: 1297
Registered: July 2009
Senior Member
As you may have been able to tell from the log, your webapp is running
in a separate instance of Tomcat located at
"/home/luke/workspace/.metadata/.../tmp0". This separate instance only
serves the projects you have added to the server, plus an "empty"
default/ROOT webapp, if one of your projects isn't already the default
webapp. In this situation a URL like "http://localhost:8080/" will
display a 404 error because the "empty" default webapp has no welcome
file and directory listings are disabled by default in Tomcat 5.5.x.

The ClassNotFoundException is a separate issue. It suggests one or more
jars are missing from the WEB-INF/lib of the webapp published to
"/home/luke/workspace/.metadata/.../tmp0/webapps/testUpload/ ". Having a
jar just on the classpath of a Dynamic Web Project isn't enough to have
it included in the published WEB-INF/lib. The supported methods to have
jars included in the published WEB-INF/lib are to either physically copy
the jar to the WEB-INF/lib folder in the project, or add a reference to
the jar in the J2EE Module Dependencies page of the project's Properties
dialog.

Cheers,
Larry

lk wrote:
> Hi,
>
> I'd just installed on my eclipse 3.2.2 (FC6) WTP 1.5 but I cannot run
> tomcat correctly.
>
> I'm using tomcat 5.5.23 and if I try to launch it outside Eclipse from a
> shell it runs well.
>
> When I try to run it from the server view in eclipse it starts, but the
> page I see on localhost:8080 is:
> ^^^^^^^^^^^^^^^^
> HTTP Status 404 - /
>
> type Status report
>
> message /
>
> description The requested resource (/) is not available.
> Apache Tomcat/5.5.23
> ^^^^^^^^^^^^^^^^
> Here is the output in the console:
> ^^^^^^^^^^^^^^^^
> Apr 13, 2007 3:34:34 PM org.apache.catalina.core.AprLifecycleListener
> lifecycleEvent
> INFO: The Apache Tomcat Native library which allows optimal performance
> in production environments was not found on the java.library.path:
> /opt/bin/sviluppo/jdk/jdk1.5.0_11/jre/lib/i386/client:/opt/b in/sviluppo/jdk/jdk1.5.0_11/jre/lib/i386:/opt/bin/sviluppo/j dk/jdk1.5.0_11/jre/../lib/i386:
>
> Apr 13, 2007 3:34:34 PM org.apache.coyote.http11.Http11BaseProtocol init
> INFO: Initializing Coyote HTTP/1.1 on http-8080
> Apr 13, 2007 3:34:34 PM org.apache.catalina.startup.Catalina load
> INFO: Initialization processed in 1033 ms
> Apr 13, 2007 3:34:34 PM org.apache.catalina.core.StandardService start
> INFO: Starting service Catalina
> Apr 13, 2007 3:34:34 PM org.apache.catalina.core.StandardEngine start
> INFO: Starting Servlet Engine: Apache Tomcat/5.5.23
> Apr 13, 2007 3:34:34 PM org.apache.catalina.core.StandardHost start
> INFO: XML validation disabled
> Apr 13, 2007 3:34:35 PM org.apache.myfaces.config.FacesConfigurator
> feedStandardConfig
> INFO: Reading standard config
> org/apache/myfaces/resource/standard-faces-config.xml
> Apr 13, 2007 3:34:35 PM org.apache.myfaces.config.FacesConfigurator
> feedWebAppConfig
> INFO: Reading config /WEB-INF/faces-config.xml
> Apr 13, 2007 3:34:35 PM org.apache.myfaces.config.FacesConfigurator
> logMetaInf
> INFO: Starting up MyFaces-package : myfaces-api in version : 1.1.5 from
> path :
> file:/home/luke/workspace/.metadata/.plugins/org.eclipse.wst .server.core/tmp0/webapps/testUpload/WEB-INF/lib/myfaces-api -1.1.5.jar
>
> Apr 13, 2007 3:34:35 PM org.apache.myfaces.config.FacesConfigurator
> logMetaInf
> INFO: Starting up MyFaces-package : myfaces-impl in version : 1.1.5 from
> path :
> file:/home/luke/workspace/.metadata/.plugins/org.eclipse.wst .server.core/tmp0/webapps/testUpload/WEB-INF/lib/myfaces-imp l-1.1.5.jar
>
> Apr 13, 2007 3:34:35 PM org.apache.myfaces.config.FacesConfigurator
> logMetaInf
> INFO: MyFaces-package : tomahawk-sandbox not found.
> Apr 13, 2007 3:34:35 PM org.apache.myfaces.config.FacesConfigurator
> logMetaInf
> INFO: MyFaces-package : tomahawk not found.
> Apr 13, 2007 3:34:35 PM org.apache.myfaces.shared_impl.util.LocaleUtils
> toLocale
> WARNING: Locale name in faces-config.xml null or empty, setting locale
> to default locale : en_US
> Apr 13, 2007 3:34:35 PM org.apache.myfaces.config.FacesConfigurator
> handleSerialFactory
> INFO: Serialization provider : class
> org.apache.myfaces.shared_impl.util.serial.DefaultSerialFact ory
> Apr 13, 2007 3:34:35 PM
> org.apache.myfaces.webapp.StartupServletContextListener initFaces
> INFO: ServletContext
> '/home/luke/workspace/.metadata/.plugins/org.eclipse.wst.ser ver.core/tmp0/webapps/testUpload/'
> initialized.
> Apr 13, 2007 3:34:35 PM org.apache.catalina.core.StandardContext
> filterStart
> SEVERE: Exception starting filter ExtensionsFilter
> java.lang.ClassNotFoundException:
> org.apache.myfaces.component.html.util.ExtensionsFilter
> at
> org.apache.catalina.loader.WebappClassLoader.loadClass(Webap pClassLoader.java:1359)
>
> at
> org.apache.catalina.loader.WebappClassLoader.loadClass(Webap pClassLoader.java:1205)
>
> at
> org.apache.catalina.core.ApplicationFilterConfig.getFilter(A pplicationFilterConfig.java:207)
>
> at
> org.apache.catalina.core.ApplicationFilterConfig.setFilterDe f(ApplicationFilterConfig.java:302)
>
> at
> org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:78)
>
> at
> org.apache.catalina.core.StandardContext.filterStart(Standar dContext.java:3635)
>
> at
> org.apache.catalina.core.StandardContext.start(StandardConte xt.java:4222)
> at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.j ava:1014)
> at org.apache.catalina.core.StandardHost.start(StandardHost.jav a:736)
> at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.j ava:1014)
> at
> org.apache.catalina.core.StandardEngine.start(StandardEngine .java:443)
> at
> org.apache.catalina.core.StandardService.start(StandardServi ce.java:448)
> at
> org.apache.catalina.core.StandardServer.start(StandardServer .java:700)
> at org.apache.catalina.startup.Catalina.start(Catalina.java:552 )
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
>
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
>
> at java.lang.reflect.Method.invoke(Method.java:585)
> at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:2 95)
> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:43 3)
> Apr 13, 2007 3:34:35 PM org.apache.catalina.core.StandardContext start
> SEVERE: Error filterStart
> Apr 13, 2007 3:34:35 PM org.apache.catalina.core.StandardContext start
> SEVERE: Context [/testUpload] startup failed due to previous errors
> Apr 13, 2007 3:34:36 PM org.apache.coyote.http11.Http11BaseProtocol start
> INFO: Starting Coyote HTTP/1.1 on http-8080
> Apr 13, 2007 3:34:36 PM org.apache.jk.common.ChannelSocket init
> INFO: JK: ajp13 listening on /0.0.0.0:8009
> Apr 13, 2007 3:34:36 PM org.apache.jk.server.JkMain start
> INFO: Jk running ID=0 time=0/217 config=null
> Apr 13, 2007 3:34:36 PM org.apache.catalina.storeconfig.StoreLoader load
> INFO: Find registry server-registry.xml at classpath resource
> Apr 13, 2007 3:34:36 PM org.apache.catalina.startup.Catalina start
> INFO: Server startup in 2111 ms
>
> ^^^^^^^^^^
> And here is the output when I stop it:
>
> Apr 13, 2007 3:41:18 PM org.apache.coyote.http11.Http11BaseProtocol pause
> INFO: Pausing Coyote HTTP/1.1 on http-8080
> Apr 13, 2007 3:41:19 PM org.apache.catalina.core.StandardService stop
> INFO: Stopping service Catalina
> Apr 13, 2007 3:41:19 PM org.apache.catalina.core.StandardContext stop
> INFO: Container
> org.apache.catalina.core.ContainerBase.[Catalina].[localhost ].[/testUpload]
> has not been started
> Apr 13, 2007 3:41:19 PM org.apache.coyote.http11.Http11BaseProtocol destroy
> INFO: Stopping Coyote HTTP/1.1 on http-8080
> Apr 13, 2007 3:41:19 PM org.apache.catalina.core.AprLifecycleListener
> lifecycleEvent
> INFO: Failed shutdown of Apache Portable Runtime
>
> Any ideas?
>
> Thanks
>
> LuKe
Previous Topic:Deployment of Web Service Functionality
Next Topic:export war without .svn
Goto Forum:
  


Current Time: Thu Jul 24 23:50:29 EDT 2014

Powered by FUDForum. Page generated in 0.03248 seconds