Hi Rice,

On 11/06/14 13:31, Rice Yeh wrote:
Hi Sergey,
   No. I am suer it is not the case you mentioned because I have never
touched 3.0 cxf. In our environment, no cxf 3.0 exist.
   The error is quite weird because both classes
org.apache.cxf.endpoint.ServerImpl
and MultipleEndpointObserver are in the same jar cxf-api.

I can only think of some wrong class loader getting into the way somehow, if it is reproducible then may be you can provide a test ?

Cheers, Sergey


Cheers, Rice


On Wed, Jun 11, 2014 at 7:47 PM, Sergey Beryozkin <[email protected]>
wrote:

Hi

It appears you have CXF 2.7.x and 3.0 mixed up, this class is in cxf-api
in 2.7.x and in cxf-core in 3.0.0

can it be the case ?

Cheers, Sergey


On 11/06/14 10:31, Rice Yeh wrote:

Hi,
   I get a java.lang.NoClassDefFoundError:
org/apache/cxf/transport/MultipleEndpointObserver when undploying a web
context in tomcat. I totally have no clue on what is going wrong. The
following is the stack trace:

Jun 11, 2014 4:36:47 PM org.apache.catalina.startup.HostConfig undeploy
INFO: Undeploying context [/lavita]
Jun 11, 2014 4:36:47 PM
org.springframework.context.support.AbstractApplicationContext doClose
INFO: Closing Root WebApplicationContext: startup date [Wed Jun 11
16:32:12
CST 2014]; root of context hierarchy
Jun 11, 2014 4:36:47 PM
org.springframework.context.support.AbstractApplicationContext doClose
WARNING: Exception thrown from ApplicationListener handling
ContextClosedEvent
java.lang.NoClassDefFoundError:
org/apache/cxf/transport/MultipleEndpointObserver
at org.apache.cxf.endpoint.ServerImpl.stop(ServerImpl.java:170)
at org.apache.cxf.endpoint.ServerImpl.destroy(ServerImpl.java:181)
at
org.apache.cxf.bus.managers.ServerRegistryImpl.preShutdown(
ServerRegistryImpl.java:90)
at
org.apache.cxf.bus.managers.CXFBusLifeCycleManager.preShutdown(
CXFBusLifeCycleManager.java:95)
at
org.apache.cxf.bus.managers.CXFBusLifeCycleManager.postShutdown(
CXFBusLifeCycleManager.java:102)
at
org.apache.cxf.bus.spring.SpringBus.onApplicationEvent(
SpringBus.java:124)
at
org.apache.cxf.bus.spring.SpringBus$1.onApplicationEvent(SpringBus.
java:75)
at
org.springframework.context.event.SimpleApplicationEventMulticas
ter.multicastEvent(SimpleApplicationEventMulticaster.java:97)
at
org.springframework.context.support.AbstractApplicationContext.
publishEvent(AbstractApplicationContext.java:303)
at
org.springframework.context.support.AbstractApplicationContext.doClose(
AbstractApplicationContext.java:1007)
at
org.springframework.context.support.AbstractApplicationContext.close(
AbstractApplicationContext.java:970)
at
org.apache.cxf.transport.servlet.CXFServlet.destroyBus(
CXFServlet.java:170)
at
org.apache.cxf.transport.servlet.CXFNonSpringServlet.
destroy(CXFNonSpringServlet.java:182)
at
org.apache.catalina.core.StandardWrapper.unload(
StandardWrapper.java:1481)
at
org.apache.catalina.core.StandardWrapper.stopInternal(
StandardWrapper.java:1842)
at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:232)
at
org.apache.catalina.core.StandardContext.stopInternal(
StandardContext.java:5647)
at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:232)
at
org.apache.catalina.core.ContainerBase.removeChild(
ContainerBase.java:1028)
at org.apache.catalina.startup.HostConfig.undeploy(HostConfig.java:1478)
at
org.apache.catalina.startup.HostConfig.checkResources(
HostConfig.java:1406)
at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1626)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(
HostConfig.java:328)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(
LifecycleSupport.java:117)
at
org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(
LifecycleBase.java:90)
at
org.apache.catalina.core.ContainerBase.backgroundProcess(
ContainerBase.java:1374)
at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.
processChildren(ContainerBase.java:1530)
at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.
processChildren(ContainerBase.java:1540)
at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.
run(ContainerBase.java:1519)
at java.lang.Thread.run(Thread.java:744)
Caused by: java.lang.ClassNotFoundException:
org.apache.cxf.transport.MultipleEndpointObserver
at
org.apache.catalina.loader.WebappClassLoader.loadClass(
WebappClassLoader.java:1718)
at
org.apache.catalina.loader.WebappClassLoader.loadClass(
WebappClassLoader.java:1569)
... 30 more



--
Sergey Beryozkin

Talend Community Coders
http://coders.talend.com/

Blog: http://sberyozkin.blogspot.com




--
Sergey Beryozkin

Talend Community Coders
http://coders.talend.com/

Blog: http://sberyozkin.blogspot.com

Reply via email to