2014-09-04 79 views
0

我有Maven項目和我正在使用(wildfly-8.1.0.Final),除了使用(jdk1.7.0_67)。讓我的項目戰爭結束後,我嘗試運行的服務器,但始終我有以下幾點:jaxws_asm/package-info:不支持major.minor版本0.0

16:04:51,518 INFO [org.apache.cxf.service.factory.ReflectionServiceFactoryBean] (MSC service thread 1-4) Creating Service {http://www.jboss.org/jbossas/quickstarts/wshelloworld/HelloWorld}HelloWorldService from class org.jboss.as.quickstarts.wshelloworld.HelloWorldService 
16:04:51,566 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-4) MSC000001: Failed to start service jboss.deployment.unit."helloWorld.war".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.unit."helloWorld.war".INSTALL: JBAS018733: Failed to process phase INSTALL of deployment "helloWorld.war" 
     at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:166) [wildfly-server-8.1.0.Final.jar:8.1.0.Final] 
     at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948) [jboss-msc-1.2.2.Final.jar:1.2.2.Final] 
     at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881) [jboss-msc-1.2.2.Final.jar:1.2.2.Final] 
     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_67] 
     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_67] 
     at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_67] 
Caused by: java.lang.UnsupportedClassVersionError: org/jboss/as/quickstarts/wshelloworld/jaxws_asm/package-info : Unsupported major.minor version 0.0 
     at java.lang.ClassLoader.defineClass1(Native Method) [rt.jar:1.7.0_67] 
     at java.lang.ClassLoader.defineClass(ClassLoader.java:800) [rt.jar:1.7.0_67] 
     at java.lang.ClassLoader.defineClass(ClassLoader.java:643) [rt.jar:1.7.0_67] 
     at org.apache.cxf.common.util.ASMHelper$TypeHelperClassLoader.defineClass(ASMHelper.java:367) 
     at org.apache.cxf.common.util.ASMHelper.loadClass(ASMHelper.java:316) 
     at org.apache.cxf.jaxws.WrapperClassGenerator.generatePackageInfo(WrapperClassGenerator.java:267) 
     at org.apache.cxf.jaxws.WrapperClassGenerator.createWrapperClass(WrapperClassGenerator.java:169) 
     at org.apache.cxf.jaxws.WrapperClassGenerator.generate(WrapperClassGenerator.java:122) 
     at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.generatedWrapperBeanClass(JaxWsServiceFactoryBean.java:683) 
     at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.getExtraClass(JaxWsServiceFactoryBean.java:653) 
     at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFromClass(ReflectionServiceFactoryBean.java:484) 
     at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.buildServiceFromClass(JaxWsServiceFactoryBean.java:704) 
     at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:550) 
     at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:265) 
     at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.create(JaxWsServiceFactoryBean.java:215) 
     at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:102) 
     at org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:159) 
     at org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBean.java:211) 
     at org.apache.cxf.jaxws.EndpointImpl.getServer(EndpointImpl.java:456) 
     at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:334) 
     at org.jboss.wsf.stack.cxf.deployment.EndpointImpl.doPublish(EndpointImpl.java:66) 
     at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:251) 
     at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:539) 
     at org.jboss.wsf.stack.cxf.configuration.NonSpringBusHolder.configure(NonSpringBusHolder.java:117) 
     at org.jboss.wsf.stack.cxf.deployment.aspect.BusDeploymentAspect.startDeploymentBus(BusDeploymentAspect.java:137) 
     at org.jboss.wsf.stack.cxf.deployment.aspect.BusDeploymentAspect.start(BusDeploymentAspect.java:69) 
     at org.jboss.as.webservices.deployers.AspectDeploymentProcessor.deploy(AspectDeploymentProcessor.java:75) 
     at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:159) [wildfly-server-8.1.0.Final.jar:8.1.0.Final] 
     ... 5 more 

任何幫助?

+0

該包信息文件中包含什麼內容?你如何建立你的項目,因爲這可能是錯誤地生成包信息的構建問題。 這是野蠅的標準快速入門嗎?由於我無法在官方helloworld-ws快速入門中找到這個軟件包... – ctomc 2014-09-05 14:01:31

回答

0

我已經管理解決這個問題。在我的pom.xml我剛剛更換這種依賴性

<dependency> 
    <groupId>org.apache.cxf</groupId> 
    <artifactId>cxf-bundle</artifactId> 
    <version>2.2.9</version> 
</dependency> 

與此

<dependency> 
    <groupId>org.apache.cxf</groupId> 
    <artifactId>cxf-bundle-jaxrs</artifactId> 
    <version>2.7.0</version> 
</dependency> 
0

我有同樣的問題,這是wildfly帶有自己的ASM庫,所以如果你的代碼有任何相關性這取決於asm,你的部署將asm.jar打包在你的ear/jar中,並且當你在wildfly ...衝突和問題中部署它們。

如果您需要包括取決於ASM的依賴,只是包括,但不包括ASM,如:

<dependency> 
    <groupId>org.codehaus.groovy</groupId> 
    <artifactId>groovy</artifactId> 
    <version>${groovy.version}</version> 
    <exclusions> 
     <exclusion> 
      <artifactId>asm</artifactId> 
      <groupId>asm</groupId> 
     </exclusion> 
     <exclusion> 
      <artifactId>asm-util</artifactId> 
      <groupId>asm</groupId> 
     </exclusion> 
     <exclusion> 
      <artifactId>asm-analysis</artifactId> 
      <groupId>asm</groupId> 
     </exclusion> 
     <exclusion> 
      <artifactId>asm-tree</artifactId> 
      <groupId>asm</groupId> 
     </exclusion> 
    </exclusions> 
</dependency> 

這是我的問題,我是用我的實用程序模塊的常規依賴和我的事業。 jar在我的EJB中,所以當我調用在wildfly10中部署的EJB(一個Web服務使用者)時...... Boooom我得到了標題的錯誤。

排除asm依賴關係後,所有工作都完美無缺。

注意:使用「mvn dependency:tree」查找包含asm作爲依賴關係的包

相關問題