PL / SQL Web服务部署

时间:2013-12-18 08:53:11

标签: java web-services plsql glassfish jdeveloper

我在Jdeveloper中创建了一个pl / sql Web服务,并将其部署到WebLogic服务器。有用.. 现在我需要在Glassfish上部署WS。我建立了JDBC连接(ping成功),但尝试使用Glassfish管理控制台(localhost:4848)部署.war文件后总是出错。

部署期间发生错误:准备应用程序时出现异常:jaxrpc编译异常。有关更多详细信息,请参阅server.log。

Server.log:

[2013-12-17T14:42:32.387+0100] [glassfish 4.0] [SEVERE] [] [javax.enterprise.system.core] [tid: _ThreadID=32 _ThreadName=admin-listener(1)] [timeMillis: 1387287752387] [levelValue: 1000] [[
Exception while preparing the app : jaxrpc compilation exception
java.lang.RuntimeException: jaxrpc compilation exception
at org.glassfish.webservices.codegen.JaxRpcRICodegen.accept(JaxRpcRICodegen.java:339)
at com.sun.enterprise.deployment.util.ModuleContentLinker.accept(ModuleContentLinker.java:91)
at org.glassfish.webservices.codegen.JaxRpcRICodegen.accept(JaxRpcRICodegen.java:852)
at com.sun.enterprise.deployment.BundleDescriptor.visit(BundleDescriptor.java:621)
at org.glassfish.web.deployment.descriptor.WebBundleDescriptorImpl.visit(WebBundleDescriptorImpl.java:1958) .....

对此问题的任何建议?

1 个答案:

答案 0 :(得分:0)

也许Jdeveloper使用Glassfish无法理解或预期的专有XML描述符文件来构建您的Web服务?或者,您的Web服务可能需要Glassfish不满意的依赖项(可能是一些.jar文件)。

我想你想要的是使用Jdeveloper生成的自动代码来调用你的PL / SQL存储过程。我想你的选择是:

  • 以某种方式识别并重新打包Jdeveloper生成的.ear或.war二进制文件所需的依赖项
  • 或者尝试破解所需的生成的.java或.class,并使用Apache CXF或一些了解@WebService注释的库完全重新打包它。