0 Replies Latest reply on Sep 16, 2006 4:47 AM by g-sus23

    EJB 3.0 Deployment

    g-sus23

      Hello all,
      i am trying to delevop a small stateful bean, but i think there is something wrong during deployment

      here is what i did :

      The interface Test.java :

      packckage ejb1;
      import javax.ejb.*;
      
      @Remote
      public interface Test
      {
       public void klick();
       public int zeigeAnzahl();
      }
      
      


      and here the bean Testbean :
      package ejb1;
      import javax.ejb.*;
      @Stateful
      @Local (Test.class)
      
      public class TestBean implements Test
      {
       private int anzahlKlicks = 0;
       public void klick()
       {
       anzahlKlicks++;
       }
       public int zeigeAnzahl()
       {
       return anzahlKlicks;
       }
      }
      


      Later i want to use the bean in a simple servlet.
      When i deploy the bean, i alway get an "No ClassLoaders found for: ejb1.TestBean" Error

      my jar (ejbtest.jar) has the following stucture:

      WEB-INF/
      web.xml
      classes/ejb1/
      Test.class
      TestBean.class
      EjbTestServlet.class

      Thanks for your help