camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: Help on deploying Camel on Weblogic 12c. Name Collision
Date Wed, 10 Oct 2012 10:05:24 GMT
On Wed, Oct 10, 2012 at 11:39 AM, rinotan <rinotanhk@gmail.com> wrote:
> Hi Guys,
>
> I encounter the following error when I try to deploy my .ear file that
> contains camelContext into weblogic 12c.
> *The exact .ear file can be deployed on weblogic 10.3 without any issues.
> Would appreciate for any help provide:
>
> The error is as follows:
> java.lang.exception:javax.faces.FacesException: Exception[EclipseLink-50007]
> (Eclipse Persistence Services - 2.3.2.v20111124-r104611111):
> org.eclipise.persistence.exceptions.JAXBException exception Description:
> Name collision. Two classes have the XML type with URI
> http://camel.apache.org/schema/spring and name expression.
>
> My camelcontext is as follows:
> <beans xmlns="http://www.springframework.org/schema/beans"
>        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>        xmlns:camel="http://camel.apache.org/schema/spring"
>        xsi:schemaLocation="
>           http://www.springframework.org/schema/beans
> http://www.springframework.org/schema/beans/spring-beans.xsd
>           http://camel.apache.org/schema/spring
> http://camel.apache.org/schema/spring/camel-spring.xsd">
>
>
> <camel:camelContext id="camel-A"
> xmlns="http://camel.apache.org/schema/spring">
>  <camel:template id="testTemplate" />
> <camel:consumerTemplate id="consumerTemplate" />
> </camelContext>
>
> Thank you guys
>

As you have mapped the camel namespace to "camel" you may remove it as
local eg try
 <camel:camelContext id="camel-A"
xmlns="http://camel.apache.org/schema/spring">

And let it be just
 <camel:camelContext id="camel-A" >




>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Help-on-deploying-Camel-on-Weblogic-12c-Name-Collision-tp5720837.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
FuseSource is now part of Red Hat
Email: cibsen@redhat.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Mime
View raw message