2012-06-01 65 views
0

我試圖部署一個NetBeans WAR web服務到Glassfish的幾次工作,但它返回此錯誤:Netbeans的戰爭不會在GlassFish服務器3.1

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. 

無論WAR我在Eclipse工作在產生Glassfish,但我嘗試從Netbeans這個項目導入,並沒有奏效。 Glassfish也會返回這個相同的錯誤。日誌不會擴展可能問題的信息。

順便說一句,在嵌入式Glassfish的針對NetBeans,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 | _Thre adID = 143; _ThreadName = Thread-1; ClassName = org.glassfish.web.loader.WebappClassLoader; MethodName = clearReferences; |無法在com.sun類中將字段wsatCoordinatorService設置爲null .xml.ws.tx.at.ATCoordinator java.lang.NoClassDefFoundError:無法初始化類com.sun.xml.ws.tx.at.ATCoordinator

+0

server.log是什麼意思? –

+0

這是Server.Log的一些摘錄 –

+0

您是安裝了完整的Glassfish還是隻安裝了Web配置文件? –

回答

1

最近發生了類似的事情。發生了什麼事是最初我要將應用程序部署到Tomcat7,因此Netbeans在我的庫部分中包含了一些Metro Jar。然後,我決定部署到Glassfish,但是那些Metro地鐵罐顯然會導致您看到的問題。我剛從Netbeans的圖書館部分中刪除了Metro Jars,重新部署了,一切正常。

這裏是一個鏈接,更多地談論發生了什麼:https://java.net/jira/browse/WSIT-1636

相關問題