Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Problem with Dynamic Web Project
Problem with Dynamic Web Project [message #930818] Tue, 02 October 2012 17:12 Go to next message
Magnus Warker is currently offline Magnus WarkerFriend
Messages: 8
Registered: October 2012
Junior Member
Hello,

I have a Dynamic Web Project, which uses JSP and static HTML. I did not touch this project for a longer time. Maybe I updated eclipse/java/tomcat components in the meantime.

When I now call "Run on Server", the following exception is printed in the console:

Oct 2, 2012 6:33:15 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/amd64/server:/usr/lib/jvm/java-6-openjdk/jre/lib/amd64:/usr/lib/jvm/java-6-openjdk/jre/../lib/amd64:/usr/java/packages/lib/amd64:/usr/lib/jni:/lib:/usr/lib
Oct 2, 2012 6:33:16 PM org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:Bavaria 64' did not find a matching property.
Oct 2, 2012 6:33:16 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Oct 2, 2012 6:33:16 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 711 ms
Oct 2, 2012 6:33:16 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Oct 2, 2012 6:33:16 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.29
Oct 2, 2012 6:33:16 PM org.apache.catalina.core.StandardContext resourcesStart
SEVERE: Error starting static Resources
java.lang.IllegalArgumentException: Document base /home/wagner/dvl/prj/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/Bavaria 64 does not exist or is not a readable directory
	at org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:142)
	at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:4249)
	at org.apache.catalina.core.StandardContext.start(StandardContext.java:4418)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
	at org.apache.catalina.core.StandardHost.start(StandardHost.java:785)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
	at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:445)
	at org.apache.catalina.core.StandardService.start(StandardService.java:519)
	at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
	at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
	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:289)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Oct 2, 2012 6:33:16 PM org.apache.catalina.core.StandardContext start
SEVERE: Error in resourceStart()
Oct 2, 2012 6:33:16 PM org.apache.catalina.core.StandardContext start
SEVERE: Error getConfigured
Oct 2, 2012 6:33:16 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [/b64] startup failed due to previous errors
Oct 2, 2012 6:33:16 PM org.apache.catalina.core.StandardContext stop
INFO: Container org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/b64] has not been started
Oct 2, 2012 6:33:16 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Oct 2, 2012 6:33:16 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Oct 2, 2012 6:33:16 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/24  config=null
Oct 2, 2012 6:33:16 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 290 ms


However, when I create a new Dynamic Web Project, I do not get this error. But I would like to avoid to "solve" this problem by moving to a new project.

What can I do?

Thank you!

Magnus
Re: Problem with Dynamic Web Project [message #931759 is a reply to message #930818] Wed, 03 October 2012 13:43 Go to previous message
Larry Isaacs is currently offline Larry IsaacsFriend
Messages: 1310
Registered: July 2009
Senior Member
Bug 365748[1] could cause the symptom you are seeing. The solution is to
right-click on the server and select "Clean..." to force a full publish
of all projects added to the server.

Cheers,
Larry

[1] https://bugs.eclipse.org/bugs/show_bug.cgi?id=365748

On 10/2/2012 1:12 PM, Magnus Warker wrote:
> Hello,
>
> I have a Dynamic Web Project, which uses JSP and static HTML. I did not
> touch this project for a longer time. Maybe I updated
> eclipse/java/tomcat components in the meantime.
>
> When I now call "Run on Server", the following exception is printed in
> the console:
>
> Oct 2, 2012 6:33:15 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/amd64/server:/usr/lib/jvm/java-6-openjdk/jre/lib/amd64:/usr/lib/jvm/java-6-openjdk/jre/../lib/amd64:/usr/java/packages/lib/amd64:/usr/lib/jni:/lib:/usr/lib
>
> Oct 2, 2012 6:33:16 PM org.apache.tomcat.util.digester.SetPropertiesRule
> begin
> WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting
> property 'source' to 'org.eclipse.jst.jee.server:Bavaria 64' did not
> find a matching property.
> Oct 2, 2012 6:33:16 PM org.apache.coyote.http11.Http11Protocol init
> INFO: Initializing Coyote HTTP/1.1 on http-8080
> Oct 2, 2012 6:33:16 PM org.apache.catalina.startup.Catalina load
> INFO: Initialization processed in 711 ms
> Oct 2, 2012 6:33:16 PM org.apache.catalina.core.StandardService start
> INFO: Starting service Catalina
> Oct 2, 2012 6:33:16 PM org.apache.catalina.core.StandardEngine start
> INFO: Starting Servlet Engine: Apache Tomcat/6.0.29
> Oct 2, 2012 6:33:16 PM org.apache.catalina.core.StandardContext
> resourcesStart
> SEVERE: Error starting static Resources
> java.lang.IllegalArgumentException: Document base
> /home/wagner/dvl/prj/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/Bavaria
> 64 does not exist or is not a readable directory
> at
> org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:142)
>
> at
> org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:4249)
>
> at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:4418)
> at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
> at org.apache.catalina.core.StandardHost.start(StandardHost.java:785)
> at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
> at
> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:445)
> at
> org.apache.catalina.core.StandardService.start(StandardService.java:519)
> at
> org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
> at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
> 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:289)
> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
> Oct 2, 2012 6:33:16 PM org.apache.catalina.core.StandardContext start
> SEVERE: Error in resourceStart()
> Oct 2, 2012 6:33:16 PM org.apache.catalina.core.StandardContext start
> SEVERE: Error getConfigured
> Oct 2, 2012 6:33:16 PM org.apache.catalina.core.StandardContext start
> SEVERE: Context [/b64] startup failed due to previous errors
> Oct 2, 2012 6:33:16 PM org.apache.catalina.core.StandardContext stop
> INFO: Container
> org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/b64] has
> not been started
> Oct 2, 2012 6:33:16 PM org.apache.coyote.http11.Http11Protocol start
> INFO: Starting Coyote HTTP/1.1 on http-8080
> Oct 2, 2012 6:33:16 PM org.apache.jk.common.ChannelSocket init
> INFO: JK: ajp13 listening on /0.0.0.0:8009
> Oct 2, 2012 6:33:16 PM org.apache.jk.server.JkMain start
> INFO: Jk running ID=0 time=0/24 config=null
> Oct 2, 2012 6:33:16 PM org.apache.catalina.startup.Catalina start
> INFO: Server startup in 290 ms
>
>
> However, when I create a new Dynamic Web Project, I do not get this
> error. But I would like to avoid to "solve" this problem by moving to a
> new project.
>
> What can I do?
>
> Thank you!
>
> Magnus
Previous Topic:Migrating WTP related packages from Eclipse 3.3 to 3.8
Next Topic:Trinidad components do not render in Visual Editor
Goto Forum:
  


Current Time: Sat Nov 29 05:37:30 GMT 2014

Powered by FUDForum. Page generated in 0.01571 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software