【问题标题】:Unable to deploy eclipse maven JAX-WS web service无法部署 Eclipse Maven JAX-WS Web 服务
【发布时间】:2015-05-21 01:06:30
【问题描述】:

我正在学习

的教程

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

【问题讨论】:

    标签: eclipse spring maven jax-ws


    【解决方案1】:

    该类在 JDK 中。你应该在 $JAVA_HOME/jre/lib/rt.jar 中找到它

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

    【讨论】:

      【解决方案2】:

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

      【讨论】:

      • 给出但仍然是同样的问题。我正在使用 JBOSS
      • 我已经下载并包含了 jaxb-xjc-local.jar,现在该错误不存在,但现在我收到以下错误——FactoryBean 在创建对象时抛出异常;嵌套异常是 java.lang.NoSuchFieldError: REFLECTION
      • @debnath 将堆栈跟踪作为更新添加到您的问题。
      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2010-12-16
      • 1970-01-01
      • 2011-03-13
      相关资源
      最近更新 更多