2 Replies Latest reply on Sep 8, 2011 5:03 AM by Lekan Omotayo

    javax.xml.transform.dom.DOMSource not available in Fuse v4.4

    Lekan Omotayo Expert

      Hi all,

       

      I am having this error on Fuse Servicemix v4.4.

       

      org.apache.camel.RuntimeCamelException: org.apache.camel.FailedToCreateRouteException: Failed to create route iswGemaltoSAProcessor at: >>> Choice[[When[xpath{//OTPGenerationRequest} -> [convertBodyTo[javax.xml.transform.dom.DOMSource], To[xslt:getOTPGenerationRequest.xsl], To[direct:generateISWSaServiceSMSOTP], To[ref:otpGenerationTemplateEndpoint]]], When[xpath{//OTPAuthenticationRequest} -> [convertBodyTo[javax.xml.transform.dom.DOMSource], To[xslt:getOTPAuthenticationRequest.xsl], To[direct:authenticateISWSaServiceSMSOTP], To[ref:otpAuthenticationTemplateEndpoint]]], When[xpath{//routeId[translate(text(),'ABCDEFGHIJKLMNOPQRSTUVWXYZ','abcdefghijklmnopqrstuvwxyz') = translate('OTP','ABCDEFGHIJKLMNOPQRSTUVWXYZ','abcdefghijklmnopqrstuvwxyz')]} -> [To[direct:createISWSASMSOTPRequest], To[ref:otpGenerationTemplateEndpoint]]]] Otherwise[[To[ref:serviceUnavailableTemplateEndpoint]]]] <<< in route: Route[[From[ref:jmsEndpoint]] -> [OnException[[class java.la... because of Cannot load the class with the class name: javax.xml.transform.dom.DOMSource

           at org.apache.camel.util.ObjectHelper.wrapRuntimeCamelException(ObjectHelper.java:1139)[77:org.apache.camel.camel-core:2.7.1.fuse-00-43]

           at org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:103)[87:org.apache.camel.camel-spring:2.7.1.fuse-00-43]

           at org.apache.camel.spring.CamelContextFactoryBean.onApplicationEvent(CamelContextFactoryBean.java:238)[87:org.apache.camel.camel-spring:2.7.1.fuse-00-43]

           at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:97)[70:org.springframework.context:3.0.5.RELEASE]

           at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:303)[70:org.springframework.context:3.0.5.RELEASE]

           at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:911)[70:org.springframework.context:3.0.5.RELEASE]

           at org.springframework.osgi.context.support.AbstractOsgiBundleApplicationContext.finishRefresh(AbstractOsgiBundleApplicationContext.java:235)[82:org.springframework.osgi.core:1.2.1]

           at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:358)[82:org.springframework.osgi.core:1.2.1]

           at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)[82:org.springframework.osgi.core:1.2.1]

           at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:320)[82:org.springframework.osgi.core:1.2.1]

           at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:132)[85:org.springframework.osgi.extender:1.2.1]

           at java.lang.Thread.run(Thread.java:619)[:1.6.0_21-ea]

      Caused by: org.apache.camel.FailedToCreateRouteException: Failed to create route iswGemaltoSAProcessor at: >>> Choice[[When[xpath{//OTPGenerationRequest} -> [convertBodyTo[javax.xml.transform.dom.DOMSource], To[xslt:getOTPGenerationRequest.xsl], To[direct:generateISWSaServiceSMSOTP], To[ref:otpGenerationTemplateEndpoint]]], When[xpath{//OTPAuthenticationRequest} -> [convertBodyTo[javax.xml.transform.dom.DOMSource], To[xslt:getOTPAuthenticationRequest.xsl], To[direct:authenticateISWSaServiceSMSOTP], To[ref:otpAuthenticationTemplateEndpoint]]], When[xpath{//routeId[translate(text(),'ABCDEFGHIJKLMNOPQRSTUVWXYZ','abcdefghijklmnopqrstuvwxyz') = translate('OTP','ABCDEFGHIJKLMNOPQRSTUVWXYZ','abcdefghijklmnopqrstuvwxyz')]} -> [To[direct:createISWSASMSOTPRequest], To[ref:otpGenerationTemplateEndpoint]]]] Otherwise[[To[ref:serviceUnavailableTemplateEndpoint]]]] <<< in route: Route[[From[ref:jmsEndpoint]] -> [OnException[[class java.la... because of Cannot load the class with the class name: javax.xml.transform.dom.DOMSource

           at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:818)[77:org.apache.camel.camel-core:2.7.1.fuse-00-43]

           at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:165)[77:org.apache.camel.camel-core:2.7.1.fuse-00-43]

           at org.apache.camel.impl.DefaultCamelContext.startRoute(DefaultCamelContext.java:708)[77:org.apache.camel.camel-core:2.7.1.fuse-00-43]

           at org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:1650)[77:org.apache.camel.camel-core:2.7.1.fuse-00-43]

           at org.apache.camel.impl.DefaultCamelContext.doStartCamel(DefaultCamelContext.java:1439)[77:org.apache.camel.camel-core:2.7.1.fuse-00-43]

           at org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:1338)[77:org.apache.camel.camel-core:2.7.1.fuse-00-43]

           at org.apache.camel.spring.SpringCamelContext.doStart(SpringCamelContext.java:164)[87:org.apache.camel.camel-spring:2.7.1.fuse-00-43]

           at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:67)[77:org.apache.camel.camel-core:2.7.1.fuse-00-43]

           at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:54)[77:org.apache.camel.camel-core:2.7.1.fuse-00-43]

           at org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:1316)[77:org.apache.camel.camel-core:2.7.1.fuse-00-43]

           at org.apache.camel.spring.SpringCamelContext.maybeStart(SpringCamelContext.java:203)[87:org.apache.camel.camel-spring:2.7.1.fuse-00-43]

           at org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:101)[87:org.apache.camel.camel-spring:2.7.1.fuse-00-43]

           ... 10 more

      Caused by: org.apache.camel.RuntimeCamelException: Cannot load the class with the class name: javax.xml.transform.dom.DOMSource

           at org.apache.camel.model.ConvertBodyDefinition.createProcessor(ConvertBodyDefinition.java:78)[77:org.apache.camel.camel-core:2.7.1.fuse-00-43]

           at org.apache.camel.model.ProcessorDefinition.createOutputsProcessor(ProcessorDefinition.java:391)[77:org.apache.camel.camel-core:2.7.1.fuse-00-43]

           at org.apache.camel.model.ProcessorDefinition.createOutputsProcessor(ProcessorDefinition.java:136)[77:org.apache.camel.camel-core:2.7.1.fuse-00-43]

           at org.apache.camel.impl.DefaultRouteContext.createProcessor(DefaultRouteContext.java:106)[77:org.apache.camel.camel-core:2.7.1.fuse-00-43]

           at org.apache.camel.model.ProcessorDefinition.createChildProcessor(ProcessorDefinition.java:155)[77:org.apache.camel.camel-core:2.7.1.fuse-00-43]

           at org.apache.camel.model.ExpressionNode.createFilterProcessor(ExpressionNode.java:100)[77:org.apache.camel.camel-core:2.7.1.fuse-00-43]

           at org.apache.camel.model.WhenDefinition.createProcessor(WhenDefinition.java:69)[77:org.apache.camel.camel-core:2.7.1.fuse-00-43]

           at org.apache.camel.model.ChoiceDefinition.createProcessor(ChoiceDefinition.java:71)[77:org.apache.camel.camel-core:2.7.1.fuse-00-43]

           at org.apache.camel.model.ProcessorDefinition.makeProcessor(ProcessorDefinition.java:433)[77:org.apache.camel.camel-core:2.7.1.fuse-00-43]

           at org.apache.camel.model.ProcessorDefinition.addRoutes(ProcessorDefinition.java:181)[77:org.apache.camel.camel-core:2.7.1.fuse-00-43]

           at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:815)[77:org.apache.camel.camel-core:2.7.1.fuse-00-43]

           ... 21 more

      08:27:42,294 | Transport                        | 49 - org.apache.activemq.activemq-core - 5.5.0.fuse-00-43 | Transport failed: org.apache.activemq.transport.InactivityIOException: Channel was inactive for too (>30000) long: /172.25.20.23:4513

       

       

      Which is basically saying the  class "javax.xml.transform.dom.DOMSource" is not available. This same class is available in v4.3. Any pointers to what osgi bundle I need to isntall to make this available?