9 Replies Latest reply on Dec 9, 2004 2:24 PM by adrian.brock

    Can anybody help me out with this ?????

    deejboss

      Hi,

      I'm using jboss4 and trying to deploy rar inside an ear. Resource adapter works fine if I deploy an rar in my /server/default/deploy directory with an notxfs-ds.xml (which is also placed in /server/default/deploy directory).
      ------------------------------------------------

      The directory stucture

      storageservice.ear
      -----/meta-inf/application.xml
      -----/meta-inf/jboss-app.xml
      -----/storageservice.rar
      ----------/storageservice.jar (is packaged in storageservice.rar and has all the resource adapter files)
      ----------/meta-inf/ra.xml


      ------------------------------------------------


      notxfs-ds.xml

      <connection-factories>
      <no-tx-connection-factory>
      <jndi-name>netapp_conn_factory</jndi-name>
      <rar-name>storageservice.rar</rar-name>
      <connection-definition>com.ameriquest.eir.storage.device.netapp.NetAppConnectionFactory</connection-definition>
      </no-tx-connection-factory>


      ------------------------------------------------

      jboss-app.xml

      <jboss-app>
      storageservice.rar
      </jboss-app>
      </connection-factories>


      ------------------------------------------------


      application.xml
      <application xmlns="http://java.sun.com/xml/ns/j2ee" version="1.4"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://java.sun.com /xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/application_1_4.xsd">
      <display-name>storageservice.rar</display-name>



      ------------------------------------------------

      ra.xml
      <?xml version="1.0" encoding="UTF-8"?>
      <connector xmlns="http://java.sun.com/xml/ns/j2ee"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
      http://java.sun.com/xml/ns/j2ee/connector_1_5.xsd"
      version="1.5">
      File xml resource adapter
      <display-name>storageservice.rar</display-name>
      <vendor-name>JBoss, Inc</vendor-name>
      <eis-type>JBoss Example</eis-type>
      <resourceadapter-version>4.0</resourceadapter-version>

      COPYRIGHT AND PERMISSION NOTICE
      Copyright (c) 2004 JBoss, Inc
      This is released under the terms of the LGPL.
      See gnu.org for details.

      <license-required>true</license-required>

      <resourceadapter-class>com.ameriquest.eir.storage.device.netapp.ra.NetAppResourceAdapter</resourceadapter-class>
      <config-property>
      <config-property-name>FileSystemRootDir</config-property-name>
      <config-property-type>java.lang.String</config-property-type>
      <config-property-value>C:\test1</config-property-value>
      </config-property>
      <outbound-resourceadapter>
      <connection-definition>
      <managedconnectionfactory-class>com.ameriquest.eir.storage.device.netapp.ra.NetAppMangedConnectionFactory</managedconnectionfactory-class>
      <connectionfactory-interface>com.ameriquest.eir.storage.device.netapp.NetAppConnectionFactory</connectionfactory-interface>
      <connectionfactory-impl-class>com.ameriquest.eir.storage.device.netapp.ra.NetAppConnectionFactoryImpl</connectionfactory-impl-class>
      <connection-interface>com.ameriquest.eir.storage.device.netapp.NetAppConnection</connection-interface>
      <connection-impl-class>com.ameriquest.eir.storage.device.netapp.ra.NetAppConnectionImpl</connection-impl-class>
      </connection-definition>
      <transaction-support>NoTransaction</transaction-support>
      <authentication-mechanism>
      <authentication-mechanism-type>BasicPassword</authentication-mechanism-type>
      <credential-interface>javax.resource.spi.security.PasswordCredential</credential-interface>
      </authentication-mechanism>
      <reauthentication-support>true</reauthentication-support>
      </outbound-resourceadapter>



      ------------------------------------------------

      This is the error I get


      20:40:21,447 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
      MBeans waiting for other MBeans:
      ObjectName: jboss.jca:service=NoTxCM,name=netapp_conn_factory
      state: CONFIGURED
      I Depend On: jboss.jca:service=ManagedConnectionPool,name=netapp_conn_factory
      jboss.jca:service=CachedConnectionManager

      Depends On Me: jboss.jca:service=ConnectionFactoryBinding,name=netapp_conn_fac
      tory

      ObjectName: jboss.jca:service=ManagedConnectionPool,name=netapp_conn_factory
      state: CONFIGURED
      I Depend On: jboss.jca:service=ManagedConnectionFactory,name=netapp_conn_facto
      ry

      Depends On Me: jboss.jca:service=NoTxCM,name=netapp_conn_factory

      ObjectName: jboss.jca:service=ManagedConnectionFactory,name=netapp_conn_factory
      state: CONFIGURED
      I Depend On: jboss.jca:service=RARDeployment,name='storageservice.rar'

      Depends On Me: jboss.jca:service=ManagedConnectionPool,name=netapp_conn_factor
      y

      ObjectName: jboss.jca:service=ConnectionFactoryBinding,name=netapp_conn_factory
      state: CONFIGURED
      I Depend On: jboss.jca:service=NoTxCM,name=netapp_conn_factory

      Depends On Me:

      MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM:
      ObjectName: jboss.jca:service=RARDeployment,name='storageservice.rar'
      state: NOTYETINSTALLED
      I Depend On:
      Depends On Me: jboss.jca:service=ManagedConnectionFactory,name=netapp_conn_fac
      tory

      ------------------------------------------------

      I did try including
      <rar-name>storageservice.ear#storageservice.rar</rar-name>
      but it does not work


      Please suggest what has to be done ?

        • 1. [JMSContainerInvoker] JMS provider failure detected:

          Hi all; i have a MDB that is listening on a remote topic.
          Well... by using a WinXP pc with JBoss 3.2.5 and a linux Red-Hat Advanced Server with JBoss 3.2.5 all works... now i must migrate from Windows to another linux pc where there is JBoss 3.2.6... well i have configured everything and i have setted the jms-ds.xml file; i have this error:

          15:50:18,866 ERROR [DLQHandler] Initialization failed DLQHandler
          javax.jms.JMSException: Error creating the dlq connection: null
           at org.jboss.ejb.plugins.jms.DLQHandler.createService(DLQHandler.java:171)
           at org.jboss.system.ServiceMBeanSupport.jbossInternalCreate(ServiceMBeanSupport.java:237)
           at org.jboss.system.ServiceMBeanSupport.create(ServiceMBeanSupport.java:164)
           at org.jboss.ejb.plugins.jms.JMSContainerInvoker.innerCreate(JMSContainerInvoker.java:542)
           at org.jboss.ejb.plugins.jms.JMSContainerInvoker.startService(JMSContainerInvoker.java:764)
           at org.jboss.ejb.plugins.jms.JMSContainerInvoker$ExceptionListenerImpl.onException(JMSContainerInvoker.java:1267)
           at org.jboss.ejb.plugins.jms.JMSContainerInvoker$1.run(JMSContainerInvoker.java:776)
          15:50:18,866 INFO [JMSContainerInvoker] Reconnected to JMS provider
          15:50:18,882 WARN [JMSContainerInvoker] JMS provider failure detected:
          javax.jms.JMSException: Error creating the dlq connection: null
           at org.jboss.ejb.plugins.jms.DLQHandler.createService(DLQHandler.java:171)
           at org.jboss.system.ServiceMBeanSupport.jbossInternalCreate(ServiceMBeanSupport.java:237)
           at org.jboss.system.ServiceMBeanSupport.create(ServiceMBeanSupport.java:164)
           at org.jboss.ejb.plugins.jms.JMSContainerInvoker.innerCreate(JMSContainerInvoker.java:542)
           at org.jboss.ejb.plugins.jms.JMSContainerInvoker.startService(JMSContainerInvoker.java:764)
           at org.jboss.ejb.plugins.jms.JMSContainerInvoker$ExceptionListenerImpl.onException(JMSContainerInvoker.java:1267)
           at org.jboss.ejb.plugins.jms.JMSContainerInvoker$1.run(JMSContainerInvoker.java:776)
          15:50:18,882 INFO [JMSContainerInvoker] Trying to reconnect to JMS provider


          Might this error be due to the two different version of JBoss?
          Thanks

          • 2. Re: Can anybody help me out with this ?????

            storageservice.ear#storageservice.rar
            should work

            But by default, -ds.xml files are deployed before ears.

            • 3. Re: Can anybody help me out with this ?????
              narayanrm


              I have exactly the same problem. did this worked for you?

              • 4. Re: Can anybody help me out with this ?????
                deejboss

                I solved this problem by wrapping the rar file inside a sar file and including the storageservice.jar file inside sar/lib directory. The ear works but this is a work around. What I need is to deploy rar as it is without creating a sar file.

                Any ideas, please let me know .....

                Thanks

                • 5. Re: Can anybody help me out with this ?????
                  deejboss

                  One thing more, I need to include -ds.xml file inside the ear file, any suggestions ?

                  • 6. Re: Can anybody help me out with this ?????

                    Yes, read the documentation/WIKI/FAQs/forum search.
                    In particular the parts about DeploymentSorter, Russian Doll packaging and/or jboss-app.xml

                    Then come back to the forums when you stop guessing.

                    • 7. Re: Can anybody help me out with this ?????
                      narayanrm

                      I also tried with deploying the rar inside an ear file it did deploy by placing the -ds.xml in the deploy directory, but gave a different problem.

                      the -ds.xml is as follows:

                      
                       <?xml version="1.0" encoding="UTF-8"?>
                      
                      <connection-factories>
                      
                       <!-- File XA Resource adapter -->
                       <tx-connection-factory>
                       <adapter-display-name>jcdFiletoFile1_File2</adapter-display-name>
                       <jndi-name>FiletoFile_PROJECTDeployment1_jcdFiletoFile1_File2MCF</jndi-name>
                       <xa-transaction/>
                       <rar-name>FiletoFile_PROJECTDeployment1.ear#jcdFiletoFile1_File2.rar</rar-name>
                       <connection-definition>javax.resource.cci.ConnectionFactory</connection-definition>
                       <!--<connection-definition>com.stc.connector.framework.jca.system.STCManagedConnectionFactory</connection-definition>-->
                      </tx-connection-factory>
                      
                      </connection-factories>
                      
                      


                      The same ear file contains the jar file, with a session bean which uses this rar.

                      after deploying the messge shown by the Application server is like:

                      20:43:34,969 INFO [ConnectionFactoryBindingService] Bound connection factory for resource adapter for ConnectionManager 'jboss.jca:name=FiletoFile_PROJECTDeployment1_jcdFiletoFile1_File2MCF,service=ConnectionFactoryBind
                      ing to JNDI name 'java:FiletoFile_PROJECTDeployment1_jcdFiletoFile1_File2MCF'

                      but while looking up the session bean did not lookup the rar it has given the name not found exception

                      The jboss.xml file which is referring to this rar is :


                      <jboss>
                       <enterprise-beans>
                       <session>
                       <ejb-name>jcdFiletoFile1_File2</ejb-name>
                       <jndi-name>ejb/local/stc/FiletoFile_PROJECTDeployment1/deployedServices/jcdFiletoFile1_File2</jndi-name>
                       <resource-ref>
                       <res-ref-name>FiletoFile_PROJECTDeployment1_jcdFiletoFile1_File2ConnectionFactory</res-ref-name>
                       <jndi-name>FiletoFile_PROJECTDeployment1_jcdFiletoFile1_File2MCF</jndi-name>
                       </resource-ref>
                       </session>
                       </enterprise-beans>
                      </jboss>
                      


                      javax.naming.NamingException: Could not dereference object [Root exception is javax.naming.NameNotFoundExcepti
                      on: FiletoFile_PROJECTDeployment1_jcdFiletoFile1_File2MCF not bound
                      ]
                      at org.jnp.interfaces.NamingContext.resolveLink(NamingContext.java:971)
                      at




                      • 8. Re: Can anybody help me out with this ?????

                        You guys amaze me. Not only is this one of the most FAQs of FAQs
                        there are currently three concurrent questions all asking the same
                        dumb question.

                        Here is what somebody else got for his troubles yesterday.
                        http://www.jboss.org/index.html?module=bb&op=viewtopic&t=57760

                        Have you even considered helping somebody else in this forum?
                        Or are you just here to TAKE!

                        • 9. Re: Can anybody help me out with this ?????
                          beyarecords

                          Adrian,
                          sounds like your having a good day bro ;-)

                          regards

                          Andrew