users@glassfish.java.net

[java.lang.ClassNotFoundException:

From: <forums_at_java.net>
Date: Thu, 27 Sep 2012 03:56:02 -0500 (CDT)

Hi All, I am newbie to both osgi and glashfish. I have downloaded the latest
glashfish 3.1.2.2. and writen a sample osgi bundle. I am getting the
following error while creating JAXBContext instance in the server:
java.lang.ClassNotFoundException: com.sun.xml.internal.bind.v2.ContextFactory
not found by ] at
javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:148) at
javax.xml.bind.ContextFinder.find(ContextFinder.java:361) at
javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:446) at
javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:409) at
com.cultagent.gr.hotelde.Activator.start(Activator.java:34) at
org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:641)
at org.apache.felix.framework.Felix.activateBundle(Felix.java:1977) at
org.apache.felix.framework.Felix.startBundle(Felix.java:1895) at
org.apache.felix.framework.BundleImpl.start(BundleImpl.java:944) at
org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:1175)
at
org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:1153)
at
org.apache.felix.fileinstall.internal.DirectoryWatcher.processAllBundles(DirectoryWatcher.java:1146)
at
org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:456)
at
org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:263)
Caused by: java.lang.ClassNotFoundException:
com.sun.xml.internal.bind.v2.ContextFactory not found by
com.cultagent.gr.hotelde [265] at
org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1460)
at
org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.java:72)
at
org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1843)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247) at
javax.xml.bind.ContextFinder.safeLoadClass(ContextFinder.java:573) at
javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:145) ... 13 more
can any body please suggest me how to resolve this issue. Thanks in advance.
Regards, Siva Ram.

--
[Message sent by forum member 'sivaram']
View Post: http://forums.java.net/node/890740