2 Replies Latest reply on Dec 9, 2011 5:37 PM by Marko Strukelj

    jboss7.2 problem with maven

    lukas lukasz Newbie

      hello i use jbossas 7.2 and i create in eclipse new maven project " notice" i use archetype jboss-javaee6-ear-webapp.

      My ejb subproject compile and install into repo fine (mvn package , mvn install ). But if i try use mvn package into notice-web project i have got error :

       

      [ERROR] Failed to execute goal on project notice-web: Could not resolve dependencies for project notice:notice-web:war:1.0: Failed to collect dependencies for [notice:notice-ejb:jar:1.0 (provided), org.jboss.spec.javax.ws.rs:jboss-jaxrs-api_1.1_spec:jar:1.0.0.Final (provided), javax.enterprise:cdi-api:jar:1.0-SP4 (provided), org.hibernate.javax.persistence:hibernate-jpa-2.0-api:jar:1.0.1.Final (provided)]: Failed to read artifact descriptor for notice:notice-ejb:jar:1.0: Failure to find notice:notice:pom:1.0 in http://repository.jboss.org/nexus/content/groups/public was cached in the local repository, resolution will not be reattempted until the update interval of jboss-public-repository has elapsed or updates are forced -> [Help 1]

       

       

      i try to use command mvn -U clean install in notice-ejb but its not working .

      i use Apache Maven 3.0.3 (r1075438; 2011-02-28 18:31:09+0100).

      So what i need to do ?? thx for answer

       

      ps. i have got notice into local repositories and in settings.xml (maven ) i have got <localRepository>/usr/local/.m3</localRepository>

        • 1. Re: jboss7.2 problem with maven
          lukas lukasz Newbie

          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
            Marko Strukelj Master

            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