dev@glassfish.java.net

Re: build broken: cannot deploy war file

From: Jerome Dochez <Jerome.Dochez_at_Sun.COM>
Date: Wed, 28 May 2008 20:53:01 -0700

I have partially fixed it, it seems to be working in hk2 mode, but
there are some missing resource bundles exception still being thrown
when running with Felix, I will look into that now.

The problem was due to a putback made to remove the Lifecycle
interfaces from the webappclass loader to fix a split package situation.

Jerome


On May 28, 2008, at 8:03 PM, Sahoo wrote:

> This must be causing QL to fail as well, right? Does hudson not send
> a mail to whoever introduced this failure?
>
> Thanks,
> Sahoo
>
> Shing-Wai.Chan_at_Sun.COM wrote:
>> Hi,
>> I checkout the latest build and find that it cannot deploy a war
>> file.
>> The following is our investigations:
>> The NullPointerException is due to
>> _rb = logger.getResourceBundle();
>> is null (see 1 below).
>> The real cause of the exception are (2) and (3)
>> where the org.apache.commons.logging.impl.LogFactoryImpl
>> try to load a class through
>> org.apache.catalina.loader.WebappClassLoader.loadClass
>> with a ThreadDeath Exception.
>> This is due to if (!started) {
>> logger.fine(sm.getString("webappClassLoader.stopped"));
>> throw new ThreadDeath();
>> }
>> The WebappClassLoader is asked to load classes before it is event
>> started.
>>
>> Regards,
>> Shing Wai Chan
>>
>>
>> (1) java.lang.NullPointerException
>> at
>> com
>> .sun
>> .enterprise
>> .web.WebModuleContextConfig.start(WebModuleContextConfig.java:244)
>> at
>> com
>> .sun
>> .enterprise
>> .web
>> .WebModuleContextConfig.lifecycleEvent(WebModuleContextConfig.java:
>> 154)
>> at
>> org
>> .apache
>> .catalina
>> .util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:159)
>> at
>> org.apache.catalina.core.StandardContext.start(StandardContext.java:
>> 5199)
>> at com.sun.enterprise.web.WebModule.start(WebModule.java:347)
>> at
>> org
>> .apache
>> .catalina.core.ContainerBase.startChildren(ContainerBase.java:1567)
>> at
>> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1247)
>> at
>> org.apache.catalina.core.StandardHost.start(StandardHost.java:971)
>> at
>> org
>> .apache
>> .catalina.core.ContainerBase.startChildren(ContainerBase.java:1567)
>> at
>> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1247)
>> at
>> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:
>> 549)
>> at org.apache.catalina.startup.Embedded.start(Embedded.java:
>> 952)
>> at
>> com.sun.enterprise.web.WebContainer.postConstruct(WebContainer.java:
>> 626)
>> at
>> com.sun.hk2.component.AbstractWombImpl.inject(AbstractWombImpl.java:
>> 150)
>> at
>> com
>> .sun.hk2.component.ConstructorWomb.initialize(ConstructorWomb.java:
>> 86)
>> at
>> com.sun.hk2.component.AbstractWombImpl.get(AbstractWombImpl.java:75)
>> at
>> com
>> .sun.hk2.component.SingletonInhabitant.get(SingletonInhabitant.java:
>> 58)
>> at
>> com.sun.hk2.component.LazyInhabitant.get(LazyInhabitant.java:107)
>> at
>> com
>> .sun
>> .hk2
>> .component.AbstractInhabitantImpl.get(AbstractInhabitantImpl.java:60)
>> at
>> org
>> .glassfish
>> .internal.data.ContainerInfo.getContainer(ContainerInfo.java:75)
>> at
>> com
>> .sun
>> .enterprise
>> .v3
>> .server
>> .ApplicationLifecycle.startContainers(ApplicationLifecycle.java:752)
>> at
>> com
>> .sun
>> .enterprise
>> .v3
>> .server
>> .ApplicationLifecycle.setupContainerInfos(ApplicationLifecycle.java:
>> 385)
>> at
>> com
>> .sun
>> .enterprise
>> .v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:236)
>> at
>> com
>> .sun
>> .enterprise.v3.deployment.DeployCommand.execute(DeployCommand.java:
>> 262)
>> at
>> com
>> .sun.enterprise.v3.admin.CommandRunner.doCommand(CommandRunner.java:
>> 253)
>> at
>> com
>> .sun.enterprise.v3.admin.CommandRunner.doCommand(CommandRunner.java:
>> 98)
>> at
>> com
>> .sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:
>> 234)
>> at
>> com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:
>> 155)
>> at
>> com
>> .sun
>> .grizzly
>> .http.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:
>> 620)
>> at
>> com.sun.grizzly.comet.CometEngine.executeServlet(CometEngine.java:
>> 559)
>> at com.sun.grizzly.comet.CometEngine.handle(CometEngine.java:
>> 310)
>> at
>> com
>> .sun.grizzly.comet.CometAsyncFilter.doFilter(CometAsyncFilter.java:
>> 89)
>> at
>> com
>> .sun
>> .grizzly
>> .arp.DefaultAsyncExecutor.invokeFilters(DefaultAsyncExecutor.java:
>> 177)
>> at
>> com
>> .sun
>> .grizzly
>> .arp.DefaultAsyncExecutor.interrupt(DefaultAsyncExecutor.java:155)
>> at
>> com
>> .sun.grizzly.arp.AsyncProcessorTask.doTask(AsyncProcessorTask.java:
>> 94)
>> at com.sun.grizzly.http.TaskBase.call(TaskBase.java:359)
>> at
>> com.sun.grizzly.util.WorkerThreadImpl.run(WorkerThreadImpl.java:169)
>>
>>
>> (2) SEVERE: java.lang.NoClassDefFoundError
>> May 28, 2008 6:56:03 PM SEVERE: at
>> org
>> .apache
>> .catalina.core.StandardContext.createWrapper(StandardContext.java:
>> 3041)
>> May 28, 2008 6:56:03 PM SEVERE: at com.sun.enterprise.web.pwc.PwcWebModule.createWrapper
>> (PwcWebModule.java:240)
>> May 28, 2008 6:56:03 PM SEVERE: at com.sun.enterprise.web.TomcatDeploymentConfig.configureStandardContext
>> (TomcatDeploymentConfig.java:863)
>> May 28, 2008 6:56:03 PM SEVERE: at com.sun.enterprise.web.TomcatDeploymentConfig.configureWebModule
>> (TomcatDeploymentConfig.java:171)
>> May 28, 2008 6:56:03 PM SEVERE: at com.sun.enterprise.web.WebModuleContextConfig.start
>> (WebModuleContextConfig.java:240)
>> May 28, 2008 6:56:03 PM SEVERE: at com.sun.enterprise.web.WebModuleContextConfig.lifecycleEvent
>> (WebModuleContextConfig.java:154)
>> May 28, 2008 6:56:03 PM SEVERE: at
>> org
>> .apache
>> .catalina
>> .util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:159)
>> May 28, 2008 6:56:03 PM SEVERE: at
>> org.apache.catalina.core.StandardContext.start(StandardContext.java:
>> 5199)
>> May 28, 2008 6:56:03 PM SEVERE: at com.sun.enterprise.web.WebModule.start
>> (WebModule.java:347)
>> May 28, 2008 6:56:03 PM SEVERE: at
>> org
>> .apache
>> .catalina.core.ContainerBase.startChildren(ContainerBase.java:1567)
>> May 28, 2008 6:56:03 PM SEVERE: at
>> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1247)
>> May 28, 2008 6:56:03 PM SEVERE: at
>> org.apache.catalina.core.StandardHost.start(StandardHost.java:971)
>> May 28, 2008 6:56:03 PM SEVERE: at
>> org
>> .apache
>> .catalina.core.ContainerBase.startChildren(ContainerBase.java:1567)
>> May 28, 2008 6:56:03 PM SEVERE: at
>> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1247)
>> May 28, 2008 6:56:03 PM SEVERE: at
>> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:
>> 549)
>> May 28, 2008 6:56:03 PM SEVERE: at
>> org.apache.catalina.startup.Embedded.start(Embedded.java:952)
>> May 28, 2008 6:56:03 PM SEVERE: at com.sun.enterprise.web.WebContainer.postConstruct
>> (WebContainer.java:626)
>> May 28, 2008 6:56:03 PM SEVERE: at
>> com.sun.hk2.component.AbstractWombImpl.inject(AbstractWombImpl.java:
>> 150)
>> May 28, 2008 6:56:03 PM SEVERE: at
>> com
>> .sun.hk2.component.ConstructorWomb.initialize(ConstructorWomb.java:
>> 86)
>> May 28, 2008 6:56:03 PM SEVERE: at
>> com.sun.hk2.component.AbstractWombImpl.get(AbstractWombImpl.java:75)
>> May 28, 2008 6:56:03 PM SEVERE: at
>> com
>> .sun.hk2.component.SingletonInhabitant.get(SingletonInhabitant.java:
>> 58)
>> May 28, 2008 6:56:03 PM SEVERE: at
>> com.sun.hk2.component.LazyInhabitant.get(LazyInhabitant.java:107)
>> May 28, 2008 6:56:03 PM SEVERE: at
>> com
>> .sun
>> .hk2
>> .component.AbstractInhabitantImpl.get(AbstractInhabitantImpl.java:60)
>> May 28, 2008 6:56:03 PM SEVERE: at
>> org
>> .glassfish
>> .internal.data.ContainerInfo.getContainer(ContainerInfo.java:75)
>> May 28, 2008 6:56:03 PM SEVERE: at
>> com
>> .sun
>> .enterprise
>> .v3
>> .server
>> .ApplicationLifecycle.startContainers(ApplicationLifecycle.java:752)
>> May 28, 2008 6:56:03 PM SEVERE: at
>> com
>> .sun
>> .enterprise
>> .v3
>> .server
>> .ApplicationLifecycle.setupContainerInfos(ApplicationLifecycle.java:
>> 385)
>> May 28, 2008 6:56:03 PM SEVERE: at
>> com
>> .sun
>> .enterprise
>> .v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:236)
>> May 28, 2008 6:56:03 PM SEVERE: at
>> com
>> .sun
>> .enterprise.v3.deployment.DeployCommand.execute(DeployCommand.java:
>> 262)
>> May 28, 2008 6:56:03 PM SEVERE: at
>> com
>> .sun.enterprise.v3.admin.CommandRunner.doCommand(CommandRunner.java:
>> 253)
>> May 28, 2008 6:56:03 PM SEVERE: at
>> com
>> .sun.enterprise.v3.admin.CommandRunner.doCommand(CommandRunner.java:
>> 98)
>> May 28, 2008 6:56:03 PM SEVERE: at
>> com
>> .sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:
>> 234)
>> May 28, 2008 6:56:03 PM SEVERE: at
>> com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:
>> 155)
>> May 28, 2008 6:56:03 PM SEVERE: at
>> com
>> .sun
>> .grizzly
>> .http.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:
>> 620)
>> May 28, 2008 6:56:03 PM SEVERE: at
>> com.sun.grizzly.comet.CometEngine.executeServlet(CometEngine.java:
>> 559)
>> May 28, 2008 6:56:03 PM SEVERE: at
>> com.sun.grizzly.comet.CometEngine.handle(CometEngine.java:310)
>> May 28, 2008 6:56:03 PM SEVERE: at
>> com
>> .sun.grizzly.comet.CometAsyncFilter.doFilter(CometAsyncFilter.java:
>> 89)
>> May 28, 2008 6:56:03 PM SEVERE: at
>> com
>> .sun
>> .grizzly
>> .arp.DefaultAsyncExecutor.invokeFilters(DefaultAsyncExecutor.java:
>> 177)
>> May 28, 2008 6:56:03 PM SEVERE: at
>> com
>> .sun
>> .grizzly
>> .arp.DefaultAsyncExecutor.interrupt(DefaultAsyncExecutor.java:155)
>> May 28, 2008 6:56:03 PM SEVERE: at
>> com
>> .sun.grizzly.arp.AsyncProcessorTask.doTask(AsyncProcessorTask.java:
>> 94)
>> May 28, 2008 6:56:03 PM SEVERE: at
>> com.sun.grizzly.http.TaskBase.call(TaskBase.java:359)
>> May 28, 2008 6:56:03 PM SEVERE: at
>> com.sun.grizzly.util.WorkerThreadImpl.run(WorkerThreadImpl.java:169)
>>
>>
>> (3) SEVERE: Caused by:
>> com.sun.org.apache.commons.logging.LogConfigurationException:
>> java.lang.ThreadDeath (Caused by java.lang.ThreadDeath)
>> May 28, 2008 7:22:35 PM SEVERE: at
>> com
>> .sun
>> .org
>> .apache
>> .commons
>> .logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:
>> 397)
>> May 28, 2008 7:22:35 PM SEVERE: at
>> com
>> .sun
>> .org
>> .apache
>> .commons
>> .logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:529)
>> May 28, 2008 7:22:35 PM SEVERE: ... 45 more
>> May 28, 2008 7:22:35 PM SEVERE: Caused by: java.lang.ThreadDeath
>> May 28, 2008 7:22:35 PM SEVERE: at
>> org
>> .apache
>> .catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:
>> 1336)
>> May 28, 2008 7:22:35 PM SEVERE: at
>> com.sun.org.apache.commons.logging.impl.LogFactoryImpl
>> $1.run(LogFactoryImpl.java:441)
>> May 28, 2008 7:22:35 PM SEVERE: at
>> java.security.AccessController.doPrivileged(Native Method)
>> May 28, 2008 7:22:35 PM SEVERE: at
>> com
>> .sun
>> .org
>> .apache
>> .commons.logging.impl.LogFactoryImpl.loadClass(LogFactoryImpl.java:
>> 435)
>> May 28, 2008 7:22:35 PM SEVERE: at
>> com
>> .sun
>> .org
>> .apache
>> .commons
>> .logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:
>> 376)
>> May 28, 2008 7:22:35 PM SEVERE: ... 46 more
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>