5 Replies Latest reply on Aug 12, 2004 8:09 PM by adrian.brock

    Error deploying Inbound Resource Adapter example

    nepuhb

      Hi,
      I was trying to deploy the sample example for Inbound Resource Adapter available the jboss website at
      http://www.jboss.org/wiki/Wiki.jsp?page=JBossJCAMessageInflowExample

      The server version is JBoss 4.0.0DR4.

      The Resource Adapter gets deployed fine (However I noticed there is no *-ds.xml file included here. Is this file not required for inbound adapters?)

      While deploying the Message DrivenBean I get following error:
      EJB spec violation:
      Bean : EchoXMLMDB
      Section: 15.7.4
      Warning: The message driven bean must declare one onMessage() method.
      ERROR [MainDeployer] could not create deployment: file:/C:/servers/jboss/server/default/deploy/filexmlmdb.jar
      org.jboss.deployment.DeploymentException: Verification of Enterprise Beans failed


      Looks like the server expects EJB 2.0 based MessageDrivenBean. Has anybody faced similar problem? Any ideas how to fix the issue?

      Thanks a lot,
      Bhupen

        • 1. Re: Error deploying Inbound Resource Adapter example

          Set verify deployments to false in conf/jboss-service.xml

          The verifier has been fixed since DR4.

          • 2. Re: Error deploying Inbound Resource Adapter example
            nepuhb

            Adrian,
            Thanks for the quick response.
            After setting verifier to false, the verification error has disappeared,

            however I am now hitting another error:
            ERROR [JBossMessageEndpointFactory] Starting failed jboss.j2ee:binding=message-inflow-driven-bean,jndiName=local/EchoXMLMDB,plugin=invoker,service=EJB
            org.jboss.deployment.DeploymentException: Unable to create activation spec ra=jboss.jca:name='filexmlrar.rar',service=RARDeployment messaging-type=org.jboss.example.XMLMessageListener properties=[]; - nested throwable: (MBeanException: Error in create activation spec jboss.jca:name='filexmlrar.rar',service=RARDeployment Cause: org.jboss.deployment.DeploymentException: Required config property RequiredConfigPropertyMetaData@1611ed3[name=directory descriptions=[DescriptionMetaData@186aad9[language=en]]] for messagingType 'org.jboss.example.XMLMessageListener' not found in activation config....


            Any idea what else am I doing wrong?
            Thanks,
            Bhupen

            • 3. Re: Error deploying Inbound Resource Adapter example

              That was fixed in 4.0.0RC1 as you would have found out
              for yourself if you had used search.

              • 4. Re: Error deploying Inbound Resource Adapter example
                nepuhb

                Adrian,
                I installed JBoss 4.0RC1, but I am still getting an error, though a different one:

                ERROR [JBossMessageEndpointFactory] Starting failed jboss.j2ee:binding=message-inflow-driven-bean,jndiName=local/EchoXMLMDB,plugin=invoker,service=EJB
                org.jboss.deployment.DeploymentException: Endpoint activation failed ra=jboss.jca:name='filexmlrar.rar',service=RARDeployment activationSpec=FileXMLActivationSpec for directory c:\testfilexml; - nested throwable: (MBeanException: Error in endpoint activation jboss.jca:name='filexmlrar.rar',service=RARDeployment Cause: javax.resource.spi.UnavailableException: The container is not started)


                Thanks,
                Bhupen


                This time I did a search for similar problem, but could'nt locate any solution to this problem.

                • 5. Re: Error deploying Inbound Resource Adapter example

                  Argh! That was also fixed, but after 4.0.0RC1
                  You can get a 4.0.0RC2 snapshot (not yet released) from cvs.
                  http://sourceforge.net/cvs/?group_id=22866