【发布时间】:2012-06-01 20:41:37
【问题描述】:
我曾多次尝试将 Netbeans WAR 网络服务部署到 Glassfish 中,但它返回此错误:
Error occurred during deployment: Exception while loading the app :
java.lang.IllegalStateException: ContainerBase.addChild: start:
org.apache.catalina.LifecycleException: org.apache.catalina.LifecycleException:
javax.servlet.ServletException:
com.sun.xml.ws.transport.http.servlet.WSServletException:
WSSERVLET11: failed to parse
runtime descriptor: java.lang.RuntimeException: MASM0015: Class [
com.sun.xml.ws.tx.runtime.TxTubeFactory ] does not implement [
com.sun.xml.ws.assembler.dev.TubeFactory ] interface.
Please see server.log for more details.
我在 Eclipse 中生成的任何 WAR 都可以在 Glassfish 中使用,但我尝试从 Netbeans 导入这个项目,但它不起作用。 Glassfish 也返回同样的错误。日志没有扩展可能的问题的信息。
顺便说一句,在 Netbeans 的嵌入式 Glassfish 中,Web 服务的工作方式非常棒,但导入它会导致 Glassfish 服务器(另一台计算机)出错
有什么建议吗?我需要在 Glassfish 服务器中更改任何配置吗?
感谢大家的想法和解决方案。
克里斯蒂娜
从服务器 .LOG 中提取
[#|2012-05-31T10:16:59.951-
0430|INFO|glassfish3.1|com.sun.xml.ws.wstx|_ThreadID=40;_ThreadName=Thread-1;|[failed
to localize] HOST_AND_PORT_LOOKUP_FAILURE_2015(https://192.168.2.43:8080)
java.lang.ClassNotFoundException: com.sun.enterprise.webservice.WsTxUtils
[#|2012-05-31T10:16:59.990-
0430|SEVERE|glassfish3.1|com.sun.xml.ws.wspolicy.jaxws.PolicyWSDLParserExtension|_ThreadID= 40;_ThreadName=Thread-1;|WSP1007: Policy exception occured when finishing WSDL parsing.
com.sun.xml.ws.policy.PolicyException: [failed to localize]
WSP_0071_ERROR_MULTIPLE_ASSERTION_CREATORS_FOR_NAMESPACE(http://schemas.xmlsoap.org/ws/2004/08/addressing, com.sun.xml.ws.security.addressing.impl.policy.AddressingPolicyAssertionCreator, com.sun.xml.ws.addressing.impl.policy.AddressingPolicyAssertionCreator)
Caused by: com.sun.xml.ws.policy.PolicyException: [failed to localize] WSP_0071_ERROR_MULTIPLE_ASSERTION_CREATORS_FOR_NAMESPACE(http://schemas.xmlsoap.org/ws/2004 /08/addressing, com.sun.xml.ws.security.addressing.impl.policy.AddressingPolicyAssertionCreator, com.sun.xml.ws.addressing.impl.policy.AddressingPolicyAssertionCreator)
[#|2012-05-31T10:16:59.990- 0430|FINE|glassfish3.1|javax.enterprise.system.container.web.org.glassfish.web.loader|_Thre adID=143;_ThreadName=Thread- 1;ClassName=org.glassfish.web.loader.WebappClassLoader;MethodName=clearReferences;|Could not set field tm to null in class com.sun.xml.ws.tx.at.ATCoordinator
java.lang.NoClassDefFoundError: Could not initialize class com.sun.xml.ws.tx.at.ATCoordinator
[#|2012-05-31T10:16:59.990- 0430|FINE|glassfish3.1|javax.enterprise.system.container.web.org.glassfish.web.loader|_Thre adID=143;_ThreadName=Thread- 1;ClassName=org.glassfish.web.loader.WebappClassLoader;MethodName=clearReferences;|Could not set field wsatCoordinatorService to null in class com.sun.xml.ws.tx.at.ATCoordinator
java.lang.NoClassDefFoundError: Could not initialize class com.sun.xml.ws.tx.at.ATCoordinator
[#|2012-05-31T10:16:59.990-0430|FINE|glassfish3.1|javax.enterprise.system.container.web.org.glassfish.web.loader|_ThreadID=143;_ThreadName=Thread - 1;ClassName=org.glassfish.web.loader.WebappClassLoader;MethodName=clearReferences;|无法在 com.sun.xml.ws.tx.at.ATCoordinator 类中将字段 wsatCoordinatorService 设置为 null java.lang.NoClassDefFoundError: 无法初始化类 com.sun.xml.ws.tx.at.ATCoordinator
【问题讨论】:
-
server.log 说什么?
-
这是 Server.Log 的一些摘录
-
您安装了完整的 Glassfish 还是仅安装了网络配置文件?
-
完整 glassfish,Windows 2008 上的 Glassfish Server 开源版 3.1
-
它确实适用于 Glassfish Web Profile。但不适用于完整平台。
标签: java servlets netbeans glassfish-3 war