问题描述
当我在Weblogic 10.3.6中部署我的WAR时,它运行但在weblogic 10.3.0中它会抛出:
When i deploy my WAR in Weblogic 10.3.6 it runs but in weblogic 10.3.0 it throws this:
这是一个问题我想用weblogic.xml。这是我的weblogic.xml(没有基本标签):
It's a problem with the weblogic.xml i guess. This is my weblogic.xml(Without basic tags) :
<jsp-descriptor>
<keepgenerated>true</keepgenerated>
<debug>true</debug>
</jsp-descriptor>
<context-root>/WinplexAdmin</context-root>
<library-ref>
<library-name>jsf</library-name>
<specification-version>2.0</specification-version>
<implementation-version>1.0.0.0_2-0-2</implementation-version>
</library-ref>
<container-descriptor>
<prefer-web-inf-classes>true</prefer-web-inf-classes>
</container-descriptor>
这里有什么问题?
推荐答案
解决了。我正在使用更新的weblogic.jar编译
我的意思是:我将Weblogic 10.3.6附加到NetBeans,因此它是一个不同的weblogic.xml。
Solved. I was compiling with a newer weblogic.jarI mean: I had Weblogic 10.3.6 attached to NetBeans, so it was a different weblogic.xml.
Weblogic 10.3.0的正确weblogic.xml是这样的:
A correct weblogic.xml for Weblogic 10.3.0 is like this:
<weblogic-web-app xmlns="http://www.bea.com/ns/weblogic/weblogic-web-app" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.bea.com/ns/weblogic/weblogic-web-app http://www.bea.com/ns/weblogic/weblogic-web-app/1.0/weblogic-web-app.xsd">
你可以看到在xml中,而Weblogic 11g等的weblogic.xml中包含java或sun的链接。
You can see "http://www.bea.com/" in the xml while a weblogic.xml for Weblogic 11g and etc. has links with "java" or "sun" in it.
我刚刚下载了Weblogic 10.3.0,将其附加到NetBeans,将项目的服务器从Weblogic 10.3.6更改为10.3.0然后重新编译。
I just downloaded Weblogic 10.3.0, attached it to NetBeans, change the server for the project from Weblogic 10.3.6 to 10.3.0 and then re-compile.
或者......简单的方法就是替换我粘贴在那里并编译的weblogic.xml代码。
Or... the easy way is just replacing the weblogic.xml code for the one i pasted here and compile.
我希望它能解决你的问题。
I hope it solves your problem.
这篇关于weblogic.descriptor.DescriptorException:Unmarshaller失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!