Camel deployment fails in modular AS7
-------------------------------------
Key: SWITCHYARD-230
URL:
https://issues.jboss.org/browse/SWITCHYARD-230
Project: SwitchYard
Issue Type: Bug
Reporter: Keith Babo
Assignee: Magesh Bojan
Fix For: 0.1
Camel deployments fail with our modularized setup in AS7. App to reproduce attached.
Stack trace below. I tried to add the obvious stuff (e.g. camel component dependency on
"javax.xml.bind.api" and "com.sun.xml.bind") but that did not resolve
the issue.
15:01:23,941 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-5) MSC00001: Failed
to start service
jboss.deployment.unit."feedbackApp-1.0.0-SNAPSHOT.jar".SwitchYardService:
org.jboss.msc.service.StartException in service
jboss.deployment.unit."feedbackApp-1.0.0-SNAPSHOT.jar".SwitchYardService: Failed
to start service
at
org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1696)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
[:1.6.0_24]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
[:1.6.0_24]
at java.lang.Thread.run(Thread.java:680) [:1.6.0_24]
Caused by: java.lang.ExceptionInInitializerError
at
org.switchyard.component.camel.config.model.v1.V1CamelModelMarshaller.read(V1CamelModelMarshaller.java:67)
at org.switchyard.config.model.BaseModel.readModel(BaseModel.java:242)
at
org.switchyard.config.model.BaseModel.getFirstChildModelStartsWith(BaseModel.java:226)
at
org.switchyard.config.model.composite.v1.V1ComponentModel.getImplementation(V1ComponentModel.java:92)
at org.switchyard.deploy.internal.Deployment.getActivator(Deployment.java:171)
at org.switchyard.deploy.internal.Deployment.deployServices(Deployment.java:260)
at org.switchyard.deploy.internal.Deployment.start(Deployment.java:119)
at
org.switchyard.as7.extension.deployment.SwitchYardDeployment.start(SwitchYardDeployment.java:76)
at
org.switchyard.as7.extension.services.SwitchYardService.start(SwitchYardService.java:68)
at
org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1675)
... 3 more
Caused by: java.lang.RuntimeException: javax.xml.bind.JAXBException: Provider
com.sun.xml.internal.bind.v2.ContextFactory not found
- with linked exception:
[java.lang.ClassNotFoundException: com.sun.xml.internal.bind.v2.ContextFactory from
[Module "deployment.feedbackApp-1.0.0-SNAPSHOT.jar:main" from Service Module
Loader]]
at
org.switchyard.component.camel.config.model.v1.V1CamelImplementationModel.createJAXBInstance(V1CamelImplementationModel.java:76)
at
org.switchyard.component.camel.config.model.v1.V1CamelImplementationModel.<clinit>(V1CamelImplementationModel.java:41)
... 13 more
Caused by: javax.xml.bind.JAXBException: Provider
com.sun.xml.internal.bind.v2.ContextFactory not found
- with linked exception:
[java.lang.ClassNotFoundException: com.sun.xml.internal.bind.v2.ContextFactory from
[Module "deployment.feedbackApp-1.0.0-SNAPSHOT.jar:main" from Service Module
Loader]]
at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:146) [:1.6.0_24]
at javax.xml.bind.ContextFinder.find(ContextFinder.java:289) [:1.6.0_24]
at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:412) [:1.6.0_24]
at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:375) [:1.6.0_24]
at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:279) [:1.6.0_24]
at
org.switchyard.component.camel.config.model.v1.V1CamelImplementationModel.createJAXBInstance(V1CamelImplementationModel.java:74)
... 14 more
Caused by: java.lang.ClassNotFoundException: com.sun.xml.internal.bind.v2.ContextFactory
from [Module "deployment.feedbackApp-1.0.0-SNAPSHOT.jar:main" from Service
Module Loader]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:184)
[:1.0.0.Beta17]
at
org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:357)
[:1.0.0.Beta17]
at
org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:306)
[:1.0.0.Beta17]
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:100)
[:1.0.0.Beta17]
at javax.xml.bind.ContextFinder.safeLoadClass(ContextFinder.java:490) [:1.6.0_24]
at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:112) [:1.6.0_24]
... 19 more
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira