2 Replies Latest reply on Feb 7, 2006 1:23 PM by haseen

    ClassNotFoundException in PrimaryKey object

    haseen

      We are using Session Facade in our application where all BMP Entity beans have a local interface. The entity beans have custome PK objects that are composite (not simple, I hope I am using the correct term) in most of the cases. This is the reason we can not use java.lang data types for PK objects.

      I also don't want to deploy my PK objects under a seperate jar in 'lib' folder.

      Our SLSBs are clustered while Entity beans are not clustered but cache-invalidated.

      When I deploy my application on one node, it works fine. As soon as I start the second node, it starts giving me the ClassNotFoundException on the PK objects (all of them). I have seen another topic with the same problem but for a previous version of JBoss.

      http://www.jboss.com/index.html?module=bb&op=viewtopic&t=39881

      The topic was assigned to ben.wang@jboss.com

      Do we have a way out of this issue or do we have a solution available under any other topic.

      Thanks,

      Haseen

        • 1. Re: ClassNotFoundException in PrimaryKey object

          No, I don't think there is a Jira issue associated with it.

          -Ben

          • 2. Re: ClassNotFoundException in PrimaryKey object
            haseen

            I am sorry if I am missing something here. The issue mentioned in the Topic


            http://www.jboss.com/index.html?module=bb&op=viewtopic&t=39881

            is raising a similar issue. Did we find a solution to the "ClassLoaders not found" for custom PK issue?

            In the topic WT has talked of three options :


            1.) Stop using custom pk objects. In this case it shouldn't have any problems loading from the java.lang package.

            2.) Deploy the pks seperately in the server's lib/ dir. I would like our application to be self contained inside the ear, so this isn't ideal.

            3.) Stop using a scoped classloader. Not sure about this one.

            I deployed all my PK objects under all/lib folder and everything worked fine. Is there a way we can keep PK objects with regular EARs that go in all/farm so that these classes can also be hot deployed?

            By the way, I am using JBoss 4.0.3

            Please suggset.

            Thanks,

            Haseen