2 Replies Latest reply on Feb 11, 2005 1:33 PM by Hari Velappan

    noClassDefFoundError

    haripriya Newbie


      Hi all,

      I have a session bean called TestBean, which accesses a form class called EmployeeForm. It is returning noclassdef error. Do I have to specify any thing in Manifest.mf ? Everything else is fine. I am able to access the bean from the classes in web-inf. Thanks to all for your time.
      This is the structure -

      
      EAR
       |---WAR
       | |----WEB-INF/classes/com/admin/EmployeeForm
       |----EJB-JAR
       | |----TestBean
      
      


        • 1. Re: noClassDefFoundError
          Hari Velappan Newbie

          Classes in the war file wont be visible from the EJB because they all run in a different class loader. If you want to share classes from ejb and war; you need to package the shared class seperately and either copy the jar file to <server instance>/lib or include the jar file in both EJB and WAR.

          • 2. Re: noClassDefFoundError
            Hari Velappan Newbie

            Classes in the war file wont be visible from the EJB because they all run in a different class loader. If you want to share classes from ejb and war; you need to package the shared class seperately and either copy the jar file to <server instance>/lib or include the jar file in both EJB and WAR.