1 Reply Latest reply: May 8, 2012 8:11 AM by Uday Shankar RSS

JAXB upgrade issue with JBoss5.1

Uday Shankar Newbie

I recently upgraded the JAXB1.0 ea to JAXB2.1 (as supported by JBoss), i tested it at standalone enviornment, where it is working fine, however, when i place my code in the ear file and test the working I get below exceptoin log. I searched the code base and ensured that there are no class file using javax.xml.bind.MarshallableObject, but still I am getting this exception. thanks in advance for your suggestions.

 

java.lang.NoClassDefFoundError: javax.xml.bind.MarshallableObject

        at java.lang.ClassLoader.defineClassImpl(Native Method)

        at java.lang.ClassLoader.defineClass(ClassLoader.java:275)

        at org.jboss.classloader.spi.base.BaseClassLoader.access$200(BaseClassLoader.java:67)

        at org.jboss.classloader.spi.base.BaseClassLoader$2.run(BaseClassLoader.java:633)

        at org.jboss.classloader.spi.base.BaseClassLoader$2.run(BaseClassLoader.java:592)

        at java.security.AccessController.doPrivileged(AccessController.java:224)

        at org.jboss.classloader.spi.base.BaseClassLoader.loadClassLocally(BaseClassLoader.java:591)

        at org.jboss.classloader.spi.base.BaseClassLoader.loadClassLocally(BaseClassLoader.java:568)

        at org.jboss.classloader.spi.base.BaseDelegateLoader.loadClass(BaseDelegateLoader.java:135)

        at org.jboss.classloader.spi.filter.FilteredDelegateLoader.loadClass(FilteredDelegateLoader.java:127)

        at org.jboss.classloader.spi.base.ClassLoadingTask$ThreadTask.run(ClassLoadingTask.java:455)

        at org.jboss.classloader.spi.base.ClassLoaderManager.nextTask(ClassLoaderManager.java:267)

        at org.jboss.classloader.spi.base.ClassLoaderManager.process(ClassLoaderManager.java:166)

        at org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:276)

        at org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:1138)

        at org.jboss.classloader.spi.base.BaseClassLoader.loadClassFromDomain(BaseClassLoader.java:862)

        at org.jboss.classloader.spi.base.BaseClassLoader.doLoadClass(BaseClassLoader.java:502)

        at org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.java:447)

        at java.lang.ClassLoader.loadClass(ClassLoader.java:619)

        at java.lang.Class.getDeclaredMethodsImpl(Native Method)

        at java.lang.Class.getDeclaredMethods(Class.java:676)

        at com.sun.xml.bind.v2.model.nav.ReflectionNavigator.getDeclaredMethods(ReflectionNavigator.java:261)

        at com.sun.xml.bind.v2.model.nav.ReflectionNavigator.getDeclaredMethods(ReflectionNavigator.java:58)

        at com.sun.xml.bind.v2.model.impl.RegistryInfoImpl.<init>(RegistryInfoImpl.java:92)

        at com.sun.xml.bind.v2.model.impl.ModelBuilder.addRegistry(ModelBuilder.java:357)

        at com.sun.xml.bind.v2.model.impl.ModelBuilder.getTypeInfo(ModelBuilder.java:327)

        at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:466)

        at com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:302)

        at com.sun.xml.bind.v2.runtime.JAXBContextImpl$JAXBContextBuilder.build(JAXBContextImpl.java:1136)

        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)

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

        at java.lang.reflect.Method.invoke(Method.java:600)

        at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:128)

        at javax.xml.bind.ContextFinder.find(ContextFinder.java:277)

        at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:372)

        at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:337)

        at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:244)

        at dgin.ol.cs.bo.etl.handler.IntermediateXMLHandlerFromDB.getTemplate(IntermediateXMLHandlerFromDB.java:139)

        at dgin.ol.cs.bo.etl.handler.TemplateHandlerImpl.load(TemplateHandlerImpl.java:85)

        at dgin.ol.cs.bo.etl.handler.TemplateHandlerImpl.getTemplate(TemplateHandlerImpl.java:123)

        at dgin.ol.cs.bo.etl.engine.TajXMLDocEngine.initDocSpecifies(TajXMLDocEngine.java:557)

        at dgin.ol.cs.bo.etl.engine.TajXMLDocEngine.doDocBuild(TajXMLDocEngine.java:586)

        at dgin.ol.cs.bo.taj.prepareandpostxml.sb.PrepareAndPostXMLBean.createAndPostXML(PrepareAndPostXMLBean.java:48)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

        at java.lang.reflect.Method.invoke(Method.java:600)

        at org.jboss.invocation.Invocation.performCall(Invocation.java:386)

        at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:233)

        at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:156)

        at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:63)

        at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:121)

        at org.jboss.ejb.plugins.AbstractTxInterceptorBMT.invokeNext(AbstractTxInterceptorBMT.java:173)

        at org.jboss.ejb.plugins.TxInterceptorBMT.invoke(TxInterceptorBMT.java:77)

        at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:173)

        at org.jboss.ejb.plugins.SecurityInterceptor.process(SecurityInterceptor.java:228)

        at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:211)

        at org.jboss.ejb.plugins.security.PreSecurityInterceptor.process(PreSecurityInterceptor.java:97)

        at org.jboss.ejb.plugins.security.PreSecurityInterceptor.invoke(PreSecurityInterceptor.java:81)

        at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)

        at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:138)

        at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:650)

        at org.jboss.ejb.Container.invoke(Container.java:1092)

        at sun.reflect.GeneratedMethodAccessor322.invoke(Unknown Source)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

        at java.lang.reflect.Method.invoke(Method.java:600)

        at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)

        at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)

        at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)

        at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:193)

        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)

        at org.jboss.invocation.local.LocalInvoker$MBeanServerAction.invoke(LocalInvoker.java:169)

        at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:118)

        at org.jboss.invocation.InvokerInterceptor.invokeLocalMarshalled(InvokerInterceptor.java:295)

        at org.jboss.invocation.MarshallingInvokerInterceptor.invoke(MarshallingInvokerInterceptor.java:61)

        at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:61)

        at org.jboss.proxy.ejb.SecurityContextInterceptor.invoke(SecurityContextInterceptor.java:64)

        at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:68)

        at org.jboss.proxy.ejb.StatelessSessionInterceptor.invoke(StatelessSessionInterceptor.java:112)

        at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:101)

        at $Proxy500.createAndPostXML(Unknown Source)

        at dgin.ol.cs.bo.taj.StartTajProcess.doCall(StartTajProcess.java:267)

        at dgin.ol.cs.bo.taj.StartTajProcess.startProcessing(StartTajProcess.java:109)

        at dgin.ol.cs.bo.util.pcmwrapper.OfflinePCMWrapper.run(OfflinePCMWrapper.java:50)

Caused by:

java.lang.ClassNotFoundException: javax.xml.bind.MarshallableObject

        at java.lang.Class.forNameImpl(Native Method)

        at java.lang.Class.forName(Class.java:172)

        at org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:300)

        at org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:1138)

        at org.jboss.classloader.spi.base.BaseClassLoader.loadClassFromDomain(BaseClassLoader.java:862)

        at org.jboss.classloader.spi.base.BaseClassLoader.doLoadClass(BaseClassLoader.java:502)

        at org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.java:447)

        at java.lang.ClassLoader.loadClass(ClassLoader.java:619)

        ... 88 more