0 Replies Latest reply on Jan 9, 2006 5:57 PM by Ravi Rajamiyer

    No ClassLoaders found....Problem in loading POJOs

    Ravi Rajamiyer Newbie

      HI,

      I have a simple stateless session bean deployed on JBoss 4.0.3SP1. This EJB uses a java class called Account that is bundled in the ejb.jar file. This jar file is bundled in the EAR file. There is no problem in deployment. But when I invoke the business method, JBoss is unbale to load the Account class. Here is the stack trace:

      14:53:51,414 INFO [STDOUT] java.lang.ClassNotFoundException: No ClassLoaders found for: Account
      14:53:51,414 INFO [STDOUT] at org.mx.loading.LoadMgr3.beginLoadTask(L
      oadMgr3.java:292)
      14:53:51,414 INFO [STDOUT] at org.jboss.mx.loading.RepositoryClassLoader.lo
      adClassImpl(RepositoryClassLoader.java:475)
      14:53:51,414 INFO [STDOUT] at org.jboss.mx.loading.RepositoryClassLoader.lo
      adClass(RepositoryClassLoader.java:377)
      14:53:51,414 INFO [STDOUT] at java.lang.ClassLoader.loadClass(ClassLoader.j
      ava:251)
      14:53:51,414 INFO [STDOUT] at java.lang.ClassLoader.loadClassInternal(Class
      Loader.java:319)
      14:53:51,430 INFO [STDOUT] at java.lang.Class.forName0(Native Method)
      14:53:51,430 INFO [STDOUT] at java.lang.Class.forName(Class.java:242)
      14:53:51,430 INFO [STDOUT] at java.io.ObjectInputStream.resolveClass(Object


      Any idea how to fix this problem?

      Thanks.