1 2 Previous Next 29 Replies Latest reply on Feb 14, 2013 6:15 AM by herculeszeus Go to original post
      • 15. Re: JBoss 7: how to deploy with JCA?
        bwallis42

        Slawomir Trybus wrote:

         

        Hi,

        I followed the instructions described here, and my jackrabbit-jca-2.2.7.rar was successfully deployed in jboss as7 (7.0.1), but I don't know how to connect to that from my webapp.

        The snippet of my code looks like this:

         

        InitialContext nameCtx;

                repository = null;

                try {

                    nameCtx = new InitialContext( );

                    repository = ( JCARepositoryHandle ) nameCtx.lookup( "java:/jboss/jcr/Documents" );

                }

                catch ( NamingException e1 ) {

                            ...

                }

        Is that really what you want to do? I don't think you want to reference jackrabbit specific classes for this

         

        I use

         

          Context ctx = new InitialContext();

          Repository repository = (Repository) ctx.lookup("jca/DocumentStore");

         

          Session ses = repository.login(new SimpleCredentials("username", "password".toCharArray()));

          Node root = ses.getRootNode();

          Node docGroup = root.addNode("documents_1","inf:documentGroup");

         

        etc...

         

         

        where the config in jboss standalone.xml is

         

         

        {code:xml}

        <subsystem xmlns="urn:jboss:domain:resource-adapters:1.0">

            <resource-adapters>

                <resource-adapter>

                    <archive>

                        jackrabbit-jca-2.2.7.rar

                    </archive>

                    <transaction-support>

                        XATransaction

                    </transaction-support>

                    <connection-definitions>

                        <connection-definition class-name="org.apache.jackrabbit.jca.JCAManagedConnectionFactory"

                               jndi-name="java:/jca/DocumentStore" enabled="true" use-java-context="true"

                               pool-name="jackrabbit-jca-2_2_7_rar-Pool" use-ccm="true">

        etc...

        {code}

         

        Do you have the jca module installed into the jboss modules directory containing the javax.jca classes jar file?

         

        I don't think you would ever put the jackrabbit jar files into your war or ear file lib directories when you are using the resource adapter.

        • 16. Re: JBoss 7: how to deploy with JCA?
          superfis

          Thank you for your suggestion! You are right, I had to use Repository instead of JCARepositoryHandle.

          I have installed module javax.jcr already but deploing my webapp I receive error:

           

          Caused by: java.lang.ClassNotFoundException: org.xml.sax.ContentHandler from [Module "javax.jcr:main" from local module loader @198a455 (roots: c:\jboss\7.0\modules)]

                  at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:191)

                  at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:358)

                  at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:330)

                  at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:307)

                  at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:101)

                  ... 49 more

           

          My modules definition is:

           

          <?xml version="1.0" encoding="UTF-8"?>

          <module xmlns="urn:jboss:module:1.0" name="javax.jcr">

              <dependencies>

              </dependencies>

              <resources>

                  <resource-root path="jcr-2.0.jar"/>

              </resources>

          </module>

           

           

          Could you give me advice about how to set up javax.jcr module properly, please?

          • 17. Re: JBoss 7: how to deploy with JCA?
            bwallis42

            The module.xml file I'm using is:

             

             

            {code:xml}

            <module xmlns="urn:jboss:module:1.0" name="javax.jcr">

                <dependencies>

                    <module name="javax.transaction.api" export="true"/>

                </dependencies>

             

             

                <resources>

                    <resource-root path="jcr-2.0.jar"/>

                    <!-- Insert resources here -->

                </resources>

            </module>

            {code}

             

            so there is a dependency on javax.transaction.api and that probably pulls in a dependency from sax.

            • 18. Re: JBoss 7: how to deploy with JCA?
              superfis

              Unfortunatelly this is not the case. After added

               

              <module name="javax.transaction.api" export="true"/>

               

              I still receive the same exception

              • 19. Re: JBoss 7: how to deploy with JCA?
                superfis

                I grope in the dark.... :|

                I my javax.jcr module can't see org.xml.sax.ContentHandler I decided to create such module.

                After that I make my new module a dependency for javax.jcr module and then I received exception:

                 

                Caused by: java.lang.LinkageError: loader constraint violation: loader (instance of org/jboss/modules/ModuleClassLoader) previously initiated loading for a different type with name

                "org/xml/sax/ContentHandler"

                        at java.lang.Class.getDeclaredMethods0(Native Method) [:1.6.0_23]

                        at java.lang.Class.privateGetDeclaredMethods(Class.java:2427) [:1.6.0_23]

                        at java.lang.Class.privateGetPublicMethods(Class.java:2547) [:1.6.0_23]

                        at java.lang.Class.privateGetPublicMethods(Class.java:2557) [:1.6.0_23]

                        at java.lang.Class.getMethods(Class.java:1410) [:1.6.0_23]

                        at java.beans.Introspector.getPublicDeclaredMethods(Introspector.java:1284) [:1.6.0_23]

                        at java.beans.Introspector.getTargetMethodInfo(Introspector.java:1158) [:1.6.0_23]

                        at java.beans.Introspector.getBeanInfo(Introspector.java:408) [:1.6.0_23]

                        at java.beans.Introspector.getBeanInfo(Introspector.java:167) [:1.6.0_23]

                        at org.springframework.beans.CachedIntrospectionResults.<init>(CachedIntrospectionResults.java:224) [spring-beans-3.0.5.RELEASE.jar:]

                        at org.springframework.beans.CachedIntrospectionResults.forClass(CachedIntrospectionResults.java:149) [spring-beans-3.0.5.RELEASE.jar:]

                        at org.springframework.beans.BeanWrapperImpl.getCachedIntrospectionResults(BeanWrapperImpl.java:305) [spring-beans-3.0.5.RELEASE.jar:]

                        at org.springframework.beans.BeanWrapperImpl.getPropertyDescriptors(BeanWrapperImpl.java:312) [spring-beans-3.0.5.RELEASE.jar:]

                        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.filterPropertyDescriptorsForDependencyCheck(AbstractAutowireCapableBeanFactory.java:1208) [s

                pring-beans-3.0.5.RELEASE.jar:]

                        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1069) [spring-beans-3.0.5.RELEASE.jar:]

                        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517) [spring-beans-3.0.5.RELEASE.jar:]

                        ... 33 more


                What's wrong?

                • 20. Re: JBoss 7: how to deploy with JCA?
                  bwallis42

                  The above error is due to two copies of org.xml.sax.ContentHander being found on the classpath.

                   

                  Sun/Oracle have been gradually including a lot of the XML libraries into the standard JDK libraries. You will find that org.xml.sax.ContentHandler is in the JDKs class.jar file (at least it is on my Mac, JDK 1.6.0_24).

                   

                  JBoss has a reasonably complex classloading mechanism and structure to cope with the need to isolate deployed applications from each other. This mechanism has changed and evolved over the years (I first used JBoss 2.4) and was always a pain to get to grips with. It does not suffer multiple copies of classes on the classpath gracefully. Particlarly when those classes are involved in objects passed over the boundary between the JEE container and the deployed application (such as XML related classes).

                   

                  I gather from your PM that you have some XML related jars in your webapp lib directory. I think you need to remove them. If xml-apis is in WEB-INF/lib then it is likely that this is causing this problem since the classes in that jar are also available in the JDK.

                   

                  Whenever you see errors like the above one (LinkageError) you can pretty much guarantee that there are two versions of the class mentioned visible on the classpath.

                   

                  Rest assured that this can be made to work. I have Jackrabbit deployed in both JBoss 6 and 7 and it works fine in both.

                  • 21. Re: JBoss 7: how to deploy with JCA?
                    superfis

                    You are right, once I added to jboss as7 module org.xml.sax there are two jar libraries with org.xml.sax.ContentHandler. Another one is, as you said, in java rt.jar library. I understand I have to remove xml-apis-1.3.04.jar lib from created module to avoid concurrent classloading (library xml-apis-1.3.04.jar located in my webapp is not visible for module javax.jcr therefore it is not a case - I deleted it anyway).

                     

                    How to have configured javax.jcr module which is dependent on org.xml.sax? In the way there is no additional module org.xml.sax, class org.xml.sax.ContentHandler is not visible for javax.jcr module (even as part of standard java jre library rt.jar - why?) and stacktrace looks like this:

                     

                    Caused by: java.lang.ClassNotFoundException: org.xml.sax.ContentHandler from [Module "javax.jcr:main" from local module loader @12b7eea (roots: c:\jboss\7.0\modules)]

                            at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:191)

                            at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:358)

                            at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:330)

                            at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:307)

                            at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:101)

                            ... 49 more

                     

                     

                    but if I create this additional module org.xml.sax with use of xml-apis-1.3.04.jar library, I receive stacktrace:

                     

                    Caused by: java.lang.LinkageError: loader constraint violation: loader (instance of org/jboss/modules/ModuleClassLoader) previously initiated loading for a different type with name

                    "org/xml/sax/ContentHandler"

                            at java.lang.Class.getDeclaredMethods0(Native Method) [:1.6.0_23]

                            at java.lang.Class.privateGetDeclaredMethods(Class.java:2427) [:1.6.0_23]

                            at java.lang.Class.privateGetPublicMethods(Class.java:2547) [:1.6.0_23]

                            at java.lang.Class.privateGetPublicMethods(Class.java:2557) [:1.6.0_23]

                            at java.lang.Class.getMethods(Class.java:1410) [:1.6.0_23]

                            at java.beans.Introspector.getPublicDeclaredMethods(Introspector.java:1284) [:1.6.0_23]

                            at java.beans.Introspector.getTargetMethodInfo(Introspector.java:1158) [:1.6.0_23]

                            at java.beans.Introspector.getBeanInfo(Introspector.java:408) [:1.6.0_23]

                            at java.beans.Introspector.getBeanInfo(Introspector.java:167) [:1.6.0_23]

                            at org.springframework.beans.CachedIntrospectionResults.<init>(CachedIntrospectionResults.java:224) [spring-beans-3.0.5.RELEASE.jar:]

                            at org.springframework.beans.CachedIntrospectionResults.forClass(CachedIntrospectionResults.java:149) [spring-beans-3.0.5.RELEASE.jar:]

                            at org.springframework.beans.BeanWrapperImpl.getCachedIntrospectionResults(BeanWrapperImpl.java:305) [spring-beans-3.0.5.RELEASE.jar:]

                            at org.springframework.beans.BeanWrapperImpl.getPropertyDescriptors(BeanWrapperImpl.java:312) [spring-beans-3.0.5.RELEASE.jar:]

                            at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.filterPropertyDescriptorsForDependencyCheck(AbstractAutowireCapableBeanFactory.java:1208) [s

                    pring-beans-3.0.5.RELEASE.jar:]

                            at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1069) [spring-beans-3.0.5.RELEASE.jar:]

                     

                            at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517) [spring-beans-3.0.5.RELEASE.jar:]

                            ... 33 more

                     

                     

                    Is there a way to create module org.xml.sax but without explicitly given library (xml-apis-1.3.04.jar) and let them use implicitly the one comming from rt.jar located in java JRE?

                    Or, maybe there is a way to make rt.jar being visible for jboss as7 javax.jcr module...?

                    • 22. Re: JBoss 7: how to deploy with JCA?
                      bwallis42

                      Slawomir Trybus wrote:

                       

                      You are right, once I added to jboss as7 module org.xml.sax there are two jar libraries with org.xml.sax.ContentHandler. Another one is, as you said, in java rt.jar library. I understand I have to remove xml-apis-1.3.04.jar lib from created module to avoid concurrent classloading (library xml-apis-1.3.04.jar located in my webapp is not visible for module javax.jcr therefore it is not a case - I deleted it anyway).

                       

                      How to have configured javax.jcr module which is dependent on org.xml.sax? In the way there is no additional module org.xml.sax, class org.xml.sax.ContentHandler is not visible for javax.jcr module (even as part of standard java jre library rt.jar - why?) and stacktrace looks like this:

                       

                      Caused by: java.lang.ClassNotFoundException: org.xml.sax.ContentHandler from [Module "javax.jcr:main" from local module loader @12b7eea (roots: c:\jboss\7.0\modules)]

                              at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:191)

                              at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:358)

                              at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:330)

                              at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:307)

                              at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:101)

                              ... 49 more

                       

                      Now that doesn't make sense. All of the classes from rt.jar are available to the modules. If that is missing then so would String and Object, etc. They are all in the same runtime jar file (or should be). Are you sure that is the JDK that is actually being used to run AS7? The JDK should be later than 1.6.0_3 (sun made some significant XML changes in a minor release!).

                       

                       

                      Is there a way to create module org.xml.sax but without explicitly given library (xml-apis-1.3.04.jar) and let them use implicitly the one comming from rt.jar located in java JRE?

                      Or, maybe there is a way to make rt.jar being visible for jboss as7 javax.jcr module...?

                       

                      I don't think you want to do that. The class is available in the base runtime and there should be no need for a module for it. You need to find out why it is not being seen.

                      • 23. Re: JBoss 7: how to deploy with JCA?
                        bwallis42

                        I've just created a wiki article with my notes on how I got JackRabbit going in AS6 and AS7.

                         

                        http://community.jboss.org/docs/DOC-17156

                         

                        I hope this helps someone.

                        • 24. Re: JBoss 7: how to deploy with JCA?
                          superfis

                          Hi Brian. Thank you very much for your help. I followed your tutorial published on jboss wiki and I used jboss as7.0.1 and then jboss as7.1.0-alpha1 and unfortunatelly all the time I receive:

                           

                          Caused by: java.lang.ClassNotFoundException: org.xml.sax.ContentHandler from [Module "javax.jcr:main" from local module loader @14c194d (roots: c:\jboss\7.1\modules)]

                                  at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:191)

                                  at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:358)

                                  at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:330)

                                  at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:307)

                                  at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:101)

                                  ... 35 more

                           

                          It's getting obvious that the issue is located in my webapp deployed in jboss as. The stack trace is probably suggesting not a main cause of the issue and I try to find out why class org.xml.sax.ContentHandler is not visible for module javax.jcr but it's probably going down a blind alley.

                          • 25. Re: JBoss 7: how to deploy with JCA?
                            bwallis42

                            Our usage of jackrabbit is from ejbs in an ejb-jar deployed in an ear file so a somewhat different setup from what you are using.

                             

                            Try cutting your webapp back down to the very basics until you get something that works. Hopefully you can get the simple JSP page in the tutorial to work to prove that the JCA is working. Then work forward from there. I know how frustrating those class not found errors are, been there done that many times!

                            • 26. Re: JBoss 7: how to deploy with JCA?
                              guinotphil

                              Is there a way to create module org.xml.sax but without explicitly given library (xml-apis-1.3.04.jar) and let them use implicitly the one comming from rt.jar located in java JRE?

                              Or, maybe there is a way to make rt.jar being visible for jboss as7 javax.jcr module...?

                               

                               

                              <module xmlns="urn:jboss:module:1.0" name="org.xml.sax">

                                  <resources>

                                      <!-- Insert resources here -->

                                  </resources>

                               

                               

                                  <dependencies>

                                      <module name="system" export="false">

                                          <exports>

                                              <include-set>

                                                  <path name="org/xml/sax"/>

                                                  <path name="org/xml/sax/ext"/>

                                                  <path name="org/xml/sax/helpers"/>

                                              </include-set>

                                          </exports>

                                      </module>

                                  </dependencies>

                              </module>

                              • 27. Re: JBoss 7: how to deploy with JCA?
                                johann.boehler

                                I actually have exactly the same problem right now, except that I'm working with my own JCA file system adapter. So the workaround to use the javax.jcr.Repository cast doesn't help me. Can anybody help me?

                                 

                                *EDIT* Tried to define the jca jar as a global module and deploy the rar without it (so that webapp and rar can use the same classloader) but in that case I get this...

                                 

                                12:53:15,749 WARN  [org.jboss.modules] (MSC service thread 1-1) Failed to define class ...MyManagedConnectionFactory in Module "...:main" from local module loader @781f6226 (roots: ..../server/modules): java.lang.LinkageError: Failed to link .../MyManagedConnectionFactory (Module "...:main" from local module loader @781f6226 (roots: .../server/modules))

                                at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:396)

                                at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:243)

                                at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:73)

                                at org.jboss.modules.Module.loadModuleClass(Module.java:517)

                                at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:182)

                                at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468)

                                at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456)

                                at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:423)

                                at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)

                                at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120)

                                at java.lang.Class.forName0(Native Method) [rt.jar:1.6.0_23]

                                at java.lang.Class.forName(Class.java:264) [rt.jar:1.6.0_23]

                                at org.jboss.jca.validator.ValidateClass.<init>(ValidateClass.java:88) [ironjacamar-validator-1.0.9.Final.jar:1.0.9.Final]

                                at org.jboss.jca.deployers.common.AbstractResourceAdapterDeployer.createObjectsAndInjectValue(AbstractResourceAdapterDeployer.java:1582) [ironjacamar-deployers-common-1.0.9.Final.jar:1.0.9.Final]

                                at org.jboss.jca.deployers.common.AbstractResourceAdapterDeployer.createObjectsAndInjectValue(AbstractResourceAdapterDeployer.java:1034) [ironjacamar-deployers-common-1.0.9.Final.jar:1.0.9.Final]

                                at org.jboss.as.connector.metadata.deployment.ResourceAdapterDeploymentService$AS7RaDeployer.doDeploy(ResourceAdapterDeploymentService.java:173)

                                at org.jboss.as.connector.metadata.deployment.ResourceAdapterDeploymentService.start(ResourceAdapterDeploymentService.java:100)

                                at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)

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

                                at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [rt.jar:1.6.0_23]

                                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [rt.jar:1.6.0_23]

                                at java.lang.Thread.run(Thread.java:679) [rt.jar:1.6.0_23]

                                Caused by: java.lang.NoClassDefFoundError: javax/resource/spi/ManagedConnectionFactory

                                at java.lang.ClassLoader.defineClass1(Native Method) [rt.jar:1.6.0_23]

                                at java.lang.ClassLoader.defineClass(ClassLoader.java:634) [rt.jar:1.6.0_23]

                                at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) [rt.jar:1.6.0_23]

                                at org.jboss.modules.ModuleClassLoader.doDefineOrLoadClass(ModuleClassLoader.java:327)

                                at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:391)

                                ... 21 more

                                • 28. Re: JBoss 7: how to deploy with JCA?
                                  narendermyname

                                  As

                                  280 posts since
                                  Jun 27, 2002

                                   

                                  write in his reply ,i have given all things in my project but i am not able deploy my jackrabbit-jcr.rar in jboss as 7.1.1 Final

                                  my manifestfile

                                  Manifest-Version: 1.0

                                  Ant-Version: Apache Ant 1.6.2

                                  Created-By: Apache Maven

                                  Archiver-Version: Plexus Archiver

                                  Built-By: jukka

                                  Build-Jdk: 1.6.0_07

                                  Dependencies: javax.jcr export

                                   

                                  rar.xml file

                                  <connection-definition>

                                   

                                                  <managedconnectionfactory-class>org.apache.jackrabbit.jca.JCAManagedConnectionFactory</managedconnectionfactory-class>

                                   

                                                  <config-property>

                                                      <config-property-name>HomeDir</config-property-name>

                                                      <config-property-type>java.lang.String</config-property-type>

                                                  </config-property>

                                                  <config-property>

                                                      <config-property-name>ConfigFile</config-property-name>

                                                      <config-property-type>java.lang.String</config-property-type>

                                                  </config-property>

                                   

                                                  <connectionfactory-interface>javax.jcr.Repository</connectionfactory-interface>

                                                  <connectionfactory-impl-class>org.apache.jackrabbit.jca.JCARepositoryHandle</connectionfactory-impl-class>

                                   

                                                  <connection-interface>javax.jcr.Session</connection-interface>

                                                  <connection-impl-class>org.apache.jackrabbit.jca.JCASessionHandle</connection-impl-class>

                                   

                                              </connection-definition>

                                  and jboss standalone.xml is

                                   

                                  <subsystem xmlns="urn:jboss:domain:resource-adapters:1.0">

                                              <resource-adapters>

                                                  <resource-adapter>

                                                      <archive>

                                                          jackrabbit-jca.rar

                                                      </archive>

                                                      <transaction-support>XATransaction</transaction-support>

                                                      <config-property name="homeDir">

                                                          /configuration/repository

                                                      </config-property>

                                                      <config-property name="configFile">

                                                          /configuration/repository.xml

                                                      </config-property>

                                                      <config-property name="bindSessionToTransaction">

                                                          true

                                                      </config-property>

                                                      <connection-definitions>

                                                          <connection-definition class-name="org.apache.jackrabbit.jca.JCAManagedConnectionFactory" jndi-name="java:/jcr/DocManager" enabled="true" use-java-context="true" pool-name="wlpiPool" use-ccm="true"/>

                                                      </connection-definitions>

                                                  </resource-adapter>

                                              </resource-adapters>

                                          </subsystem>

                                   

                                  this error is comming in eclipse console  if any one know let me know

                                   

                                   

                                  18:37:33,382 DEBUG [org.jboss.as.connector.deployers.RADeployer] (MSC service thread 1-2) Activated: file:/D:/Software/jboss/jboss-as-7.1.1.Final/jboss-as-7.1.1.Final/standalone/tmp/vfs/temp81b26e8fbb6cc6d1/jackrabbit-jca.rar-4c848322b5aa278d/contents/

                                  18:37:33,403 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC00001: Failed to start service jboss.ra.deployment."jackrabbit-jca.rar_1": org.jboss.msc.service.StartException in service jboss.ra.deployment."jackrabbit-jca.rar_1": org.jboss.msc.service.StartException in anonymous service: JBAS010446: Failed to start RA deployment [jackrabbit-jca]

                                      at org.jboss.as.connector.metadata.deployment.ResourceAdapterXmlDeploymentService.start(ResourceAdapterXmlDeploymentService.java:127)

                                      at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

                                      at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

                                      at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [rt.jar:1.7.0]

                                      at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [rt.jar:1.7.0]

                                      at java.lang.Thread.run(Unknown Source) [rt.jar:1.7.0]

                                  Caused by: org.jboss.msc.service.StartException in anonymous service: JBAS010446: Failed to start RA deployment [jackrabbit-jca]

                                      at org.jboss.as.connector.metadata.deployment.ResourceAdapterXmlDeploymentService.start(ResourceAdapterXmlDeploymentService.java:111)

                                      ... 5 more

                                  Caused by: org.jboss.jca.deployers.common.DeployException: IJ020060: Unable to inject: org.apache.jackrabbit.jca.JCAResourceAdapter property: configFile value: /configuration/repository.xml

                                      at org.jboss.jca.deployers.common.AbstractResourceAdapterDeployer.createObjectsAndInjectValue(AbstractResourceAdapterDeployer.java:1152)

                                      at org.jboss.as.connector.metadata.deployment.ResourceAdapterXmlDeploymentService$AS7RaXmlDeployer.doDeploy(ResourceAdapterXmlDeploymentService.java:178)

                                      at org.jboss.as.connector.metadata.deployment.ResourceAdapterXmlDeploymentService.start(ResourceAdapterXmlDeploymentService.java:104)

                                      ... 5 more

                                   

                                  18:37:33,415 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 1) JBAS015870: Deploy of deployment "jackrabbit-jca.rar" was rolled back with failure message {"JBAS014671: Failed services" => {"jboss.ra.deployment.\"jackrabbit-jca.rar_1\"" => "org.jboss.msc.service.StartException in service jboss.ra.deployment.\"jackrabbit-jca.rar_1\": org.jboss.msc.service.StartException in anonymous service: JBAS010446: Failed to start RA deployment [jackrabbit-jca]"}}

                                  18:37:33,417 INFO  [org.jboss.as.controller] (DeploymentScanner-threads - 1) JBAS014774: Service status report

                                  JBAS014777:   Services which failed to start:      service jboss.ra.deployment."jackrabbit-jca.rar_1": org.jboss.msc.service.StartException in service jboss.ra.deployment."jackrabbit-jca.rar_1": org.jboss.msc.service.StartException in anonymous service: JBAS010446: Failed to start RA deployment [jackrabbit-jca]

                                   

                                  18:37:33,419 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 2) {"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"JBAS014671: Failed services" => {"jboss.ra.deployment.\"jackrabbit-jca.rar_1\"" => "org.jboss.msc.service.StartException in service jboss.ra.deployment.\"jackrabbit-jca.rar_1\": org.jboss.msc.service.StartException in anonymous service: JBAS010446: Failed to start RA deployment [jackrabbit-jca]"}}}}

                                  18:37:33,422 DEBUG [org.jboss.as.deployment.connector] (MSC service thread 1-1) Stopping sevice service jboss.ra.deployment.jackrabbit-jca

                                  18:37:33,423 DEBUG [org.jboss.as.deployment.connector] (MSC service thread 1-1) Unregistering: jackrabbit-jca

                                  18:37:33,424 DEBUG [org.jboss.as.deployment.connector] (MSC service thread 1-1) Exception during unregistering deployment: org.jboss.jca.core.spi.mdr.NotFoundException: IJ000855: jackrabbit-jca isn't registered

                                      at org.jboss.jca.core.mdr.SimpleMetadataRepository.unregisterResourceAdapter(SimpleMetadataRepository.java:117) [ironjacamar-core-impl-1.0.9.Final.jar:1.0.9.Final]

                                      at org.jboss.as.connector.metadata.deployment.AbstractResourceAdapterDeploymentService.unregisterAll(AbstractResourceAdapterDeploymentService.java:183) [jboss-as-connector-7.1.1.Final.jar:7.1.1.Final]

                                      at org.jboss.as.connector.metadata.deployment.ResourceAdapterDeploymentService.unregisterAll(ResourceAdapterDeploymentService.java:149) [jboss-as-connector-7.1.1.Final.jar:7.1.1.Final]

                                      at org.jboss.as.connector.metadata.deployment.ResourceAdapterDeploymentService.stop(ResourceAdapterDeploymentService.java:134) [jboss-as-connector-7.1.1.Final.jar:7.1.1.Final]

                                      at org.jboss.msc.service.ServiceControllerImpl$StopTask.stopService(ServiceControllerImpl.java:1911) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

                                      at org.jboss.msc.service.ServiceControllerImpl$StopTask.run(ServiceControllerImpl.java:1874) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

                                      at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [rt.jar:1.7.0]

                                      at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [rt.jar:1.7.0]

                                      at java.lang.Thread.run(Unknown Source) [rt.jar:1.7.0]

                                   

                                  18:37:33,519 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-4) JBAS015877: Stopped deployment jackrabbit-jca.rar in 103ms

                                  • 29. Re: JBoss 7: how to deploy with JCA?
                                    herculeszeus

                                    I had a similar problem with this using CDI with Modeshape, my solution can be found at https://issues.jboss.org/browse/MODE-1813

                                    1 2 Previous Next