archiva-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Olivier Lamy <ol...@apache.org>
Subject Re: Can't get 1.4 war to deploy
Date Mon, 20 Jan 2014 22:14:55 GMT
This log is really weird "SEVERE: Exception sending context destroyed
event to listener instance of class
org.apache.archiva.web.startup.ArchivaStartup
java.lang.IllegalStateException: No WebApplicationContext found: no
ContextLoaderListener registered?"

Which tomcat version are you using?

Did you follow the guide here:
http://archiva.apache.org/docs/1.4-M4/adminguide/webapp.html ?

On 21 January 2014 04:53, Watrous, Daniel <daniel.t.watrous@hp.com> wrote:
> I tried it, but it didn't work. I'll just stick with the stable release. I was hoping
to use the updated LDAP tooling, but I'll have to try it some other time.
>
> Thanks for getting back to me.
>
> -----Original Message-----
> From: Olivier Lamy [mailto:olamy@apache.org]
> Sent: Sunday, January 19, 2014 3:17 PM
> To: users@archiva.apache.org
> Subject: Re: Can't get 1.4 war to deploy
>
> sounds related to https://issues.apache.org/jira/browse/LOG4J2-245
>
> The log4j2 version has been upgraded for 2.0.0
>
> You can try the RC1 from here:
> https://dist.apache.org/repos/dist/dev/archiva/2.0.0-RC1/
>
> On 18 January 2014 03:07, Watrous, Daniel <daniel.t.watrous@hp.com> wrote:
>> I'm attempting to deploy 1.4, but I'm getting some errors that I can't push past.
Hopefully you can help.
>>
>> From localhost log
>>
>> Jan 17, 2014 3:44:57 PM org.apache.catalina.core.ApplicationContext
>> log
>> INFO: Initializing Spring root WebApplicationContext Jan 17, 2014
>> 3:45:15 PM org.apache.catalina.core.StandardContext listenerStart
>> SEVERE: Exception sending context initialized event to listener
>> instance of class
>> org.springframework.web.context.ContextLoaderListener
>> java.util.EmptyStackException
>>         at java.util.Stack.peek(Stack.java:102)
>>         at org.apache.logging.log4j.core.impl.ThrowableProxy.resolvePackageData(ThrowableProxy.java:339)
>>         at org.apache.logging.log4j.core.impl.ThrowableProxy.<init>(ThrowableProxy.java:71)
>>         at org.apache.logging.log4j.core.impl.Log4jLogEvent.<init>(Log4jLogEvent.java:110)
>>         at org.apache.logging.log4j.core.impl.Log4jLogEvent.<init>(Log4jLogEvent.java:81)
>>         at org.apache.logging.log4j.core.config.LoggerConfig.createEvent(LoggerConfig.java:423)
>>         at org.apache.logging.log4j.core.config.LoggerConfig.log(LoggerConfig.java:344)
>>         at org.apache.logging.log4j.core.Logger.log(Logger.java:110)
>>         at org.apache.logging.log4j.spi.AbstractLoggerWrapper.log(AbstractLoggerWrapper.java:55)
>>         at org.apache.logging.log4j.spi.AbstractLogger.error(AbstractLogger.java:539)
>>         at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:319)
>>         at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112)
>>         at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3972)
>>         at org.apache.catalina.core.StandardContext.start(StandardContext.java:4467)
>>         at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
>>         at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
>>         at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526)
>>         at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:637)
>>         at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:563)
>>         at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:498)
>>         at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
>>         at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)
>>         at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
>>         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
>>         at org.apache.catalina.core.StandardHost.start(StandardHost.java:722)
>>         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:516)
>>         at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
>>         at org.apache.catalina.startup.Catalina.start(Catalina.java:593)
>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>         at java.lang.reflect.Method.invoke(Method.java:606)
>>         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
>>         at
>> org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
>>
>> Jan 17, 2014 3:45:15 PM org.apache.catalina.core.StandardContext
>> listenerStart
>> SEVERE: Exception sending context initialized event to listener
>> instance of class org.apache.archiva.web.startup.ArchivaStartup
>> java.lang.IllegalStateException: No WebApplicationContext found: no ContextLoaderListener
registered?
>>         at org.springframework.web.context.support.WebApplicationContextUtils.getRequiredWebApplicationContext(WebApplicationContextUtils.java:90)
>>         at org.apache.archiva.web.startup.ArchivaStartup.contextInitialized(ArchivaStartup.java:63)
>>         at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3972)
>>         at org.apache.catalina.core.StandardContext.start(StandardContext.java:4467)
>>         at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
>>         at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
>>         at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526)
>>         at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:637)
>>         at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:563)
>>         at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:498)
>>         at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
>>         at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)
>>         at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
>>         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
>>         at org.apache.catalina.core.StandardHost.start(StandardHost.java:722)
>>         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:516)
>>         at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
>>         at org.apache.catalina.startup.Catalina.start(Catalina.java:593)
>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>         at java.lang.reflect.Method.invoke(Method.java:606)
>>         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
>>         at
>> org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
>>
>> Jan 17, 2014 3:45:15 PM org.apache.catalina.core.StandardContext
>> listenerStop
>> SEVERE: Exception sending context destroyed event to listener instance
>> of class org.apache.archiva.web.startup.ArchivaStartup
>> java.lang.IllegalStateException: No WebApplicationContext found: no ContextLoaderListener
registered?
>>         at org.springframework.web.context.support.WebApplicationContextUtils.getRequiredWebApplicationContext(WebApplicationContextUtils.java:90)
>>         at org.apache.archiva.web.startup.ArchivaStartup.contextDestroyed(ArchivaStartup.java:101)
>>         at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:4011)
>>         at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4615)
>>         at org.apache.catalina.core.StandardContext.start(StandardContext.java:4512)
>>         at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
>>         at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
>>         at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526)
>>         at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:637)
>>         at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:563)
>>         at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:498)
>>         at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
>>         at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)
>>         at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
>>         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
>>         at org.apache.catalina.core.StandardHost.start(StandardHost.java:722)
>>         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:516)
>>         at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
>>         at org.apache.catalina.startup.Catalina.start(Catalina.java:593)
>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>         at java.lang.reflect.Method.invoke(Method.java:606)
>>         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
>>         at
>> org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
>>
>> And from catalina.out
>>
>> INFO: Deploying configuration descriptor archiva.xml Jan 17, 2014
>> 3:45:15 PM org.apache.catalina.core.StandardContext start
>> SEVERE: Error listenerStart
>> Jan 17, 2014 3:45:15 PM org.apache.catalina.core.StandardContext start
>> SEVERE: Context [/archiva] startup failed due to previous errors Jan
>> 17, 2014 3:45:15 PM org.apache.catalina.loader.WebappClassLoader
>> clearReferencesJdbc
>> SEVERE: A web application registered the JBDC driver [org.apache.derby.jdbc.AutoloadedDriver40]
but failed to unregister it when the web application was stopped. To prevent a memory leak,
the JDBC Driver has been forcibly unregistered.
>> Jan 17, 2014 3:45:15 PM org.apache.catalina.loader.WebappClassLoader
>> clearReferencesThreads
>> SEVERE: A web application appears to have started a thread named [pool-2-thread-1]
but has failed to stop it. This is very likely to create a memory leak.
>> Jan 17, 2014 3:45:15 PM org.apache.catalina.loader.WebappClassLoader
>> clearThreadLocalMap
>> SEVERE: A web application created a ThreadLocal with key of type [java.lang.ThreadLocal]
(value [java.lang.ThreadLocal@4122db74]) and a value of type [org.apache.logging.log4j.core.impl.Log4jLogEvent]
(value [Logger=org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor Level=INFO
Message=Shutting down ExecutorService]) but failed to remove it when the web application was
stopped. To prevent a memory leak, the ThreadLocal has been forcibly removed.
>> Jan 17, 2014 3:45:15 PM org.apache.catalina.loader.WebappClassLoader
>> clearThreadLocalMap
>> SEVERE: A web application created a ThreadLocal with key of type [java.lang.ThreadLocal]
(value [java.lang.ThreadLocal@5775be14]) and a value of type [org.codehaus.plexus.classworlds.realm.ClassRealm]
(value [ClassRealm[maven, parent: null]]) but failed to remove it when the web application
was stopped. To prevent a memory leak, the ThreadLocal has been forcibly removed.
>> Jan 17, 2014 3:45:15 PM org.apache.catalina.loader.WebappClassLoader
>> clearThreadLocalMap
>> SEVERE: A web application created a ThreadLocal with key of type [org.springframework.core.NamedThreadLocal]
(value [Prototype beans currently in creation]) and a value of type [null] (value [null])
but failed to remove it when the web application was stopped. To prevent a memory leak, the
ThreadLocal has been forcibly removed.
>> Jan 17, 2014 3:45:15 PM org.apache.catalina.loader.WebappClassLoader
>> clearThreadLocalMap
>> SEVERE: A web application created a ThreadLocal with key of type [null] (value [org.apache.logging.log4j.spi.DefaultThreadContextMap$1@60e55df3])
and a value of type [null] (value [null]) but failed to remove it when the web application
was stopped. To prevent a memory leak, the ThreadLocal has been forcibly removed.
>
>
>
> --
> Olivier Lamy
> Ecetera: http://ecetera.com.au
> http://twitter.com/olamy | http://linkedin.com/in/olamy



-- 
Olivier Lamy
Ecetera: http://ecetera.com.au
http://twitter.com/olamy | http://linkedin.com/in/olamy

Mime
View raw message