无法部署eclipse maven JAX-WS Web服务

时间:2015-03-18 09:52:16

标签: eclipse spring maven jax-ws

我正在关注

的教程

http://examples.javacodegeeks.com/enterprise-java/jws/jax-ws-spring-integration-example/

但是,当我尝试部署WAR时,它会给我以下错误 -

ERROR [org.springframework.web.context.ContextLoader] (ServerService Thread Pool -- 51) Context initialization failed: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.sun.xml.ws.transport.http.servlet.SpringBinding#0' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Cannot create inner bean '(inner bean)' of type [org.jvnet.jax_ws_commons.spring.SpringService] while setting bean property 'service'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)': FactoryBean threw exception on object creation; nested exception is java.lang.NoClassDefFoundError: com/sun/org/apache/xml/internal/resolver/CatalogManager

2 个答案:

答案 0 :(得分:1)

该课程在JDK中。你应该在$ JAVA_HOME / jre / lib / rt.jar

中找到它

检查您是否使用了正确的jdk(Oracle Jdk7或更高版本)。

答案 1 :(得分:0)

看起来您必须将jaxb-xjc.jar jar添加到类路径中。这个jar包含缺少的类:com/sun/org/apache/xml/internal/resolver/CatalogManager