Problem with Dynamic Web Project [message #930787] |
Tue, 02 October 2012 16:41 |
Magnus Warker Messages: 16 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 #931773 is a reply to message #931303] |
Wed, 03 October 2012 14:05 |
|
On 10/2/2012 10:46 PM, Magnus Warker wrote:
> Hi,
>
> I have posted it in WTP, but there is no response yet.
>
> What other places would be ok? Are there other eclipse forums or
> newsgroups?
>
> I am looking for a solution for a long time now...
>
> Thanks
> Magnus
I'd like to help but I don't know what this "Bavaria 64" thing is. I'm
suspicious of ever putting spaces in pathnames even on platforms like
Windows and Macintosh when these are involved in any way whatsoever with
software development. (I don't mind using spaces in the name of a letter
to my aunt Martha I'm writing in OpenOffice Writer, for example.)
I would rid myself of this "Bavaria 64" thing and choose a different
name. I'm assuming you have control over that because of where it
appears in your paths. I'm guessing it's your name and not something
imposed on you by some framework. You may or may not have something to
change in WebContent/WEB-INF/web.xml afterward. If it's display-name,
you don't have to change it if you don't want to since that doesn't matter.
Next, I'd clear Eclipse's Tomcat stuff. Right-click in the Servers view
on your Tomcat, choose Add and Remove, double-click whatever became of
"Bavaria 64" (which will put it into the Available pane) and click
Finish. Then right-click Tomcat and do Clean. Then add your project back
using Add and Remove and Start/Debug it.
If you still get this error, I'd begin investigating the actual path
complained about. Go to that path and make certain it exists, that
permissions are good, etc. Normally, none of these things should be
problematic since Eclipse always does the right thing when it deploys
internally to the Tomcat you told it to use.
I've stopped monitoring webtools. If you have more questions and can't
get help there, ask me directly or in here and we can see from there.
Russ Bateman
P.S. The INFO complaint about "optimal performance" is mostly a red
herring. Don't sweat that.
|
|
|
|
Powered by
FUDForum. Page generated in 0.04065 seconds