Error deploying war to JBoss 7.1.1 / ClassNotFoundException - java

I have put a project on hold (which was working) and I am suddenly unable to deploy one of my war to my JBoss server. I get the following output :
[2015-09-01 10:40:33,526] Artifact xxx-server-back:war exploded: Artifact is being deployed, please wait...
[2015-09-01 10:40:33,527] Artifact xxx-server-front:war exploded: Artifact is being deployed, please wait...
[2015-09-01 10:40:33,528] Artifact xxx-server-site:war exploded: Artifact is being deployed, please wait...
22:40:33,699 INFO [org.jboss.as.server.deployment] (MSC service thread 1-11) JBAS015876: Starting deployment of "xxx-server-back-1.0"
22:40:33,920 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-5) MSC00001: Failed to start service jboss.deployment.unit."xxx-server-back-1.0".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.unit."xxx-server-back-1.0".POST_MODULE: Failed to process phase POST_MODULE of deployment "xxx-server-back-1.0"
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:119) [jboss-as-server-7.1.1.Final.jar:7.1.1.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.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: org.jboss.as.server.deployment.DeploymentUnitProcessingException: Could not load EJB class xxx.server.services.data.items.ItemManager
at org.jboss.as.ejb3.deployment.processors.BusinessViewAnnotationProcessor.getEjbClass(BusinessViewAnnotationProcessor.java:227)
at org.jboss.as.ejb3.deployment.processors.BusinessViewAnnotationProcessor.deploy(BusinessViewAnnotationProcessor.java:97)
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
... 5 more
Caused by: java.lang.ClassNotFoundException: xxx.server.services.data.items.ItemManager from [Module "deployment.xxx-server-back-1.0:main" from Service Module Loader]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190) [jboss-modules.jar:1.1.1.GA]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468) [jboss-modules.jar:1.1.1.GA]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456) [jboss-modules.jar:1.1.1.GA]
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398) [jboss-modules.jar:1.1.1.GA]
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120) [jboss-modules.jar:1.1.1.GA]
at org.jboss.as.ejb3.deployment.processors.BusinessViewAnnotationProcessor.getEjbClass(BusinessViewAnnotationProcessor.java:225)
... 7 more
22:40:33,930 INFO [org.jboss.as.server] (management-handler-thread - 4) JBAS015870: Deploy of deployment "xxx-server-back-1.0" was rolled back with failure message {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"xxx-server-back-1.0\".POST_MODULE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"xxx-server-back-1.0\".POST_MODULE: Failed to process phase POST_MODULE of deployment \"xxx-server-back-1.0\""}}
22:40:33,935 INFO [org.jboss.as.server.deployment] (MSC service thread 1-7) JBAS015877: Stopped deployment xxx-server-back-1.0 in 5ms
22:40:33,937 INFO [org.jboss.as.controller] (management-handler-thread - 4) JBAS014774: Service status report
JBAS014777: Services which failed to start: service jboss.deployment.unit."xxx-server-back-1.0".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.unit."xxx-server-back-1.0".POST_MODULE: Failed to process phase POST_MODULE of deployment "xxx-server-back-1.0"
[2015-09-01 10:40:33,978] Artifact xxx-server-back:war exploded: Error during artifact deployment. See server log for details.
[2015-09-01 10:40:33,979] Artifact xxx-server-back:war exploded: java.lang.Exception: {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"xxx-server-back-1.0\".POST_MODULE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"xxx-server-back-1.0\".POST_MODULE: Failed to process phase POST_MODULE of deployment \"xxx-server-back-1.0\""}}
22:40:34,020 INFO [org.jboss.as.server.deployment] (MSC service thread 1-16) JBAS015876: Starting deployment of "xxx-server-front-1.0"
22:40:34,114 INFO [org.jboss.as.server] (management-handler-thread - 3) JBAS018559: Deployed "xxx-server-front-1.0"
[2015-09-01 10:40:34,127] Artifact xxx-server-front:war exploded: Artifact is deployed successfully
[2015-09-01 10:40:34,127] Artifact xxx-server-front:war exploded: Deploy took 600 milliseconds
22:40:34,175 INFO [org.jboss.as.server.deployment] (MSC service thread 1-4) JBAS015876: Starting deployment of "xxx-server-site-1.0"
22:40:34,207 INFO [org.jboss.as.server] (management-handler-thread - 1) JBAS018559: Deployed "xxx-server-site-1.0"
[2015-09-01 10:40:34,223] Artifact xxx-server-site:war exploded: Artifact is deployed successfully
[2015-09-01 10:40:34,224] Artifact xxx-server-site:war exploded: Deploy took 696 milliseconds
The ItemManager class which fails to deploy is declared as :
#Startup
#Singleton
public class ItemManager {
The rest of the code is irrevelant as commenting it did not change the error. If I remove the #singleton #startup, the deployment fails on the next bean of my war so it makes me think of a JBoss configuration/dependency problem. Other war/jar files not containing beans are sucessfully deployed.
Anyone having an idea on how to debug this ?

Related

JBoss REST API won't start up, Related to CDI?

I am translating my Monolith Webservice into a Microservice that lives in a container running out of docker (running 1.12.3 at the moment). The application server is: jboss-eap7:2.2.0-1.6.9.
I initially created a barebones REST api that had little in the way of code in it and just a hello world.
However after adding some CDI components into my application I always get this exception...
21:40:57,240 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-4) MSC000001: Failed to start service jboss.deployment.subunit."wackyEAR-1.0.0-SNAPSHOT.ear"."wacky.war".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.subunit."wackyEAR-1.0.0-SNAPSHOT.ear"."wacky.war".POST_MODULE: WFLYSRV0153: Failed to process phase POST_MODULE of subdeployment "wacky.war" of deployment "wackyEAR-1.0.0-SNAPSHOT.ear"
There is more:
21:40:57,245 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("deploy") failed - address: ([("deployment" => "wackyEAR-1.0.0-SNAPSHOT.ear")]) - failure description: {
user-api_1 | "WFLYCTL0080: Failed services" => {"jboss.deployment.subunit.\"wackyEAR-1.0.0-SNAPSHOT.ear\".\"wacky.war\".POST_MODULE" => "org.jboss.msc.service.StartException in service jboss.deployment.subunit.\"wackyEAR-1.0.0-SNAPSHOT.ear\".\"wacky.war\".POST_MODULE: WFLYSRV0153: Failed to process phase POST_MODULE of subdeployment \"upload-api-talon.war\" of deployment \"wackyEAR-1.0.0-SNAPSHOT.ear\"
How do I package my application so that I enable CDI?
right now my application is package as
--wackyEAR
--wackyWAR
--lib
--wackyEJB1 (CDI EJB app)
--META-INF
--beans.xml
--wackyEJB2 . (CDI EJB app)
META-INF
--beans.xml
I am running out of ideas?
Here are the full logs:
23:13:03,533 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-3) MSC000001: Failed to start service jboss.deployment.subunit."appEAR-1.0.0-SNAPSHOT.ear"."app.war".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.subunit."appEAR-1.0.0-SNAPSHOT.ear"."app.war".POST_MODULE: WFLYSRV0153: Failed to process phase POST_MODULE of subdeployment "app.war" of deployment "app.ear"
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:154)
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(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.ClassFormatError: Failed to link javax/faces/webapp/FacetTag (Module "deployment.appEAR-1.0.0-SNAPSHOT.ear.app.war:main" from Service Module Loader): Absent Code attribute in method that is not native or abstract in class file javax/faces/webapp/FacetTag
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:446)
at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:274)
at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:78)
at org.jboss.modules.Module.loadModuleClass(Module.java:605)
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190)
at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:363)
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:351)
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:93)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:348)
at org.jboss.as.ee.utils.ClassLoadingUtils.loadClass(ClassLoadingUtils.java:21)
at org.jboss.as.ee.utils.ClassLoadingUtils.loadClass(ClassLoadingUtils.java:14)
at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.processComponentConfig(InterceptorAnnotationProcessor.java:84)
at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.deploy(InterceptorAnnotationProcessor.java:76)
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:147)
... 5 more
23:13:03,538 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("deploy") failed - address: ([("deployment" => "appEAR-1.0.0-SNAPSHOT.ear")]) - failure description: {
"WFLYCTL0080: Failed services" => {"jboss.deployment.subunit.\"appEAR-1.0.0-SNAPSHOT.ear\".\"app.war\".POST_MODULE" => "org.jboss.msc.service.StartException in service jboss.deployment.subunit.\"appEAR-1.0.0-SNAPSHOT.ear\".\"app.war\".POST_MODULE: WFLYSRV0153: Failed to process phase POST_MODULE of subdeployment \"upload-api-talon.war\" of deployment \"upload-api-talonEAR-1.0.0-SNAPSHOT.ear\"
Caused by: java.lang.ClassFormatError: Failed to link javax/faces/webapp/FacetTag (Module \"deployment.appEAR-1.0.0-SNAPSHOT.ear.app.war:main\" from Service Module Loader): Absent Code attribute in method that is not native or abstract in class file javax/faces/webapp/FacetTag"},
"WFLYCTL0180: Services with missing/unavailable dependencies" => ["jboss.deployment.unit.\"appEAR-1.0.0-SNAPSHOT.ear\".weld.weldClassIntrospector is missing [jboss.deployment.unit.\"appEAR-1.0.0-SNAPSHOT.ear\".beanmanager]"]
}
23:13:03,559 INFO [org.jboss.as.server] (ServerService Thread Pool -- 26) WFLYSRV0010: Deployed "appEAR-1.0.0-SNAPSHOT.ear" (runtime-name : "appEAR-1.0.0-SNAPSHOT.ear")
23:13:03,560 INFO [org.jboss.as.controller] (Controller Boot Thread) WFLYCTL0183: Service status report
WFLYCTL0184: New missing/unsatisfied dependencies:
service jboss.deployment.unit."appEAR-1.0.0-SNAPSHOT.ear".beanmanager (missing) dependents: [service jboss.deployment.unit."appEAR-1.0.0-SNAPSHOT.ear".weld.weldClassIntrospector]
WFLYCTL0186: Services which failed to start: service jboss.deployment.subunit."appEAR-1.0.0-SNAPSHOT.ear"."app.war".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.subunit."appEAR-1.0.0-SNAPSHOT.ear"."app.war".POST_MODULE: WFLYSRV0153: Failed to process phase POST_MODULE of subdeployment "app.war" of deployment "appEAR-1.0.0-SNAPSHOT.ear"

org.springframework.context.ApplicationContext from [Module "deployment.RGWeb.war:main" from Service Module Loader]

i am using wildfly 10.1.0 and i am trying to run my web project but i am getting following error
12:49:17,589 INFO [org.jboss.as.server.deployment] (MSC service thread 1-1) WFLYSRV0027: Starting deployment of "RGWeb.war" (runtime-name: "RGWeb.war")
12:49:18,047 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC000001: Failed to start service jboss.deployment.unit."RGWeb.war".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.unit."RGWeb.war".POST_MODULE: WFLYSRV0153: Failed to process phase POST_MODULE of deployment "RGWeb.war"
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:154)
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(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.NoClassDefFoundError: org/springframework/context/ApplicationContext
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2671)
at java.lang.Class.getConstructor0(Class.java:3075)
at java.lang.Class.getConstructor(Class.java:1825)
at org.jboss.as.jsf.deployment.JSFManagedBeanProcessor.deploy(JSFManagedBeanProcessor.java:100)
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:147)
... 5 more
Caused by: java.lang.ClassNotFoundException: org.springframework.context.ApplicationContext from [Module "deployment.RGWeb.war:main" from Service Module Loader]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:198)
at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:363)
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:351)
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:93)
... 11 more
12:49:18,048 ERROR [org.jboss.as.controller.management-operation] (DeploymentScanner-threads - 1) WFLYCTL0013: Operation ("deploy") failed - address: ([("deployment" => "RGWeb.war")]) - failure description: {
"WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"RGWeb.war\".POST_MODULE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"RGWeb.war\".POST_MODULE: WFLYSRV0153: Failed to process phase POST_MODULE of deployment \"RGWeb.war\"
Caused by: java.lang.NoClassDefFoundError: org/springframework/context/ApplicationContext
Caused by: java.lang.ClassNotFoundException: org.springframework.context.ApplicationContext from [Module \"deployment.RGWeb.war:main\" from Service Module Loader]"},
"WFLYCTL0412: Required services that are not installed:" => ["jboss.deployment.unit.\"RGWeb.war\".POST_MODULE"],
"WFLYCTL0180: Services with missing/unavailable dependencies" => undefined
}
12:49:18,071 INFO [org.jboss.as.server] (DeploymentScanner-threads - 1) WFLYSRV0010: Deployed "RGWeb.war" (runtime-name : "RGWeb.war")
12:49:18,071 INFO [org.jboss.as.controller] (DeploymentScanner-threads - 1) WFLYCTL0183: Service status report
WFLYCTL0186: Services which failed to start: service jboss.deployment.unit."RGWeb.war".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.unit."RGWeb.war".POST_MODULE: WFLYSRV0153: Failed to process phase POST_MODULE of deployment "RGWeb.war"
can you help me out with this
thank you
You are missing spring libraries in your classpath. Try to put spring libraries in the classpath of your webapp : WEB-INF/lib.
Using maven deployment can often help in such cases by just adding dependencies. Try to take a look at this page : http://www.mastertheboss.com/jboss-server/wildfly-8/maven-configuration-for-java-ee-7-projects-on-wildfly

Error deploying EAR in JBoss AS 7.1build using ANT

I am having a problem with deploying my application on JBoss AS 7.1 . We are now migrating from JBoss AS 4 to JBoss AS 7.1 but facing trouble due to different module structure of JBoss AS 7.1 . While deploying our EAR in standalone mode of JBoss AS 7.1 we get below error log. Please suggest what we are doing wrong.. I am copying server log below.
15:12:24,868 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-8) MSC00001: Failed to start service jboss.deployment.subunit."Shrisurance.ear"."Shrisurance.war".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.subunit."Shrisurance.ear"."Shrisurance.war".POST_MODULE: Failed to process phase POST_MODULE of subdeployment "Shrisurance.war" of deployment "Shrisurance.ear"
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:119) [jboss-as-server-7.1.1.Final.jar:7.1.1.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_25]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_25]
at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_25]
Caused by: java.lang.RuntimeException: Error getting reflective information for class com.shrisure.server.OnlinePolicyRedirectURL with ClassLoader ModuleClassLoader for Module "deployment.Shrisurance.ear.Shrisurance.jar:main" from Service Module Loader
at org.jboss.as.server.deployment.reflect.DeploymentReflectionIndex.getClassIndex(DeploymentReflectionIndex.java:70) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.as.ee.metadata.MethodAnnotationAggregator.runtimeAnnotationInformation(MethodAnnotationAggregator.java:58)
at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.handleAnnotations(InterceptorAnnotationProcessor.java:85)
at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.processComponentConfig(InterceptorAnnotationProcessor.java:70)
at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.deploy(InterceptorAnnotationProcessor.java:55)
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
... 5 more
Caused by: java.lang.NoClassDefFoundError: com/google/gwt/user/client/rpc/IsSerializable
at java.lang.Class.getDeclaredFields0(Native Method) [rt.jar:1.6.0_25]
at java.lang.Class.privateGetDeclaredFields(Class.java:2291) [rt.jar:1.6.0_25]
at java.lang.Class.getDeclaredFields(Class.java:1743) [rt.jar:1.6.0_25]
at org.jboss.as.server.deployment.reflect.ClassReflectionIndex.<init>(ClassReflectionIndex.java:57) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.as.server.deployment.reflect.DeploymentReflectionIndex.getClassIndex(DeploymentReflectionIndex.java:66) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
... 10 more
Caused by: java.lang.ClassNotFoundException: com.google.gwt.user.client.rpc.IsSerializable from [Module "deployment.Shrisurance.ear.Shrisurance.jar:main" from Service Module Loader]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190) [jboss-modules.jar:1.1.1.GA]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468) [jboss-modules.jar:1.1.1.GA]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456) [jboss-modules.jar:1.1.1.GA]
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:423) [jboss-modules.jar:1.1.1.GA]
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398) [jboss-modules.jar:1.1.1.GA]
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120) [jboss-modules.jar:1.1.1.GA]
... 15 more
15:12:24,890 INFO [org.jboss.as] (MSC service thread 1-4) JBAS015951: Admin console listening on http://127.0.0.1:9990
15:12:24,891 ERROR [org.jboss.as] (MSC service thread 1-4) JBAS015875: JBoss AS 7.1.1.Final "Brontes" started (with errors) in 3526ms - Started 190 of 279 services (4 services failed or missing dependencies, 84 services are passive or on-demand)
15:12:25,091 INFO [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015870: Deploy of deployment "Shrisurance.ear" was rolled back with failure message {"JBAS014671: Failed services" => {"jboss.deployment.subunit.\"Shrisurance.ear\".\"Shrisurance.war\".POST_MODULE" => "org.jboss.msc.service.StartException in service jboss.deployment.subunit.\"Shrisurance.ear\".\"Shrisurance.war\".POST_MODULE: Failed to process phase POST_MODULE of subdeployment \"Shrisurance.war\" of deployment \"Shrisurance.ear\""}}
15:12:25,099 INFO [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015871: Deploy of deployment "jboss-deployment-structure.xml" was rolled back with no failure message
15:12:25,104 INFO [org.jboss.as.server.deployment] (MSC service thread 1-7) JBAS015877: Stopped deployment jboss-deployment-structure.xml in 4ms
15:12:25,110 INFO [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015877: Stopped deployment Shrisurance.har in 17ms
15:12:25,120 INFO [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015877: Stopped deployment Shrisurance.jar in 27ms
15:12:25,576 INFO [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015877: Stopped deployment Shrisurance.war in 483ms
15:12:25,580 INFO [org.jboss.as.server.deployment] (MSC service thread 1-4) JBAS015877: Stopped deployment Shrisurance.ear in 488ms
15:12:25,581 INFO [org.jboss.as.controller] (DeploymentScanner-threads - 2) JBAS014774: Service status report
JBAS014777: Services which failed to start: service jboss.deployment.subunit."Shrisurance.ear"."Shrisurance.war".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.subunit."Shrisurance.ear"."Shrisurance.war".POST_MODULE: Failed to process phase POST_MODULE of subdeployment "Shrisurance.war" of deployment "Shrisurance.ear"
15:12:25,584 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) JBAS014654: Composite operation was rolled back
15:12:25,585 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.\"Shrisurance.ear\".\"Shrisurance.war\".POST_MODULE" => "org.jboss.msc.service.StartException in service jboss.deployment.subunit.\"Shrisurance.ear\".\"Shrisurance.war\".POST_MODULE: Failed to process phase POST_MODULE of subdeployment \"Shrisurance.war\" of deployment \"Shrisurance.ear\""}}}}
15:13:15,758 INFO [org.jboss.as.osgi] (MSC service thread 1-6) JBAS011942: Stopping OSGi Framework
15:13:15,763 INFO [org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-1) Pausing Coyote HTTP/1.1 on http--127.0.0.1-8085
15:13:15,765 INFO [org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-1) Stopping Coyote HTTP/1.1 on http--127.0.0.1-8085
15:13:15,768 INFO [org.apache.catalina.core.StandardContext] (MSC service thread 1-7) Container org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/] has not been started
15:13:15,770 WARN [org.jboss.remoting.remote] (Remoting "svschndt682olr:MANAGEMENT" read-1) JBREM000205: Failed to accept a connection: java.nio.channels.ClosedChannelException

JBOSS 7.1.1 deployment error "Failed to start service jboss.deployment.unit."

I get this error when try to deploy my application using IntelliJ IDEA 13:
13:16:10,610 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-5) MSC00001: Failed to start service jboss.deployment.unit."XXX-webapp-1.0.0-SNAPSHOT.war".PARSE: org.jboss.msc.service.StartException in service jboss.deployment.unit."XXX-webapp-1.0.0-SNAPSHOT.war".PARSE: Failed to process phase PARSE of deployment "XXX-webapp-1.0.0-SNAPSHOT.war"
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:119) [jboss-as-server-7.1.1.Final.jar:7.1.1.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.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_55]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_55]
at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_55]
Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS011448: Failed to parse "/C:/serwers/jboss-as-7.1.1.Final/bin/content/XXX-webapp-1.0.0-SNAPSHOT.war/WEB-INF/lib/XXX-api-1.0.0-SNAPSHOT.jar/META-INF/persistence.xml"
at org.jboss.as.jpa.processor.PersistenceUnitParseProcessor.parse(PersistenceUnitParseProcessor.java:222)
at org.jboss.as.jpa.processor.PersistenceUnitParseProcessor.handleWarDeployment(PersistenceUnitParseProcessor.java:149)
at org.jboss.as.jpa.processor.PersistenceUnitParseProcessor.deploy(PersistenceUnitParseProcessor.java:82)
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
... 5 more
Caused by: java.lang.IllegalStateException: Failed to resolve expression: ${XXX.datasource}
at org.jboss.as.server.parsing.PropertiesValueResolver.replaceProperties(PropertiesValueResolver.java:127) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.as.jpa.config.AttributeDefinition.resolve(AttributeDefinition.java:62)
at org.jboss.as.jpa.puparser.PersistenceUnitXmlParser.parsePU(PersistenceUnitXmlParser.java:220)
at org.jboss.as.jpa.puparser.PersistenceUnitXmlParser.parse(PersistenceUnitXmlParser.java:122)
at org.jboss.as.jpa.processor.PersistenceUnitParseProcessor.parse(PersistenceUnitParseProcessor.java:217)
... 8 more
13:16:10,623 INFO [org.jboss.as.server] (management-handler-thread - 8) JBAS015870: Deploy of deployment "XXX-webapp-1.0.0-SNAPSHOT.war" was rolled back with failure message {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"XXX-webapp-1.0.0-SNAPSHOT.war\".PARSE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"XXX-webapp-1.0.0-SNAPSHOT.war\".PARSE: Failed to process phase PARSE of deployment \"XXX-webapp-1.0.0-SNAPSHOT.war\""}}
13:16:10,962 INFO [org.jboss.as.server.deployment] (MSC service thread 1-5) JBAS015877: Stopped deployment XXX-webapp-1.0.0-SNAPSHOT.war in 338ms
13:16:10,963 INFO [org.jboss.as.controller] (management-handler-thread - 8) JBAS014774: Service status report
JBAS014777: Services which failed to start: service jboss.deployment.unit."XXX-webapp-1.0.0-SNAPSHOT.war".PARSE: org.jboss.msc.service.StartException in service jboss.deployment.unit."XXX-webapp-1.0.0-SNAPSHOT.war".PARSE: Failed to process phase PARSE of deployment "XXX-webapp-1.0.0-SNAPSHOT.war"
[2014-05-30 01:16:11,000] Artifact XXX-webapp:war: Error during artifact deployment. See server log for details.
[2014-05-30 01:16:11,000] Artifact XXX-webapp:war: java.lang.Exception: {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"XXX-webapp-1.0.0-SNAPSHOT.war\".PARSE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"XXX-webapp-1.0.0-SNAPSHOT.war\".PARSE: Failed to process phase PARSE of deployment \"XXX-webapp-1.0.0-SNAPSHOT.war\""}}
I checked in file 'persistence.xml' for this ${XXX.datasource}, and replaced it with static reference to xxDS which I have configured in standalone.xml, I clean and install maven project, but still got this same error. I don't get it, can anyone help?

Bad Deployment with eclipse on server JBoss

i wrote an enterprise java application EAR that include a servlet with a jsp page where the user put in a form the request and with the servlet's doPost method i manage there request forwording the action to do to two EJB. So i use the ejb from the Servlet making the lookup with #EJB myServelt nameSevlet and call the method of the servlet.
My problem is that if i add to the EJBs or to Servlet the external jars library and write a function that use these libraries whene i start the server from eclipse that automatically makes the deployment i reach these errors:
15:09:08,167 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-3) MSC00001: Failed to start service jboss.deployment.subunit."myEnterprisePrj.ear"."myWebPrj.war".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.subunit."myEnterprisePrj.ear"."myWebPrj.war".POST_MODULE: Failed to process phase POST_MODULE of subdeployment "myWebPrj.war" of deployment "myEnterprisePrj.ear"
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:119) [jboss-as-server-7.1.1.Final.jar:7.1.1.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.runWorker(Unknown Source) [rt.jar:1.7.0]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [rt.jar:1.7.0]
at java.lang.Thread.run(Unknown Source) [rt.jar:1.7.0]
Caused by: java.lang.RuntimeException: Error getting reflective information for class my.servlet.myServlet with ClassLoader ModuleClassLoader for Module "deployment.myEnterprisePrj.ear.myWebPrj.war:main" from Service Module Loader
at org.jboss.as.server.deployment.reflect.DeploymentReflectionIndex.getClassIndex(DeploymentReflectionIndex.java:70) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.as.ee.metadata.MethodAnnotationAggregator.runtimeAnnotationInformation(MethodAnnotationAggregator.java:58)
at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.handleAnnotations(InterceptorAnnotationProcessor.java:85)
at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.processComponentConfig(InterceptorAnnotationProcessor.java:70)
at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.deploy(InterceptorAnnotationProcessor.java:55)
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
... 5 more
Caused by: java.lang.NoClassDefFoundError: org/jdom2/JDOMException
at java.lang.Class.getDeclaredFields0(Native Method) [rt.jar:1.7.0]
at java.lang.Class.privateGetDeclaredFields(Unknown Source) [rt.jar:1.7.0]
at java.lang.Class.getDeclaredFields(Unknown Source) [rt.jar:1.7.0]
at org.jboss.as.server.deployment.reflect.ClassReflectionIndex.<init>(ClassReflectionIndex.java:57) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.as.server.deployment.reflect.DeploymentReflectionIndex.getClassIndex(DeploymentReflectionIndex.java:66) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
... 10 more
Caused by: java.lang.ClassNotFoundException: org.jdom2.JDOMException from [Module "deployment.myEnterprisePrj.ear.myWebPrj.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)
... 15 more
15:09:08,172 INFO [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor] (MSC service thread 1-4) JNDI bindings for session bean named PlaceSessionBean in deployment unit subdeployment "PlaceEJB.jar" of deployment "myEnterprisePrj.ear" are as follows:
java:global/myEnterprisePrj/PlaceEJB/PlaceSessionBean!place.bean.PlaceSessionBean
java:app/PlaceEJB/PlaceSessionBean!place.bean.PlaceSessionBean
java:module/PlaceSessionBean!place.bean.PlaceSessionBean
java:global/myEnterprisePrj/PlaceEJB/PlaceSessionBean
java:app/PlaceEJB/PlaceSessionBean
java:module/PlaceSessionBean
15:09:08,196 ERROR [org.jboss.as] (MSC service thread 1-2) JBAS015875: JBoss AS 7.1.1.Final "Brontes" started (with errors) in 3491ms - Started 170 of 261 services (8 services failed or missing dependencies, 82 services are passive or on-demand)
15:09:08,406 INFO [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015870: Deploy of deployment "myEnterprisePrj.ear" was rolled back with failure message {"JBAS014671: Failed services" => {"jboss.deployment.subunit.\"myEnterprisePrj.ear\".\"myWebPrj.war\".POST_MODULE" => "org.jboss.msc.service.StartException in service jboss.deployment.subunit.\"myEnterprisePrj.ear\".\"myWebPrj.war\".POST_MODULE: Failed to process phase POST_MODULE of subdeployment \"myWebPrj.war\" of deployment \"myEnterprisePrj.ear\""},"JBAS014771: Services with missing/unavailable dependencies" => ["jboss.naming.context.java.comp.myEnterprisePrj.GeocorderEJB.GeocorderSessionBean.ValidatorFactoryjboss.naming.context.java.comp.myEnterprisePrj.GeocorderEJB.GeocorderSessionBeanMissing[jboss.naming.context.java.comp.myEnterprisePrj.GeocorderEJB.GeocorderSessionBean.ValidatorFactoryjboss.naming.context.java.comp.myEnterprisePrj.GeocorderEJB.GeocorderSessionBean]","jboss.naming.context.java.comp.myEnterprisePrj.GeocorderEJB.GeocorderSessionBean.Validatorjboss.naming.context.java.comp.myEnterprisePrj.GeocorderEJB.GeocorderSessionBeanMissing[jboss.naming.context.java.comp.myEnterprisePrj.GeocorderEJB.GeocorderSessionBean.Validatorjboss.naming.context.java.comp.myEnterprisePrj.GeocorderEJB.GeocorderSessionBean]","jboss.naming.context.java.comp.myEnterprisePrj.PlaceEJB.PlaceSessionBean.ValidatorFactoryjboss.naming.context.java.comp.myEnterprisePrj.PlaceEJB.PlaceSessionBeanMissing[jboss.naming.context.java.comp.myEnterprisePrj.PlaceEJB.PlaceSessionBean.ValidatorFactoryjboss.naming.context.java.comp.myEnterprisePrj.PlaceEJB.PlaceSessionBean]","jboss.naming.context.java.comp.myEnterprisePrj.PlaceEJB.PlaceSessionBean.Validatorjboss.naming.context.java.comp.myEnterprisePrj.PlaceEJB.PlaceSessionBeanMissing[jboss.naming.context.java.comp.myEnterprisePrj.PlaceEJB.PlaceSessionBean.Validatorjboss.naming.context.java.comp.myEnterprisePrj.PlaceEJB.PlaceSessionBean]"]}
15:09:08,431 INFO [org.jboss.as.server.deployment] (MSC service thread 1-4) JBAS015877: Stopped deployment PlaceEJB.jar in 10ms
15:09:08,432 INFO [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015877: Stopped deployment myWebPrj.war in 11ms
15:09:08,432 INFO [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015877: Stopped deployment GeocorderEJB.jar in 11ms
15:09:08,445 INFO [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015877: Stopped deployment myEnterprisePrj.ear in 25ms
15:09:08,448 INFO [org.jboss.as.controller] (DeploymentScanner-threads - 2) JBAS014774: Service status report
JBAS014775: New missing/unsatisfied dependencies:
service jboss.naming.context.java.comp.myEnterprisePrj.GeocorderEJB.GeocorderSessionBean (missing) dependents: [service jboss.naming.context.java.comp.myEnterprisePrj.GeocorderEJB.GeocorderSessionBean.ValidatorFactory, service jboss.naming.context.java.comp.myEnterprisePrj.GeocorderEJB.GeocorderSessionBean.Validator]
service jboss.naming.context.java.comp.myEnterprisePrj.PlaceEJB.PlaceSessionBean (missing) dependents: [service jboss.naming.context.java.comp.myEnterprisePrj.PlaceEJB.PlaceSessionBean.ValidatorFactory, service jboss.naming.context.java.comp.myEnterprisePrj.PlaceEJB.PlaceSessionBean.Validator]
JBAS014777: Services which failed to start: service jboss.deployment.subunit."myEnterprisePrj.ear"."myWebPrj.war".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.subunit."myEnterprisePrj.ear"."myWebPrj.war".POST_MODULE: Failed to process phase POST_MODULE of subdeployment "myWebPrj.war" of deployment "myEnterprisePrj.ear"
15:09:08,457 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.\"myEnterprisePrj.ear\".\"myWebPrj.war\".POST_MODULE" => "org.jboss.msc.service.StartException in service jboss.deployment.subunit.\"myEnterprisePrj.ear\".\"myWebPrj.war\".POST_MODULE: Failed to process phase POST_MODULE of subdeployment \"myWebPrj.war\" of deployment \"myEnterprisePrj.ear\""},"JBAS014771: Services with missing/unavailable dependencies" => ["jboss.naming.context.java.comp.myEnterprisePrj.GeocorderEJB.GeocorderSessionBean.ValidatorFactoryjboss.naming.context.java.comp.myEnterprisePrj.GeocorderEJB.GeocorderSessionBeanMissing[jboss.naming.context.java.comp.myEnterprisePrj.GeocorderEJB.GeocorderSessionBean.ValidatorFactoryjboss.naming.context.java.comp.myEnterprisePrj.GeocorderEJB.GeocorderSessionBean]","jboss.naming.context.java.comp.myEnterprisePrj.GeocorderEJB.GeocorderSessionBean.Validatorjboss.naming.context.java.comp.myEnterprisePrj.GeocorderEJB.GeocorderSessionBeanMissing[jboss.naming.context.java.comp.myEnterprisePrj.GeocorderEJB.GeocorderSessionBean.Validatorjboss.naming.context.java.comp.myEnterprisePrj.GeocorderEJB.GeocorderSessionBean]","jboss.naming.context.java.comp.myEnterprisePrj.PlaceEJB.PlaceSessionBean.ValidatorFactoryjboss.naming.context.java.comp.myEnterprisePrj.PlaceEJB.PlaceSessionBeanMissing[jboss.naming.context.java.comp.myEnterprisePrj.PlaceEJB.PlaceSessionBean.ValidatorFactoryjboss.naming.context.java.comp.myEnterprisePrj.PlaceEJB.PlaceSessionBean]","jboss.naming.context.java.comp.myEnterprisePrj.PlaceEJB.PlaceSessionBean.Validatorjboss.naming.context.java.comp.myEnterprisePrj.PlaceEJB.PlaceSessionBeanMissing[jboss.naming.context.java.comp.myEnterprisePrj.PlaceEJB.PlaceSessionBean.Validatorjboss.naming.context.java.comp.myEnterprisePrj.PlaceEJB.PlaceSessionBean]"]}}}
I use jdom2 jarexternal library. But if i load the jar from buildPath of project and i don't write any code that call the methods of the library the deployments has success.
Also i see in the directory JbossFinal7.1/standalone/deployments/myEnterpriseProject.ear that there is no lib folder and no jar file, so i don't know where is the referiment to the library.
I can't find the solution.
Thanks for any help.

Categories