3 Replies Latest reply on Apr 25, 2005 1:16 PM by Karen Ploski

    Another EJB3 Preview 5 deployment error: No Class Loader fou

    Bill Burke Master

      How is this packaged? Can you reproduce the problem by creating a package with only those classes?

      Thanks

        • 1. Re: Another EJB3 Preview 5 deployment error: No Class Loader
          Karen Ploski Newbie

          Here is the structure of the EJB3 file:

          meta-inf\Manifest.mf
          meta-inf\hibernate.properties
          Actor.class
          ActorPK.class
          BasicQuieries.class
          Category.class
          LoadStudioBean.class
          LoadStudioBeanInterface.class
          log4j.properties
          Movie.class
          Studio.class

          I suspect it's an error on my part...

          Thank you!
          - Karen

          • 2. Re: Another EJB3 Preview 5 deployment error: No Class Loader
            Karen Ploski Newbie

            Bill,

            I followed up on your suggestions. I created an .EJB3 file with just the ActorPK and Actor classes, and checked the structure of the .EJB3 file.

            Bottom line:

            First, the structure of the .EJB3 file was incorrect.

            Here is the correct structure for the EJB3 file:

            meta-inf\Manifest.mf
            meta-inf\hibernate.properties
            com\test\hactors\Actor.class
            com\test\hactors\ActorPK.class
            com\test\hactors\BasicQuieries.class
            com\test\hactors\Category.class
            com\test\hactors\LoadStudioBean.class
            com\test\hactors\LoadStudioBeanInterface.class
            com\test\hactors\Movie.class
            com\test\hactors\Studio.class

            After that I encountered a different error: NoClassDefFound for EhCache.

            To fix this, I did two things:

            (1) add the following line to hibernate.properties:
            hibernate.cache.provider_class=org.hibernate.cache.EhCacheProvider

            (2) copy ehcache1.1.jar from the Hibernate 3.0 download bundled (the release dated 31 March 2005) to C:\jboss-4.0.1sp1\server\all\deploy\ejb3.deployer

            Thank you very much for the pointers you gave to me, as you can see they "did the trick".

            - Karen

            • 3. Re: Another EJB3 Preview 5 deployment error: No Class Loader
              Karen Ploski Newbie

              I'd like to correct a misconception I introduced in my previous reply. In that reply, I stated I had to take additional steps to use EhCache.

              I am currently using Preview 5. However, the documentation for Preview 4 tells you that the hibernate.properties file needs to contain this value:

              hibernate.cache.provider_class=org.hibernate.cache.HashtableCacheProvider;

              I had used this value successfully with Preview 4, and simply failed to retain it when I upgraded to Preview 5.

              I am now using this value again on Preview 5 with no difficulties.

              - Karen