[JBoss AS 7 Development] - Fail to deploy Ejb3 in action sample project to Jboss AS 7
by David Zhu
David Zhu [https://community.jboss.org/people/davidgrubby] created the discussion
"Fail to deploy Ejb3 in action sample project to Jboss AS 7"
To view the discussion, visit: https://community.jboss.org/message/649130#649130
--------------------------------------------------------------
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
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/649130#649130]
Start a new discussion in JBoss AS 7 Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 8 months
[jBPM Development] - Re: (JBPM5.1) How can I modify the page of jbpm-console
by Adam Bach
Adam Bach [https://community.jboss.org/people/heathcliff] created the discussion
"Re: (JBPM5.1) How can I modify the page of jbpm-console"
To view the discussion, visit: https://community.jboss.org/message/647478#647478
--------------------------------------------------------------
Hi,
with krisv help I got to know what packages i needed to get to change jbpm console. I have downloaded gwt-console project sources and I tryed to compile them with command You wrote here:
mvn clean install -Dconsole.profile=jbpm
and then I got error:
[ERROR] The build could not read 2 projects -> [Help 1]
[ERROR]
[ERROR] The project org.jboss.bpm:gwt-console-servermodule:2.4.0-SNAPSHOT (C:\Download\bpmc-bpm-console-2.2.7.Final-32
-gb7fff01\bpmc-bpm-console-b7fff01\server\pom.xml) has 2 errors
[ERROR] Child module C:\Download\bpmc-bpm-console-2.2.7.Final-32-gb7fff01\bpmc-bpm-console-b7fff01\server\war\pom.xm
l of C:\Download\bpmc-bpm-console-2.2.7.Final-32-gb7fff01\bpmc-bpm-console-b7fff01\server\pom.xml does not exist
[ERROR] Child module C:\Download\bpmc-bpm-console-2.2.7.Final-32-gb7fff01\bpmc-bpm-console-b7fff01\server\integratio
n\pom.xml of C:\Download\bpmc-bpm-console-2.2.7.Final-32-gb7fff01\bpmc-bpm-console-b7fff01\server\pom.xml does not exist
[ERROR]
[ERROR] The project org.jboss.bpm:gwt-console-gui:2.4.0-SNAPSHOT (C:\Download\bpmc-bpm-console-2.2.7.Final-32-gb7fff01
\bpmc-bpm-console-b7fff01\gui\pom.xml) has 1 error
[ERROR] Child module C:\Download\bpmc-bpm-console-2.2.7.Final-32-gb7fff01\bpmc-bpm-console-b7fff01\gui\war\pom.xml o
f C:\Download\bpmc-bpm-console-2.2.7.Final-32-gb7fff01\bpmc-bpm-console-b7fff01\gui\pom.xml does not exist
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
It seems that sources are missing 3 pom.xml files, the root pom is wrong or IDK:(
Please help
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/647478#647478]
Start a new discussion in jBPM Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 8 months
[EJB3 Development] - Ejb3 MBeans External Configuration ?
by Christian Leclerc
Christian Leclerc [https://community.jboss.org/people/christian.leclerc] created the discussion
"Ejb3 MBeans External Configuration ?"
To view the discussion, visit: https://community.jboss.org/message/647985#647985
--------------------------------------------------------------
Hello guy's, im kind of new here so first of all I want to thank you for the any support that you will give to me.
Here is my question now, iv'e bean searching since 2 day's on and off ..
I am an Jboss as 6 guy's and now im migrate to Jboss as 7.
I've got a MBeans that is called
something-service.xml
Here is the detail :
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE server PUBLIC "-//JBoss//DTD MBean Service 4.0//EN"
"http://www.jboss.org/j2ee/dtd/jboss-service_4_0.dtd">
<server>
<mbean code="org.jboss.naming.JNDIBindingServiceMgr" name="ca.s3s.identitygardens.config:service=identitygardens-config">
<attribute name="BindingsConfig" serialDataType="jbxb">
<jndi:bindings xmlns:xs="http://www.w3.org/2001/XMLSchema-instance"
xmlns:jndi="urn:jboss:jndi-binding-service:1.0"
xs:schemaLocation="urn:jboss:jndi-binding-service:1.0 resource:jndi-binding-service_1_0.xsd">
<jndi:binding name="conf/x500Properties">
<java:properties xmlns:java="urn:jboss:java-properties"
xmlns:xs="http://www.w3.org/2001/XMLSchema-instance"
xs:schemaLocation="urn:jboss:java-properties resource:java-properties_1_0.xsd">
<java:property><java:key>Item A</java:key> <java:value>value A</java:value></java:property>
<java:property><java:key>Item b</java:key><java:value>Value b</java:value></java:property>
<java:property><java:key>Item C</java:key><java:value>Value C</java:value></java:property>
</java:properties>
</jndi:binding>
</jndi:bindings>
</attribute>
<depends>jboss:service=Naming</depends>
</mbean>
</server>
And in my ejb I inject the value with :
@Resource(mappedName = "conf/x500Properties")
Everything work's great and now I wonder how to do this in JBoss AS 7
It was very great because this way I was able to make the configuration out of my ear file.
The value is put in jndi at startup and the ejb go fetch this value by injection ..
I know that I can possibly put a string in JNDI this way :
https://community.jboss.org/message/615368#615368 https://community.jboss.org/message/615368
But did I can make a complete properties file object on this way ?
Thanks for any reply.
Christian Leclerc.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/647985#647985]
Start a new discussion in EJB3 Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 8 months
[JBoss Web Development] - i encountered an issue when i trying to start up jboss, can someone help me?
by champin hwang
champin hwang [https://community.jboss.org/people/champin0904] created the discussion
"i encountered an issue when i trying to start up jboss, can someone help me?"
To view the discussion, visit: https://community.jboss.org/message/646613#646613
--------------------------------------------------------------
14:39:39,234 ERROR [AbstractKernelController] Error installing to Real: name=vfsfile:/D:/PCE_Dev/Project/Runtime/jboss51/server/PCE/deploy/jca-jboss-beans.xml state=PreReal mode=Manual requiredState=Real
org.jboss.deployers.spi.DeploymentException: Error deploying: vfsfile:/D:/PCE_Dev/Project/Runtime/jboss51/server/PCE/deploy/jca-jboss-beans.xml
at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataFactoryVisitor.deploy(BeanMetaDataFactoryVisitor.java:136)
at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployerWithInput.deploy(AbstractRealDeployerWithInput.java:125)
at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployerWithInput.internalDeploy(AbstractRealDeployerWithInput.java:102)
at org.jboss.deployers.spi.deployer.helpers.AbstractComponentDeployer.internalDeploy(AbstractComponentDeployer.java:78)
at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:702)
at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)
at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:70)
at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)
at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:361)
at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
at org.jboss.system.server.profileservice.repository.AbstractProfileService.activateProfile(AbstractProfileService.java:306)
at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:271)
at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)
at org.jboss.Main.boot(Main.java:221)
at org.jboss.Main$1.run(Main.java:556)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.IllegalArgumentException: Exception loading class for ScopeKey addition.
at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataFactoryVisitor.addBeanComponent(BeanMetaDataFactoryVisitor.java:67)
at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataFactoryVisitor.deploy(BeanMetaDataFactoryVisitor.java:126)
... 34 more
Caused by: java.lang.ClassNotFoundException: org.jboss.resource.work.JBossWorkManager from BaseClassLoader@8c7c7f{VFSClassLoaderPolicy@141ab78{name=vfsfile:/D:/PCE_Dev/Project/Runtime/jboss51/server/PCE/deploy/jca-jboss-beans.xml domain=ClassLoaderDomain@278e83{name=DefaultDomain parentPolicy=BEFORE parent=org.jboss.bootstrap.NoAnnotationURLClassLoader@cd2c3c} roots=[MemoryContextHandler@6325283[path= context=vfsmemory://4sh1w1y-uscbyo-gxcu36y3-1-gxcu60ui-1q real=vfsmemory://4sh1w1y-uscbyo-gxcu36y3-1-gxcu60ui-1q]] delegates=null exported=[] <IMPORT-ALL>NON_EMPTY}}
at org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.java:448)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataFactoryVisitor.addBeanComponent(BeanMetaDataFactoryVisitor.java:63)
... 35 more
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/646613#646613]
Start a new discussion in JBoss Web Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 9 months