You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Graham Ewings <gr...@rulefinancial.com> on 2014/04/29 15:39:24 UTC

Weblogic cluster context loading issue

Hi all,

We're experiencing problems running camel 2.12.3 on Weblogic 12c, jdk1.7_45_unlimited.

It is embedded in an existing, functional spring application deployed in an ear, that works fine until camel is introduced. 

The exception we see is identical to this one:

https://issues.apache.org/jira/browse/CAMEL-4893

The error occurs intermittently on startup and only when the ear is deployed to a cluster with two managed servers.  Sometimes it works on both servers, sometimes on one and sometimes on neither.

If deployed to a domain with a single server it works fine.

We found multiple JAXB versions in the ear and the Weblogic domain lib folder, jaxb-impl-2.1 with jax-api-2.0 along with jaxb-impl-2.6 so made everything jaxb-imp-2.6 and jaxb-api-2.2 but no change.   It also works on a single server with the former combination.

I appreciate this is probably going to be Weblogic classloading issue but I know we're not the first to deploy Camel with Weblogic so maybe someone has seen something similar?

Thanks in advance,

Graham
  

This e-mail and any attached files are intended for the addressee only. It may contain confidential information. If you received this email in error, (i) you are not authorised to copy, disclose, use or retain it and (ii) please notify the sender immediately and then delete the email from your system. Rule Financial Limited and its subsidiary companies (collectively, "Rule Financial") protects its network from malware but cannot guarantee that this transmission does not contain viruses or other malware. Rule Financial accepts no liability for any damage resulting from any malware transmitted. Rule Financial Limited Registered Office: 3 Bunhill Row, London, EC1Y 8YZ, UK. Registered No 3468950 England

Re: Weblogic cluster context loading issue

Posted by GrahamEwings2 <gr...@ewingssoftware.com>.
Thanks Preben, this change to our ear deployment descriptor
(weblogic-application.xml) fixed it: 

    <wls:prefer-application-packages>
        ..........................
        ..........................
        <wls:package-name>com.sun.xml.*</wls:package-name>
    </wls:prefer-application-packages>

We did try something similar before but I suspect there was another problem
at the time or a just a typo.

P.S. replying from another account due to registration problems...




--
View this message in context: http://camel.465427.n5.nabble.com/Weblogic-cluster-context-loading-issue-tp5750693p5750905.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Weblogic cluster context loading issue

Posted by "Preben.Asmussen" <pr...@dr.dk>.
I havn't tried 2.12.3. We are still running on 11.3.5

We are running camel in war files and to control the classloading we set
prefer-web-inf-classes in the war deployment descriptor. 
Have you tried that on your ear deployment descriptor ?

To solve classloader issues in Weblogic you can also use wlscat app. see
also
https://www.youtube.com/watch?feature=player_detailpage&v=ArLTKapjV_8#t=306s

/Preben





--
View this message in context: http://camel.465427.n5.nabble.com/Weblogic-cluster-context-loading-issue-tp5750693p5750699.html
Sent from the Camel - Users mailing list archive at Nabble.com.