4 Replies Latest reply: Apr 15, 2012 6:01 PM by Ondrej Zizka RSS

Fail to deploy Ejb3 in action sample project to Jboss AS 7

David Zhu Newbie

Hi dear all,

 

I was trying to deploy actionbazaar (the sample project of EJB3 in action ) to Jboss AS 7 with maven plugin as below,

<plugin>

                                        <groupId>org.jboss.as.plugins</groupId>

                                        <artifactId>jboss-as-maven-plugin</artifactId>

                                        <version>7.0.0.Final</version>

                                        <configuration>

                                                  <hostname>localhost</hostname>

                                                  <port>9999</port>

                                                  <filename>${project.build.finalName}.war</filename>

                                        </configuration>

</plugin>

 

But always unexpectedly got the error message and deployment failure information as below,

 

23:25:39,999 INFO  [org.jboss.as.server.deployment] (pool-1-thread-7) Content added at location C:\jboss-as-7.0.1.Final\standalone\data\content\1b\b2322bea86b36d161746ef6c1e8af9da251805\content

23:25:40,001 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-2) Starting deployment of "chapter6.war"

23:25:40,486 DEBUG [org.jboss.as.ejb3.deployment.processors.StartupAnnotationProcessor] (MSC service thread 1-2) SystemInitializer bean has been marked for init-on-startup (a.k.a @Startup)

23:25:40,486 DEBUG [org.jboss.as.ejb3.deployment.processors.StartupAnnotationProcessor] (MSC service thread 1-2) FeaturedItemBean bean has been marked for init-on-startup (a.k.a @Startup)

23:25:40,488 DEBUG [org.jboss.web] (MSC service thread 1-2) Resolved order: [ prettyfaces-jsf2-3.3.0.jar primefaces-2.2.1.jar commons-io-2.0.1.jar shrinkwrap-api-1.0.0-alpha-12.jar arquillian-impl-base-1.0.0.Alpha3.jar arquillian-spi-1.0.0.Alpha4.jar arquillian-api-1.0.0.Alpha5.jar shrinkwrap-descriptors-api-0.1.6.jar ]

23:25:40,489 WARN  [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-2) Encountered invalid class name "implClass=org.jboss.shrinkwrap.descriptor.impl.spec.jpa.persistence.PersistenceDescriptorImpl" for service type "org.jboss.shrinkwrap.descriptor.api.spec.jpa.persistence.PersistenceDescriptor"

23:25:40,490 WARN  [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-2) Encountered invalid class name "importerClass=org.jboss.shrinkwrap.descriptor.impl.base.XMLImporter" for service type "org.jboss.shrinkwrap.descriptor.api.spec.jpa.persistence.PersistenceDescriptor"

23:25:40,490 WARN  [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-2) Encountered invalid class name "defaultName=persistence.xml" for service type "org.jboss.shrinkwrap.descriptor.api.spec.jpa.persistence.PersistenceDescriptor"

23:25:40,491 WARN  [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-2) Encountered invalid class name "implClass=org.jboss.shrinkwrap.descriptor.impl.spec.ee.application.ApplicationDescriptorImpl" for service type "org.jboss.shrinkwrap.descriptor.api.spec.ee.application.ApplicationDescriptor"

23:25:40,492 WARN  [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-2) Encountered invalid class name "importerClass=org.jboss.shrinkwrap.descriptor.impl.base.XMLImporter" for service type "org.jboss.shrinkwrap.descriptor.api.spec.ee.application.ApplicationDescriptor"

23:25:40,492 WARN  [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-2) Encountered invalid class name "defaultName=application.xml" for service type "org.jboss.shrinkwrap.descriptor.api.spec.ee.application.ApplicationDescriptor"

23:25:40,493 WARN  [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-2) Encountered invalid class name "implClass=org.jboss.shrinkwrap.descriptor.impl.spec.servlet.web.WebAppDescriptorImpl" for service type "org.jboss.shrinkwrap.descriptor.api.spec.servlet.web.WebAppDescriptor"

23:25:40,493 WARN  [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-2) Encountered invalid class name "importerClass=org.jboss.shrinkwrap.descriptor.impl.base.XMLImporter" for service type "org.jboss.shrinkwrap.descriptor.api.spec.servlet.web.WebAppDescriptor"

23:25:40,494 WARN  [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-2) Encountered invalid class name "defaultName=web.xml" for service type "org.jboss.shrinkwrap.descriptor.api.spec.servlet.web.WebAppDescriptor"

23:25:40,494 WARN  [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-2) Encountered invalid class name "implClass=org.jboss.shrinkwrap.descriptor.impl.spec.cdi.beans.BeansDescriptorImpl" for service type "org.jboss.shrinkwrap.descriptor.api.spec.cdi.beans.BeansDescriptor"

23:25:40,498 WARN  [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-2) Encountered invalid class name "importerClass=org.jboss.shrinkwrap.descriptor.impl.base.XMLImporter" for service type "org.jboss.shrinkwrap.descriptor.api.spec.cdi.beans.BeansDescriptor"

23:25:40,499 WARN  [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-2) Encountered invalid class name "defaultName=beans.xml" for service type "org.jboss.shrinkwrap.descriptor.api.spec.cdi.beans.BeansDescriptor"

23:25:40,500 DEBUG [org.jboss.weld] (MSC service thread 1-2) Found beans.xml: "/C:/jboss-as-7.0.1.Final/bin/content/chapter6.war/WEB-INF/beans.xml"

23:25:40,502 INFO  [org.jboss.jpa] (MSC service thread 1-2) read persistence.xml for actionbazaar

23:25:40,503 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC00001: Failed to start service jboss.deployment.unit."chapter6.war".PARSE: org.jboss.msc.service.StartException in service jboss.deployment.unit."chapter6.war".PARSE: Failed to process phase PARSE of deployment "chapter6.war"

          at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:121)

          at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1765)

          at org.jboss.msc.service.ServiceControllerImpl$ClearTCCLTask.run(ServiceControllerImpl.java:2291)

          at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_27]

          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_27]

          at java.lang.Thread.run(Thread.java:662) [:1.6.0_27]

Caused by: java.lang.IllegalArgumentException: Class level annotations must provide a name.

          at org.jboss.as.jpa.processor.JPAAnnotationParseProcessor.processClass(JPAAnnotationParseProcessor.java:233)

          at org.jboss.as.jpa.processor.JPAAnnotationParseProcessor.processPersistenceAnnotations(JPAAnnotationParseProcessor.java:127)

          at org.jboss.as.jpa.processor.JPAAnnotationParseProcessor.deploy(JPAAnnotationParseProcessor.java:90)

          at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:115)

          ... 5 more

 

 

23:25:40,508 INFO  [org.jboss.as.server.controller] (pool-1-thread-7) Deployment of "chapter6.war" was rolled back with failure message {"Failed services" => {"jboss.deployment.unit.\"chapter6.war\".PARSE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"chapter6.war\".PARSE: Failed to process phase PARSE of deployment \"chapter6.war\""}}

23:25:40,923 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-6) Stopped deployment chapter6.war in 426ms

 

I am pretty new in learning EJB3 and Jboss platform, any helps would be highly appreciated!

 

thanks in advance!

 

David