Hello, remove the xml-apis jar, just leave the xercesImpl jar in the war package.
-- Peter On Fri, Apr 23, 2010 at 2:39 PM, Bogguard <[email protected]> wrote: > > Hi, > > i'm trying to build a cxf application on oc4j, but i am stuck at deploying > with xerces 2.9.1 (xerces 2.6.2 works fine). > > In the cxf docs i got the following : You can automate above steps by > packaging You war into ear archive (even though) if it's only war and > providing orion-application.xml proprietary descriptor. You could also > provide proprietary orion-web.xml in Your war instrumenting Search Local > Classes First attribute described above. > > I did the following steps : > orion-web.xml contains <web-app-class-loader > search-local-classes-first="true"/> > > orion-application.xml contains : > <imported-shared-libraries> > <remove-inherited name="oracle.xml"/> > <remove-inherited name="oracle.cache"/> > <remove-inherited name="soap"/> > > <remove-inherited name="oracle.gdk"/> > <remove-inherited name="oracle.dms"/> > <remove-inherited name="oracle.sqlj"/> > <remove-inherited name="oracle.toplink"/> > <remove-inherited name="oracle.ws.core"/> > <remove-inherited name="oracle.ws.client"/> > <remove-inherited name="oracle.xml.security"/> > <remove-inherited name="oracle.ws.security"/> > <remove-inherited name="oracle.ws.reliability"/> > <remove-inherited name="oracle.jwsdl"/> > <remove-inherited name="oracle.http.client"/> > <remove-inherited name="oracle.expression-evaluator"/> > > <remove-inherited name="oracle.http.client"/> > <remove-inherited name="apache.webservices"/> > <remove-inherited name="adf.oracle.domain"/> > <remove-inherited name="apache.commons.logging"/> > > <remove-inherited name="oracle.ws.jaxrpc"/> > </imported-shared-libraries> > > As i cannot add a shared library because i have no admin access to the oc4j > server I have includes the xerces, xml-api, etc in my ear file. > > Anyone got an idea why this is not working and giving a classCastException > to documentBuilderFactoryImpl. Is it because there is no shared library? If > so, does anyone have an idea how to add this shared library through > configuration files because of a lack of admin rights? > > Thanks in advance, > Tim > > -- > View this message in context: > http://old.nabble.com/cxf-%2B-oc4j-tp28340819p28340819.html > Sent from the cxf-user mailing list archive at Nabble.com. > >
