1 Reply Latest reply on Apr 24, 2007 9:59 PM by viniciuscarvalho

    Classloader problems

    viniciuscarvalho

      Hi there! I'm having a few problems with the UCL and jboss seam :(

      I have two applications with different jsf versions, so I need classloading isolation (using jboss-app.xml for that). So far things were ok.
      I also have a sar deployment (jbpmConfiguration).

      So both applications have classloading isolation. and both ships with their own jbpm-lib. The sar has its own as well, and all of 'em on the same version (3.2 btw)

      The problem is that one of the applications do a jndi lookup on a jbpmconfiguration registred by the sar application.

      And when I cast : ClassCastException org.jbpm.JbpmConfiguration can not be cast to org.jbpm.JbpmConfiguration

      It was ok, since they have have different classloaders right?

      So I've put the jbpm libs under the server/lib, and remove them from all the applications. The classloader isolation was kept because the jsf libs problem...

      Well I was hopping that even with different classloaders, the root classloader would be the same hence it would work. Well, it did not :(

      How can I solve this?

      Regards