Well actually removing the jsr173 didnt work which I realised later. However the error message was different. This time it was not able to find the WSNBootStrap class which was of course there. After restarting JBoss I started getting the same error again (i.e. QName linkage error). So actually I am still having the same problem. Let me know if you have anything in mind.
gnodet wrote: > > How did you actually solve that ? Did you remove > one jar from the component libraries ? (jsr173 ?) > > On 3/4/07, sonu <[EMAIL PROTECTED]> wrote: >> >> Thanks Guillaume. I figured that out. In fact the class is built with the >> QName in the rt.jar (java 5) and since eveything loads with an isolated >> classloader, it tries to link QName with the one in jsr173 jar in the >> servicemix-wsn component. The other problem is that JBoss server itself >> has >> like atleast 3 times this class in different libraries on the server >> classpath!! >> >> Thanks again :) >> >> >> gnodet wrote: >> > >> > Such errors are usually caused by different versions >> > of the class to be visible by a class loader. You should >> > check the different jars visible from the JAXB implementation. >> > Note that the javax/xml/namespace/QName class is defined >> > in the JRE starting from JDK 5. >> > Such problems are unfortunately not always easy to debug ... >> > >> > On 2/28/07, sonu <[EMAIL PROTECTED]> wrote: >> >> >> >> Hi, >> >> I am a newbie in this domain and am actually stuck with the deployment >> of >> >> 1 >> >> of the servicemix components on jboss 404. The other components deploy >> >> normally thanks to the jboss deployer. But when i try to deploy >> >> servicemix-wsn I get the following error. Any help would really be >> >> appreciated :) >> >> >> >> Caused by: java.lang.LinkageError: loader constraints violated when >> >> linking >> >> javax/xml/namespace/QName class >> >> at >> >> >> com.sun.xml.bind.v2.model.impl.RuntimeBuiltinLeafInfoImpl.<clinit>(RuntimeBuiltinLeafInfoImpl.java:186) >> >> at >> >> >> com.sun.xml.bind.v2.model.impl.RuntimeTypeInfoSetImpl.<init>(RuntimeTypeInfoSetImpl.java:25) >> >> at >> >> >> com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.createTypeInfoSet(RuntimeModelBuilder.java:77) >> >> at >> >> >> com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.createTypeInfoSet(RuntimeModelBuilder.java:40) >> >> at >> >> >> com.sun.xml.bind.v2.model.impl.ModelBuilder.<init>(ModelBuilder.java:97) >> >> at >> >> >> com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.<init>(RuntimeModelBuilder.java:43) >> >> at >> >> >> com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:344) >> >> at >> >> >> com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:216) >> >> at >> >> >> com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:76) >> >> at >> >> >> com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:55) >> >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >> >> at >> >> >> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) >> >> at >> >> >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) >> >> at java.lang.reflect.Method.invoke(Method.java:585) >> >> at >> >> javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:210) >> >> at javax.xml.bind.ContextFinder.find(ContextFinder.java:368) >> >> at >> javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:574) >> >> at >> javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:522) >> >> at >> >> >> org.apache.servicemix.wsn.component.WSNEndpoint.createJAXBContext(WSNEndpoint.java:99) >> >> at >> >> >> org.apache.servicemix.wsn.component.WSNDeployer.<init>(WSNDeployer.java:62) >> >> at >> >> >> org.apache.servicemix.wsn.component.WSNComponent.createServiceUnitManager(WSNComponent.java:53) >> >> at >> >> >> org.apache.servicemix.common.BaseComponent.<init>(BaseComponent.java:52) >> >> at >> >> >> org.apache.servicemix.wsn.component.WSNComponent.<init>(WSNComponent.java:41) >> >> at >> sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native >> >> Method) >> >> at >> >> >> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) >> >> at >> >> >> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) >> >> at >> >> java.lang.reflect.Constructor.newInstance(Constructor.java:494) >> >> at java.lang.Class.newInstance0(Class.java:350) >> >> at java.lang.Class.newInstance(Class.java:303) >> >> at >> >> >> org.apache.servicemix.jbi.framework.InstallerMBeanImpl.activateComponent(InstallerMBeanImpl.java:191) >> >> at >> >> >> org.apache.servicemix.jbi.framework.InstallerMBeanImpl.install(InstallerMBeanImpl.java:169) >> >> at >> >> >> org.apache.servicemix.jbi.framework.InstallationService.install(InstallationService.java:323) >> >> at >> >> >> org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploymentService.java:276) >> >> at >> >> >> org.apache.servicemix.jbi.framework.AutoDeploymentService.updateExternalArchive(AutoDeploymentService.java:201) >> >> at >> >> >> org.servicemix.jboss.deployment.JBIService.installArchive(JBIService.java:116) >> >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >> >> at >> >> >> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) >> >> at >> >> >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) >> >> at java.lang.reflect.Method.invoke(Method.java:585) >> >> at >> >> >> org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155) >> >> ... 74 more >> >> -- >> >> View this message in context: >> >> >> http://www.nabble.com/servicemix-wsn-on-Jboss-tf3309380s12049.html#a9205493 >> >> Sent from the ServiceMix - Dev mailing list archive at Nabble.com. >> >> >> >> >> > >> > >> > -- >> > Cheers, >> > Guillaume Nodet >> > ------------------------ >> > Architect, LogicBlaze (http://www.logicblaze.com/) >> > Blog: http://gnodet.blogspot.com/ >> > >> > >> >> -- >> View this message in context: >> http://www.nabble.com/servicemix-wsn-on-Jboss-tf3309380s12049.html#a9294754 >> Sent from the ServiceMix - Dev mailing list archive at Nabble.com. >> >> > > > -- > Cheers, > Guillaume Nodet > ------------------------ > Architect, LogicBlaze (http://www.logicblaze.com/) > Blog: http://gnodet.blogspot.com/ > > -- View this message in context: http://www.nabble.com/servicemix-wsn-on-Jboss-tf3309380s12049.html#a9310093 Sent from the ServiceMix - Dev mailing list archive at Nabble.com.
