Anybody have trouble with CXF on oc4j (10.1.3.3.0) app server?
 
Out of the box, I get the following error with the wsdl_first sample
(this same helloworld.war works fine with tomcat 5.5):
 
07/10/28 16:38:03.656 helloworld: Error initializing servlet
java.lang.RuntimeException:
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'org.apache.cxf.wsdl.WSDLManager' defined in class path
resource [META-INF/cxf/cxf.xml]: Instantiation of bean failed; nested
exception is org.springframework.beans.BeanInstantiationException: Could
not instantiate bean class [org.apache.cxf.wsdl11.WSDLManagerImpl]:
Constructor threw exception; nested exception is
java.lang.ClassCastException: oracle.xml.parser.v2.DTD
 at
org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.ja
va:87)
 at
org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.ja
va:65)
 at
org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.ja
va:52)
 at
org.apache.cxf.transport.servlet.CXFServlet.loadSpringBus(CXFServlet.jav
a:156)
 at org.apache.cxf.transport.servlet.CXFServlet.init(CXFServlet.java:98)
 at
com.evermind.server.http.HttpApplication.loadServlet(HttpApplication.jav
a:2371)
 at
com.evermind.server.http.HttpApplication.findServlet(HttpApplication.jav
a:4824)
 at
com.evermind.server.http.HttpApplication.findServlet(HttpApplication.jav
a:4748)
 at
com.evermind.server.http.HttpApplication.initPreloadServlets(HttpApplica
tion.java:4936)
 at
com.evermind.server.http.HttpApplication.initDynamic(HttpApplication.jav
a:1145)
 at
com.evermind.server.http.HttpApplication.<init>(HttpApplication.java:741
)
 at
com.evermind.server.ApplicationStateRunning.getHttpApplication(Applicati
onStateRunning.java:414)
 at
com.evermind.server.Application.getHttpApplication(Application.java:570)
 at
com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.create
HttpApplicationFromReference(HttpSite.java:1987)
 at
com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.create
HttpApplicationFromReference(HttpSite.java:1970)
 at
com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.getHtt
pApplication(HttpSite.java:1922)
 at com.evermind.server.http.HttpSite.getApplication(HttpSite.java:423)
 at
com.evermind.server.http.HttpRequestHandler.resolveApplication(HttpReque
stHandler.java:398)
 at
com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHa
ndler.java:439)
 at
com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestH
andler.java:221)
 at
com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:
122)
 at
com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:
111)
 at
oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocke
tReadHandler.java:260)
 at
oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSoc
ketAcceptHandler.java:239)
 at
oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcc
eptHandler.java:34)
 at
oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(Ser
verSocketAcceptHandler.java:880)
 at
com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(Releasab
leResourcePooledExecutor.java:298)
 at java.lang.Thread.run(Thread.java:595)
Caused by: org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'org.apache.cxf.wsdl.WSDLManager' defined
in class path resource [META-INF/cxf/cxf.xml]: Instantiation of bean
failed; nested exception is
org.springframework.beans.BeanInstantiationException: Could not
instantiate bean class [org.apache.cxf.wsdl11.WSDLManagerImpl]:
Constructor threw exception; nested exception is
java.lang.ClassCastException: oracle.xml.parser.v2.DTD
 at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac
tory.createBean(AbstractAutowireCapableBeanFactory.java:450)
 at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObjec
t(AbstractBeanFactory.java:251)
 at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.g
etSingleton(DefaultSingletonBeanRegistry.java:144)
 at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Ab
stractBeanFactory.java:248)
 at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Ab
stractBeanFactory.java:160)
 at
org.springframework.beans.factory.support.DefaultListableBeanFactory.pre
InstantiateSingletons(DefaultListableBeanFactory.java:279)
 at
org.springframework.context.support.AbstractApplicationContext.refresh(A
bstractApplicationContext.java:360)
 at
org.apache.cxf.bus.spring.BusApplicationContext.<init>(BusApplicationCon
text.java:71)
 at
org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.ja
va:84)
 ... 27 more
Caused by: org.springframework.beans.BeanInstantiationException: Could
not instantiate bean class [org.apache.cxf.wsdl11.WSDLManagerImpl]:
Constructor threw exception; nested exception is
java.lang.ClassCastException: oracle.xml.parser.v2.DTD
 at
org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:100)
 at
org.springframework.beans.factory.support.SimpleInstantiationStrategy.in
stantiate(SimpleInstantiationStrategy.java:61)
 at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac
tory.instantiateBean(AbstractAutowireCapableBeanFactory.java:732)
 at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac
tory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:720)
 at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac
tory.createBean(AbstractAutowireCapableBeanFactory.java:386)
 ... 35 more
Caused by: java.lang.ClassCastException: oracle.xml.parser.v2.DTD
 at java.util.XMLUtils.load(XMLUtils.java:61)
 at java.util.Properties.loadFromXML(Properties.java:701)
 at
org.apache.cxf.common.util.PropertiesLoaderUtils.loadAllProperties(Prope
rtiesLoaderUtils.java:71)
 at
org.apache.cxf.wsdl11.WSDLManagerImpl.registerInitialExtensions(WSDLMana
gerImpl.java:209)
 at
org.apache.cxf.wsdl11.WSDLManagerImpl.<init>(WSDLManagerImpl.java:97)
 at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
 at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorA
ccessorImpl.java:39)
 at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingCons
tructorAccessorImpl.java:27)
 at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
 at
org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:85)
 ... 39 more

Seems like some DTD class conflict somewhere down in the weeds. If
anyone has any pointers, I would appreciate it. 
 
Thanks, 
 
Nadeem

Reply via email to