Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[wtp-dev] Serve modules without publishing not working in Helios?

Hi all,

I just downloaded Eclipse Helios and try the usual configuration I used
to use in 3.5

To speed things up, I use the 'Serve modules without publishing' [1],
and I have read that in the new version of webtools project has some
enhancements in this feature [2].

The problem is that the usual configuration used in 3.5 is not working
in 3.6. First I get a NPE when trying to launch the tomcat server, and
then the server tries to load the files from disk and this ones are not
available (because we are not publishing)

I'm pretty sure that is a configuration issue (or perhaps a bug) ?

I have tested the same configuration without the check 'Serve
modules..' feature and the server loads just fine.

Attached you'll find the error stack traces.


[1]http://i.imgur.com/1DZcl.png
[2]http://eclipse.org/webtools/releases/3.2.0/NewAndNoteworthy/server.php


Any suggestions or ideas I could test?


Best Regards,


-- 
Iván Perdomo
== Starting the tomcat the first fail is NPE  ==

java.lang.NullPointerException
at org.eclipse.wst.common.componentcore.internal.resources.VirtualContainer.createVirtualResource(VirtualContainer.java:355)
at org.eclipse.wst.common.componentcore.internal.resources.VirtualContainer.getResources(VirtualContainer.java:338)
at org.eclipse.jst.server.tomcat.core.internal.TomcatPublishModuleVisitor.endVisitWebComponent(TomcatPublishModuleVisitor.java:293)
at org.eclipse.jst.server.tomcat.core.internal.wst.ModuleTraverser.traverseWebComponent(ModuleTraverser.java:220)
at org.eclipse.jst.server.tomcat.core.internal.wst.ModuleTraverser.traverse(ModuleTraverser.java:117)
at org.eclipse.jst.server.tomcat.core.internal.TomcatVersionHelper.updateContextsToServeDirectly(TomcatVersionHelper.java:854)
at org.eclipse.jst.server.tomcat.core.internal.Tomcat60Configuration.updateContextsToServeDirectly(Tomcat60Configuration.java:686)
at org.eclipse.jst.server.tomcat.core.internal.TomcatServerBehaviour.publishFinish(TomcatServerBehaviour.java:454)
at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publish(ServerBehaviourDelegate.java:954)
at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publish(ServerBehaviourDelegate.java:775)
at org.eclipse.wst.server.core.internal.Server.publishImpl(Server.java:2888)
at org.eclipse.wst.server.core.internal.Server$PublishJob.run(Server.java:337)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

== The error log in the Console ==

Jun 24, 2010 12:12:20 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: /opt/sun-jdk-1.6.0.20/jre/lib/i386/server:/opt/sun-jdk-1.6.0.20/jre/lib/i386:/opt/sun-jdk-1.6.0.20/jre/../lib/i386:/usr/lib/xulrunner-devel-1.9.2:/usr/java/packages/lib/i386:/lib:/usr/lib
Jun 24, 2010 12:12:21 PM org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.j2ee.server:openbravo' did not find a matching property.
Jun 24, 2010 12:12:22 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Jun 24, 2010 12:12:22 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 2046 ms
Jun 24, 2010 12:12:22 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Jun 24, 2010 12:12:22 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.26
Jun 24, 2010 12:12:22 PM org.apache.catalina.core.StandardContext resourcesStart
SEVERE: Error starting static Resources
java.lang.IllegalArgumentException: Document base /home/iperdomo/workspace/tomcat/webapps/openbravo 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:4086)
	at org.apache.catalina.core.StandardContext.start(StandardContext.java:4255)
	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:443)
	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:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Jun 24, 2010 12:12:22 PM org.apache.catalina.core.StandardContext start
SEVERE: Error in resourceStart()
Jun 24, 2010 12:12:22 PM org.apache.catalina.core.StandardContext start
SEVERE: Error getConfigured
Jun 24, 2010 12:12:22 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [/openbravo] startup failed due to previous errors
Jun 24, 2010 12:12:22 PM org.apache.catalina.core.StandardContext stop
INFO: Container org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/openbravo] has not been started
Jun 24, 2010 12:12:22 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Jun 24, 2010 12:12:22 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Jun 24, 2010 12:12:22 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=1/70  config=null
Jun 24, 2010 12:12:22 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 829 ms
Jun 24, 2010 12:13:55 PM org.apache.coyote.http11.Http11Protocol pause
INFO: Pausing Coyote HTTP/1.1 on http-8080
Jun 24, 2010 12:13:56 PM org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
Jun 24, 2010 12:13:56 PM org.apache.catalina.core.StandardContext stop
INFO: Container org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/openbravo] has not been started


Back to the top