读书人

JBoss应用遇到有关问题记录

发布时间: 2013-12-22 15:06:55 作者: rapoo

JBoss应用遇到问题记录
Object content = url.openConnection().getContent();Class<?> czz = Class.forName("org.jboss.vfs.VirtualFile");Method m = czz.getMethod("getPhysicalFile");File physicalFile = (File) m.invoke(content);

注:需要引入JBoss jar包,maven依赖如下:

<dependency><groupId>org.jboss</groupId><artifactId>jboss-vfs</artifactId><version>3.0.1.GA</version> <!-- jdk1.6+ --></dependency>

Q: 调用WebService接口时出现以下异常:

ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/xxx].[WebServiceServlet]] (http--0.0.0.0-8380-2)
Servlet.service() for servlet WebServiceServlet threw exception:
java.lang.NoClassDefFoundError: com/sun/xml/messaging/saaj/soap/SOAPDocumentImpl

A: 删掉部署包中的以下2个jar包:saaj-impl-1.3.9.jar, saaj-api-1.3.3.jar

see: http://cxf.547215.n5.nabble.com/Does-anyone-successfully-deployed-CXF-services-with-WS-Security-Signature-and-Encyrption-in-WebSpher1-td563604.html

?

?

读书人网 >操作系统

热点推荐