Hello,everyone.
When I run servicemix.bat,I got a big exception.
The version is apache-servicemix-4.3.0-fuse-03-00, it says:
karaf@root> java.lang.ClassCastException: com.sun.xml.bind.v2.runtime.JAXBContextImpl cannot be cast
to javax.xml.bind.JAXBContext
at javax.xml.bind.ContextFinder.find(ContextFinder.java:63)
when I swith apache-servicemix-4.3.0-fuse-02-00, it syas:
karaf@root> Exception in thread "SpringOsgiExtenderThread-4" org.springframework.beans.factory.BeanC
reationException: Error creating bean with name 'org.apache.cxf.wsdl.WSDLManager' defined in OSGi re
source[classpath:META-INF/cxf/cxf.xml|bnd.id=154|bnd.sym=servicemix-cxf-se]: Instantiation of bean f
ailed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantia
te bean class : Constructor threw exception; nested exception
is java.lang.RuntimeException: javax.xml.bind.JAXBException: Unable to create context
- with linked exception:
[java.lang.NoSuchMethodException: com.sun.xml.bind.v2.ContextFactory.createContext(java.lang.String,
java.lang.ClassLoader)]
but I run the version apache-servicemix-4.2.0 , it works well.
and this is why?
My jdk version is 1.6_23 ,and my JAVA_HOME points to it's directory.