camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Guillaume Nodet (JIRA)" <j...@apache.org>
Subject [jira] Issue Comment Edited: (CAMEL-3519) camel-web-console feature for Apache Karaf
Date Fri, 04 Feb 2011 20:17:31 GMT

    [ https://issues.apache.org/jira/browse/CAMEL-3519?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12990682#comment-12990682
] 

Guillaume Nodet edited comment on CAMEL-3519 at 2/4/11 8:16 PM:
----------------------------------------------------------------

So the problem comes from the following exception:

{code}
20:01:34,920 | ERROR | -SNAPSHOT/deploy | RegisterWebAppVisitorWC          | internal.RegisterWebAppVisitorWC
 215 | 57 - org.ops4j.pax.web.pax-web-extender-war - 1.0.0.SNAPSHOT | Registration exception.
Skipping.
java.lang.RuntimeException: org.springframework.beans.factory.BeanDefinitionStoreException:
Unexpected exception parsing XML document from ServletContext resource [/WEB-INF/applicationContext.xml];
nested exception is java.lang.LinkageError: loader constraint violation: when resolving field
"DATETIME" the class loader (instance of org/apache/felix/framework/ModuleImpl$ModuleClassLoaderJava5)
of the referring class, javax/xml/datatype/DatatypeConstants, and the class loader (instance
of <bootloader>) for the field's resolved type, javax/xml/namespace/QName, have different
Class objects for that type
	at org.eclipse.jetty.servlet.ServletHandler.updateMappings(ServletHandler.java:1218)[49:org.eclipse.jetty.servlet:7.2.2.v20101205]
	at org.eclipse.jetty.servlet.ServletHandler.setServletMappings(ServletHandler.java:1272)[49:org.eclipse.jetty.servlet:7.2.2.v20101205]
	at org.eclipse.jetty.servlet.ServletHandler.addServletMapping(ServletHandler.java:872)[49:org.eclipse.jetty.servlet:7.2.2.v20101205]
	at org.ops4j.pax.web.service.jetty.internal.JettyServerImpl$1.call(JettyServerImpl.java:156)[54:org.ops4j.pax.web.pax-web-jetty:1.0.0.SNAPSHOT]
	at org.ops4j.pax.web.service.jetty.internal.JettyServerImpl$1.call(JettyServerImpl.java:152)[54:org.ops4j.pax.web.pax-web-jetty:1.0.0.SNAPSHOT]
	at org.ops4j.pax.swissbox.core.ContextClassLoaderUtils.doWithClassLoader(ContextClassLoaderUtils.java:60)[54:org.ops4j.pax.web.pax-web-jetty:1.0.0.SNAPSHOT]
	at org.ops4j.pax.web.service.jetty.internal.JettyServerImpl.addServlet(JettyServerImpl.java:151)[54:org.ops4j.pax.web.pax-web-jetty:1.0.0.SNAPSHOT]
	at org.ops4j.pax.web.service.jetty.internal.ServerControllerImpl$Started.addServlet(ServerControllerImpl.java:266)[54:org.ops4j.pax.web.pax-web-jetty:1.0.0.SNAPSHOT]
	at org.ops4j.pax.web.service.jetty.internal.ServerControllerImpl.addServlet(ServerControllerImpl.java:107)[54:org.ops4j.pax.web.pax-web-jetty:1.0.0.SNAPSHOT]
	at org.ops4j.pax.web.service.internal.HttpServiceStarted.registerServlet(HttpServiceStarted.java:248)[53:org.ops4j.pax.web.pax-web-runtime:1.0.0.SNAPSHOT]
	at org.ops4j.pax.web.service.internal.HttpServiceStarted.registerServlet(HttpServiceStarted.java:219)[53:org.ops4j.pax.web.pax-web-runtime:1.0.0.SNAPSHOT]
	at org.ops4j.pax.web.service.internal.HttpServiceProxy.registerServlet(HttpServiceProxy.java:100)[53:org.ops4j.pax.web.pax-web-runtime:1.0.0.SNAPSHOT]
	at org.ops4j.pax.web.extender.war.internal.RegisterWebAppVisitorWC.visit(RegisterWebAppVisitorWC.java:206)[57:org.ops4j.pax.web.pax-web-extender-war:1.0.0.SNAPSHOT]
	at org.ops4j.pax.web.extender.war.internal.model.WebApp.accept(WebApp.java:583)[57:org.ops4j.pax.web.pax-web-extender-war:1.0.0.SNAPSHOT]
	at org.ops4j.pax.web.extender.war.internal.WebAppPublisher$HttpServiceListener.register(WebAppPublisher.java:170)[57:org.ops4j.pax.web.pax-web-extender-war:1.0.0.SNAPSHOT]
	at org.ops4j.pax.web.extender.war.internal.WebAppPublisher$HttpServiceListener.serviceChanged(WebAppPublisher.java:155)[57:org.ops4j.pax.web.pax-web-extender-war:1.0.0.SNAPSHOT]
	at org.ops4j.pax.web.extender.war.internal.WebAppPublisher$HttpServiceListener.serviceChanged(WebAppPublisher.java:119)[57:org.ops4j.pax.web.pax-web-extender-war:1.0.0.SNAPSHOT]
	at org.ops4j.pax.swissbox.tracker.ReplaceableService.setService(ReplaceableService.java:114)[57:org.ops4j.pax.web.pax-web-extender-war:1.0.0.SNAPSHOT]
	at org.ops4j.pax.swissbox.tracker.ReplaceableService.access$100(ReplaceableService.java:28)[57:org.ops4j.pax.web.pax-web-extender-war:1.0.0.SNAPSHOT]
	at org.ops4j.pax.swissbox.tracker.ReplaceableService$CollectionListener.serviceAdded(ReplaceableService.java:183)[57:org.ops4j.pax.web.pax-web-extender-war:1.0.0.SNAPSHOT]
	at org.ops4j.pax.swissbox.tracker.ServiceCollection$Tracker.addingService(ServiceCollection.java:181)[57:org.ops4j.pax.web.pax-web-extender-war:1.0.0.SNAPSHOT]
	at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:896)[karaf.jar:]
	at org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:261)[karaf.jar:]
	at org.osgi.util.tracker.AbstractTracked.trackInitial(AbstractTracked.java:184)[karaf.jar:]
	at org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.java:339)[karaf.jar:]
	at org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.java:273)[karaf.jar:]
	at org.ops4j.pax.swissbox.tracker.ServiceCollection.onStart(ServiceCollection.java:139)[57:org.ops4j.pax.web.pax-web-extender-war:1.0.0.SNAPSHOT]
	at org.ops4j.pax.swissbox.lifecycle.AbstractLifecycle$Stopped.start(AbstractLifecycle.java:121)[57:org.ops4j.pax.web.pax-web-extender-war:1.0.0.SNAPSHOT]
	at org.ops4j.pax.swissbox.lifecycle.AbstractLifecycle.start(AbstractLifecycle.java:49)[57:org.ops4j.pax.web.pax-web-extender-war:1.0.0.SNAPSHOT]
	at org.ops4j.pax.swissbox.tracker.ReplaceableService.onStart(ReplaceableService.java:146)[57:org.ops4j.pax.web.pax-web-extender-war:1.0.0.SNAPSHOT]
	at org.ops4j.pax.swissbox.lifecycle.AbstractLifecycle$Stopped.start(AbstractLifecycle.java:121)[57:org.ops4j.pax.web.pax-web-extender-war:1.0.0.SNAPSHOT]
	at org.ops4j.pax.swissbox.lifecycle.AbstractLifecycle.start(AbstractLifecycle.java:49)[57:org.ops4j.pax.web.pax-web-extender-war:1.0.0.SNAPSHOT]
	at org.ops4j.pax.web.extender.war.internal.WebAppPublisher.publish(WebAppPublisher.java:81)[57:org.ops4j.pax.web.pax-web-extender-war:1.0.0.SNAPSHOT]
	at org.ops4j.pax.web.extender.war.internal.WebXmlObserver.doPublish(WebXmlObserver.java:266)[57:org.ops4j.pax.web.pax-web-extender-war:1.0.0.SNAPSHOT]
	at org.ops4j.pax.web.extender.war.internal.WebXmlObserver.addingEntries(WebXmlObserver.java:143)[57:org.ops4j.pax.web.pax-web-extender-war:1.0.0.SNAPSHOT]
	at org.ops4j.pax.swissbox.extender.BundleWatcher.register(BundleWatcher.java:186)[57:org.ops4j.pax.web.pax-web-extender-war:1.0.0.SNAPSHOT]
	at org.ops4j.pax.swissbox.extender.BundleWatcher.access$000(BundleWatcher.java:45)[57:org.ops4j.pax.web.pax-web-extender-war:1.0.0.SNAPSHOT]
	at org.ops4j.pax.swissbox.extender.BundleWatcher$1.bundleChanged(BundleWatcher.java:127)[57:org.ops4j.pax.web.pax-web-extender-war:1.0.0.SNAPSHOT]
	at org.apache.felix.framework.util.EventDispatcher.invokeBundleListenerCallback(EventDispatcher.java:807)[org.apache.felix.framework-3.0.8.jar:]
	at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:729)[org.apache.felix.framework-3.0.8.jar:]
	at org.apache.felix.framework.util.EventDispatcher.fireBundleEvent(EventDispatcher.java:610)[org.apache.felix.framework-3.0.8.jar:]
	at org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:3758)[org.apache.felix.framework-3.0.8.jar:]
	at org.apache.felix.framework.Felix.startBundle(Felix.java:1780)[org.apache.felix.framework-3.0.8.jar:]
	at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:922)[org.apache.felix.framework-3.0.8.jar:]
	at org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:1175)[6:org.apache.felix.fileinstall:3.1.7.SNAPSHOT]
	at org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:1153)[6:org.apache.felix.fileinstall:3.1.7.SNAPSHOT]
	at org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:458)[6:org.apache.felix.fileinstall:3.1.7.SNAPSHOT]
	at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:263)[6:org.apache.felix.fileinstall:3.1.7.SNAPSHOT]
Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception
parsing XML document from ServletContext resource [/WEB-INF/applicationContext.xml]; nested
exception is java.lang.LinkageError: loader constraint violation: when resolving field "DATETIME"
the class loader (instance of org/apache/felix/framework/ModuleImpl$ModuleClassLoaderJava5)
of the referring class, javax/xml/datatype/DatatypeConstants, and the class loader (instance
of <bootloader>) for the field's resolved type, javax/xml/namespace/QName, have different
Class objects for that type
	at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:412)[61:camel-web-2.5.0-fuse-00:00]
	at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:334)[61:camel-web-2.5.0-fuse-00:00]
	at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302)[61:camel-web-2.5.0-fuse-00:00]
	at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143)[61:camel-web-2.5.0-fuse-00:00]
	at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:178)[61:camel-web-2.5.0-fuse-00:00]
	at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:149)[61:camel-web-2.5.0-fuse-00:00]
	at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:124)[61:camel-web-2.5.0-fuse-00:00]
	at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:93)[61:camel-web-2.5.0-fuse-00:00]
	at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:130)[61:camel-web-2.5.0-fuse-00:00]
	at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:467)[61:camel-web-2.5.0-fuse-00:00]
	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:397)[61:camel-web-2.5.0-fuse-00:00]
	at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276)[61:camel-web-2.5.0-fuse-00:00]
	at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)[61:camel-web-2.5.0-fuse-00:00]
	at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)[61:camel-web-2.5.0-fuse-00:00]
	at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext$1.call(HttpServiceContext.java:168)[54:org.ops4j.pax.web.pax-web-jetty:1.0.0.SNAPSHOT]
	at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext$1.call(HttpServiceContext.java:164)[54:org.ops4j.pax.web.pax-web-jetty:1.0.0.SNAPSHOT]
	at org.ops4j.pax.swissbox.core.ContextClassLoaderUtils.doWithClassLoader(ContextClassLoaderUtils.java:60)[54:org.ops4j.pax.web.pax-web-jetty:1.0.0.SNAPSHOT]
	at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.addEventListener(HttpServiceContext.java:161)[54:org.ops4j.pax.web.pax-web-jetty:1.0.0.SNAPSHOT]
	at org.ops4j.pax.web.service.jetty.internal.JettyServerImpl.addEventListener(JettyServerImpl.java:235)[54:org.ops4j.pax.web.pax-web-jetty:1.0.0.SNAPSHOT]
	at org.ops4j.pax.web.service.jetty.internal.ServerControllerImpl$Started.addEventListener(ServerControllerImpl.java:276)[54:org.ops4j.pax.web.pax-web-jetty:1.0.0.SNAPSHOT]
	at org.ops4j.pax.web.service.jetty.internal.ServerControllerImpl.addEventListener(ServerControllerImpl.java:127)[54:org.ops4j.pax.web.pax-web-jetty:1.0.0.SNAPSHOT]
	at org.ops4j.pax.web.service.internal.HttpServiceStarted.registerEventListener(HttpServiceStarted.java:286)[53:org.ops4j.pax.web.pax-web-runtime:1.0.0.SNAPSHOT]
	at org.ops4j.pax.web.service.internal.HttpServiceProxy.registerEventListener(HttpServiceProxy.java:133)[53:org.ops4j.pax.web.pax-web-runtime:1.0.0.SNAPSHOT]
	at org.ops4j.pax.web.extender.war.internal.RegisterWebAppVisitorWC.visit(RegisterWebAppVisitorWC.java:276)[57:org.ops4j.pax.web.pax-web-extender-war:1.0.0.SNAPSHOT]
	at org.ops4j.pax.web.extender.war.internal.model.WebApp.accept(WebApp.java:561)[57:org.ops4j.pax.web.pax-web-extender-war:1.0.0.SNAPSHOT]
	... 34 more
Caused by: java.lang.LinkageError: loader constraint violation: when resolving field "DATETIME"
the class loader (instance of org/apache/felix/framework/ModuleImpl$ModuleClassLoaderJava5)
of the referring class, javax/xml/datatype/DatatypeConstants, and the class loader (instance
of <bootloader>) for the field's resolved type, javax/xml/namespace/QName, have different
Class objects for that type
	at com.sun.xml.bind.v2.model.impl.RuntimeBuiltinLeafInfoImpl.<clinit>(RuntimeBuiltinLeafInfoImpl.java:259)
	at com.sun.xml.bind.v2.model.impl.RuntimeTypeInfoSetImpl.<init>(RuntimeTypeInfoSetImpl.java:61)
	at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.createTypeInfoSet(RuntimeModelBuilder.java:129)
	at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.createTypeInfoSet(RuntimeModelBuilder.java:81)
	at com.sun.xml.bind.v2.model.impl.ModelBuilder.<init>(ModelBuilder.java:152)
	at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.<init>(RuntimeModelBuilder.java:89)
	at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:456)
	at com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:302)
	at com.sun.xml.bind.v2.runtime.JAXBContextImpl$JAXBContextBuilder.build(JAXBContextImpl.java:1140)
	at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:154)
	at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:121)
	at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:202)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.6.0_22]
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)[:1.6.0_22]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)[:1.6.0_22]
	at java.lang.reflect.Method.invoke(Method.java:597)[:1.6.0_22]
	at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:133)[:1.6.0_22]
	at javax.xml.bind.ContextFinder.find(ContextFinder.java:286)[:1.6.0_22]
	at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:372)[:1.6.0_22]
	at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:337)[:1.6.0_22]
	at org.apache.camel.spring.handler.CamelNamespaceHandler.createJaxbContext(CamelNamespaceHandler.java:187)
	at org.apache.camel.spring.handler.CamelNamespaceHandler.getJaxbContext(CamelNamespaceHandler.java:174)
	at org.apache.camel.spring.handler.CamelNamespaceHandler$CamelContextBeanDefinitionParser.doParse(CamelNamespaceHandler.java:257)
	at org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser.parseInternal(AbstractSingleBeanDefinitionParser.java:85)
	at org.springframework.beans.factory.xml.AbstractBeanDefinitionParser.parse(AbstractBeanDefinitionParser.java:59)
	at org.springframework.beans.factory.xml.NamespaceHandlerSupport.parse(NamespaceHandlerSupport.java:73)
	at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1335)
	at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1325)
	at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:135)
	at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:93)
	at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:493)
	at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:390)
	... 58 more
{code}

which looks really bad :-(
I'm sure I can find an easy workaround by specifying some additional imports when deploying
the war, which means you wouldn't be able to drop it into the deploy folder, but I suppose
that's not that big a deal.

I'll also try to actually investigate the real issue, but that's way trickier I think.

      was (Author: gnt):
    So the problem comes from the following exception:


20:01:34,920 | ERROR | -SNAPSHOT/deploy | RegisterWebAppVisitorWC          | internal.RegisterWebAppVisitorWC
 215 | 57 - org.ops4j.pax.web.pax-web-extender-war - 1.0.0.SNAPSHOT | Registration exception.
Skipping.
java.lang.RuntimeException: org.springframework.beans.factory.BeanDefinitionStoreException:
Unexpected exception parsing XML document from ServletContext resource [/WEB-INF/applicationContext.xml];
nested exception is java.lang.LinkageError: loader constraint violation: when resolving field
"DATETIME" the class loader (instance of org/apache/felix/framework/ModuleImpl$ModuleClassLoaderJava5)
of the referring class, javax/xml/datatype/DatatypeConstants, and the class loader (instance
of <bootloader>) for the field's resolved type, javax/xml/namespace/QName, have different
Class objects for that type
	at org.eclipse.jetty.servlet.ServletHandler.updateMappings(ServletHandler.java:1218)[49:org.eclipse.jetty.servlet:7.2.2.v20101205]
	at org.eclipse.jetty.servlet.ServletHandler.setServletMappings(ServletHandler.java:1272)[49:org.eclipse.jetty.servlet:7.2.2.v20101205]
	at org.eclipse.jetty.servlet.ServletHandler.addServletMapping(ServletHandler.java:872)[49:org.eclipse.jetty.servlet:7.2.2.v20101205]
	at org.ops4j.pax.web.service.jetty.internal.JettyServerImpl$1.call(JettyServerImpl.java:156)[54:org.ops4j.pax.web.pax-web-jetty:1.0.0.SNAPSHOT]
	at org.ops4j.pax.web.service.jetty.internal.JettyServerImpl$1.call(JettyServerImpl.java:152)[54:org.ops4j.pax.web.pax-web-jetty:1.0.0.SNAPSHOT]
	at org.ops4j.pax.swissbox.core.ContextClassLoaderUtils.doWithClassLoader(ContextClassLoaderUtils.java:60)[54:org.ops4j.pax.web.pax-web-jetty:1.0.0.SNAPSHOT]
	at org.ops4j.pax.web.service.jetty.internal.JettyServerImpl.addServlet(JettyServerImpl.java:151)[54:org.ops4j.pax.web.pax-web-jetty:1.0.0.SNAPSHOT]
	at org.ops4j.pax.web.service.jetty.internal.ServerControllerImpl$Started.addServlet(ServerControllerImpl.java:266)[54:org.ops4j.pax.web.pax-web-jetty:1.0.0.SNAPSHOT]
	at org.ops4j.pax.web.service.jetty.internal.ServerControllerImpl.addServlet(ServerControllerImpl.java:107)[54:org.ops4j.pax.web.pax-web-jetty:1.0.0.SNAPSHOT]
	at org.ops4j.pax.web.service.internal.HttpServiceStarted.registerServlet(HttpServiceStarted.java:248)[53:org.ops4j.pax.web.pax-web-runtime:1.0.0.SNAPSHOT]
	at org.ops4j.pax.web.service.internal.HttpServiceStarted.registerServlet(HttpServiceStarted.java:219)[53:org.ops4j.pax.web.pax-web-runtime:1.0.0.SNAPSHOT]
	at org.ops4j.pax.web.service.internal.HttpServiceProxy.registerServlet(HttpServiceProxy.java:100)[53:org.ops4j.pax.web.pax-web-runtime:1.0.0.SNAPSHOT]
	at org.ops4j.pax.web.extender.war.internal.RegisterWebAppVisitorWC.visit(RegisterWebAppVisitorWC.java:206)[57:org.ops4j.pax.web.pax-web-extender-war:1.0.0.SNAPSHOT]
	at org.ops4j.pax.web.extender.war.internal.model.WebApp.accept(WebApp.java:583)[57:org.ops4j.pax.web.pax-web-extender-war:1.0.0.SNAPSHOT]
	at org.ops4j.pax.web.extender.war.internal.WebAppPublisher$HttpServiceListener.register(WebAppPublisher.java:170)[57:org.ops4j.pax.web.pax-web-extender-war:1.0.0.SNAPSHOT]
	at org.ops4j.pax.web.extender.war.internal.WebAppPublisher$HttpServiceListener.serviceChanged(WebAppPublisher.java:155)[57:org.ops4j.pax.web.pax-web-extender-war:1.0.0.SNAPSHOT]
	at org.ops4j.pax.web.extender.war.internal.WebAppPublisher$HttpServiceListener.serviceChanged(WebAppPublisher.java:119)[57:org.ops4j.pax.web.pax-web-extender-war:1.0.0.SNAPSHOT]
	at org.ops4j.pax.swissbox.tracker.ReplaceableService.setService(ReplaceableService.java:114)[57:org.ops4j.pax.web.pax-web-extender-war:1.0.0.SNAPSHOT]
	at org.ops4j.pax.swissbox.tracker.ReplaceableService.access$100(ReplaceableService.java:28)[57:org.ops4j.pax.web.pax-web-extender-war:1.0.0.SNAPSHOT]
	at org.ops4j.pax.swissbox.tracker.ReplaceableService$CollectionListener.serviceAdded(ReplaceableService.java:183)[57:org.ops4j.pax.web.pax-web-extender-war:1.0.0.SNAPSHOT]
	at org.ops4j.pax.swissbox.tracker.ServiceCollection$Tracker.addingService(ServiceCollection.java:181)[57:org.ops4j.pax.web.pax-web-extender-war:1.0.0.SNAPSHOT]
	at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:896)[karaf.jar:]
	at org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:261)[karaf.jar:]
	at org.osgi.util.tracker.AbstractTracked.trackInitial(AbstractTracked.java:184)[karaf.jar:]
	at org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.java:339)[karaf.jar:]
	at org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.java:273)[karaf.jar:]
	at org.ops4j.pax.swissbox.tracker.ServiceCollection.onStart(ServiceCollection.java:139)[57:org.ops4j.pax.web.pax-web-extender-war:1.0.0.SNAPSHOT]
	at org.ops4j.pax.swissbox.lifecycle.AbstractLifecycle$Stopped.start(AbstractLifecycle.java:121)[57:org.ops4j.pax.web.pax-web-extender-war:1.0.0.SNAPSHOT]
	at org.ops4j.pax.swissbox.lifecycle.AbstractLifecycle.start(AbstractLifecycle.java:49)[57:org.ops4j.pax.web.pax-web-extender-war:1.0.0.SNAPSHOT]
	at org.ops4j.pax.swissbox.tracker.ReplaceableService.onStart(ReplaceableService.java:146)[57:org.ops4j.pax.web.pax-web-extender-war:1.0.0.SNAPSHOT]
	at org.ops4j.pax.swissbox.lifecycle.AbstractLifecycle$Stopped.start(AbstractLifecycle.java:121)[57:org.ops4j.pax.web.pax-web-extender-war:1.0.0.SNAPSHOT]
	at org.ops4j.pax.swissbox.lifecycle.AbstractLifecycle.start(AbstractLifecycle.java:49)[57:org.ops4j.pax.web.pax-web-extender-war:1.0.0.SNAPSHOT]
	at org.ops4j.pax.web.extender.war.internal.WebAppPublisher.publish(WebAppPublisher.java:81)[57:org.ops4j.pax.web.pax-web-extender-war:1.0.0.SNAPSHOT]
	at org.ops4j.pax.web.extender.war.internal.WebXmlObserver.doPublish(WebXmlObserver.java:266)[57:org.ops4j.pax.web.pax-web-extender-war:1.0.0.SNAPSHOT]
	at org.ops4j.pax.web.extender.war.internal.WebXmlObserver.addingEntries(WebXmlObserver.java:143)[57:org.ops4j.pax.web.pax-web-extender-war:1.0.0.SNAPSHOT]
	at org.ops4j.pax.swissbox.extender.BundleWatcher.register(BundleWatcher.java:186)[57:org.ops4j.pax.web.pax-web-extender-war:1.0.0.SNAPSHOT]
	at org.ops4j.pax.swissbox.extender.BundleWatcher.access$000(BundleWatcher.java:45)[57:org.ops4j.pax.web.pax-web-extender-war:1.0.0.SNAPSHOT]
	at org.ops4j.pax.swissbox.extender.BundleWatcher$1.bundleChanged(BundleWatcher.java:127)[57:org.ops4j.pax.web.pax-web-extender-war:1.0.0.SNAPSHOT]
	at org.apache.felix.framework.util.EventDispatcher.invokeBundleListenerCallback(EventDispatcher.java:807)[org.apache.felix.framework-3.0.8.jar:]
	at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:729)[org.apache.felix.framework-3.0.8.jar:]
	at org.apache.felix.framework.util.EventDispatcher.fireBundleEvent(EventDispatcher.java:610)[org.apache.felix.framework-3.0.8.jar:]
	at org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:3758)[org.apache.felix.framework-3.0.8.jar:]
	at org.apache.felix.framework.Felix.startBundle(Felix.java:1780)[org.apache.felix.framework-3.0.8.jar:]
	at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:922)[org.apache.felix.framework-3.0.8.jar:]
	at org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:1175)[6:org.apache.felix.fileinstall:3.1.7.SNAPSHOT]
	at org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:1153)[6:org.apache.felix.fileinstall:3.1.7.SNAPSHOT]
	at org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:458)[6:org.apache.felix.fileinstall:3.1.7.SNAPSHOT]
	at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:263)[6:org.apache.felix.fileinstall:3.1.7.SNAPSHOT]
Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception
parsing XML document from ServletContext resource [/WEB-INF/applicationContext.xml]; nested
exception is java.lang.LinkageError: loader constraint violation: when resolving field "DATETIME"
the class loader (instance of org/apache/felix/framework/ModuleImpl$ModuleClassLoaderJava5)
of the referring class, javax/xml/datatype/DatatypeConstants, and the class loader (instance
of <bootloader>) for the field's resolved type, javax/xml/namespace/QName, have different
Class objects for that type
	at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:412)[61:camel-web-2.5.0-fuse-00:00]
	at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:334)[61:camel-web-2.5.0-fuse-00:00]
	at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302)[61:camel-web-2.5.0-fuse-00:00]
	at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143)[61:camel-web-2.5.0-fuse-00:00]
	at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:178)[61:camel-web-2.5.0-fuse-00:00]
	at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:149)[61:camel-web-2.5.0-fuse-00:00]
	at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:124)[61:camel-web-2.5.0-fuse-00:00]
	at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:93)[61:camel-web-2.5.0-fuse-00:00]
	at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:130)[61:camel-web-2.5.0-fuse-00:00]
	at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:467)[61:camel-web-2.5.0-fuse-00:00]
	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:397)[61:camel-web-2.5.0-fuse-00:00]
	at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276)[61:camel-web-2.5.0-fuse-00:00]
	at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)[61:camel-web-2.5.0-fuse-00:00]
	at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)[61:camel-web-2.5.0-fuse-00:00]
	at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext$1.call(HttpServiceContext.java:168)[54:org.ops4j.pax.web.pax-web-jetty:1.0.0.SNAPSHOT]
	at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext$1.call(HttpServiceContext.java:164)[54:org.ops4j.pax.web.pax-web-jetty:1.0.0.SNAPSHOT]
	at org.ops4j.pax.swissbox.core.ContextClassLoaderUtils.doWithClassLoader(ContextClassLoaderUtils.java:60)[54:org.ops4j.pax.web.pax-web-jetty:1.0.0.SNAPSHOT]
	at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.addEventListener(HttpServiceContext.java:161)[54:org.ops4j.pax.web.pax-web-jetty:1.0.0.SNAPSHOT]
	at org.ops4j.pax.web.service.jetty.internal.JettyServerImpl.addEventListener(JettyServerImpl.java:235)[54:org.ops4j.pax.web.pax-web-jetty:1.0.0.SNAPSHOT]
	at org.ops4j.pax.web.service.jetty.internal.ServerControllerImpl$Started.addEventListener(ServerControllerImpl.java:276)[54:org.ops4j.pax.web.pax-web-jetty:1.0.0.SNAPSHOT]
	at org.ops4j.pax.web.service.jetty.internal.ServerControllerImpl.addEventListener(ServerControllerImpl.java:127)[54:org.ops4j.pax.web.pax-web-jetty:1.0.0.SNAPSHOT]
	at org.ops4j.pax.web.service.internal.HttpServiceStarted.registerEventListener(HttpServiceStarted.java:286)[53:org.ops4j.pax.web.pax-web-runtime:1.0.0.SNAPSHOT]
	at org.ops4j.pax.web.service.internal.HttpServiceProxy.registerEventListener(HttpServiceProxy.java:133)[53:org.ops4j.pax.web.pax-web-runtime:1.0.0.SNAPSHOT]
	at org.ops4j.pax.web.extender.war.internal.RegisterWebAppVisitorWC.visit(RegisterWebAppVisitorWC.java:276)[57:org.ops4j.pax.web.pax-web-extender-war:1.0.0.SNAPSHOT]
	at org.ops4j.pax.web.extender.war.internal.model.WebApp.accept(WebApp.java:561)[57:org.ops4j.pax.web.pax-web-extender-war:1.0.0.SNAPSHOT]
	... 34 more
Caused by: java.lang.LinkageError: loader constraint violation: when resolving field "DATETIME"
the class loader (instance of org/apache/felix/framework/ModuleImpl$ModuleClassLoaderJava5)
of the referring class, javax/xml/datatype/DatatypeConstants, and the class loader (instance
of <bootloader>) for the field's resolved type, javax/xml/namespace/QName, have different
Class objects for that type
	at com.sun.xml.bind.v2.model.impl.RuntimeBuiltinLeafInfoImpl.<clinit>(RuntimeBuiltinLeafInfoImpl.java:259)
	at com.sun.xml.bind.v2.model.impl.RuntimeTypeInfoSetImpl.<init>(RuntimeTypeInfoSetImpl.java:61)
	at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.createTypeInfoSet(RuntimeModelBuilder.java:129)
	at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.createTypeInfoSet(RuntimeModelBuilder.java:81)
	at com.sun.xml.bind.v2.model.impl.ModelBuilder.<init>(ModelBuilder.java:152)
	at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.<init>(RuntimeModelBuilder.java:89)
	at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:456)
	at com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:302)
	at com.sun.xml.bind.v2.runtime.JAXBContextImpl$JAXBContextBuilder.build(JAXBContextImpl.java:1140)
	at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:154)
	at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:121)
	at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:202)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.6.0_22]
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)[:1.6.0_22]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)[:1.6.0_22]
	at java.lang.reflect.Method.invoke(Method.java:597)[:1.6.0_22]
	at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:133)[:1.6.0_22]
	at javax.xml.bind.ContextFinder.find(ContextFinder.java:286)[:1.6.0_22]
	at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:372)[:1.6.0_22]
	at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:337)[:1.6.0_22]
	at org.apache.camel.spring.handler.CamelNamespaceHandler.createJaxbContext(CamelNamespaceHandler.java:187)
	at org.apache.camel.spring.handler.CamelNamespaceHandler.getJaxbContext(CamelNamespaceHandler.java:174)
	at org.apache.camel.spring.handler.CamelNamespaceHandler$CamelContextBeanDefinitionParser.doParse(CamelNamespaceHandler.java:257)
	at org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser.parseInternal(AbstractSingleBeanDefinitionParser.java:85)
	at org.springframework.beans.factory.xml.AbstractBeanDefinitionParser.parse(AbstractBeanDefinitionParser.java:59)
	at org.springframework.beans.factory.xml.NamespaceHandlerSupport.parse(NamespaceHandlerSupport.java:73)
	at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1335)
	at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1325)
	at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:135)
	at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:93)
	at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:493)
	at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:390)
	... 58 more


which looks really bad :-(
I'm sure I can find an easy workaround by specifying some additional imports when deploying
the war, which means you wouldn't be able to drop it into the deploy folder, but I suppose
that's not that big a deal.

I'll also try to actually investigate the real issue, but that's way trickier I think.
  
> camel-web-console feature for Apache Karaf
> ------------------------------------------
>
>                 Key: CAMEL-3519
>                 URL: https://issues.apache.org/jira/browse/CAMEL-3519
>             Project: Camel
>          Issue Type: New Feature
>          Components: karaf
>            Reporter: Claus Ibsen
>             Fix For: 2.7.0
>
>


-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message