-
1. Re: jboss7.2 problem with maven
lukasw44 Dec 8, 2011 4:10 PM (in response to lukasw44)I use -U parameter in maven and its working fine but i have got another error:
ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC00001: Failed to start service jboss.deployment.subunit."notice.ear"."notice-ejb-1.0.jar".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.subunit."notice.ear"."notice-ejb-1.0.jar".INSTALL: Failed to process phase INSTALL of subdeployment "notice-ejb-1.0.jar" of deployment "notice.ear"
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:121)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1824)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1759)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [:1.6.0_20]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [:1.6.0_20]
at java.lang.Thread.run(Thread.java:636) [:1.6.0_20]
Caused by: java.lang.RuntimeException: Could not get class configuration for notice.notice.enterprise.session.users.user.UserEntityHandlerRemote due to the following errors: Can't find a deployment unit named noticePU at subdeployment "notice-web-1.0.war" of deployment "notice.ear"
at org.jboss.as.ee.component.deployers.EEClassConfigurationProcessor$1.compute(EEClassConfigurationProcessor.java:130)
at org.jboss.as.ee.component.deployers.EEClassConfigurationProcessor$1.compute(EEClassConfigurationProcessor.java:122)
at org.jboss.as.ee.component.LazyValue.get(LazyValue.java:40)
at org.jboss.as.ee.component.EEApplicationDescription.getClassConfiguration(EEApplicationDescription.java:183)
at org.jboss.as.ejb3.component.stateless.StatelessComponentDescription.createConfiguration(StatelessComponentDescription.java:76)
at org.jboss.as.ee.component.deployers.EEModuleConfigurationProcessor.deploy(EEModuleConfigurationProcessor.java:70)
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:115)
... 5 more
21:57:25,822 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC00001: Failed to start service jboss.deployment.subunit."notice.ear"."notice-web-1.0.war".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.subunit."notice.ear"."notice-web-1.0.war".INSTALL: Failed to process phase INSTALL of subdeployment "notice-web-1.0.war" of deployment "notice.ear"
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:121) [jboss-as-server-7.0.2.Final.jar:7.0.2.Final]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1824) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1759) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [:1.6.0_20]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [:1.6.0_20]
at java.lang.Thread.run(Thread.java:636) [:1.6.0_20]
Caused by: java.lang.RuntimeException: Could not get class configuration for notice.notice.enterprise.session.users.user.UserEntityHandlerRemote due to the following errors: Can't find a deployment unit named noticePU at subdeployment "notice-web-1.0.war" of deployment "notice.ear"
at org.jboss.as.ee.component.deployers.EEClassConfigurationProcessor$1.compute(EEClassConfigurationProcessor.java:130)
at org.jboss.as.ee.component.deployers.EEClassConfigurationProcessor$1.compute(EEClassConfigurationProcessor.java:122)
at org.jboss.as.ee.component.LazyValue.get(LazyValue.java:40)
at org.jboss.as.ee.component.EEApplicationDescription.getClassConfiguration(EEApplicationDescription.java:183)
at org.jboss.as.ejb3.component.stateless.StatelessComponentDescription.createConfiguration(StatelessComponentDescription.java:76)
at org.jboss.as.ee.component.deployers.EEModuleConfigurationProcessor.deploy(EEModuleConfigurationProcessor.java:70)
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:115) [jboss-as-server-7.0.2.Final.jar:7.0.2.Final]
... 5 more
21:57:26,032 INFO [org.jboss.as.server.controller] (pool-1-thread-7) Deployment of "notice.ear" was rolled back with failure message {"Failed services" => {"jboss.deployment.subunit.\"notice.ear\".\"notice-ejb-1.0.jar\".INSTALL" => "org.jboss.msc.service.StartException in service jboss.deployment.subunit.\"notice.ear\".\"notice-ejb-1.0.jar\".INSTALL: Failed to process phase INSTALL of subdeployment \"notice-ejb-1.0.jar\" of deployment \"notice.ear\"","jboss.deployment.subunit.\"notice.ear\".\"notice-web-1.0.war\".INSTALL" => "org.jboss.msc.service.StartException in service jboss.deployment.subunit.\"notice.ear\".\"notice-web-1.0.war\".INSTALL: Failed to process phase INSTALL of subdeployment \"notice-web-1.0.war\" of deployment \"notice.ear\""},"Services with missing/unavailable dependencies" => ["jboss.naming.context.java.comp.notice.\"notice-ejb-1.0\".UserEntityHandlerRemote.Validator missing [ jboss.naming.context.java.comp.notice.\"notice-ejb-1.0\".UserEntityHandlerRemote ]","jboss.naming.context.java.module.notice.\"notice-web-1.0\".Validator missing [ jboss.naming.context.java.module.notice.\"notice-web-1.0\" ]","jboss.naming.context.java.comp.notice.\"notice-ejb-1.0\".UserEntityHandlerRemote.ValidatorFactory missing [ jboss.naming.context.java.comp.notice.\"notice-ejb-1.0\".UserEntityHandlerRemote ]","jboss.naming.context.java.module.notice.\"notice-web-1.0\".ValidatorFactory missing [ jboss.naming.context.java.module.notice.\"notice-web-1.0\" ]"]}
21:57:26,040 INFO [org.jboss.as.controller] (pool-1-thread-7) Service status report
New missing/unsatisfied dependencies:
service jboss.naming.context.java.comp.notice."notice-ejb-1.0".UserEntityHandlerRemote (missing)
service jboss.naming.context.java.module.notice."notice-web-1.0" (missing)
Services which failed to start:
service jboss.deployment.subunit."notice.ear"."notice-ejb-1.0.jar".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.subunit."notice.ear"."notice-ejb-1.0.jar".INSTALL: Failed to process phase INSTALL of subdeployment "notice-ejb-1.0.jar" of deployment "notice.ear"
service jboss.deployment.subunit."notice.ear"."notice-web-1.0.war".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.subunit."notice.ear"."notice-web-1.0.war".INSTALL: Failed to process phase INSTALL of subdeployment "notice-web-1.0.war" of deployment "notice.ear"
My persistance.xml :
<?xml version="1.0" encoding="UTF-8"?>
<persistence version="2.0"
xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://java.sun.com/xml/ns/persistence
http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd">
<persistence-unit name="noticePU">
<!-- If you are running in a production environment, add a managed
data source, the example data source is just for proofs of concept! -->
<jta-data-source>java:jboss/datasources/noticeDS</jta-data-source>
<jar-file>notice-ejb-1.0.jar</jar-file>
</persistence-unit>
</persistence>
-
2. Re: jboss7.2 problem with maven
mstruk Dec 9, 2011 5:37 PM (in response to lukasw44)This is GateIn forum. You should post your question in JBoss AS7 forum: http://community.jboss.org/en/jbossas7?view=discussions
But anyway, looks like your issue is JPA related. You might find your answer here: https://docs.jboss.org/author/display/AS7/JPA+Reference+Guide