cxf2.2.4 Spring2.5.6和jboss 7之间的Web Service冲突? [英] Web Service conflict among cxf2.2.4 Spring2.5.6 and jboss 7?

查看:61
本文介绍了cxf2.2.4 Spring2.5.6和jboss 7之间的Web Service冲突?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我如何在Spring 2.5.6 cxf2.2.4和jboss7上设置Web服务?

How do I want to set up web service on Spring 2.5.6 cxf2.2.4 and jboss7?

我知道jboss 7本机具有Web服务包.我的代码已经严重依赖apache cxf2.2.4框架,由于期限紧迫,我只是不想做太多更改.我将其放在webapp/META-INFO/下,以排除在jboss7中嵌入cxf2.4,该怎么办?

I know jboss 7 has web service package natively. My codes already heavily rely on apache cxf2.2.4 framework, I just don't want to change a lot due to tight deadline. I put this under webapp/META-INFO/ to exclude embeded cxf2.4 in jboss7, what else should I do?

<jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.0">
  <deployment>
    <exclusions>
       <module name="org.apache.cxf"/>
    </exclusions>
  </deployment>
</jboss-deployment-structure>

当我想使用当前的cxf2.2.4时,真正使我受阻的似乎是jboss7要求我在其中将MappedName属性添加到@Resource中.我从SVN下载了cxf2.2.4,并尝试更改源代码,但由于缺少一些依赖项(它们可能太旧而无法获取),因此未能制作一个新的jar.

Something really blocking me is when I want to use current cxf2.2.4, it seems that jboss7 requires me to add MappedName attribute to @Resource in it. I downloaded cxf2.2.4 from SVN and tried to change the source code, but I failed to make a new jar because lack of some dependencies(they may be too old to get).

或者我需要在jboss7上本机升级到cxf 2.4.1,这可能需要很长时间.

Or I need to upgrade to cxf 2.4.1 natively on jboss7, which may take quite a long time.

我使用cxf2.2.4收到的错误消息:

ERROR MESSAGE I got with cxf2.2.4:

03:04:51,418 INFO  [org.jboss.modules] JBoss Modules version

1.0.1.GA 03:04:52,219 INFO [org.jboss.msc] JBoss MSC版本1.0.0.GA 03:04:52,303信息[org.jboss.as] JBoss AS 7.0.0.Final"Lightning" 开始 03:04:54,194 INFO [org.jboss.as]创建http管理服务 使用网络接口(管理)端口(9990)securePort(-1) 03:04:54,209信息[org.jboss.as.logging]删除引导日志 处理程序 03:04:54,246 INFO [org.jboss.as.connector.subsystems.datasources] (控制器引导线程)​​部署兼容JDBC的驱动程序类 org.h2.Driver(1.2版) 03:04:54,266信息[org.jboss.as.connector.subsystems.datasources] (控制器引导线程)​​部署不兼容JDBC的驱动程序类 com.mysql.jdbc.Driver(5.1版) 03:04:54,282信息[org.jboss.as.clustering.infinispan.subsystem] (控制器引导线程)​​激活Infinispan子系统. 03:04:54,472 INFO [org.jboss.as.naming](控制器启动线程) 激活命名子系统 03:04:54,490 INFO [org.jboss.as.naming](MSC服务线程1-4) 启动命名服务 03:04:54,496 INFO [org.jboss.as.osgi](控制器启动线程) 激活OSGi子系统 03:04:54,522信息[org.jboss.as.security](控制器启动 线程)激活安全子系统 03:04:54,529 INFO [org.jboss.remoting](MSC服务线程1-4) JBoss Remoting版本3.2.0.Beta2 03:04:54,561 INFO [org.xnio](MSC服务线程1-4)XNIO 版本3.0.0.Beta3 03:04:54,588 INFO [org.xnio.nio](MSC服务线程1-4)XNIO NIO实现版本3.0.0.Beta3 03:04:55,006信息[org.jboss.as.ee](控制器引导线程) 激活EE子系统 03:04:55,141信息[org.apache.catalina.core.AprLifecycleListener] (MSC服务线程1-7)Apache Tomcat本机库,它允许 在生产环境中找不到最佳性能 java.library.path:C:\ Program文件 (x86)\ Java \ jdk1.6.0_23 \ bin;.; C:\ windows \ Sun \ Java \ bin; C:\ windows \ system32; C:\ windows; C:/Program 文件(x86)/Java/jdk1.6.0_23/bin/../jre/bin/client; C:/Program Files (x86)/Java/jdk1.6.0_23/bin/../jre/bin; C:/Program Files (x86)/Java/jdk1.6.0_23/bin/../jre/lib/i386; C:\ Program文件 (x86)\ Java \ jdk1.6.0_23; C:\ Program Files (x86)\ Java \ jdk1.6.0_23 \ bin; C:\ windows \ system32; C:\ windows; C:\ windows \ System32 \ Wbem; C:\ windows \ System32 \ WindowsPowerShell \ v1.0 \; C: \程序 Files \ SlikSvn \ bin \; C:\ Program Files(x86)\ Windows Live \ Shared; C:\ Program Files(x86)\ Windows7Master; C:\ Program Files (x86)\ Common Files \ Thunder Network \ KanKan \ Codecs; C:\ Program Files \ SlikSvn \ bin \; C:\ Program Files(x86)\ PuTTY; C:\ Program Files (x86)\ jboss-4.2.3.GA \ bin; C:\ Program Files(x86)\ MySQL \ MySQL Server 5.5 \ bin; C:\ Program文件(x86)\ EasyPHP-5.3.5.0 \ mysql \ bin; C:\ Program Files \ TortoiseSVN \ bin; D:\ maven303 \; D:\ maven303 \ bin; C:\ Program Files (x86)\ IDM计算机 解决方案\ UltraEdit \; D:\ FuhuAppStore \ software \ eclipse-jee-indigo-win32 \ eclipse; 03:04:55,178 INFO [org.jboss.as.remoting](MSC服务线程 1-7)聆听/127.0.0.1:9999 03:04:55,181 INFO [org.jboss.as.jmx.JMXConnectorService](MSC 服务线程1-2)启动远程JMX连接器 03:04:55,251 INFO [org.apache.coyote.http11.Http11Protocol](MSC 服务线程1-3)在http--127.0.0.1-8080上启动Coyote HTTP/1.1 03:04:55,468 INFO [org.jboss.as.connector](MSC服务线程 1-1)启动JCA子系统(JBoss IronJacamar 1.0.0.CR2) 03:04:55,524信息[org.jboss.as.connector.subsystems.datasources] (MSC服务线程1-1)绑定数据源 [java:jboss/datasources/ExampleDS] 03:04:55,524信息[org.jboss.as.connector.subsystems.datasources] (MSC服务线程1-4)绑定数据源 [java:jboss/datasources/musicstore] 03:04:55,525信息[org.jboss.as.connector.subsystems.datasources] (MSC服务线程1-6)绑定数据源[java:jdbc/mysql/appstore] 03:04:55,525信息[org.jboss.as.connector.subsystems.datasources] (MSC服务线程1-4)绑定数据源 [java:jdbc/mysql/appsubmission] 03:04:55,912 INFO [org.jboss.as.deployment](MSC服务线程 1-6)启动目录的FileSystemDeploymentService D:\ jboss-as-7.0.0.Final \ standalone \ deployments 03:04:55,948 INFO [org.jboss.as](控制器引导线程)​​JBoss AS 7.0.0.最终闪电"在5221毫秒内开始-在105的105中开始 服务(55项服务为被动或按需) 03:04:55,959 INFO [org.jboss.as.server.deployment](MSC服务 线程1-5)开始部署"asweb.war" 03:05:08,589警告[org.jboss.as.server.deployment](MSC服务 线程1-2)中的类路径条目xbean.jar "/D:/jboss-as-7.0.0.Final/bin/content/asweb.war/WEB-INF/lib/js.jar" 没有指向Class-Path引用的有效jar. 03:05:08,590警​​告[org.jboss.as.server.deployment](MSC服务 线程1-2)中的类路径条目jaxp-api.jar "/D:/jboss-as-7.0.0.Final/bin/content/asweb.war/WEB-INF/lib/saaj-api-1.3.jar" 没有指向Class-Path引用的有效jar. 03:05:08,590 WARN [org.jboss.as.server.deployment](MSC服务 线程1-2)中的类路径条目jax-qname.jar "/D:/jboss-as-7.0.0.Final/bin/content/asweb.war/WEB-INF/lib/saaj-api-1.3.jar" 没有指向Class-Path引用的有效jar. 03:05:08,590 WARN [org.jboss.as.server.deployment](MSC服务 线程1-2)中的类路径条目activation.jar "/D:/jboss-as-7.0.0.Final/bin/content/asweb.war/WEB-INF/lib/saaj-api-1.3.jar" 没有指向Class-Path引用的有效jar. 03:05:08,591警告[org.jboss.as.server.deployment](MSC服务 线程1-2)中的类路径条目servlet.jar "/D:/jboss-as-7.0.0.Final/bin/content/asweb.war/WEB-INF/lib/saaj-api-1.3.jar" 没有指向Class-Path引用的有效jar. 03:05:08,591警告[org.jboss.as.server.deployment](MSC服务 线程1-2)中的类路径条目saaj-api.jar "/D:/jboss-as-7.0.0.Final/bin/content/asweb.war/WEB-INF/lib/saaj-impl-1.3.2.jar" 没有指向Class-Path引用的有效jar. 03:05:08,591警告[org.jboss.as.server.deployment](MSC服务 线程1-2)中的类路径条目activation.jar "/D:/jboss-as-7.0.0.Final/bin/content/asweb.war/WEB-INF/lib/saaj-impl-1.3.2.jar" 没有指向Class-Path引用的有效jar. 03:05:08,592警告[org.jboss.as.server.deployment](MSC服务 线程1-2)中的类路径条目xercesImpl.jar "/D:/jboss-as-7.0.0.Final/bin/content/asweb.war/WEB-INF/lib/xalan.jar" 没有指向Class-Path引用的有效jar. 03:05:08,592警告[org.jboss.as.server.deployment](MSC服务 线程1-2)中的类路径条目xml-apis.jar "/D:/jboss-as-7.0.0.Final/bin/content/asweb.war/WEB-INF/lib/xalan.jar" 没有指向Class-Path引用的有效jar. 03:05:09,035 INFO [org.jboss.jpa](MSC服务线程1-2)已读取 用于asjpa的persistence.xml 03:05:09,473警告 [org.jboss.as.ee.component.ResourceInjectionAnnotationParsingProcessor] (MSC服务线程1-4)无法处理ENC名称的@Resource: 类上的org.apache.cxf.headers.HeaderManagerImpl/bus org.apache.cxf.headers.HeaderManagerImpl,因为它缺少查找" (或"mappedName")值,并且不是任何已知类型 03:05:09,473警告 [org.jboss.as.ee.component.ResourceInjectionAnnotationParsingProcessor] (MSC服务线程1-4)无法处理ENC名称的@Resource: 类上的org.apache.cxf.bus.resource.ResourceManagerImpl/bus org.apache.cxf.bus.resource.ResourceManagerImpl,因为它缺少 "lookup"(或"mappedName")值,并且不是任何已知类型 03:05:09,473警告 [org.jboss.as.ee.component.ResourceInjectionAnnotationParsingProcessor] (MSC服务线程1-4)无法处理ENC名称的@Resource: 类上的org.apache.cxf.wsdl11.WSDLManagerImpl/bus org.apache.cxf.wsdl11.WSDLManagerImpl,因为它缺少查找" (或"mappedName")值,并且不是任何已知类型 03:05:09,474警告 [org.jboss.as.ee.component.ResourceInjectionAnnotationParsingProcessor] (MSC服务线程1-4)无法处理ENC名称的@Resource: 类上的org.apache.cxf.buslifecycle.CXFBusLifeCycleManager/bus org.apache.cxf.buslifecycle.CXFBusLifeCycleManager,因为它丢失了 一个"lookup"(或"mappedName")值,并且不是任何已知类型 03:05:09,475警告 [org.jboss.as.ee.component.ResourceInjectionAnnotationParsingProcessor] (MSC服务线程1-4)无法处理ENC名称的@Resource: org.apache.cxf.jaxws.context.WebServiceContextResourceResolver/总线在 org.apache.cxf.jaxws.context.WebServiceContextResourceResolver类 因为它缺少"lookup"(或"mappedName")值,并且没有任何值 已知类型 03:05:09,475警告 [org.jboss.as.ee.component.ResourceInjectionAnnotationParsingProcessor] (MSC服务线程1-4)无法处理ENC名称的@Resource: 类上的org.apache.cxf.catalog.OASISCatalogManager/bus org.apache.cxf.catalog.OASISCatalogManager,因为它缺少 "lookup"(或"mappedName")值,并且不是任何已知类型 03:05:09,475警告 [org.jboss.as.ee.component.ResourceInjectionAnnotationParsingProcessor] (MSC服务线程1-4)无法处理ENC名称的@Resource: 类上的org.apache.cxf.ws.rm.RMManager/bus org.apache.cxf.ws.rm.RMManager,因为它缺少查找"(或 "mappedName")值,并且不是任何已知类型 03:05:09,476警告 [org.jboss.as.ee.component.ResourceInjectionAnnotationParsingProcessor] (MSC服务线程1-4)无法处理ENC名称为cxf的@Resource 自org.apache.cxf.ws.security.policy.WSSecurityPolicyLoader类以来 它缺少查找"(或"mappedName")值,并且未知 类型 03:05:09,476警告 [org.jboss.as.ee.component.ResourceInjectionAnnotationParsingProcessor] (MSC服务线程1-4)无法处理ENC名称的@Resource: 类上的org.apache.cxf.endpoint.ServerRegistryImpl/bus org.apache.cxf.endpoint.ServerRegistryImpl,因为它缺少 "lookup"(或"mappedName")值,并且不是任何已知类型 03:05:09,477警告 [org.jboss.as.ee.component.ResourceInjectionAnnotationParsingProcessor] (MSC服务线程1-4)无法处理ENC名称的@Resource: 类上的org.apache.cxf.workqueue.WorkQueueManagerImpl/bus org.apache.cxf.workqueue.WorkQueueManagerImpl,因为它缺少 "lookup"(或"mappedName")值,并且不是任何已知类型 03:05:09,478警告 [org.jboss.as.ee.component.ResourceInjectionAnnotationParsingProcessor] (MSC服务线程1-4)无法处理ENC名称的@Resource: 类上的org.apache.cxf.workqueue.WorkQueueManager org.apache.cxf.workqueue.AutomaticWorkQueueImpl,因为它缺少 "lookup"(或"mappedName")值,并且不是任何已知类型 03:05:09,478警告 [org.jboss.as.ee.component.ResourceInjectionAnnotationParsingProcessor] (MSC服务线程1-4)无法处理ENC名称的@Resource: org.apache.cxf.jaxrs.interceptor.AttachmentInputInterceptor/supportedTypes 在类org.apache.cxf.jaxrs.interceptor.AttachmentInputInterceptor上 因为它缺少"lookup"(或"mappedName")值,并且没有任何值 已知类型 03:05:09,479警告 [org.jboss.as.ee.component.ResourceInjectionAnnotationParsingProcessor] (MSC服务线程1-4)无法处理ENC名称的@Resource: 类上的org.apache.cxf.binding.BindingFactoryManagerImpl/bus org.apache.cxf.binding.BindingFactoryManagerImpl,因为它缺少 "lookup"(或"mappedName")值,并且不是任何已知类型 03:05:09,479警告 [org.jboss.as.ee.component.ResourceInjectionAnnotationParsingProcessor] (MSC服务线程1-4)无法处理ENC名称的@Resource: org.apache.cxf.binding.corba.wsdl.WSDLExtension在类上注册/总线 org.apache.cxf.binding.corba.wsdl.WSDLExtensionRegister,因为它是 缺少查找"(或"mappedName")值并且不是任何已知类型 03:05:09,479警告 [org.jboss.as.ee.component.ResourceInjectionAnnotationParsingProcessor] (MSC服务线程1-4)无法处理ENC名称的@Resource: 类org.apache.cxf.binding.corba.CorbaBindingFactory上的transportIds 因为它缺少"lookup"(或"mappedName")值,并且没有任何值 已知类型 03:05:09,480警告 [org.jboss.as.ee.component.ResourceInjectionAnnotationParsingProcessor] (MSC服务线程1-4)无法处理ENC名称为cxf的@Resource org.apache.cxf.binding.soap.SoapTransportFactory类,因为它是 缺少查找"(或"mappedName")值并且不是任何已知类型 03:05:09,480警告 [org.jboss.as.ee.component.ResourceInjectionAnnotationParsingProcessor] (MSC服务线程1-4)无法处理ENC名称的@Resource: 类上的org.apache.cxf.binding.AbstractBindingFactory/bus org.apache.cxf.binding.AbstractBindingFactory,因为它缺少一个 "lookup"(或"mappedName")值,并且不是任何已知类型 03:05:09,480警告 [org.jboss.as.ee.component.ResourceInjectionAnnotationParsingProcessor] (MSC服务线程1-4)无法处理ENC名称的@Resource: 类上的activationNamespaces org.apache.cxf.binding.AbstractBindingFactory,因为它缺少一个 "lookup"(或"mappedName")值,并且不是任何已知类型 03:05:09,481警告 [org.jboss.as.ee.component.ResourceInjectionAnnotationParsingProcessor] (MSC服务线程1-4)无法处理ENC名称为cxf的@Resource 自org.apache.cxf.management.jmx.InstrumentationManagerImpl类以来 它缺少查找"(或"mappedName")值,并且未知 类型 03:05:09,481警告 [org.jboss.as.ee.component.ResourceInjectionAnnotationParsingProcessor] (MSC服务线程1-4)无法处理ENC名称为cxf的@Resource org.apache.cxf.management.counters.CounterRepository类,因为它是 缺少查找"(或"mappedName")值并且不是任何已知类型 03:05:09,481警告 [org.jboss.as.ee.component.ResourceInjectionAnnotationParsingProcessor] (MSC服务线程1-4)无法处理ENC名称为cxf的@Resource org.apache.cxf.databinding.AbstractDataBinding类,因为它是 缺少查找"(或"mappedName")值并且不是任何已知类型 03:05:09,481警告 [org.jboss.as.ee.component.ResourceInjectionAnnotationParsingProcessor] (MSC服务线程1-4)无法处理ENC名称为cxf的@Resource org.apache.cxf.transport.jms.JMSTransportFactory类,因为它是 缺少查找"(或"mappedName")值并且不是任何已知类型 03:05:09,482警告 [org.jboss.as.ee.component.ResourceInjectionAnnotationParsingProcessor] (MSC服务线程1-4)无法处理ENC名称的@Resource: 类上的org.apache.cxf.transport.DestinationFactoryManagerImpl/bus org.apache.cxf.transport.DestinationFactoryManagerImpl,因为它是 缺少查找"(或"mappedName")值并且不是任何已知类型 03:05:09,482警告 [org.jboss.as.ee.component.ResourceInjectionAnnotationParsingProcessor] (MSC服务线程1-4)无法处理ENC名称为cxf的@Resource 类org.apache.cxf.transport.http_jetty.JettyHTTPTransportFactory 因为它缺少"lookup"(或"mappedName")值,并且没有任何值 已知类型 03:05:09,482警告 [org.jboss.as.ee.component.ResourceInjectionAnnotationParsingProcessor] (MSC服务线程1-4)无法处理ENC名称为cxf的@Resource 自org.apache.cxf.transport.http_jetty.JettyHTTPServerEngine类以来 它缺少查找"(或"mappedName")值,并且未知 类型 03:05:09,483警告 [org.jboss.as.ee.component.ResourceInjectionAnnotationParsingProcessor] (MSC服务线程1-4)无法处理ENC名称为cxf的@Resource 类org.apache.cxf.transport.http_jetty.JettyHTTPServerEngineFactory 因为它缺少"lookup"(或"mappedName")值,并且没有任何值 已知类型 03:05:09,483警告 [org.jboss.as.ee.component.ResourceInjectionAnnotationParsingProcessor] (MSC服务线程1-4)无法处理ENC名称的@Resource: 类上的org.apache.cxf.transport.ConduitInitiatorManagerImpl/bus org.apache.cxf.transport.ConduitInitiatorManagerImpl,因为它是 缺少查找"(或"mappedName")值并且不是任何已知类型 03:05:09,483警告 [org.jboss.as.ee.component.ResourceInjectionAnnotationParsingProcessor] (MSC服务线程1-4)无法处理ENC名称为cxf的@Resource 自org.apache.cxf.transport.servlet.ServletTransportFactory类以来 它缺少查找"(或"mappedName")值,并且未知 类型 03:05:09,484警告 [org.jboss.as.ee.component.ResourceInjectionAnnotationParsingProcessor] (MSC服务线程1-4)无法处理ENC名称的@Resource: 类上的org.apache.cxf.transport.http.QueryHandlerRegistryImpl/bus org.apache.cxf.transport.http.QueryHandlerRegistryImpl,因为它是 缺少查找"(或"mappedName")值并且不是任何已知类型 03:05:09,484警告 [org.jboss.as.ee.component.ResourceInjectionAnnotationParsingProcessor] (MSC服务线程1-4)无法处理ENC名称为cxf的@Resource 自org.apache.cxf.transport.http.AbstractHTTPTransportFactory类以来 它缺少查找"(或"mappedName")值,并且未知 类型 03:05:09,484警告 [org.jboss.as.ee.component.ResourceInjectionAnnotationParsingProcessor] (MSC服务线程1-4)无法处理ENC名称为cxf的@Resource org.apache.cxf.transport.local.LocalTransportFactory类,因为它是 缺少查找"(或"mappedName")值并且不是任何已知类型 03:05:11,089 INFO [org.jboss.as.connector.deployers.jdbc](MSC 服务线程1-2)部署不兼容JDBC的驱动程序类 com.mysql.jdbc.Driver(5.1版) 03:05:11,383信息[org.jboss.as.server.controller] (DeploymentScanner-threads-2)"asweb.war"的部署已滚动 返回失败消息{缺少服务/不可用的服务 依赖项" => [[jboss.persistenceunit.\"asweb.war#asjpa \"缺少[ jboss.data-source.java:/]]} 03:05:11,384 INFO [org.jboss.as.controller] (DeploymentScanner-threads-2)服务状态报告 新的缺少/不满意的依赖项: 服务jboss.data-source.java:/(缺少)

1.0.1.GA 03:04:52,219 INFO [org.jboss.msc] JBoss MSC version 1.0.0.GA 03:04:52,303 INFO [org.jboss.as] JBoss AS 7.0.0.Final "Lightning" starting 03:04:54,194 INFO [org.jboss.as] creating http management service using network interface (management) port (9990) securePort (-1) 03:04:54,209 INFO [org.jboss.as.logging] Removing bootstrap log handlers 03:04:54,246 INFO [org.jboss.as.connector.subsystems.datasources] (Controller Boot Thread) Deploying JDBC-compliant driver class org.h2.Driver (version 1.2) 03:04:54,266 INFO [org.jboss.as.connector.subsystems.datasources] (Controller Boot Thread) Deploying non-JDBC-compliant driver class com.mysql.jdbc.Driver (version 5.1) 03:04:54,282 INFO [org.jboss.as.clustering.infinispan.subsystem] (Controller Boot Thread) Activating Infinispan subsystem. 03:04:54,472 INFO [org.jboss.as.naming] (Controller Boot Thread) Activating Naming Subsystem 03:04:54,490 INFO [org.jboss.as.naming] (MSC service thread 1-4) Starting Naming Service 03:04:54,496 INFO [org.jboss.as.osgi] (Controller Boot Thread) Activating OSGi Subsystem 03:04:54,522 INFO [org.jboss.as.security] (Controller Boot Thread) Activating Security Subsystem 03:04:54,529 INFO [org.jboss.remoting] (MSC service thread 1-4) JBoss Remoting version 3.2.0.Beta2 03:04:54,561 INFO [org.xnio] (MSC service thread 1-4) XNIO Version 3.0.0.Beta3 03:04:54,588 INFO [org.xnio.nio] (MSC service thread 1-4) XNIO NIO Implementation Version 3.0.0.Beta3 03:04:55,006 INFO [org.jboss.as.ee] (Controller Boot Thread) Activating EE subsystem 03:04:55,141 INFO [org.apache.catalina.core.AprLifecycleListener] (MSC service thread 1-7) The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files (x86)\Java\jdk1.6.0_23\bin;.;C:\windows\Sun\Java\bin;C:\windows\system32;C:\windows;C:/Program Files (x86)/Java/jdk1.6.0_23/bin/../jre/bin/client;C:/Program Files (x86)/Java/jdk1.6.0_23/bin/../jre/bin;C:/Program Files (x86)/Java/jdk1.6.0_23/bin/../jre/lib/i386;C:\Program Files (x86)\Java\jdk1.6.0_23;C:\Program Files (x86)\Java\jdk1.6.0_23\bin;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\SlikSvn\bin\;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files (x86)\Windows7Master;C:\Program Files (x86)\Common Files\Thunder Network\KanKan\Codecs;C:\Program Files\SlikSvn\bin\;C:\Program Files (x86)\PuTTY;C:\Program Files (x86)\jboss-4.2.3.GA\bin;C:\Program Files (x86)\MySQL\MySQL Server 5.5\bin;C:\Program Files (x86)\EasyPHP-5.3.5.0\mysql\bin;C:\Program Files\TortoiseSVN\bin;D:\maven303\;D:\maven303\bin;C:\Program Files (x86)\IDM Computer Solutions\UltraEdit\;D:\FuhuAppStore\software\eclipse-jee-indigo-win32\eclipse; 03:04:55,178 INFO [org.jboss.as.remoting] (MSC service thread 1-7) Listening on /127.0.0.1:9999 03:04:55,181 INFO [org.jboss.as.jmx.JMXConnectorService] (MSC service thread 1-2) Starting remote JMX connector 03:04:55,251 INFO [org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-3) Starting Coyote HTTP/1.1 on http--127.0.0.1-8080 03:04:55,468 INFO [org.jboss.as.connector] (MSC service thread 1-1) Starting JCA Subsystem (JBoss IronJacamar 1.0.0.CR2) 03:04:55,524 INFO [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-1) Bound data source [java:jboss/datasources/ExampleDS] 03:04:55,524 INFO [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-4) Bound data source [java:jboss/datasources/musicstore] 03:04:55,525 INFO [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-6) Bound data source [java:jdbc/mysql/appstore] 03:04:55,525 INFO [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-4) Bound data source [java:jdbc/mysql/appsubmission] 03:04:55,912 INFO [org.jboss.as.deployment] (MSC service thread 1-6) Started FileSystemDeploymentService for directory D:\jboss-as-7.0.0.Final\standalone\deployments 03:04:55,948 INFO [org.jboss.as] (Controller Boot Thread) JBoss AS 7.0.0.Final "Lightning" started in 5221ms - Started 105 of 160 services (55 services are passive or on-demand) 03:04:55,959 INFO [org.jboss.as.server.deployment] (MSC service thread 1-5) Starting deployment of "asweb.war" 03:05:08,589 WARN [org.jboss.as.server.deployment] (MSC service thread 1-2) Class Path entry xbean.jar in "/D:/jboss-as-7.0.0.Final/bin/content/asweb.war/WEB-INF/lib/js.jar" does not point to a valid jar for a Class-Path reference. 03:05:08,590 WARN [org.jboss.as.server.deployment] (MSC service thread 1-2) Class Path entry jaxp-api.jar in "/D:/jboss-as-7.0.0.Final/bin/content/asweb.war/WEB-INF/lib/saaj-api-1.3.jar" does not point to a valid jar for a Class-Path reference. 03:05:08,590 WARN [org.jboss.as.server.deployment] (MSC service thread 1-2) Class Path entry jax-qname.jar in "/D:/jboss-as-7.0.0.Final/bin/content/asweb.war/WEB-INF/lib/saaj-api-1.3.jar" does not point to a valid jar for a Class-Path reference. 03:05:08,590 WARN [org.jboss.as.server.deployment] (MSC service thread 1-2) Class Path entry activation.jar in "/D:/jboss-as-7.0.0.Final/bin/content/asweb.war/WEB-INF/lib/saaj-api-1.3.jar" does not point to a valid jar for a Class-Path reference. 03:05:08,591 WARN [org.jboss.as.server.deployment] (MSC service thread 1-2) Class Path entry servlet.jar in "/D:/jboss-as-7.0.0.Final/bin/content/asweb.war/WEB-INF/lib/saaj-api-1.3.jar" does not point to a valid jar for a Class-Path reference. 03:05:08,591 WARN [org.jboss.as.server.deployment] (MSC service thread 1-2) Class Path entry saaj-api.jar in "/D:/jboss-as-7.0.0.Final/bin/content/asweb.war/WEB-INF/lib/saaj-impl-1.3.2.jar" does not point to a valid jar for a Class-Path reference. 03:05:08,591 WARN [org.jboss.as.server.deployment] (MSC service thread 1-2) Class Path entry activation.jar in "/D:/jboss-as-7.0.0.Final/bin/content/asweb.war/WEB-INF/lib/saaj-impl-1.3.2.jar" does not point to a valid jar for a Class-Path reference. 03:05:08,592 WARN [org.jboss.as.server.deployment] (MSC service thread 1-2) Class Path entry xercesImpl.jar in "/D:/jboss-as-7.0.0.Final/bin/content/asweb.war/WEB-INF/lib/xalan.jar" does not point to a valid jar for a Class-Path reference. 03:05:08,592 WARN [org.jboss.as.server.deployment] (MSC service thread 1-2) Class Path entry xml-apis.jar in "/D:/jboss-as-7.0.0.Final/bin/content/asweb.war/WEB-INF/lib/xalan.jar" does not point to a valid jar for a Class-Path reference. 03:05:09,035 INFO [org.jboss.jpa] (MSC service thread 1-2) read persistence.xml for asjpa 03:05:09,473 WARN [org.jboss.as.ee.component.ResourceInjectionAnnotationParsingProcessor] (MSC service thread 1-4) Can't handle @Resource for ENC name: org.apache.cxf.headers.HeaderManagerImpl/bus on class org.apache.cxf.headers.HeaderManagerImpl since it's missing a "lookup" (or "mappedName") value and isn't of any known type 03:05:09,473 WARN [org.jboss.as.ee.component.ResourceInjectionAnnotationParsingProcessor] (MSC service thread 1-4) Can't handle @Resource for ENC name: org.apache.cxf.bus.resource.ResourceManagerImpl/bus on class org.apache.cxf.bus.resource.ResourceManagerImpl since it's missing a "lookup" (or "mappedName") value and isn't of any known type 03:05:09,473 WARN [org.jboss.as.ee.component.ResourceInjectionAnnotationParsingProcessor] (MSC service thread 1-4) Can't handle @Resource for ENC name: org.apache.cxf.wsdl11.WSDLManagerImpl/bus on class org.apache.cxf.wsdl11.WSDLManagerImpl since it's missing a "lookup" (or "mappedName") value and isn't of any known type 03:05:09,474 WARN [org.jboss.as.ee.component.ResourceInjectionAnnotationParsingProcessor] (MSC service thread 1-4) Can't handle @Resource for ENC name: org.apache.cxf.buslifecycle.CXFBusLifeCycleManager/bus on class org.apache.cxf.buslifecycle.CXFBusLifeCycleManager since it's missing a "lookup" (or "mappedName") value and isn't of any known type 03:05:09,475 WARN [org.jboss.as.ee.component.ResourceInjectionAnnotationParsingProcessor] (MSC service thread 1-4) Can't handle @Resource for ENC name: org.apache.cxf.jaxws.context.WebServiceContextResourceResolver/bus on class org.apache.cxf.jaxws.context.WebServiceContextResourceResolver since it's missing a "lookup" (or "mappedName") value and isn't of any known type 03:05:09,475 WARN [org.jboss.as.ee.component.ResourceInjectionAnnotationParsingProcessor] (MSC service thread 1-4) Can't handle @Resource for ENC name: org.apache.cxf.catalog.OASISCatalogManager/bus on class org.apache.cxf.catalog.OASISCatalogManager since it's missing a "lookup" (or "mappedName") value and isn't of any known type 03:05:09,475 WARN [org.jboss.as.ee.component.ResourceInjectionAnnotationParsingProcessor] (MSC service thread 1-4) Can't handle @Resource for ENC name: org.apache.cxf.ws.rm.RMManager/bus on class org.apache.cxf.ws.rm.RMManager since it's missing a "lookup" (or "mappedName") value and isn't of any known type 03:05:09,476 WARN [org.jboss.as.ee.component.ResourceInjectionAnnotationParsingProcessor] (MSC service thread 1-4) Can't handle @Resource for ENC name: cxf on class org.apache.cxf.ws.security.policy.WSSecurityPolicyLoader since it's missing a "lookup" (or "mappedName") value and isn't of any known type 03:05:09,476 WARN [org.jboss.as.ee.component.ResourceInjectionAnnotationParsingProcessor] (MSC service thread 1-4) Can't handle @Resource for ENC name: org.apache.cxf.endpoint.ServerRegistryImpl/bus on class org.apache.cxf.endpoint.ServerRegistryImpl since it's missing a "lookup" (or "mappedName") value and isn't of any known type 03:05:09,477 WARN [org.jboss.as.ee.component.ResourceInjectionAnnotationParsingProcessor] (MSC service thread 1-4) Can't handle @Resource for ENC name: org.apache.cxf.workqueue.WorkQueueManagerImpl/bus on class org.apache.cxf.workqueue.WorkQueueManagerImpl since it's missing a "lookup" (or "mappedName") value and isn't of any known type 03:05:09,478 WARN [org.jboss.as.ee.component.ResourceInjectionAnnotationParsingProcessor] (MSC service thread 1-4) Can't handle @Resource for ENC name: org.apache.cxf.workqueue.WorkQueueManager on class org.apache.cxf.workqueue.AutomaticWorkQueueImpl since it's missing a "lookup" (or "mappedName") value and isn't of any known type 03:05:09,478 WARN [org.jboss.as.ee.component.ResourceInjectionAnnotationParsingProcessor] (MSC service thread 1-4) Can't handle @Resource for ENC name: org.apache.cxf.jaxrs.interceptor.AttachmentInputInterceptor/supportedTypes on class org.apache.cxf.jaxrs.interceptor.AttachmentInputInterceptor since it's missing a "lookup" (or "mappedName") value and isn't of any known type 03:05:09,479 WARN [org.jboss.as.ee.component.ResourceInjectionAnnotationParsingProcessor] (MSC service thread 1-4) Can't handle @Resource for ENC name: org.apache.cxf.binding.BindingFactoryManagerImpl/bus on class org.apache.cxf.binding.BindingFactoryManagerImpl since it's missing a "lookup" (or "mappedName") value and isn't of any known type 03:05:09,479 WARN [org.jboss.as.ee.component.ResourceInjectionAnnotationParsingProcessor] (MSC service thread 1-4) Can't handle @Resource for ENC name: org.apache.cxf.binding.corba.wsdl.WSDLExtensionRegister/bus on class org.apache.cxf.binding.corba.wsdl.WSDLExtensionRegister since it's missing a "lookup" (or "mappedName") value and isn't of any known type 03:05:09,479 WARN [org.jboss.as.ee.component.ResourceInjectionAnnotationParsingProcessor] (MSC service thread 1-4) Can't handle @Resource for ENC name: transportIds on class org.apache.cxf.binding.corba.CorbaBindingFactory since it's missing a "lookup" (or "mappedName") value and isn't of any known type 03:05:09,480 WARN [org.jboss.as.ee.component.ResourceInjectionAnnotationParsingProcessor] (MSC service thread 1-4) Can't handle @Resource for ENC name: cxf on class org.apache.cxf.binding.soap.SoapTransportFactory since it's missing a "lookup" (or "mappedName") value and isn't of any known type 03:05:09,480 WARN [org.jboss.as.ee.component.ResourceInjectionAnnotationParsingProcessor] (MSC service thread 1-4) Can't handle @Resource for ENC name: org.apache.cxf.binding.AbstractBindingFactory/bus on class org.apache.cxf.binding.AbstractBindingFactory since it's missing a "lookup" (or "mappedName") value and isn't of any known type 03:05:09,480 WARN [org.jboss.as.ee.component.ResourceInjectionAnnotationParsingProcessor] (MSC service thread 1-4) Can't handle @Resource for ENC name: activationNamespaces on class org.apache.cxf.binding.AbstractBindingFactory since it's missing a "lookup" (or "mappedName") value and isn't of any known type 03:05:09,481 WARN [org.jboss.as.ee.component.ResourceInjectionAnnotationParsingProcessor] (MSC service thread 1-4) Can't handle @Resource for ENC name: cxf on class org.apache.cxf.management.jmx.InstrumentationManagerImpl since it's missing a "lookup" (or "mappedName") value and isn't of any known type 03:05:09,481 WARN [org.jboss.as.ee.component.ResourceInjectionAnnotationParsingProcessor] (MSC service thread 1-4) Can't handle @Resource for ENC name: cxf on class org.apache.cxf.management.counters.CounterRepository since it's missing a "lookup" (or "mappedName") value and isn't of any known type 03:05:09,481 WARN [org.jboss.as.ee.component.ResourceInjectionAnnotationParsingProcessor] (MSC service thread 1-4) Can't handle @Resource for ENC name: cxf on class org.apache.cxf.databinding.AbstractDataBinding since it's missing a "lookup" (or "mappedName") value and isn't of any known type 03:05:09,481 WARN [org.jboss.as.ee.component.ResourceInjectionAnnotationParsingProcessor] (MSC service thread 1-4) Can't handle @Resource for ENC name: cxf on class org.apache.cxf.transport.jms.JMSTransportFactory since it's missing a "lookup" (or "mappedName") value and isn't of any known type 03:05:09,482 WARN [org.jboss.as.ee.component.ResourceInjectionAnnotationParsingProcessor] (MSC service thread 1-4) Can't handle @Resource for ENC name: org.apache.cxf.transport.DestinationFactoryManagerImpl/bus on class org.apache.cxf.transport.DestinationFactoryManagerImpl since it's missing a "lookup" (or "mappedName") value and isn't of any known type 03:05:09,482 WARN [org.jboss.as.ee.component.ResourceInjectionAnnotationParsingProcessor] (MSC service thread 1-4) Can't handle @Resource for ENC name: cxf on class org.apache.cxf.transport.http_jetty.JettyHTTPTransportFactory since it's missing a "lookup" (or "mappedName") value and isn't of any known type 03:05:09,482 WARN [org.jboss.as.ee.component.ResourceInjectionAnnotationParsingProcessor] (MSC service thread 1-4) Can't handle @Resource for ENC name: cxf on class org.apache.cxf.transport.http_jetty.JettyHTTPServerEngine since it's missing a "lookup" (or "mappedName") value and isn't of any known type 03:05:09,483 WARN [org.jboss.as.ee.component.ResourceInjectionAnnotationParsingProcessor] (MSC service thread 1-4) Can't handle @Resource for ENC name: cxf on class org.apache.cxf.transport.http_jetty.JettyHTTPServerEngineFactory since it's missing a "lookup" (or "mappedName") value and isn't of any known type 03:05:09,483 WARN [org.jboss.as.ee.component.ResourceInjectionAnnotationParsingProcessor] (MSC service thread 1-4) Can't handle @Resource for ENC name: org.apache.cxf.transport.ConduitInitiatorManagerImpl/bus on class org.apache.cxf.transport.ConduitInitiatorManagerImpl since it's missing a "lookup" (or "mappedName") value and isn't of any known type 03:05:09,483 WARN [org.jboss.as.ee.component.ResourceInjectionAnnotationParsingProcessor] (MSC service thread 1-4) Can't handle @Resource for ENC name: cxf on class org.apache.cxf.transport.servlet.ServletTransportFactory since it's missing a "lookup" (or "mappedName") value and isn't of any known type 03:05:09,484 WARN [org.jboss.as.ee.component.ResourceInjectionAnnotationParsingProcessor] (MSC service thread 1-4) Can't handle @Resource for ENC name: org.apache.cxf.transport.http.QueryHandlerRegistryImpl/bus on class org.apache.cxf.transport.http.QueryHandlerRegistryImpl since it's missing a "lookup" (or "mappedName") value and isn't of any known type 03:05:09,484 WARN [org.jboss.as.ee.component.ResourceInjectionAnnotationParsingProcessor] (MSC service thread 1-4) Can't handle @Resource for ENC name: cxf on class org.apache.cxf.transport.http.AbstractHTTPTransportFactory since it's missing a "lookup" (or "mappedName") value and isn't of any known type 03:05:09,484 WARN [org.jboss.as.ee.component.ResourceInjectionAnnotationParsingProcessor] (MSC service thread 1-4) Can't handle @Resource for ENC name: cxf on class org.apache.cxf.transport.local.LocalTransportFactory since it's missing a "lookup" (or "mappedName") value and isn't of any known type 03:05:11,089 INFO [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-2) Deploying non-JDBC-compliant driver class com.mysql.jdbc.Driver (version 5.1) 03:05:11,383 INFO [org.jboss.as.server.controller] (DeploymentScanner-threads - 2) Deployment of "asweb.war" was rolled back with failure message {"Services with missing/unavailable dependencies" => ["jboss.persistenceunit.\"asweb.war#asjpa\" missing [ jboss.data-source.java:/ ]"]} 03:05:11,384 INFO [org.jboss.as.controller] (DeploymentScanner-threads - 2) Service status report New missing/unsatisfied dependencies: service jboss.data-source.java:/ (missing)

03:05:11,386 ERROR [org.jboss.as.deployment]

(DeploymentScanner-threads-1){复合操作失败,并且之前 回滚.失败的步骤:"=> {"操作步骤2"=> {"服务 缺少/不可用的依赖项"=> ["jboss.persistenceunit.\" asweb.war#asjpa \缺少[ jboss.data-source.java:/]]}}} 03:05:20,618 INFO [org.jboss.as.server.deployment](MSC服务 线程1-6)在9226毫秒内停止部署asweb.war 03:05:20,619 INFO [org.jboss.as.controller](MSC服务线程 1-8)服务状态报告 新近更正的服务: 服务jboss.data-source.java:/(不再需要)

(DeploymentScanner-threads - 1) {"Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"Services with missing/unavailable dependencies" => ["jboss.persistenceunit.\"asweb.war#asjpa\" missing [ jboss.data-source.java:/ ]"]}}} 03:05:20,618 INFO [org.jboss.as.server.deployment] (MSC service thread 1-6) Stopped deployment asweb.war in 9226ms 03:05:20,619 INFO [org.jboss.as.controller] (MSC service thread 1-8) Service status report Newly corrected services: service jboss.data-source.java:/ (no longer required)

推荐答案

我遇到了与在Tomcat中部署独立的WAR相同的问题,但后来转向了Jboss7AS.在所有搜索甚至Jboss员工的支持告诉我在WAR中不要使用CXF时,请使用Jboss Jax-WS"后,我才能正常工作.在我的/WEB-INF/jboss-deployment-structure.xml中,我选择排除所有EE软件包,这使我的WAR工作刚刚发现是在Tomcat上进行的,而在Jboss7 AS上进行了部署.

I had the same issue as I was deploying a standalone WAR in Tomcat but was moving to Jboss7AS. After all the sesarching and even Jboss employee support telling me "don't use CXF in your WAR use the Jboss Jax-WS" I got it working. In my /WEB-INF/jboss-deployment-structure.xml I chose to exclude all EE packages and this made my WAR work just find that was deploying in Tomcat deploy on Jboss7 AS.

<jboss-deployment-structure>
    <!-- For JBoss7AS and WS-Security/CXF to play nice must exclude the EEjars -->
    <deployment>
        <exclusions>
            <module name="javaee.api" />
        </exclusions>
    </deployment>
</jboss-deployment-structure>

这篇关于cxf2.2.4 Spring2.5.6和jboss 7之间的Web Service冲突?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆