|
From: Kopylenko, D. <dko...@ac...> - 2004-01-09 15:58:59
|
Colin,
as I said, I had similar problem due to BeansInstantiationException being
thrown during BeanFactory bootstrap. Just need to see the rest of the stack
trace with "the root cause"
Regards,
Dmitriy.
-----Original Message-----
From: Colin Sampaleanu [mailto:col...@ex...]
Sent: Friday, January 09, 2004 10:55 AM
To: spr...@li...
Subject: Re: [Springframework-developer] Web app deployment error after
upgrading from m3 to m4
Alastair,
This is quite strange. I don't know what's going on, but for whatever
reason it looks like the listener which is supposed to load the context
is not kicking in for you any longer.
I would take a look in the log first to see if there are any logging
statements from ContextLoader, as there shoiuld be. If that doesn't
provide any clues, probably the easiest thing to do is start JBoss with
the JPDA (debugger) option in the run file, and attach to it with your
debugger, with a breakpoint on ContextLoaderListener to see if it's
running at all
Alastair Rodgers wrote:
>Hi,
>
>I just tried to upgrade from m3 to m4 but get an error when I try to
>deploy my web app. The web app has a context loader listener defined with:
>
> <context-param>
> <param-name>contextConfigLocation</param-name>
>
>
<param-value>/WEB-INF/applicationContext-core.xml,/WEB-INF/applicationContex
t-web.xml</param-value>
> </context-param>
>
> <listener>
>
>
<listener-class>org.springframework.web.context.ContextLoaderListener</liste
ner-class>
> </listener>
>
>When I try to deploy it I get an exception saying "No
>WebApplicationContext found: no ContextLoaderListener registered?"
>(stacktrace below). This app worked fine with Spring m3, and the
>examples provided with m4 seem to indicate this should be OK. Any idea
>what the problem is?
>
>Regards,
>Al.
>
>
>org.jboss.deployment.DeploymentException: No WebApplicationContext found:
no ContextLoaderListener registered?; - nested throwable:
(java.lang.IllegalStateException: No WebApplicationContext found: no
ContextLoaderListener registered?)
> at org.jboss.jetty.Jetty.undeploy(Jetty.java:381)
> at org.jboss.jetty.Jetty.deploy(Jetty.java:351)
> at org.jboss.jetty.JettyService.performDeploy(JettyService.java:242)
> at
org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:428)
> at org.jboss.deployment.MainDeployer.start(MainDeployer.java:832)
> at org.jboss.deployment.MainDeployer.start(MainDeployer.java:824)
> at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:642)
> at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605)
> at sun.reflect.GeneratedMethodAccessor16.invoke(Unknown Source)
> at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
> at java.lang.reflect.Method.invoke(Method.java:324)
> at
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispat
cher.java:284)
> at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
> at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
> at $Proxy6.deploy(Unknown Source)
> at
org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanne
r.java:302)
> at
org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.
java:476)
> at
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(
AbstractDeploymentScanner.java:201)
> at
org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(Abstract
DeploymentScanner.java:274)
> at
org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:192)
> at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
> at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
> at java.lang.reflect.Method.invoke(Method.java:324)
> at
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispat
cher.java:284)
> at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
> at
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.jav
a:976)
> at $Proxy0.start(Unknown Source)
> at
org.jboss.system.ServiceController.start(ServiceController.java:394)
> at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
> at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
> at java.lang.reflect.Method.invoke(Method.java:324)
> at
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispat
cher.java:284)
> at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
> at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
> at $Proxy4.start(Unknown Source)
> at org.jboss.deployment.SARDeployer.start(SARDeployer.java:226)
> at org.jboss.deployment.MainDeployer.start(MainDeployer.java:832)
> at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:642)
> at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605)
> at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:589)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
> at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
> at java.lang.reflect.Method.invoke(Method.java:324)
> at
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispat
cher.java:284)
> at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
> at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
> at $Proxy5.deploy(Unknown Source)
> at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:384)
> at org.jboss.system.server.ServerImpl.start(ServerImpl.java:291)
> at org.jboss.Main.boot(Main.java:150)
> at org.jboss.Main$1.run(Main.java:395)
> at java.lang.Thread.run(Thread.java:534)
>Caused by: java.lang.IllegalStateException: No WebApplicationContext found:
no ContextLoaderListener registered?
> at
org.springframework.web.context.support.WebApplicationContextUtils.getRequir
edWebApplicationContext(WebApplicationContextUtils.java:56)
> at
org.springframework.web.context.ContextLoader.closeContext(ContextLoader.jav
a:153)
> at
org.springframework.web.context.ContextLoaderListener.contextDestroyed(Conte
xtLoaderListener.java:47)
> at
org.mortbay.jetty.servlet.WebApplicationContext.stop(WebApplicationContext.j
ava:485)
> at org.mortbay.http.HttpContext.stop(HttpContext.java:1864)
> at org.jboss.jetty.Jetty.undeploy(Jetty.java:373)
> ... 52 more
>N?HY隊X???'???u??z??ǒ??pj??z??Ǣ??^?-J????
>?ߊ
?jب?Ƨj ?z{R??^???z????ojwu?ڝ?b?
???+bzƧu?h?'???z?'?O???_???????i??0—?~??y?&???~??{?hi?k?m?T??)?~??{
>+?ׯzZ)z???X??X??*k?x???Š?u?ޖ?^?X???(??~??zw???i????l???q??
>+?z???l?X??)ߣ?)?)?~??{ ?ׯzZ)er==
>
-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms. Free
Eval! http://www.perforce.com/perforce/loadprog.html
_______________________________________________
Springframework-developer mailing list
Spr...@li...
https://lists.sourceforge.net/lists/listinfo/springframework-developer
|