在Jboss 5.1GA 上升级到 jbossws-cxf-3.4.0.GA 后,我无法在此Jboss上部署任何webService 应用程序;
java.lang.NoClassDefFoundError:org / jboss / wsf / common / KernelAwareSPIFactory 写在日志文件中。
抛出以下错误:
13:07:50,044 INFO [EJBContainer] STOPPED EJB: ge.test.myWebService ejbName: myWebServicemyWebService
13:07:50,044 INFO [EJBContainer] STOPPED EJB: ge.test.myWebService ejbName: myWebService
13:07:50,076 ERROR [AbstractKernelController] Error installing to Real: name=vfszip:/D:/jboss-5.1.0.GA/server/default/deploy/myWebService.ear/ state=PreReal mode=Manual requiredState=Real
org.jboss.deployers.spi.DeploymentException: Error during deploy: vfszip:/D:/JBoss/jboss-5.1.0.GA/server/default/deploy/myWebService.ear/services.jar/
at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
...
Caused by: java.lang.NoClassDefFoundError: org/jboss/wsf/common/KernelAwareSPIFactory
...
Caused by: java.lang.ClassNotFoundException: org.jboss.wsf.common.KernelAwareSPIFactory from BaseClassLoader@fb7efa{VFSClassLoaderPolicy@14d82e1{name=vfszip:/D:/DevTool/JBoss/jboss-5.1.0.GA/server/default/deployers/jbossws-native-core.jar/ domain=ClassLoaderDomain@1931579{name=DefaultDomain parentPolicy=BEFORE parent=org.jboss.bootstrap.NoAnnotationURLClassLoader@15c7850} roots=[MemoryContextHandler@30122033[path= context=vfsmemory://5c4o01a-g18zic-hbrobclf-1-hbrobfz6-v real=vfsmemory://5c4o01a-g18zic-hbrobclf-1-hbrobfz6-v], DelegatingHandler@25305362[path=jbossws-native-core.jar context=file:/D:/DevTool/JBoss/jboss-5.1.0.GA/server/default/deployers/ real=file:/D:/JBoss/jboss-5.1.0.GA/server/default/deployers/jbossws-native-core.jar]] delegates=null exported=[, org.jboss.ws.tools.helpers, org.jboss.ws.tools.factories, org.jboss.ws.tools.schema, org.jboss.ws.core.jaxws.wsaddressing, org.jboss.ws.extensions.wsrm.protocol.spec200502, org.jboss.ws.extensions.wsrm.protocol, schema, org.jboss.ws.extensions.wsrm.protocol.spec200702, org.jboss.wsf.stack.jbws, org.jboss.ws.metadata.builder.jaxrpc, org.jboss.ws.extensions.policy.deployer, org.jboss.ws.extensions.policy.metadata, org.jboss.ws.extensions.wsrm.transport, org.jboss.ws.extensions.policy, org.jboss.ws.core.client, org.jboss.ws.jaxrpc, org.jboss.ws.tools.wsdl, org.jboss.ws.extensions.addressing.jaxrpc, org.jboss.ws.extensions.wsrm.policy, org.jboss.ws.extensions.eventing.jaxws, org.jboss.ws.extensions.eventing.deployment, org.jboss.ws.extensions.security.operation, org.jboss.ws.extensions.security.exception, org.jboss.ws.extensions.policy.deployer.util, org.jboss.ws.core.jaxrpc, org.jboss.ws.util.xml, org.jboss.ws.extensions.addressing.jaxws, org.jboss.ws.extensions.validation, org.jboss.ws.metadata.config.jaxrpc, org.jboss.ws.extensions.xop.jaxws, org.jboss.ws.core.server, org.jboss.ws.metadata.wsdl.xsd, org.jboss.ws.core.jaxws.spi, org.jboss.ws.metadata.wsdl, org.jboss.ws.extensions.addressing, org.jboss.ws.annotation, META-INF.services, org.jboss.ws.extensions.xop.jaxrpc, org.jboss.ws.extensions.eventing, org.jboss.ws.extensions.addressing.metadata, org.jboss.ws.core.jaxrpc.handler, org.jboss.ws.extensions.json, org.jboss.ws.extensions.eventing.mgmt, META-INF.maven.org.jboss.ws.native.jbossws-native-core, org.jboss.ws.metadata.builder.jaxws, org.jboss.ws.metadata.config.jaxws, org.jboss.ws.tools.mapping, org.jboss.ws.extensions.security, org.jboss.ws.core.utils, org.jboss.ws.extensions.wsrm.persistence, org.jboss.ws.extensions.security.element, org.jboss.ws.extensions.wsrm, org.jboss.ws.tools.ant, org.jboss.ws.tools.config, org.jboss.ws.tools.exceptions, org.jboss.ws.core.soap, org.jboss.ws.metadata.wsse, org.jboss.ws.extensions.policy.deployer.domainAssertion, org.jboss.ws.tools.metadata, dtd, org.jboss.ws.core.jaxws.handler, org.jboss.ws.extensions.security.jaxws, org.jboss.ws.extensions.wsrm.server, org.jboss.ws.metadata.umdm, org.jboss.ws.metadata.wsdl.xmlschema, org.jboss.ws.tools, org.jboss.ws.extensions.wsrm.common, org.jboss.ws.extensions.addressing.soap, org.jboss.ws.core.jaxrpc.binding.jbossxb, org.jboss.ws.core.jaxws.binding, org.jboss.ws.metadata.accessor, org.jboss.ws.core, org.jboss.ws.metadata.config, org.jboss.ws.core.jaxws.client, org.jboss.ws.extensions.wsrm.config, org.jboss.ws.extensions.policy.annotation, org.jboss.ws.extensions.wsrm.transport.backchannel, org.jboss.ws.metadata.config.binding, org.jboss.ws.extensions.wsrm.api, org.jboss.ws.tools.client, org.jboss.ws.tools.interfaces, org.jboss.ws.extensions.eventing.metadata, org.jboss.ws.extensions.eventing.common, org.jboss.ws.extensions.security.nonce, org.jboss.ws.core.binding, org.jboss.ws.metadata.builder, org.jboss.ws.extensions.wsrm.protocol.spi, org.jboss.ws.extensions.xop, org.jboss.ws.core.jaxrpc.binding, org.jboss.ws.extensions.wsrm.jaxws, org.jboss.ws.extensions.policy.deployer.exceptions, org.jboss.ws.core.jaxrpc.client, org.jboss.ws.core.transport.jms, org.jboss.ws.core.jaxws, org.jboss.ws, META-INF, org.jboss.ws.extensions.security.jaxrpc, org.jboss.ws.metadata.jaxrpcmapping, org.jboss.ws.feature, org.jboss.ws.extensions.security.auth.callback, org.jboss.ws.extensions.wsrm.common.serialization, org.jboss.ws.core.soap.attachment, org.jboss.ws.tools.jaxws.impl] <IMPORT-ALL>NON_EMPTY}}
...
我已经检查过, KernelAwareSPIFactory.class 未包含在jbossws-cxf-3.4.0.GA的jbossws-common.jar中。它包含在旧版本中。
我应该升级任何其他库以在我的Jboss5.1GA上部署Web服务吗?
或者你能提出其他解决方案吗?
提前致谢。
答案 0 :(得分:0)
您可能已经阅读过此内容,但它看起来与cxf依赖项和某些内容存在冲突。引导加载程序,此链接可能会有所帮助:
https://community.jboss.org/message/285554#285554
此致