English 中文(简体)
如何在Oracle Application服务器的网络应用中使用jaxb 2
原标题:How to use jaxb 2 in a web application within Oracle Application Server

我申请的是Jaxb 2.1.12。 我是JDK 1.5和OC4J 10.1.3.4.0。 当我试图利用我使用Jaxb的部分申请时,我有以下错误:

Unable to locate jaxb.properties for package

我将此缩小到OC4J的xml.jar。 该校有1 000个班级。 我可以通过在 or申请中添加以下内容来纠正这一错误:

<imported-shared-libraries>
    <remove-inherited name="oracle.xml"/>
</imported-shared-libraries>

问题在于,我正在利用行政——客户向OC4J部署WAR档案。 jarutil。 我没有欧洲复兴开发银行,无法将 or-应用-xml档案列入,因此,我决定试图将 or-web.xml档案添加到世界研究协会的WEB-INF名录中,并确定搜索-当地分类-第一财产的真实情况:

<?xml version="1.0"?>    
<orion-web-app
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://xmlns.oracle.com/oracleas/schema/orion-web-10_0.xsd"  deployment-version="10.1.3.4.0"
 jsp-cache-directory="./persistence"
 jsp-cache-tlds="standard"
 simple-jsp-mapping="false"
 temporary-directory="./temp"
 schema-major-version="10" schema-minor-version="0" >

  <web-app-class-loader search-local-classes-first="true"  />

 <web-app>
 </web-app>
</orion-web-app>

这导致完全没有部署。 我发现了一个错误,即春季组合的档案不能归结。 我愿首先使用搜身区。 我如何利用这一财产? 还有一种方式,我可以向世界钻石行动档案库部署 or-申请。

09/11/16 13:26:01 WARNING: DeployerRunnable.run Unexpected exception parsing XML document from Servl
etContext resource [/WEB-INF/applicationContext-acegi-security.xml]; nested exception is java.lang.C
lassCastException: oracle.xml.jaxp.JXDocumentBuilderFactoryoracle.oc4j.admin.internal.DeployerExcept
ion: Unexpected exception parsing XML document from ServletContext resource [/WEB-INF/applicationCon
text-acegi-security.xml]; nested exception is java.lang.ClassCastException: oracle.xml.jaxp.JXDocume
ntBuilderFactory
        at oracle.oc4j.admin.internal.DeployerBase.execute(DeployerBase.java:126)
        at oracle.oc4j.admin.jmx.server.mbeans.deploy.OC4JDeployerRunnable.doRun(OC4JDeployerRunnabl
e.java:52)
        at oracle.oc4j.admin.jmx.server.mbeans.deploy.DeployerRunnable.run(DeployerRunnable.java:81)

        at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledE
xecutor.java:303)
        at java.lang.Thread.run(Thread.java:595)

注:我没有拿 Java1.6的这个错误,我认为,这是因为1.6与Jaxb包在一起。

最佳回答

如果立案卷解决问题,我就认为你会这样做。 而且,当你部署战争档案时,该集装箱会给你造成耳光。 查阅applications Directory of the oc4j s set dir for the ear file。

问题回答

在关于“研究-当地-阶级-第一”的文件中,我看到以下一段话:

根据服务器规格,在java、或javax.* 包装中不能使用搜索-当地-一级功能。 * E/CN.6/2009/1。

由于日本宇宙航空研究开发机构2 被列入JD1.6,现列在javax.*之下,因此,即使位于WEB-INF/lib目录中,该服务器可能无视这些类别/图书馆。 Try putting the JAXB jars in You$JRE_HOME/libDirectory. 如果放弃,那么你可以尝试修改供你的预备役人员的开端文字,将日本宇宙航空研究开发局的杰尔列入头等。

解决办法是: 这里与阿帕奇·塞克斯基金会采取相同措施的联系。

Re place JAXB with JAXB2.0 in OC4j





相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签