Skip to main content

.reload or redeployment limitations - 3.1.1

No replies
boshyd
Offline
Joined: 2012-06-08
Points: 0

I am a web administrator at my company and do not have much development knowledge. We are using 3.1.1. Our existing method to deploy new code is to restart the server to pick up changes.

One requirement I got was to explore options to hot deploy the code as and when changes are made. I researched and saw that .reload is an option. So basically we copy over the directory (we use exploded directory not .war files) and touch the .reload file within it. What we are noticing is the redeployment works for some applications and not for others. When it doesn't work, the application just hangs and we are having to restart the server to fix which defeats the purpose of having the .reload file. We seem to get below error when it is not working.

My question is are there any limitations to .reload or reload (on console) that prevent some applications from redeploying correctly without restart? Does it work for some changes to code and not for others? Any help will be much appreciated.

[#|2012-05-29T12:49:04.779-0400|SEVERE|glassfish3.1|org.apache.catalina.core.ContainerBase|_ThreadID=23;_ThreadName=Thread-1;|ContainerBase.addChild: start:
org.apache.catalina.LifecycleException: org.apache.catalina.LifecycleException: java.lang.IllegalStateException: WEB9031: WebappClassLoader unable to load resource [META-INF/se
rvices/org.apache.axis.EngineConfigurationFactory], 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 com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1235)
at com.sun.enterprise.v3.server.DynamicReloader.reloadApp(DynamicReloader.java:220)
at com.sun.enterprise.v3.server.DynamicReloader.reloadApps(DynamicReloader.java:144)
at com.sun.enterprise.v3.server.DynamicReloader.run(DynamicReloader.java:126)
at com.sun.enterprise.v3.server.DynamicReloadService$1.run(DynamicReloadService.java:168)
at java.util.TimerThread.mainLoop(Timer.java:512)
at java.util.TimerThread.run(Timer.java:462)
Caused by: org.apache.catalina.LifecycleException: java.lang.IllegalStateException: WEB9031: WebappClassLoader unable to load resource [META-INF/services/org.apache.axis.Engine
ConfigurationFactory], because it has not yet been started, or was already stopped
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5042)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:5319)
... 25 more
Caused by: java.lang.IllegalStateException: WEB9031: WebappClassLoader unable to load resource [META-INF/services/org.apache.axis.EngineConfigurationFactory], because it has no
t yet been started, or was already stopped
at org.glassfish.web.loader.WebappClassLoader.findResourceInternal(WebappClassLoader.java:2074)