2 Replies Latest reply on Feb 6, 2008 10:52 AM by Puneet Jain

    Facing problem in Integration of servicemix and jboss

    Puneet Jain Newbie

      Hi,

      I am facing problem in integrating servicemix in jboss server. Details is as bellow:

      Environment:
      =========
      Operating System: windows XP
      Servicemix 3.2.1
      Java 1.5
      Jboss version 4.2.2.GA

      Steps Performed:
      ============


      1. Download the servicemix jbi jboss deployer and build it using maven. Command is as follow:
      svn co http://svn.codehaus.org/servicemix/trunk/jboss-deployer
      cd jboss-deployer
      mvn install

      2. This creates a servicemix-jboss-deployer-3.1.2.sar.
      3. Deployed Servicemix Deployer servicemix-jboss-deployer-3.1.2.sar on jboss.
      4. While deploying the servicemix jboss deployer client Factory could not started.



      server.log is given below:
      15:48:09,499 WARN [EndpointRegistry] Disabled endpoint processor 'org.apache.servicemix.jbi.framework.support.WSDL2Processor': java.lang.NoClassDefFoundError: org/apache/woden/WSDLReader
      15:48:09,546 WARN [EndpointRegistry] Disabled endpoint processor 'org.apache.servicemix.jbi.framework.support.WSDL2Processor': java.lang.NoClassDefFoundError: org/apache/woden/WSDLReader
      15:48:09,546 INFO [JBIContainer] ServiceMix 3.1.2 JBI Container (ServiceMix) is starting
      15:48:09,546 INFO [JBIContainer] For help or more informations please see: http://incubator.apache.org/servicemix/
      15:48:09,827 INFO [ComponentMBeanImpl] Initializing component: #SubscriptionManager#
      15:48:09,858 INFO [DeploymentService] Restoring service assemblies
      15:48:09,889 WARN [ClientFactory] Cound not start ClientFactory: javax.naming.NameNotFoundException: env not bound
      15:48:09,889 INFO [JBIContainer] ServiceMix JBI Container (ServiceMix) started




      5. I deployed apache-servicemix-web-3.2.2-20080203.011720-1.war on the server.
      log are given below:

      INFO [TomcatDeployer] deploy, ctxPath=/apache-servicemix-web-3.2.2-20080203.011720-1, warUrl=.../tmp/deploy/tmp5874apache-servicemix-web-3.2.2-20080203.011720-1-exp.war/
      INFO [011720-1]] Initializing Spring root WebApplicationContext
      INFO [STDOUT] WARN - EndpointRegistry - Disabled endpoint processor 'org.apache.servicemix.jbi.framework.support.WSDL2Processor': java.lang.NoClassDefFoundError: org/apache/woden/WSDLReader
      INFO [STDOUT] INFO - JBIContainer - ServiceMix 3.2.2-SNAPSHOT JBI Container (ServiceMix) is starting
      INFO [STDOUT] INFO - JBIContainer - For help or more informations please see: http://incubator.apache.org/servicemix/
      INFO [STDOUT] INFO - ComponentMBeanImpl - Initializing component: #SubscriptionManager#
      INFO [STDOUT] INFO - DeploymentService - Restoring service assemblies
      INFO [STDOUT] WARN - ClientFactory - Cound not start ClientFactory: javax.naming.NameNotFoundException: jbi not bound
      INFO [STDOUT] INFO - JBIContainer - ServiceMix JBI Container (ServiceMix) started
      INFO [STDOUT] INFO - JDBCAdapterFactory - Database driver recognized: [apache_derby_embedded_jdbc_driver]
      INFO [011720-1]] Initializing Spring FrameworkServlet 'dispatcher'

      6. I install the servicemix-shared library using the servicemix web interface, I get following exception:
      2008-02-06 16:36:44,119 DEBUG [com.arjuna.ats.txoj.logging.txojLoggerI18N] [com.arjuna.ats.internal.txoj.recovery.TORecoveryModule_6] - TORecoveryModule - second pass
      2008-02-06 16:36:44,119 DEBUG [com.arjuna.ats.jta.logging.loggerI18N] [com.arjuna.ats.internal.jta.recovery.info.secondpass] Local XARecoveryModule - second pass
      2008-02-06 16:38:44,161 DEBUG [com.arjuna.ats.arjuna.logging.arjLogger] Periodic recovery - first pass <Wed, 6 Feb 2008 16:38:44>
      2008-02-06 16:38:44,161 DEBUG [com.arjuna.ats.arjuna.logging.arjLogger] StatusModule: first pass
      2008-02-06 16:38:44,161 DEBUG [com.arjuna.ats.txoj.logging.txojLoggerI18N] [com.arjuna.ats.internal.txoj.recovery.TORecoveryModule_3] - TORecoveryModule - first pass
      2008-02-06 16:38:44,161 DEBUG [com.arjuna.ats.jta.logging.loggerI18N] [com.arjuna.ats.internal.jta.recovery.info.firstpass] Local XARecoveryModule - first pass
      2008-02-06 16:38:44,661 DEBUG [org.jboss.web.tomcat.service.jasper.TagLibCache] Scanning for tlds in: file:/D:/OKISoft/jboss/jboss-4.2.2.GA/server/default/deploy/jboss-web.deployer/jsf-libs/jsf-impl.jar
      2008-02-06 16:38:45,193 DEBUG [org.jboss.web.tomcat.service.jasper.TagLibCache] Scanning for tlds in: file:/D:/OKISoft/jboss/jboss-4.2.2.GA/server/default/deploy/jboss-web.deployer/jstl.jar
      2008-02-06 16:38:54,162 DEBUG [com.arjuna.ats.arjuna.logging.arjLogger] Periodic recovery - second pass <Wed, 6 Feb 2008 16:38:54>
      2008-02-06 16:38:54,162 DEBUG [com.arjuna.ats.arjuna.logging.arjLogger] AtomicActionRecoveryModule: Second pass
      2008-02-06 16:38:54,162 DEBUG [com.arjuna.ats.txoj.logging.txojLoggerI18N] [com.arjuna.ats.internal.txoj.recovery.TORecoveryModule_6] - TORecoveryModule - second pass
      2008-02-06 16:38:54,162 DEBUG [com.arjuna.ats.jta.logging.loggerI18N] [com.arjuna.ats.internal.jta.recovery.info.secondpass] Local XARecoveryModule - second pass
      2008-02-06 16:39:39,260 ERROR [STDERR] servicemix-shared
      2008-02-06 16:40:30,952 INFO [STDOUT] INFO - jetty - Logging to org.apache.servicemix.http.jetty.JCLLogger@1cb1278 via org.apache.servicemix.http.jetty.JCLLogger
      2008-02-06 16:40:31,343 ERROR [STDERR] <?xml version="1.0" encoding="UTF-8"?>
      <jbi-task xmlns="http://java.sun.com/xml/ns/jbi/management-message" version="1.0">
      <jbi-task-result>
      <frmwk-task-result>
      <frmwk-task-result-details>
      <task-result-details>
      <task-id>installComponent</task-id>
      <task-result>SUCCESS</task-result>
      <task-status-msg>
      <msg-loc-info>
      <loc-token/>
      <loc-message>file:/C:/DOCUME~1/puninin/Local Settings/Temp/smx-comp5877.zip</loc-message>
      </msg-loc-info>
      </task-status-msg>
      </task-result-details>
      </frmwk-task-result-details>
      </frmwk-task-result>
      </jbi-task-result>
      </jbi-task>
      2008-02-06 16:40:54,173 DEBUG [com.arjuna.ats.arjuna.logging.arjLogger] Periodic recovery - first pass <Wed, 6 Feb 2008 16:40:54>
      2008-02-06 16:40:54,173 DEBUG [com.arjuna.ats.arjuna.logging.arjLogger] StatusModule: first pass
      2008-02-06 16:40:54,173 DEBUG [com.arjuna.ats.txoj.logging.txojLoggerI18N] [com.arjuna.ats.internal.txoj.recovery.TORecoveryModule_3] - TORecoveryModule - first pass
      2008-02-06 16:40:54,173 DEBUG [com.arjuna.ats.jta.logging.loggerI18N] [com.arjuna.ats.internal.jta.recovery.info.firstpass] Local XARecoveryModule - first pass
      2008-02-06 16:41:04,174 DEBUG [com.arjuna.ats.arjuna.logging.arjLogger] Periodic recovery - second pass <Wed, 6 Feb 2008 16:41:04>
      2008-02-06 16:41:04,174 DEBUG [com.arjuna.ats.arjuna.logging.arjLogger] AtomicActionRecoveryModule: Second pass
      2008-02-06 16:41:04,174 DEBUG [com.arjuna.ats.txoj.logging.txojLoggerI18N] [com.arjuna.ats.internal.txoj.recovery.TORecoveryModule_6] - TORecoveryModule - second pass
      2008-02-06 16:41:04,174 DEBUG [com.arjuna.ats.jta.logging.loggerI18N] [com.arjuna.ats.internal.jta.recovery.info.secondpass] Local XARecoveryModule - second pass
      2008-02-06 16:43:04,185 DEBUG [com.arjuna.ats.arjuna.logging.arjLogger] Periodic recovery - first pass <Wed, 6 Feb 2008 16:43:04>
      2008-02-06 16:43:04,185 DEBUG [com.arjuna.ats.arjuna.logging.arjLogger] StatusModule: first pass
      2008-02-06 16:43:04,185 DEBUG [com.arjuna.ats.txoj.logging.txojLoggerI18N] [com.arjuna.ats.internal.txoj.recovery.TORecoveryModule_3] - TORecoveryModule - first pass
      2008-02-06 16:43:04,185 DEBUG [com.arjuna.ats.jta.logging.loggerI18N] [com.arjuna.ats.internal.jta.recovery.info.firstpass] Local XARecoveryModule - first pass
      2008-02-06 16:43:14,186 DEBUG [com.arjuna.ats.arjuna.logging.arjLogger] Periodic recovery - second pass <Wed, 6 Feb 2008 16:43:14>
      2008-02-06 16:43:14,186 DEBUG [com.arjuna.ats.arjuna.logging.arjLogger] AtomicActionRecoveryModule: Second pass
      2008-02-06 16:43:14,186 DEBUG [com.arjuna.ats.txoj.logging.txojLoggerI18N] [com.arjuna.ats.internal.txoj.recovery.TORecoveryModule_6] - TORecoveryModule - second pass
      2008-02-06 16:43:14,186 DEBUG [com.arjuna.ats.jta.logging.loggerI18N] [com.arjuna.ats.internal.jta.recovery.info.secondpass] Local XARecoveryModule - second pass


      7. Now i am trying to install servicemix (version3.2.1) servicemix-http component, and i am getting following exceptions:

      org.springframework.jmx.access.InvocationFailureException: JMX access failed; nested exception is javax.management.MBeanException
      Caused by: javax.management.MBeanException
      at org.apache.servicemix.jbi.management.BaseStandardMBean.invoke(BaseStandardMBean.java:335)
      at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
      at org.springframework.jmx.access.MBeanClientInterceptor.invokeOperation(MBeanClientInterceptor.java:371)
      at org.springframework.jmx.access.MBeanClientInterceptor.invoke(MBeanClientInterceptor.java:302)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:166)
      at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
      at $Proxy59.startComponent(Unknown Source)
      at org.apache.servicemix.web.controller.ComponentLifeCycle.handleRequest(ComponentLifeCycle.java:57)
      at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
      at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:857)
      at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:792)
      at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:475)
      at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:440)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.apache.servicemix.web.filter.ApplicationContextFilter.doFilter(ApplicationContextFilter.java:81)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:118)
      at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:52)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
      at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
      at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
      at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
      at java.lang.Thread.run(Thread.java:595)
      Caused by: java.lang.reflect.InvocationTargetException
      at sun.reflect.GeneratedMethodAccessor114.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:216)
      at org.apache.servicemix.jbi.management.BaseStandardMBean.invoke(BaseStandardMBean.java:323)
      ... 40 more
      Caused by: java.lang.NoClassDefFoundError: edu/emory/mathcs/backport/java/util/concurrent/ConcurrentHashMap
      at org.apache.servicemix.http.ManagedContextManager.init(ManagedContextManager.java:44)
      at org.apache.servicemix.http.HttpComponent.doInit(HttpComponent.java:238)
      at org.apache.servicemix.common.AsyncBaseLifeCycle.init(AsyncBaseLifeCycle.java:187)
      at org.apache.servicemix.jbi.framework.ComponentMBeanImpl.init(ComponentMBeanImpl.java:201)
      at org.apache.servicemix.jbi.framework.ComponentMBeanImpl.doStart(ComponentMBeanImpl.java:287)
      at org.apache.servicemix.jbi.framework.ComponentMBeanImpl.start(ComponentMBeanImpl.java:216)
      at org.apache.servicemix.jbi.framework.AdminCommandsService.startComponent(AdminCommandsService.java:156)
      ... 45 more




      I have uploaded all the log i got while performing the above steps.

      Please help me to resolve the problem.

      Regards,
      Puneet