users@glassfish.java.net

WEB9031: WebappClassLoader unable to load resource

From: <forums_at_java.net>
Date: Mon, 23 May 2011 11:05:41 -0500 (CDT)

Hi

My application was tested OK on Windows GlassFish 3.1. However, I encounter
the following error when deployed the same web application to Linux GlassFish
3.1:

[#|2011-05-23T23:23:26.077+0800|SEVERE|glassfish3.1|org.apache.catalina.core.ContainerBase|_ThreadID=17;_ThreadName=Thread-1;|ContainerBase.addChild:
start: org.apache.catalina.LifecycleException:
java.lang.IllegalStateException: WEB9031: WebappClassLoader unable to load
resource [org.apache.jasper.servlet.JspServlet], because it has not yet been
started, or was already stopped at
org.apache.catalina.core.StandardContext.start(StandardContext.java:5328) at
com.sun.enterprise.web.WebModule.start(WebModule.java:500) at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:917)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:901) at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:755) at
com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1980) at
com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1630) at
com.sun.enterprise.web.WebApplication.start(WebApplication.java:100) at
org.glassfish.internal.data.EngineRef.start(EngineRef.java:130) at
org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:269) at
org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:286)
at
com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:461)
at
com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:240)
at
org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:370)
at
com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:360)
at
com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:370)
at
com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1067)
at
com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1200(CommandRunnerImpl.java:96)
at
com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1247)
at
org.glassfish.deployment.autodeploy.AutoOperation.run(AutoOperation.java:145)
at
org.glassfish.deployment.autodeploy.AutoDeployer.deploy(AutoDeployer.java:577)
at
org.glassfish.deployment.autodeploy.AutoDeployer.deployAll(AutoDeployer.java:463)
at
org.glassfish.deployment.autodeploy.AutoDeployer.run(AutoDeployer.java:395)
at
org.glassfish.deployment.autodeploy.AutoDeployer.run(AutoDeployer.java:380)
at
org.glassfish.deployment.autodeploy.AutoDeployService$1.run(AutoDeployService.java:213)
at java.util.TimerThread.mainLoop(Timer.java:512) at
java.util.TimerThread.run(Timer.java:462) Caused by:
java.lang.IllegalStateException: WEB9031: WebappClassLoader unable to load
resource [org.apache.jasper.servlet.JspServlet], because it has not yet been
started, or was already stopped at
org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1410)
at
org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1368)
at
org.apache.catalina.core.StandardWrapper.loadServletClass(StandardWrapper.java:1394)
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1258)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1240)
at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5032)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:5319)
 

The things that I did differently to Linux was that the GlassFish is
installed using zip file, and then changing the following ports in
domain.xml:

<network-listeners> <network-listener port="8090" protocol="http-listener-1"
transport="tcp" name="http-listener-1"
thread-pool="http-thread-pool"></network-listener> <network-listener
port="8181" protocol="http-listener-2" transport="tcp" name="http-listener-2"
thread-pool="http-thread-pool"></network-listener> <network-listener
port="4949" protocol="admin-listener" transport="tcp" name="admin-listener"
thread-pool="admin-thread-pool"></network-listener> </network-listeners>
 

Appreciate your help, thank you!

 


--
[Message sent by forum member 'hezjing']
View Post: http://forums.java.net/node/805271