1 Reply Latest reply on Mar 4, 2013 3:26 PM by menjivar88

    Error when deploying an ESB project (Tibco EMS 7 and JBoss ESB 5.2 Integration)

    menjivar88 Newbie

      Hello,

       

      I'm trying to integrate JBoss ESB and Tibco EMS 7.

       

      I have changed the JMS provider in profile\deploy\jbossesb.esb\META-INF\jboss-esb.xml the one looks like:

       

      <providers>

                      <!-- change the following element to jms-jca-provider to enable transactional context  -->

               <jms-provider name="Tibco" connection-factory="QueueConnectionFactory"  jndi-URL="tcp://localhost:7222" jndi-context-factory="com.tibco.tibjms.naming.TibjmsInitialContextFactory" >

             <jms-bus busid="quickstartGwChannel">

                   <jms-message-filter 

                         dest-type="QUEUE"

                         dest-name="myQueue"

                    />

             </jms-bus>

             <jms-bus busid="DeadMessageQueue">

                   <jms-message-filter

                         dest-type="QUEUE"

                         dest-name="queue/DeadMessageQueue"

                     />

             </jms-bus>

                          </jms-provider>

                          <schedule-provider name="schedule">

                  <simple-schedule scheduleid="5-min-trigger" frequency="300" execCount="-1"/>

              </schedule-provider>

      </providers>

       

      Also i have added the following tibco jar's to the following location: profile\deploy\jbossesb.sar\lib

       

      jms.jar

      jta.jar

      slf4j-api-1.4.2.jar

      slf4j-simple-1.4.2.jar

      tibcrypt.jar

      tibemsd_sec.jar

      tibjms.jar

      tibjmsadmin.jar

      tibjmsapps.jar

      tibjmsufo.jar

      tibrvjms.jar

       

      When starting SOA-Platform i don't get any error just the followings:

       

      20:31:33,390 WARN  [MessageAwareListener] Error processing courier, backing off for 32000 milliseconds

      20:32:05,391 INFO  [MessageAwareListener] State reached : false

      20:32:06,393 WARN  [MessageAwareListener] Error processing courier, backing off for 32000 milliseconds

      20:32:38,394 INFO  [MessageAwareListener] State reached : false

      20:32:39,397 WARN  [MessageAwareListener] Error processing courier, backing off for 32000 milliseconds

       

      But now when i try to deploy my ESB project i got the following error:

       

      20:13:25,756 INFO  [EsbDeployment] Starting ESB Deployment 'tibcoJMS.esb'

      20:13:25,823 INFO  [JmsConnectionPool] Received NamingException, refreshing context.

      20:13:25,824 ERROR [AbstractKernelController] Error installing to Start: name=jboss.esb.vfsfile:/C:/jboss-soa-p-5/jboss-as/server/jb431_server/deploy/tibcoJMS.esb/ state=Create

      org.jboss.soa.esb.listeners.lifecycle.ManagedLifecycleException: Unexpected configuration exception from prepareMessageReceiver

                at org.jboss.soa.esb.listeners.gateway.JmsGatewayListener.doInitialise(JmsGatewayListener.java:126)

                at org.jboss.soa.esb.listeners.lifecycle.AbstractManagedLifecycle.initialise(AbstractManagedLifecycle.java:133)

                at org.jboss.soa.esb.listeners.lifecycle.ManagedLifecycleController.initialiseInstances(ManagedLifecycleController.java:109)

                at org.jboss.soa.esb.listeners.lifecycle.ManagedLifecycleController.start(ManagedLifecycleController.java:66)

                at org.jboss.soa.esb.listeners.deployers.mc.EsbDeployment.start(EsbDeployment.java:232)

                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

                at java.lang.reflect.Method.invoke(Unknown Source)

                at org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:59)

                at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:150)

                at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66)

                at org.jboss.kernel.plugins.dependency.KernelControllerContextAction$JoinpointDispatchWrapper.execute(KernelControllerContextAction.java:243)

                at org.jboss.kernel.plugins.dependency.ExecutionWrapper.execute(ExecutionWrapper.java:47)

                at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchExecutionWrapper(KernelControllerContextAction.java:111)

                at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchJoinPoint(KernelControllerContextAction.java:72)

                at org.jboss.kernel.plugins.dependency.LifecycleAction.installActionInternal(LifecycleAction.java:221)

                at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:54)

                at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:42)

                at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)

                at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)

                at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)

                at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)

                at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1652)

                at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:938)

                at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)

                at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:988)

                at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:778)

                at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:543)

                at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:125)

                at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:52)

                at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)

                at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:55)

                at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:179)

                at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1454)

                at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1172)

                at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1193)

                at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1113)

                at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)

                at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1652)

                at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:938)

                at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)

                at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:988)

                at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:826)

                at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:556)

                at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:789)

                at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:699)

                at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)

                at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:409)

                at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:294)

                at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)

                at java.util.concurrent.FutureTask$Sync.innerRunAndReset(Unknown Source)

                at java.util.concurrent.FutureTask.runAndReset(Unknown Source)

                at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(Unknown Source)

                at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(Unknown Source)

                at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)

                at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)

                at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

                at java.lang.Thread.run(Unknown Source)

      Caused by: org.jboss.soa.esb.ConfigurationException: Failed to obtain queue session from pool

                at org.jboss.soa.esb.listeners.gateway.JmsGatewayListener.prepareMessageReceiver(JmsGatewayListener.java:420)

                at org.jboss.soa.esb.listeners.gateway.JmsGatewayListener.doInitialise(JmsGatewayListener.java:114)

                ... 58 more

      Caused by: javax.naming.NameNotFoundException: QueueConnectionFactory not bound

                at org.jnp.server.NamingServer.getBinding(NamingServer.java:771)

                at org.jnp.server.NamingServer.getBinding(NamingServer.java:779)

                at org.jnp.server.NamingServer.getObject(NamingServer.java:785)

                at org.jnp.server.NamingServer.lookup(NamingServer.java:443)

                at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:726)

                at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:686)

                at javax.naming.InitialContext.lookup(Unknown Source)

                at org.jboss.internal.soa.esb.rosetta.pooling.JmsConnectionPool.getFactoryConnection(JmsConnectionPool.java:328)

                at org.jboss.internal.soa.esb.rosetta.pooling.JmsConnectionPool.internalGetSession(JmsConnectionPool.java:229)

                at org.jboss.internal.soa.esb.rosetta.pooling.JmsConnectionPool.getSession(JmsConnectionPool.java:206)

                at org.jboss.soa.esb.listeners.gateway.JmsGatewayListener.prepareMessageReceiver(JmsGatewayListener.java:415)

                ... 59 more

      20:13:25,826 INFO  [EsbDeployment] Destroying 'tibcoJMS.esb'

      20:13:25,826 WARN  [ServiceMessageCounterLifecycleResource] Calling cleanup on existing service message counters for identity ID-8

      20:13:25,837 WARN  [HDScanner] Failed to process changes

      org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):

       

       

      DEPLOYMENTS IN ERROR:

        Deployment "jboss.esb.vfsfile:/C:/jboss-soa-p-5/jboss-as/server/jb431_server/deploy/tibcoJMS.esb/" is in error due to the following reason(s): javax.naming.NameNotFoundException: QueueConnectionFactory not bound

       

       

                at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:1008)

                at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:954)

                at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java:870)

                at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.checkComplete(MainDeployerAdapter.java:128)

                at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:416)

                at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:294)

                at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)

                at java.util.concurrent.FutureTask$Sync.innerRunAndReset(Unknown Source)

                at java.util.concurrent.FutureTask.runAndReset(Unknown Source)

                at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(Unknown Source)

                at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(Unknown Source)

                at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)

                at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)

                at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

                at java.lang.Thread.run(Unknown Source)

       

      It seems is not recognising the connection factory i have defined in the jboss-esb.xml file:

       

      i have followed the next links:

       

      https://community.jboss.org/wiki/JBossESBTibcoEMS

      https://community.jboss.org/thread/143381

      https://access.redhat.com/knowledge/docs/en-US/JBoss_Enterprise_SOA_Platform/5/html-single/Installation_and_Configuration_Guide/index.html#Configure_Tibco_Enterprise_Message_Service_for_Use_as_the_Java_Message_Service_Provider1

       

      What could i do ??

       

      Regards

      Carlos