dev@glassfish.java.net

deploy/running web apps broken in latest builds?

From: Peter Williams <Pete.Williams_at_Sun.COM>
Date: Sat, 23 Feb 2008 16:13:11 -0800

I just grabbed a snapshot off of Hudson a few minutes ago.

Deploying a web app produces this output (which seems a little odd since
the deploy command was invoked only once by me). I also noted that
domain.xml was NOT updated to include a reference to the application,
though a folder in generated named WebApplication1 containg the
requisite glassfish.props was created.

Feb 23, 2008 4:10:31 PM com.sun.enterprise.web.WebContainer postConstruct
INFO: Using default-web.xml
/space/tools/v3Feb23/config/../domains/domain1/config/default-web.xml
Feb 23, 2008 4:10:31 PM com.sun.enterprise.web.WebContainer postConstruct
INFO: Created HTTP listener http-listener-1
Feb 23, 2008 4:10:31 PM com.sun.enterprise.web.WebContainer postConstruct
INFO: Created HTTP listener http-listener-2
Feb 23, 2008 4:10:31 PM com.sun.enterprise.web.WebContainer postConstruct
INFO: Created virtual server server
Feb 23, 2008 4:10:31 PM com.sun.enterprise.web.WebContainer postConstruct
INFO: Created virtual server __asadmin
Feb 23, 2008 4:10:33 PM com.sun.enterprise.web.WebDeployer registerEndpoint
INFO: Registered adapter org.apache.coyote.tomcat5.CoyoteAdapter_at_6d1750
for web endpoint /WebApplication1 at port 8080
Feb 23, 2008 4:10:33 PM com.sun.enterprise.web.WebDeployer registerEndpoint
INFO: Registered adapter org.apache.coyote.tomcat5.CoyoteAdapter_at_15a94f
for web endpoint /WebApplication1 at port 8181
Feb 23, 2008 4:10:33 PM com.sun.enterprise.web.WebDeployer registerEndpoint
INFO: Registered adapter org.apache.coyote.tomcat5.CoyoteAdapter_at_6d1750
for web endpoint /WebApplication1 at port 8080
Feb 23, 2008 4:10:33 PM com.sun.enterprise.web.WebDeployer registerEndpoint
INFO: Registered adapter org.apache.coyote.tomcat5.CoyoteAdapter_at_15a94f
for web endpoint /WebApplication1 at port 8181
Feb 23, 2008 4:10:33 PM com.sun.enterprise.web.WebContainer loadWebModule
WARNING: WEB0113: Virtual server [server] already has a web module
loaded at [/WebApplication1]; therefore web module [WebApplication1]
cannot be loaded at this context path on this virtual server.
Feb 23, 2008 4:10:33 PM com.sun.enterprise.web.WebDeployer registerEndpoint
INFO: Registered adapter org.apache.coyote.tomcat5.CoyoteAdapter_at_6d1750
for web endpoint /WebApplication1 at port 8080
Feb 23, 2008 4:10:33 PM com.sun.enterprise.web.WebDeployer registerEndpoint
INFO: Registered adapter org.apache.coyote.tomcat5.CoyoteAdapter_at_15a94f
for web endpoint /WebApplication1 at port 8181


Running it anyway produces this:

java.lang.NullPointerException
        at
com.sun.enterprise.web.WebApplication.getClassLoader(WebApplication.java:53)
        at
com.sun.enterprise.v3.services.impl.GrizzlyAdapter.service(GrizzlyAdapter.java:250)
        at
com.sun.grizzly.http.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:599)
        at
com.sun.grizzly.http.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:530)
        at
com.sun.grizzly.http.DefaultProcessorTask.process(DefaultProcessorTask.java:774)
        at
com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:130)
        at
com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:90)
        at
com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:68)
        at
com.sun.grizzly.http.SelectorThread$1.execute(SelectorThread.java:637)
        at
com.sun.grizzly.ProtocolChainContextTask.call(ProtocolChainContextTask.java:61)
    at com.sun.grizzly.util.WorkerThreadImpl.run(WorkerThreadImpl.java:179)