6 Replies Latest reply on Jan 4, 2009 4:45 AM by Lars Heinemann

    Deployment Problem with Marshaler class - need assitance

    Liav Ezer Newbie

      Hi,

       

      My Project consist of 3 SU which one of them is a servicemix-http consumer with an HTTPMarshaler bean & two more simple http providers.

       

      My Marshaler class is located in:

      "http-consumer

      su\src\main\resources\org\apache\servicemix\jbi\HTTPMarshaler.java"

       

      My consumer xbean is as follows:

       

       

        <http:consumer service="GenericProxyImplService"

                       endpoint="GenericProxyImpl"

                       locationURI="http://localhost:8080/GenericProxyService/services/GenericProxyImpl"

                       role="consumer"

                       defaultMep="http://www.w3.org/2004/08/wsdl/in-out"

                       targetService="wsn:RouterBuilderSvc"

                       marshaler="#marshaler"

                       soap="true" />

         <bean id="marshaler" class="org.apache.servicemix.jbi.HTTPMarshaler" />            

      </beans>

       

      I have the following problem reported by the servicemix console after dropping the SA's jar to the hotdeploy directory:

       

      ERROR - AutoDeploymentService          - Failed to update Service Assembly: http-receiver-sa

      java.lang.Exception: <?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>deploy</task-id>

      <task-result>FAILED</task-result>

      <message-type>ERROR</message-type>

      </task-result-details>

      </frmwk-task-result-details>

      </frmwk-task-result>

      <component-task-result xmlns="http://java.sun.com/xml/ns/jbi/management-message">

              <component-name>servicemix-http</component-name>

              <component-task-result-details>

                      <task-result-details>

                              <task-id>deploy</task-id>

                              <task-result>FAILED</task-result>

                              <message-type>ERROR</message-type>

                              <task-status-msg>

      <msg-loc-info>

      <loc-token/>

      <loc-message>Could not deploy xbean service unit</loc-message>

      </msg-loc-info>

      </task-status-msg>

                              <exception-info>

                                      <nesting-level>1</nesting-level>

                                      <msg-loc-info>

                                              <loc-token/>

                                              <loc-message>org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Bean class [org.apache.service

      mix.jbi.HTTPMarshaler] not found

      Offending resource: file Bean 'marshaler'; nested exception is java.lang.ClassNotFoundException: org.apache.servicemix.jbi.HTTPMarshaler in classloader org.apache.servicemix.jbi.HTTPMarshaler</loc-message>

                                              <stack-trace><![CDATA[org.apache.xbean.kernel.ServiceRegistrationException: org.springframework.beans.factory.parsing.BeanDefinitionParsingE

      xception: Configuration problem: Bean class not found

      Offending resource: file

      Bean 'marshaler'; nested exception is java.lang.ClassNotFoundException: org.apache.servicemix.jbi.HTTPMarshaler in classloader org.apache.servicemix.jbi.HTTPMarshaler

              at org.apache.xbean.kernel.standard.ServiceManagerRegistry.registerService(ServiceManagerRegistry.java:424)

              at org.apache.xbean.kernel.standard.StandardKernel.registerService(StandardKernel.java:220)

              at org.apache.xbean.server.spring.loader.SpringLoader.load(SpringLoader.java:152)

              at org.apache.servicemix.common.xbean.AbstractXBeanDeployer.deploy(AbstractXBeanDeployer.java:83)

              at org.apache.servicemix.common.BaseServiceUnitManager.doDeploy(BaseServiceUnitManager.java:88)

              at org.apache.servicemix.common.BaseServiceUnitManager.deploy(BaseServiceUnitManager.java:69)

              at org.apache.servicemix.jbi.framework.DeploymentService.deployServiceAssembly(DeploymentService.java:508)

              at org.apache.servicemix.jbi.framework.AutoDeploymentService.updateServiceAssembly(AutoDeploymentService.java:353)

              at org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploymentService.java:256)

              at org.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:664)

              at org.apache.servicemix.jbi.framework.AutoDeploymentService.access$800(AutoDeploymentService.java:62)

              at org.apache.servicemix.jbi.framework.AutoDeploymentService$1.run(AutoDeploymentService.java:628)

              at java.util.TimerThread.mainLoop(Timer.java:512)

              at java.util.TimerThread.run(Timer.java:462)

      Caused by: org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Bean class not found

      Offending resource: file

      Bean 'marshaler'; nested exception is java.lang.ClassNotFoundException: org.apache.servicemix.jbi.HTTPMarshaler in classloader org.apache.servicemix.jbi.HTTPMarshaler

              at org.springframework.beans.factory.parsing.FailFastProblemReporter.error(FailFastProblemReporter.java:68)

              at org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:85)

              at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.error(BeanDefinitionParserDelegate.java:268)

              at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseBeanDefinitionElement(BeanDefinitionParserDelegate.java:502)

              at org.apache.xbean.spring.context.v2c.XBeanBeanDefinitionParserDelegate.parseBeanDefinitionElement(XBeanBeanDefinitionParserDelegate.java:62)

              at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseBeanDefinitionElement(BeanDefinitionParserDelegate.java:341)

              at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseBeanDefinitionElement(BeanDefinitionParserDelegate.java:310)

              at org.apache.xbean.spring.context.v2.XBeanBeanDefinitionDocumentReader.processBeanDefinition(XBeanBeanDefinitionDocumentReader.java:174)

              at org.apache.xbean.spring.context.v2.XBeanBeanDefinitionDocumentReader.parseDefaultElement(XBeanBeanDefinitionDocumentReader.java:101)

              at org.apache.xbean.spring.context.v2.XBeanBeanDefinitionDocumentReader.parseBeanDefinitions(XBeanBeanDefinitionDocumentReader.java:81)

              at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:90)

              at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:458)

              at org.apache.xbean.spring.context.v2.XBeanXmlBeanDefinitionReader.registerBeanDefinitions(XBeanXmlBeanDefinitionReader.java:79)

              at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:353)

              at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:303)

              at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:280)

              at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:131)

              at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:147)

              at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:173)

              at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:112)

              at org.apache.xbean.spring.context.FileSystemXmlApplicationContext.loadBeanDefinitions(FileSystemXmlApplicationContext.java:168)

              at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:101)

              at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:389)

              at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:324)

              at org.apache.xbean.server.spring.configuration.SpringConfiguration.org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Bean class [org.apache.service

      mix.jbi.HTTPMarshaler] not found

      Offending resource: file

      Bean 'marshaler'; nested exception is java.lang.ClassNotFoundException: org.apache.servicemix.jbi.HTTPMarshaler in classloader org.apache.servicemix.jbi.HTTPMarshaler</loc-message>

       

      Can you please assit?

       

      Thanks in advance.