JAXB 2 in Oracle 10g Webapp

I have a web application using JAXB 2. When deploying to an Oracle 10g application server, I get errors as soon as I try to marshal the XML file. It turns out that Oracle includes JAXB 1 in the jar, secretly renamed "xml.jar". Does anyone know how I can get my webapp to use the version of jaxb jars that I deployed in web-inf / lib, compared to what Oracle started in the classpath, ideally through the configuration, and not in to get confused with class loaders in my code.

+2
source share
3 answers

Suppose you are using a former BEA Weblogic Server?

weblogic.xml WEB-INF, :

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE weblogic-web-app PUBLIC "-//BEA Systems, Inc.//DTD Web Application 8.1//EN" "http://www.bea.com/servers/wls810/dtd/weblogic810-web-jar.dtd">
<weblogic-web-app>
    <container-descriptor>
   <prefer-web-inf-classes>true</prefer-web-inf-classes>
    </container-descriptor>
</weblogic-web-app>

( : -))

, DLL , " ". , , , . , ...

+2

Oracle OC4J, orion-application.xml EAR META-INF. ...

<?xml version="1.0" encoding="UTF-8"?>
<orion-application>
    <imported-shared-libraries>
        <remove-inherited name="skip.this.package"/>
    </imported-shared-libraries>
</orion-application>

... , .

+1

JVM, Oracle, , .

0

All Articles