[JBoss AS7 Development] - JBoss AS7 and activemq connector
by Jean-Pierre RIO
Jean-Pierre RIO [http://community.jboss.org/people/jprio] created the discussion
"JBoss AS7 and activemq connector"
To view the discussion, visit: http://community.jboss.org/message/624681#624681
--------------------------------------------------------------
Hi,
I'm trying to receive messages from activemq with MDB in AS7 (7.1.0.Alpha1-SNAPSHOT, standalone-preview.xml configuration). What i do :
- copy the activemq-rar-5.5.0.rar in standalone/deployments
- add the resource adapter description :
<resource-adapter>
<archive>
activemq-rar-5.5.0.rar
</archive>
<transaction-support>
NoTransaction
</transaction-support>
<connection-definitions>
<connection-definition class-name="org.apache.activemq.ra.ActiveMQConnectionFactory" jndi-name="java:/eis/amq" enabled="true" use-java-context="true" pool-name="activemq-rar-5_5_0_jar-Pool" use-ccm="true"/>
</connection-definitions>
</resource-adapter>
- annotate my MDB with : @org.jboss.ejb3.annotation.ResourceAdapter(value="activemq-rar-5.5.0.rar")
When i start jboss, i can see this :
07:29:46,550 INFO [org.jboss.as.server.deployment] (MSC service thread 1-4) Starting deployment of "activemq-rar-5.5.0.rar"
07:29:47,902 INFO [org.jboss.as.jpa] (MSC service thread 1-3) added javax.persistence.api dependency to activemq-rar-5.5.0.rar
07:29:48,017 TRACE [org.jboss.as.connector.deployer.raxmldeployer] (MSC service thread 1-2) processing Raxml
07:29:48,021 INFO [org.jboss.as.connector.metadata.deployment.ResourceAdapterDeploymentService$AS7RaDeployer] (MSC service thread 1-5) IJ020001: Required license terms for file:/media/267088430603D720/dev_station/java_station/serveurs/jboss-as-7.1.0.Alpha1-SNAPSHOT/bin/../standalone/tmp/vfs/temp5de4028d1045bd2/activemq-rar-5.5.0.rar-5a3643b13e66d7b9/contents/
07:29:48,034 DEBUG [org.jboss.as.connector.metadata.deployment.ResourceAdapterDeploymentService$AS7RaDeployer] (MSC service thread 1-5) Registering ResourceAdapter activemq-rar-5.5.0
07:29:48,034 DEBUG [org.jboss.as.connector.metadata.deployment.ResourceAdapterDeploymentService$AS7RaDeployer] (MSC service thread 1-5) Activated: file:/media/267088430603D720/dev_station/java_station/serveurs/jboss-as-7.1.0.Alpha1-SNAPSHOT/bin/../standalone/tmp/vfs/temp5de4028d1045bd2/activemq-rar-5.5.0.rar-5a3643b13e66d7b9/contents/
07:29:48,036 INFO [org.jboss.as.connector.metadata.deployment.ResourceAdapterXmlDeploymentService$AS7RaXmlDeployer] (MSC service thread 1-5) IJ020001: Required license terms for file:/media/267088430603D720/dev_station/java_station/serveurs/jboss-as-7.1.0.Alpha1-SNAPSHOT/bin/../standalone/tmp/vfs/temp5de4028d1045bd2/activemq-rar-5.5.0.rar-5a3643b13e66d7b9/contents/
07:29:48,074 ERROR [stderr] (MSC service thread 1-5) log4j:WARN No appenders could be found for logger (org.apache.activemq.ra.ActiveMQResourceAdapter).
07:29:48,074 ERROR [stderr] (MSC service thread 1-5) log4j:WARN Please initialize the log4j system properly.
07:29:48,075 TRACE [org.jboss.as.connector.metadata.deployment.ResourceAdapterXmlDeploymentService$AS7RaXmlDeployer] (MSC service thread 1-5) ResourceAdapter: org.apache.activemq.ra.ActiveMQResourceAdapter
07:29:48,075 TRACE [org.jboss.as.connector.metadata.deployment.ResourceAdapterXmlDeploymentService$AS7RaXmlDeployer] (MSC service thread 1-5) ResourceAdapter defined in classloader: ModuleClassLoader for Module "deployment.activemq-rar-5.5.0.rar:main" from Service Module Loader
07:29:48,075 DEBUG [org.jboss.as.connector.metadata.deployment.ResourceAdapterXmlDeploymentService$AS7RaXmlDeployer] (MSC service thread 1-5) No activation: org.apache.activemq.ra.ActiveMQManagedConnectionFactory
07:29:48,075 DEBUG [org.jboss.as.connector.metadata.deployment.ResourceAdapterXmlDeploymentService$AS7RaXmlDeployer] (MSC service thread 1-5) No activation: org.apache.activemq.ra.ActiveMQManagedConnectionFactory
07:29:48,075 DEBUG [org.jboss.as.connector.metadata.deployment.ResourceAdapterXmlDeploymentService$AS7RaXmlDeployer] (MSC service thread 1-5) No activation: org.apache.activemq.ra.ActiveMQManagedConnectionFactory
07:29:48,075 TRACE [org.jboss.as.connector.metadata.deployment.ResourceAdapterXmlDeploymentService$AS7RaXmlDeployer] (MSC service thread 1-5) ActivationSpec: org.apache.activemq.ra.ActiveMQActivationSpec
07:29:48,075 TRACE [org.jboss.as.connector.metadata.deployment.ResourceAdapterXmlDeploymentService$AS7RaXmlDeployer] (MSC service thread 1-5) ActivationSpec defined in classloader: ModuleClassLoader for Module "deployment.activemq-rar-5.5.0.rar:main" from Service Module Loader
07:29:48,076 DEBUG [org.jboss.as.connector.metadata.deployment.ResourceAdapterXmlDeploymentService$AS7RaXmlDeployer] (MSC service thread 1-5) No activation: org.apache.activemq.command.ActiveMQQueue
07:29:48,076 DEBUG [org.jboss.as.connector.metadata.deployment.ResourceAdapterXmlDeploymentService$AS7RaXmlDeployer] (MSC service thread 1-5) No activation: org.apache.activemq.command.ActiveMQTopic
07:29:48,076 DEBUG [org.jboss.as.connector.metadata.deployment.ResourceAdapterXmlDeploymentService$AS7RaXmlDeployer] (MSC service thread 1-5) Registering ResourceAdapter activemq-rar-5.5.0
07:29:48,076 INFO [org.jboss.as.connector.metadata.deployment.ResourceAdapterXmlDeploymentService$AS7RaXmlDeployer] (MSC service thread 1-5) IJ020002: Deployed: file:/media/267088430603D720/dev_station/java_station/serveurs/jboss-as-7.1.0.Alpha1-SNAPSHOT/bin/../standalone/tmp/vfs/temp5de4028d1045bd2/activemq-rar-5.5.0.rar-5a3643b13e66d7b9/contents/
07:29:48,077 INFO [org.jboss.as.deployment.connector] (MSC service thread 1-5) Starting sevice service jboss.ra."activemq-rar-5.5.0_1"
07:29:48,077 DEBUG [org.jboss.as.connector] (MSC service thread 1-7) started ResourceAdapterService service jboss.ra."activemq-rar-5.5.0_1"
07:29:48,089 INFO [org.jboss.as.server.controller] (DeploymentScanner-threads - 1) Deployed "activemq-rar-5.5.0.rar"
...
...
07:30:43,313 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-6) MSC00001: Failed to start service jboss.deployment.unit."JBossAS7_dev_labs-0.0.1-SNAPSHOT.jar".component.MDB-amq.CREATE: org.jboss.msc.service.StartException in service jboss.deployment.unit."JBossAS7_dev_labs-0.0.1-SNAPSHOT.jar".component.MDB-amq.CREATE: Failed to start service
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1780) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_24]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_24]
at java.lang.Thread.run(Thread.java:662) [:1.6.0_24]
Caused by: org.jboss.msc.service.ServiceNotFoundException: Service service "activemq-rar-5.5.0" not found
at org.jboss.msc.service.ServiceContainerImpl.getRequiredService(ServiceContainerImpl.java:447) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]
at org.jboss.as.ejb3.component.messagedriven.MessageDrivenComponentCreateService.getRequiredService(MessageDrivenComponentCreateService.java:119)
at org.jboss.as.ejb3.component.messagedriven.MessageDrivenComponentCreateService.createComponent(MessageDrivenComponentCreateService.java:80)
at org.jboss.as.ee.component.BasicComponentCreateService.start(BasicComponentCreateService.java:78)
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]
... 3 more
Can someone tell me what's wrong ?
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/624681#624681]
Start a new discussion in JBoss AS7 Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 6 months
[jBPM Development] - Maven jbpm5 install problem
by npereira
npereira [http://community.jboss.org/people/npereira] created the discussion
"Maven jbpm5 install problem"
To view the discussion, visit: http://community.jboss.org/message/624660#624660
--------------------------------------------------------------
Hi forum,
I tried to install the jbpm5 maven project, but I'm having some difficulties.
What I did was the following:
1. Install maven3
2. Install GIT
3. Git Clone https://github.com/droolsjbpm/jbpm https://github.com/droolsjbpm/jbpm
4. execute mvn clean install
After a while I get the following report:
Tests run: 923, Failures: 24, Errors: 530, Skipped: 0
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] jBPM multiproject ................................. SUCCESS [7.327s]
[INFO] jBPM :: Flow ...................................... SUCCESS [23.889s]
[INFO] jBPM :: Flow Builder .............................. SUCCESS [37.372s]
[INFO] jBPM :: JPA Persistence ........................... SUCCESS [27.312s]
[INFO] jBPM :: BAM ....................................... SUCCESS [9.322s]
[INFO] jBPM :: BPMN2 ..................................... SUCCESS [42.726s]
[INFO] jBPM :: BPMN2 EMF Extension Model ................. SUCCESS [13.927s]
[INFO] jBPM :: WorkItems ................................. SUCCESS [6.110s]
[INFO] jBPM :: Human Task ................................ FAILURE [25:25.020s]
[INFO] jBPM GWT multiproject ............................. SKIPPED
[INFO] jBPM GWT Console Shared ........................... SKIPPED
[INFO] jBPM GWT Console Core ............................. SKIPPED
[INFO] jBPM GWT Console Forms ............................ SKIPPED
[INFO] jBPM GWT Console Graph Viewer ..................... SKIPPED
[INFO] jBPM GWT Console WAR .............................. SKIPPED
[INFO] jBPM Console server WAR ........................... SKIPPED
[INFO] jBPM examples ..................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 28:18.027s
[INFO] Finished at: Sun Sep 04 22:57:10 BST 2011
[INFO] Final Memory: 24M/171M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.6:test (default-test) on project jbpm-human-task: There are test failures.
[ERROR]
[ERROR] Please refer to /home/user235/Work/Development/sourcecode/jbpm/jbpm/jbpm-human-task/target/surefire-reports for the individual test results.
[ERROR] -> [Help 1]
[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/MojoFailureException http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :jbpm-human-task
can anybody help me out?
Regards
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/624660#624660]
Start a new discussion in jBPM Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 6 months
Re: [jboss-dev-forums] [JBoss AS7 Development] - Detyped Description of the AS 7 Management Model
by frankie007
frankie007 [http://community.jboss.org/people/frankie007] commented on the document
"Detyped Description of the AS 7 Management Model"
To view all comments on this document, visit: http://community.jboss.org/docs/DOC-16317#comment-7477
--------------------------------------------------
Hi Brian,
Great article, but one thing is not really clear to me. I hope this is the right place to ask.
Suppose I want to execute an operation of a child of a resource (for example: I want to add a jms-topic). How should I build the address?
I understand that the address exists of key-value pares, but what is the key of a child resource?
I would of course start with
ModelNode address = op.get("address");
address.add("subsystem", "messaging");
but what is next? I've tried a lot of combinations, but nothing worked.
Could you please help me with this one?
Thanks a lot,
Laurenz
--------------------------------------------------
13 years, 6 months