• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Failed to process phase POST_MODULE of subdeployment java 1.6,jersey 1.x and Jboss 7.1.0

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to deploy a restful webservice using java 1.6 , jersey 1.x and Jboss 7.1.0 version. I am able to compile my code but i am getting the following error when i deploy. I updated the web.xml to disable the resteasy use by jboss by adding the following and also tried to update the standalone.xml to disable jax-rs: Kindly help.
<context-param>
<param-name>resteasy.scan</param-name>
<param-value>false</param-value>
</context-param>
<context-param>
<param-name>resteasy.scan.providers</param-name>
<param-value>false</param-value>
</context-param>
<context-param>
<param-name>resteasy.scan.resources</param-name>
<param-value>false</param-value>
</context-param>

Error shown below:

10:37:14,087 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC00001: Failed to start service jboss.deployment.subunit."JBossRestLayerEAR.ear"."JBossRestLayer.war".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.subunit."JBossRestLayerEAR.ear"."JBossRestLayer.war".POST_MODULE: Failed to process phase POST_MODULE of subdeployment "JBossRestLayer.war" of deployment "JBossRestLayerEAR.ear"
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:119) [jboss-as-server-7.1.0.Final.jar:7.1.0.Final]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_38]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_38]
at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_38]
Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS011093: Could not load component class com.sun.jersey.spi.container.servlet.ServletContainer
at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.processComponentConfig(InterceptorAnnotationProcessor.java:113)
at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.deploy(InterceptorAnnotationProcessor.java:54)
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113) [jboss-as-server-7.1.0.Final.jar:7.1.0.Final]
... 5 more
Caused by: java.lang.ClassNotFoundException: com.sun.jersey.spi.container.servlet.ServletContainer from [Module "deployment.JBossRestLayerEAR.ear.JBossRestLayer.war:main" from Service Module Loader]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190)
at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468)
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456)
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120)
at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.processComponentConfig(InterceptorAnnotationProcessor.java:111)
... 7 more

10:37:14,321 INFO [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015870: Deploy of deployment "JBossRestLayerEAR.ear" was rolled back with failure message {"JBAS014671: Failed services" => {"jboss.deployment.subunit.\"JBossRestLayerEAR.ear\".\"JBossRestLayer.war\".POST_MODULE" => "org.jboss.msc.service.StartException in service jboss.deployment.subunit.\"JBossRestLayerEAR.ear\".\"JBossRestLayer.war\".POST_MODULE: [color=red]Failed to process phase POST_MODULE of subdeployment \"JBossRestLayer.war\" of deployment \"JBossRestLayerEAR.ear\""}}[/color]10:37:14,321 INFO [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015877: Stopped deployment JBossRestLayer.war in 6ms
10:37:14,321 INFO [org.jboss.as.server.deployment] (MSC service thread 1-7) JBAS015877: Stopped deployment JBossRestLayerEAR.ear in 8ms
10:37:14,321 INFO [org.jboss.as.controller] (DeploymentScanner-threads - 2) JBAS014774: Service status report
JBAS014777: Services which failed to start: service jboss.deployment.subunit."JBossRestLayerEAR.ear"."JBossRestLayer.war".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.subunit."JBossRestLayerEAR.ear"."JBossRestLayer.war".POST_MODULE: Failed to process phase POST_MODULE of subdeployment "JBossRestLayer.war" of deployment "JBossRestLayerEAR.ear"

10:37:14,321 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) {"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"JBAS014671: Failed services" => {"jboss.deployment.subunit.\"JBossRestLayerEAR.ear\".\"JBossRestLayer.war\".POST_MODULE" => "org.jboss.msc.service.StartException in service jboss.deployment.subunit.\"JBossRestLayerEAR.ear\".\"JBossRestLayer.war\".POST_MODULE: Failed to process phase POST_MODULE of subdeployment \"JBossRestLayer.war\" of deployment \"JBossRestLayerEAR.ear\""}}}}
 
kr reddy
Greenhorn
Posts: 4
  • Likes 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I was able to resolve this by adding the jars explicitly in Deployment assembly of project properties in eclipse. Also, i disabled the references to jaxrs from Standalone.xml by commenting the following lines:
<extension module="org.jboss.as.jaxrs"/>
<subsystem xmlns="urn:jboss:domain:jaxrs:1.0"/>
 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi morning, can someone help me to resolve my problem on deploying my ZK spreadsheets project? I try to run my project but suddenly the result only shows my spreadsheet without any error statement. This is the console output:

10:25:39,537 INFO [org.jboss.modules] (main) JBoss Modules version 1.3.3.Final
10:25:39,826 INFO [org.jboss.msc] (main) JBoss MSC version 1.2.2.Final
10:25:39,914 INFO [org.jboss.as] (MSC service thread 1-6) JBAS015899: WildFly 8.2.0.Final "Tweek" starting
10:25:41,291 INFO [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) JBAS015003: Found liya1.war in deployment directory. To trigger deployment create a file called liya1.war.dodeploy
10:25:41,292 INFO [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) JBAS015003: Found FoodOrder.war in deployment directory. To trigger deployment create a file called FoodOrder.war.dodeploy
10:25:41,292 INFO [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) JBAS015003: Found Test1.war in deployment directory. To trigger deployment create a file called Test1.war.dodeploy
10:25:41,293 INFO [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) JBAS015003: Found testing.war in deployment directory. To trigger deployment create a file called testing.war.dodeploy
10:25:41,293 INFO [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) JBAS015003: Found HelloWorld.war in deployment directory. To trigger deployment create a file called HelloWorld.war.dodeploy
10:25:41,332 INFO [org.jboss.as.server] (Controller Boot Thread) JBAS015888: Creating http management service using socket-binding (management-http)
10:25:41,354 INFO [org.xnio] (MSC service thread 1-1) XNIO version 3.3.0.Final
10:25:41,364 INFO [org.xnio.nio] (MSC service thread 1-1) XNIO NIO Implementation Version 3.3.0.Final
10:25:41,401 INFO [org.wildfly.extension.io] (ServerService Thread Pool -- 31) WFLYIO001: Worker 'default' has auto-configured to 16 core threads with 128 task threads based on your 8 available processors
10:25:41,409 INFO [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 32) JBAS010280: Activating Infinispan subsystem.
10:25:41,422 INFO [org.jboss.as.naming] (ServerService Thread Pool -- 40) JBAS011800: Activating Naming Subsystem
10:25:41,430 INFO [org.jboss.as.jsf] (ServerService Thread Pool -- 38) JBAS012615: Activated the following JSF Implementations: [main]
10:25:41,434 INFO [org.jboss.as.connector.logging] (MSC service thread 1-15) JBAS010408: Starting JCA Subsystem (IronJacamar 1.1.9.Final)
10:25:41,444 WARN [org.jboss.as.txn] (ServerService Thread Pool -- 46) JBAS010153: Node identifier property is set to the default value. Please make sure it is unique.
10:25:41,446 INFO [org.jboss.as.security] (ServerService Thread Pool -- 45) JBAS013171: Activating Security Subsystem
10:25:41,457 INFO [org.jboss.as.webservices] (ServerService Thread Pool -- 48) JBAS015537: Activating WebServices Extension
10:25:41,469 INFO [org.jboss.as.security] (MSC service thread 1-7) JBAS013170: Current PicketBox version=4.0.21.Final
10:25:41,471 INFO [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 27) JBAS010403: Deploying JDBC-compliant driver class org.h2.Driver (version 1.3)
10:25:41,476 INFO [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-5) JBAS010417: Started Driver service with driver-name = h2
10:25:41,479 INFO [org.wildfly.extension.undertow] (MSC service thread 1-13) JBAS017502: Undertow 1.1.0.Final starting
10:25:41,479 INFO [org.wildfly.extension.undertow] (ServerService Thread Pool -- 47) JBAS017502: Undertow 1.1.0.Final starting
10:25:41,483 INFO [org.jboss.remoting] (MSC service thread 1-1) JBoss Remoting version 4.0.6.Final
10:25:41,501 INFO [org.jboss.as.mail.extension] (MSC service thread 1-12) JBAS015400: Bound mail session [java:jboss/mail/Default]
10:25:41,502 INFO [org.jboss.as.naming] (MSC service thread 1-2) JBAS011802: Starting Naming Service
10:25:41,613 INFO [org.wildfly.extension.undertow] (ServerService Thread Pool -- 47) JBAS017527: Creating file handler for path C:\Users\liya\wildfly-8.2.0.Final/welcome-content
10:25:41,623 INFO [org.wildfly.extension.undertow] (MSC service thread 1-15) JBAS017525: Started server default-server.
10:25:41,637 INFO [org.wildfly.extension.undertow] (MSC service thread 1-13) JBAS017531: Host default-host starting
10:25:41,697 INFO [org.wildfly.extension.undertow] (MSC service thread 1-15) JBAS017519: Undertow HTTP listener default listening on localhost/127.0.0.1:8080
10:25:41,926 INFO [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-1) JBAS010400: Bound data source [java:jboss/datasources/ExampleDS]
10:25:42,043 INFO [org.jboss.as.server.deployment.scanner] (MSC service thread 1-12) JBAS015012: Started FileSystemDeploymentService for directory C:\Users\liya\wildfly-8.2.0.Final\standalone\deployments
10:25:42,047 INFO [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015876: Starting deployment of "testing.war" (runtime-name: "testing.war")
10:25:42,047 INFO [org.jboss.as.server.deployment] (MSC service thread 1-4) JBAS015876: Starting deployment of "FoodOrder.war" (runtime-name: "FoodOrder.war")
10:25:42,047 INFO [org.jboss.as.server.deployment] (MSC service thread 1-8) JBAS015876: Starting deployment of "liya1.war" (runtime-name: "liya1.war")
10:25:42,048 INFO [org.jboss.as.server.deployment] (MSC service thread 1-6) JBAS015876: Starting deployment of "Test1.war" (runtime-name: "Test1.war")
10:25:42,690 INFO [org.jboss.ws.common.management] (MSC service thread 1-15) JBWS022052: Starting JBoss Web Services - Stack CXF Server 4.3.2.Final
10:25:45,009 WARN [org.jboss.modules] (MSC service thread 1-11) Failed to define class com.example.testing.Testing$Servlet in Module "deployment.testing.war:main" from Service Module Loader: java.lang.UnsupportedClassVersionError: com/example/testing/Testing$Servlet : Unsupported major.minor version 52.0
at java.lang.ClassLoader.defineClass1(Native Method) [rt.jar:1.7.0_80-ea]
at java.lang.ClassLoader.defineClass(Unknown Source) [rt.jar:1.7.0_80-ea]
at org.jboss.modules.ModuleClassLoader.doDefineOrLoadClass(ModuleClassLoader.java:361) [jboss-modules.jar:1.3.3.Final]
at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:482) [jboss-modules.jar:1.3.3.Final]
at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:277) [jboss-modules.jar:1.3.3.Final]
at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:92) [jboss-modules.jar:1.3.3.Final]
at org.jboss.modules.Module.loadModuleClass(Module.java:568) [jboss-modules.jar:1.3.3.Final]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:205) [jboss-modules.jar:1.3.3.Final]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:459) [jboss-modules.jar:1.3.3.Final]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:408) [jboss-modules.jar:1.3.3.Final]
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:389) [jboss-modules.jar:1.3.3.Final]
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:134) [jboss-modules.jar:1.3.3.Final]
at java.lang.Class.forName0(Native Method) [rt.jar:1.7.0_80-ea]
at java.lang.Class.forName(Unknown Source) [rt.jar:1.7.0_80-ea]
at org.jboss.as.server.deployment.reflect.DeploymentClassIndex.classIndex(DeploymentClassIndex.java:54)
at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.processComponentConfig(InterceptorAnnotationProcessor.java:85)
at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.deploy(InterceptorAnnotationProcessor.java:77)
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:159)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [rt.jar:1.7.0_80-ea]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [rt.jar:1.7.0_80-ea]
at java.lang.Thread.run(Unknown Source) [rt.jar:1.7.0_80-ea]

10:25:45,016 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-11) MSC000001: Failed to start service jboss.deployment.unit."testing.war".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.unit."testing.war".POST_MODULE: JBAS018733: Failed to process phase POST_MODULE of deployment "testing.war"
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:166) [wildfly-server-8.2.0.Final.jar:8.2.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(Unknown Source) [rt.jar:1.7.0_80-ea]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [rt.jar:1.7.0_80-ea]
at java.lang.Thread.run(Unknown Source) [rt.jar:1.7.0_80-ea]
Caused by: java.lang.UnsupportedClassVersionError: com/example/testing/Testing$Servlet : Unsupported major.minor version 52.0
at java.lang.ClassLoader.defineClass1(Native Method) [rt.jar:1.7.0_80-ea]
at java.lang.ClassLoader.defineClass(Unknown Source) [rt.jar:1.7.0_80-ea]
at org.jboss.modules.ModuleClassLoader.doDefineOrLoadClass(ModuleClassLoader.java:361) [jboss-modules.jar:1.3.3.Final]
at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:482) [jboss-modules.jar:1.3.3.Final]
at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:277) [jboss-modules.jar:1.3.3.Final]
at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:92) [jboss-modules.jar:1.3.3.Final]
at org.jboss.modules.Module.loadModuleClass(Module.java:568) [jboss-modules.jar:1.3.3.Final]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:205) [jboss-modules.jar:1.3.3.Final]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:459) [jboss-modules.jar:1.3.3.Final]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:408) [jboss-modules.jar:1.3.3.Final]
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:389) [jboss-modules.jar:1.3.3.Final]
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:134) [jboss-modules.jar:1.3.3.Final]
at java.lang.Class.forName0(Native Method) [rt.jar:1.7.0_80-ea]
at java.lang.Class.forName(Unknown Source) [rt.jar:1.7.0_80-ea]
at org.jboss.as.server.deployment.reflect.DeploymentClassIndex.classIndex(DeploymentClassIndex.java:54) [wildfly-server-8.2.0.Final.jar:8.2.0.Final]
at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.processComponentConfig(InterceptorAnnotationProcessor.java:85)
at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.deploy(InterceptorAnnotationProcessor.java:77)
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:159) [wildfly-server-8.2.0.Final.jar:8.2.0.Final]
... 5 more

10:25:45,022 WARN [org.jboss.modules] (MSC service thread 1-10) Failed to define class com.example.test1.Test1UI$Servlet in Module "deployment.Test1.war:main" from Service Module Loader: java.lang.UnsupportedClassVersionError: com/example/test1/Test1UI$Servlet : Unsupported major.minor version 52.0
at java.lang.ClassLoader.defineClass1(Native Method) [rt.jar:1.7.0_80-ea]
at java.lang.ClassLoader.defineClass(Unknown Source) [rt.jar:1.7.0_80-ea]
at org.jboss.modules.ModuleClassLoader.doDefineOrLoadClass(ModuleClassLoader.java:361) [jboss-modules.jar:1.3.3.Final]
at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:482) [jboss-modules.jar:1.3.3.Final]
at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:277) [jboss-modules.jar:1.3.3.Final]
at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:92) [jboss-modules.jar:1.3.3.Final]
at org.jboss.modules.Module.loadModuleClass(Module.java:568) [jboss-modules.jar:1.3.3.Final]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:205) [jboss-modules.jar:1.3.3.Final]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:459) [jboss-modules.jar:1.3.3.Final]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:408) [jboss-modules.jar:1.3.3.Final]
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:389) [jboss-modules.jar:1.3.3.Final]
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:134) [jboss-modules.jar:1.3.3.Final]
at java.lang.Class.forName0(Native Method) [rt.jar:1.7.0_80-ea]
at java.lang.Class.forName(Unknown Source) [rt.jar:1.7.0_80-ea]
at org.jboss.as.server.deployment.reflect.DeploymentClassIndex.classIndex(DeploymentClassIndex.java:54)
at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.processComponentConfig(InterceptorAnnotationProcessor.java:85)
at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.deploy(InterceptorAnnotationProcessor.java:77)
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:159)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [rt.jar:1.7.0_80-ea]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [rt.jar:1.7.0_80-ea]
at java.lang.Thread.run(Unknown Source) [rt.jar:1.7.0_80-ea]

10:25:45,022 WARN [org.jboss.modules] (MSC service thread 1-14) Failed to define class com.example.foodorder.FoodOrder$Servlet in Module "deployment.FoodOrder.war:main" from Service Module Loader: java.lang.UnsupportedClassVersionError: com/example/foodorder/FoodOrder$Servlet : Unsupported major.minor version 52.0
at java.lang.ClassLoader.defineClass1(Native Method) [rt.jar:1.7.0_80-ea]
at java.lang.ClassLoader.defineClass(Unknown Source) [rt.jar:1.7.0_80-ea]
at org.jboss.modules.ModuleClassLoader.doDefineOrLoadClass(ModuleClassLoader.java:361) [jboss-modules.jar:1.3.3.Final]
at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:482) [jboss-modules.jar:1.3.3.Final]
at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:277) [jboss-modules.jar:1.3.3.Final]
at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:92) [jboss-modules.jar:1.3.3.Final]
at org.jboss.modules.Module.loadModuleClass(Module.java:568) [jboss-modules.jar:1.3.3.Final]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:205) [jboss-modules.jar:1.3.3.Final]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:459) [jboss-modules.jar:1.3.3.Final]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:408) [jboss-modules.jar:1.3.3.Final]
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:389) [jboss-modules.jar:1.3.3.Final]
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:134) [jboss-modules.jar:1.3.3.Final]
at java.lang.Class.forName0(Native Method) [rt.jar:1.7.0_80-ea]
at java.lang.Class.forName(Unknown Source) [rt.jar:1.7.0_80-ea]
at org.jboss.as.server.deployment.reflect.DeploymentClassIndex.classIndex(DeploymentClassIndex.java:54)
at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.processComponentConfig(InterceptorAnnotationProcessor.java:85)
at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.deploy(InterceptorAnnotationProcessor.java:77)
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:159)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [rt.jar:1.7.0_80-ea]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [rt.jar:1.7.0_80-ea]
at java.lang.Thread.run(Unknown Source) [rt.jar:1.7.0_80-ea]

10:25:45,027 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-10) MSC000001: Failed to start service jboss.deployment.unit."Test1.war".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.unit."Test1.war".POST_MODULE: JBAS018733: Failed to process phase POST_MODULE of deployment "Test1.war"
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:166) [wildfly-server-8.2.0.Final.jar:8.2.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(Unknown Source) [rt.jar:1.7.0_80-ea]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [rt.jar:1.7.0_80-ea]
at java.lang.Thread.run(Unknown Source) [rt.jar:1.7.0_80-ea]
Caused by: java.lang.UnsupportedClassVersionError: com/example/test1/Test1UI$Servlet : Unsupported major.minor version 52.0
at java.lang.ClassLoader.defineClass1(Native Method) [rt.jar:1.7.0_80-ea]
at java.lang.ClassLoader.defineClass(Unknown Source) [rt.jar:1.7.0_80-ea]
at org.jboss.modules.ModuleClassLoader.doDefineOrLoadClass(ModuleClassLoader.java:361) [jboss-modules.jar:1.3.3.Final]
at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:482) [jboss-modules.jar:1.3.3.Final]
at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:277) [jboss-modules.jar:1.3.3.Final]
at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:92) [jboss-modules.jar:1.3.3.Final]
at org.jboss.modules.Module.loadModuleClass(Module.java:568) [jboss-modules.jar:1.3.3.Final]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:205) [jboss-modules.jar:1.3.3.Final]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:459) [jboss-modules.jar:1.3.3.Final]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:408) [jboss-modules.jar:1.3.3.Final]
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:389) [jboss-modules.jar:1.3.3.Final]
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:134) [jboss-modules.jar:1.3.3.Final]
at java.lang.Class.forName0(Native Method) [rt.jar:1.7.0_80-ea]
at java.lang.Class.forName(Unknown Source) [rt.jar:1.7.0_80-ea]
at org.jboss.as.server.deployment.reflect.DeploymentClassIndex.classIndex(DeploymentClassIndex.java:54) [wildfly-server-8.2.0.Final.jar:8.2.0.Final]
at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.processComponentConfig(InterceptorAnnotationProcessor.java:85)
at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.deploy(InterceptorAnnotationProcessor.java:77)
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:159) [wildfly-server-8.2.0.Final.jar:8.2.0.Final]
... 5 more

10:25:45,028 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-14) MSC000001: Failed to start service jboss.deployment.unit."FoodOrder.war".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.unit."FoodOrder.war".POST_MODULE: JBAS018733: Failed to process phase POST_MODULE of deployment "FoodOrder.war"
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:166) [wildfly-server-8.2.0.Final.jar:8.2.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(Unknown Source) [rt.jar:1.7.0_80-ea]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [rt.jar:1.7.0_80-ea]
at java.lang.Thread.run(Unknown Source) [rt.jar:1.7.0_80-ea]
Caused by: java.lang.UnsupportedClassVersionError: com/example/foodorder/FoodOrder$Servlet : Unsupported major.minor version 52.0
at java.lang.ClassLoader.defineClass1(Native Method) [rt.jar:1.7.0_80-ea]
at java.lang.ClassLoader.defineClass(Unknown Source) [rt.jar:1.7.0_80-ea]
at org.jboss.modules.ModuleClassLoader.doDefineOrLoadClass(ModuleClassLoader.java:361) [jboss-modules.jar:1.3.3.Final]
at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:482) [jboss-modules.jar:1.3.3.Final]
at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:277) [jboss-modules.jar:1.3.3.Final]
at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:92) [jboss-modules.jar:1.3.3.Final]
at org.jboss.modules.Module.loadModuleClass(Module.java:568) [jboss-modules.jar:1.3.3.Final]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:205) [jboss-modules.jar:1.3.3.Final]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:459) [jboss-modules.jar:1.3.3.Final]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:408) [jboss-modules.jar:1.3.3.Final]
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:389) [jboss-modules.jar:1.3.3.Final]
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:134) [jboss-modules.jar:1.3.3.Final]
at java.lang.Class.forName0(Native Method) [rt.jar:1.7.0_80-ea]
at java.lang.Class.forName(Unknown Source) [rt.jar:1.7.0_80-ea]
at org.jboss.as.server.deployment.reflect.DeploymentClassIndex.classIndex(DeploymentClassIndex.java:54) [wildfly-server-8.2.0.Final.jar:8.2.0.Final]
at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.processComponentConfig(InterceptorAnnotationProcessor.java:85)
at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.deploy(InterceptorAnnotationProcessor.java:77)
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:159) [wildfly-server-8.2.0.Final.jar:8.2.0.Final]
... 5 more

10:25:46,685 INFO [org.zkoss.zk.ui.http.WebManager] (MSC service thread 1-3) Starting ZK 7.0.3 CE (build: 2014090212)
10:25:46,710 INFO [org.zkoss.zk.ui.sys.ConfigParser] (MSC service thread 1-3) Loading system default
10:25:46,780 INFO [org.zkoss.zk.ui.sys.ConfigParser] (MSC service thread 1-3) Parsing vfs:/C:/Users/liya/wildfly-8.2.0.Final/standalone/deployments/liya1.war/WEB-INF/lib/zul.jar/metainfo/zk/zk.xml
10:25:46,790 INFO [org.zkoss.zk.ui.sys.ConfigParser] (MSC service thread 1-3) Parsing file:/C:/Users/liya/wildfly-8.2.0.Final/standalone/deployments/liya1.war/WEB-INF/zk.xml
10:25:47,388 INFO [org.wildfly.extension.undertow] (MSC service thread 1-3) JBAS017534: Registered web context: /liya1
10:25:47,394 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) JBAS014613: Operation ("deploy") failed - address: ([("deployment" => "FoodOrder.war")]) - failure description: {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"FoodOrder.war\".POST_MODULE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"FoodOrder.war\".POST_MODULE: JBAS018733: Failed to process phase POST_MODULE of deployment \"FoodOrder.war\"
Caused by: java.lang.UnsupportedClassVersionError: com/example/foodorder/FoodOrder$Servlet : Unsupported major.minor version 52.0"}}
10:25:47,395 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) JBAS014613: Operation ("deploy") failed - address: ([("deployment" => "Test1.war")]) - failure description: {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"Test1.war\".POST_MODULE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"Test1.war\".POST_MODULE: JBAS018733: Failed to process phase POST_MODULE of deployment \"Test1.war\"
Caused by: java.lang.UnsupportedClassVersionError: com/example/test1/Test1UI$Servlet : Unsupported major.minor version 52.0"}}
10:25:47,396 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) JBAS014613: Operation ("deploy") failed - address: ([("deployment" => "testing.war")]) - failure description: {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"testing.war\".POST_MODULE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"testing.war\".POST_MODULE: JBAS018733: Failed to process phase POST_MODULE of deployment \"testing.war\"
Caused by: java.lang.UnsupportedClassVersionError: com/example/testing/Testing$Servlet : Unsupported major.minor version 52.0"}}
10:25:47,458 INFO [org.jboss.as.server] (ServerService Thread Pool -- 28) JBAS018559: Deployed "testing.war" (runtime-name : "testing.war")
10:25:47,458 INFO [org.jboss.as.server] (ServerService Thread Pool -- 28) JBAS018559: Deployed "Test1.war" (runtime-name : "Test1.war")
10:25:47,459 INFO [org.jboss.as.server] (ServerService Thread Pool -- 28) JBAS018559: Deployed "liya1.war" (runtime-name : "liya1.war")
10:25:47,459 INFO [org.jboss.as.server] (ServerService Thread Pool -- 28) JBAS018559: Deployed "FoodOrder.war" (runtime-name : "FoodOrder.war")
10:25:47,460 INFO [org.jboss.as.controller] (Controller Boot Thread) JBAS014774: Service status report
JBAS014777: Services which failed to start: service jboss.deployment.unit."FoodOrder.war".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.unit."FoodOrder.war".POST_MODULE: JBAS018733: Failed to process phase POST_MODULE of deployment "FoodOrder.war"
service jboss.deployment.unit."testing.war".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.unit."testing.war".POST_MODULE: JBAS018733: Failed to process phase POST_MODULE of deployment "testing.war"
service jboss.deployment.unit."Test1.war".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.unit."Test1.war".POST_MODULE: JBAS018733: Failed to process phase POST_MODULE of deployment "Test1.war"

10:25:47,539 INFO [org.jboss.as] (Controller Boot Thread) JBAS015961: Http management interface listening on http://127.0.0.1:9990/management
10:25:47,539 INFO [org.jboss.as] (Controller Boot Thread) JBAS015951: Admin console listening on http://127.0.0.1:9990
10:25:47,539 ERROR [org.jboss.as] (Controller Boot Thread) JBAS015875: WildFly 8.2.0.Final "Tweek" started (with errors) in 8379ms - Started 300 of 358 services (3 services failed or missing dependencies, 98 services are lazy, passive or on-demand)
10:25:47,771 INFO [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015877: Stopped deployment testing.war (runtime-name: testing.war) in 32ms
10:25:47,771 INFO [org.jboss.as.server.deployment] (MSC service thread 1-13) JBAS015877: Stopped deployment FoodOrder.war (runtime-name: FoodOrder.war) in 33ms
10:25:47,772 INFO [org.jboss.as.server.deployment] (MSC service thread 1-10) JBAS015877: Stopped deployment Test1.war (runtime-name: Test1.war) in 33ms
10:25:47,969 INFO [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS018558: Undeployed "testing.war" (runtime-name: "testing.war")
10:25:47,970 INFO [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS018558: Undeployed "Test1.war" (runtime-name: "Test1.war")
10:25:47,970 INFO [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS018558: Undeployed "FoodOrder.war" (runtime-name: "FoodOrder.war")
10:25:47,970 INFO [org.jboss.as.controller] (DeploymentScanner-threads - 2) JBAS014774: Service status report
JBAS014777: Services which failed to start: service jboss.deployment.unit."FoodOrder.war".POST_MODULE
service jboss.deployment.unit."testing.war".POST_MODULE
service jboss.deployment.unit."Test1.war".POST_MODULE

10:25:52,096 INFO [org.zkoss.util.resource.impl.LabelLoaderImpl] (default task-2) Loading labels for en_US
10:25:52,097 INFO [org.zkoss.util.resource.impl.LabelLoaderImpl] (default task-2) Loading labels for en
10:25:52,098 INFO [org.zkoss.util.resource.impl.LabelLoaderImpl] (default task-2) Opening vfs:/C:/Users/liya/wildfly-8.2.0.Final/standalone/deployments/liya1.war/WEB-INF/lib/zss.jar/metainfo/zk-label.properties
10:25:52,511 INFO [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 2) JBAS015003: Found FoodOrder.war in deployment directory. To trigger deployment create a file called FoodOrder.war.dodeploy
10:25:52,512 INFO [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 2) JBAS015003: Found Test1.war in deployment directory. To trigger deployment create a file called Test1.war.dodeploy
10:25:52,512 INFO [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 2) JBAS015003: Found testing.war in deployment directory. To trigger deployment create a file called testing.war.dodeploy
10:25:52,512 INFO [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 2) JBAS015003: Found HelloWorld.war in deployment directory. To trigger deployment create a file called HelloWorld.war.dodeploy

Please help! I'm new in ZK :'(
 
Sheriff
Posts: 21997
107
Eclipse IDE Spring VI Editor Chrome Java Ubuntu Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the ranch

liya dean wrote:java.lang.UnsupportedClassVersionError: com/example/testing/Testing$Servlet : Unsupported major.minor version 52.0


That line is all you need. It tells you the problem - the class files are created using a Java 8 compiler*, but your JBoss/WildFly is using a Java 7 JVM.

You have the following options:
1) Recompile the classes using a Java 7 compiler, or using the -source 1.7 and -target 1.7 compiler flags. You won't be able to do this if the code uses Java 8 specific syntax like lambdas, or new APIs added in Java 8.
2) Upgrade the JVM WildFly is using to Java 8. I say only WildFly here, since JBoss is only now starting to support Java 8.


* The versioning is as follows in Java:
Java 8: 52.0
Java 7: 51.0
Java 6: 50.0
Java 5.0: 49.0
Java 1.4: 48.0
Java 1.3: 47.0
Java 1.2: 46.0
Java 1.1: 45.0
 
My name is Inigo Montoya, you killed my father, prepare to read a tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic