Discussion:
[jboss-user] [IronJacamar] - Deployment of Resource Adapter embedded in a War
Raghavan Ramanujam
2013-05-14 08:39:39 UTC
Permalink
Raghavan Ramanujam [https://community.jboss.org/people/ramanujaraghavan] created the discussion

"Deployment of Resource Adapter embedded in a War"

To view the discussion, visit: https://community.jboss.org/message/817564#817564

--------------------------------------------------------------
I have  a need to bundle the reource adapter as part of my war. I am not able to get this working. Any Idea on what should I do. If I understand your answer correctly the resource adapter is deployed as a separate one. In couple of documentations it is said to put as part of WEB-INF/lib and it will take but when I did that I got an error as


12:57:11,844 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC000001: Failed to start service jboss.deployment.unit."TestAppServletProject.war".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.unit."TestAppServletProject.war".POST_MODULE: JBAS018733: Failed to process phase POST_MODULE of deployment "TestAppServletProject.war"
          at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:123) [jboss-as-server-7.1.2.Final-redhat-1.jar:7.1.2.Final-redhat-1]
          at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA-redhat-1.jar:1.0.2.GA-redhat-1]
          at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA-redhat-1.jar:1.0.2.GA-redhat-1]
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_17]
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_17]
          at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_17]
Caused by: java.lang.RuntimeException: JBAS018757: Error getting reflective information for class net.**.**.ResourceAdapterTestServlet with ClassLoader ModuleClassLoader for Module "deployment.TestAppServletProject.war:main" from Service Module Loader
          at org.jboss.as.server.deployment.reflect.DeploymentReflectionIndex.getClassIndex(DeploymentReflectionIndex.java:72) [jboss-as-server-7.1.2.Final-redhat-1.jar:7.1.2.Final-redhat-1]
          at org.jboss.as.ee.metadata.MethodAnnotationAggregator.runtimeAnnotationInformation(MethodAnnotationAggregator.java:58)
          at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.handleAnnotations(InterceptorAnnotationProcessor.java:85)
          at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.processComponentConfig(InterceptorAnnotationProcessor.java:70)
          at org.jboss.as.ee.component.deployers.InterceptorAnnotationProcessor.deploy(InterceptorAnnotationProcessor.java:55)
          at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:116) [jboss-as-server-7.1.2.Final-redhat-1.jar:7.1.2.Final-redhat-1]
          ... 5 more
Caused by: java.lang.NoClassDefFoundError: Lnet/**/**/framework/workmanager/WMConnectionFactory;
          at java.lang.Class.getDeclaredFields0(Native Method) [rt.jar:1.7.0_17]
          at java.lang.Class.privateGetDeclaredFields(Class.java:2317) [rt.jar:1.7.0_17]
          at java.lang.Class.getDeclaredFields(Class.java:1762) [rt.jar:1.7.0_17]
          at org.jboss.as.server.deployment.reflect.ClassReflectionIndex.<init>(ClassReflectionIndex.java:57) [jboss-as-server-7.1.2.Final-redhat-1.jar:7.1.2.Final-redhat-1]
          at org.jboss.as.server.deployment.reflect.DeploymentReflectionIndex.getClassIndex(DeploymentReflectionIndex.java:68) [jboss-as-server-7.1.2.Final-redhat-1.jar:7.1.2.Final-redhat-1]
          ... 10 more
Caused by: java.lang.ClassNotFoundException: net.**.**.framework.workmanager.WMConnectionFactory from [Module "deployment.TestAppServletProject.war:main" from Service Module Loader]
          at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190)
          at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468)
          at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456)
          at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)
          at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120)
          ... 15 more
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/817564#817564]

Start a new discussion in IronJacamar at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2098]
Raghavan Ramanujam
2013-05-16 08:38:33 UTC
Permalink
Raghavan Ramanujam [https://community.jboss.org/people/ramanujaraghavan] created the discussion

"Re: Deployment of Resource Adapter embedded in a War"

To view the discussion, visit: https://community.jboss.org/message/817942#817942

--------------------------------------------------------------
When I add it as part of the dependencies I could get this Resource adapter deployed and I could access the same. However, when I am trying to bundle this resource adapter as part of the Web Archive (.war) I am not able to get the resource adapter deployed any advise on the same.
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/817942#817942]

Start a new discussion in IronJacamar at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2098]
Raghavan Ramanujam
2013-08-06 13:30:34 UTC
Permalink
Raghavan Ramanujam [https://community.jboss.org/people/ramanujaraghavan] created the discussion

"Re: Deployment of Resource Adapter embedded in a War"

To view the discussion, visit: https://community.jboss.org/message/831608#831608

--------------------------------------------------------------
The Resource adapter is not getting deployed as part of the WAR however the same can be added as part of the EAR. I have created a simple ear that contains both the resource adapter and the client application. This solves the purpose of having the resouce adapter and the client application in the same context.
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/831608#831608]

Start a new discussion in IronJacamar at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2098]
Loading...