4 Replies Latest reply on Feb 6, 2005 11:06 AM by Ramil Javier

    Errors in Jboss 3.2.5

    Ramil Javier Newbie

      I'm getting errors when I do a simple session bean. Anyone have any ideas?

      Here's part of the error log :

      2005-02-04 21:22:11,188 ERROR [org.jboss.ejb.plugins.LogInterceptor] Unexpected Error:
      java.lang.NoClassDefFoundError: com/javiers/JaviersBroker/FitnessBroker
      at com.javiers.j2ee.LoginBean.login(LoginBean.java:20)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:683)

      Thanks in advance!

        • 1. Re: Errors in Jboss 3.2.5
          Joshua Jackson Master

          It looks like you haven't got the required class

          Have you checked it?

          • 2. Re: Errors in Jboss 3.2.5
            Ramil Javier Newbie

            The class is in a jar and I put the jar file in the /clients directory. It compiles, but runtime dies. Here is the code in the bean class. I was just testing it .

            package com.javiers.j2ee;

            import java.rmi.RemoteException;
            import javax.ejb.SessionBean;
            import javax.ejb.SessionContext;
            import com.javiers.JaviersBroker.FitnessBroker;

            public class LoginBean implements SessionBean
            public boolean login(String username, String password)
            boolean res;
            String loginxml = "com.javiers.contactmanagement.WSContact" +
            "" +
            username + "" + password +
            FitnessBroker fb = new FitnessBroker(loginxml);
            System.out.println("loginxml = " + loginxml);
            String result = fb.processRequest();
            System.out.println("result = " + result);

            if ( result.indexOf("FAILURE") == -1 )
            res = true;
            res = false;
            return res;

            public LoginBean(){}
            public void ejbCreate() {}
            public void ejbRemove() {}
            public void ejbActivate() {}
            public void ejbPassivate() {}
            public void setSessionContext(SessionContext sc) {}



            • 3. Re: Errors in Jboss 3.2.5
              Darran Lofthouse Master

              You should not be changing anything in the client folder.

              Where in the jar file is your class, it doesn't just need to be in there is needs to be in the correct location 'com/javiers/j2ee'.

              • 4. Re: Errors in Jboss 3.2.5
                Ramil Javier Newbie

                Wow! I didn't know that! So, where do you put this jar file?