You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Willem Jiang (JIRA)" <ji...@apache.org> on 2011/01/11 09:07:48 UTC
[jira] Issue Comment Edited: (CAMEL-3327) update the camel-cxf
feature for cxf 2.3.0
[ https://issues.apache.org/jira/browse/CAMEL-3327?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12977198#action_12977198 ]
Willem Jiang edited comment on CAMEL-3327 at 1/11/11 3:06 AM:
--------------------------------------------------------------
If we use servicemix spec 1.6.0 of the JAXB API 2.2 bundle, we will get this error.
{code}
org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from URL
[bundle://50.0:0/org/apache/camel/itest/osgi/servlet/CamelServletContext.xml]; nested exception is java.lang.NoSuchMethodError:
javax.xml.bind.ContextFinder.find(Ljava/lang/String;Ljava/lang/String;Ljava/lang/ClassLoader;Ljava/util/Map;)Ljavax/xml/bind/JAX
BContext;
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:412)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:334)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:178)
...
Caused by: java.lang.NoSuchMethodError: javax.xml.bind.ContextFinder.find(Ljava/lang/String;Ljava/lang/String;Ljava/lang/ClassLoader;Ljava/util/Map;)Ljavax/xml/bind/JAXBContext;
at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:412)
at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:375)
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)
{code}
Servicemix spec 1.7-SNAPSHOT fixed this issue.
was (Author: njiang):
If we use servicemix spec 1.6.0 of the JAXB API 2.2 bundle, we will get this error.
{code}
org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from URL [bundle://50.0:0/org/apache/camel/itest/osgi/servlet/CamelServletContext.xml]; nested exception is java.lang.NoSuchMethodError: javax.xml.bind.ContextFinder.find(Ljava/lang/String;Ljava/lang/String;Ljava/lang/ClassLoader;Ljava/util/Map;)Ljavax/xml/bind/JAXBContext;
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:412)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:334)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:178)
...
Caused by: java.lang.NoSuchMethodError: javax.xml.bind.ContextFinder.find(Ljava/lang/String;Ljava/lang/String;Ljava/lang/ClassLoader;Ljava/util/Map;)Ljavax/xml/bind/JAXBContext;
at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:412)
at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:375)
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)
{code}
Servicemix spec 1.7-SNAPSHOT fixed this issue.
> update the camel-cxf feature for cxf 2.3.0
> ------------------------------------------
>
> Key: CAMEL-3327
> URL: https://issues.apache.org/jira/browse/CAMEL-3327
> Project: Camel
> Issue Type: Task
> Components: karaf
> Reporter: Willem Jiang
> Assignee: Willem Jiang
> Fix For: 2.6.0
>
>
> As CXF 2.3.0 is using JAXWS 2.2, JAXB 2.2 , JARS 1.1 and Jetty 7, need to update the karaf feature files for it.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.