java oracle Weblogic 10.01 部署Webservices问题

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/721172/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-29 13:29:52  来源:igfitidea点击:

Problems Deploy Webservices in oracle Weblogic 10.01

javaoracle10gweblogic

提问by Nuno Furtado

i am using jwsc to build my webservices application. This produces a war file with a weblogic.xml like the following:

我正在使用 jwsc 来构建我的网络服务应用程序。这会生成一个带有 weblogic.xml 的 war 文件,如下所示:

<?xml version='1.0' encoding='UTF-8'?>
<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">
      <context-root>eori-ws</context-root>
    </weblogic-web-app>

As you can see the namespace points towards bea.com. When i try to deploy the war (inside an ear) to my weblogic i get the following:

如您所见,命名空间指向 bea.com。当我尝试将War(在耳朵内)部署到我的 weblogic 时,我得到以下信息:

        An error occurred during activation of changes, please see the log for details.
            [HTTP:101064][WebAppModule(eori_services:eori-ws)] Error parsing descriptor in Web appplication 
"/softs/apps/bea1001/user_projects/domains/myapp/servers/myServer/tmp/_WL_user/myapp/jd3urj/myapp-ws.war" 
weblogic.application.ModuleException: Unmarshaller failed at 
weblogic.servlet.internal.WebAppModule.loadDescriptor(WebAppModule.java:858) at 
weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:285) 

   (snip)
   weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:464) 
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:200) at 
weblogic.work.ExecuteThread.run(ExecuteThread.java:172) Caused by: 
com.bea.xml.XmlException: failed to load java type corresponding to e=weblogic-web-app@http://www.bea.com/ns/weblogic/weblogic-web-app  at 
com.bea.staxb.runtime.internal.UnmarshalResult.getPojoBindingType(UnmarshalResult.java:329) 
at 
com.bea.staxb.runtime.internal.UnmarshalResult.determineTypeForGlobalElement(UnmarshalResult.java:296) 
at 

    (snip)
    weblogic.servlet.internal.WebAppDescriptor.getWeblogicWebAppBean(WebAppDescriptor.java:164) 
at weblogic.servlet.internal.WebAppModule.loadDescriptor(WebAppModule.java:853) 
... 25 more weblogic.application.ModuleException: Unmarshaller failed
    Failed to load java type corresponding to e=weblogic-web-app@http://www.bea.com/ns/weblogic/weblogic-web-app 

i've tried changing the url to match the new domain and i get the same error. I've tried downloading the xsd and putting it in the same folder of the weblogic.xml, wich i changed to look like:

我尝试更改 url 以匹配新域,但出现相同的错误。我试过下载 xsd 并将其放在 weblogic.xml 的同一文件夹中,我更改为如下所示:

<?xml version='1.0' encoding='UTF-8'?>
<weblogic-web-app xmlns="http://xmlns.oracle.com/weblogic/weblogic-web-app" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="weblogic-web-app.xsd">
  <context-root>eori-ws</context-root>
</weblogic-web-app>

and the error is still the same

并且错误仍然相同

I'm out of ideas. Any help?

我没主意了。有什么帮助吗?

EDIT: no solution yet, ill post solution when i find it.

编辑:还没有解决方案,当我找到它时会发布解决方案。

采纳答案by Nuno Furtado

I solved my problem. Seems i was using the wrong version of the JWSC ant task. Just make sure to use the correct weblogic.jar

我解决了我的问题。似乎我使用了错误版本的 JWSC ant 任务。只要确保使用正确的 weblogic.jar