5 Replies Latest reply on Sep 12, 2012 3:28 AM by Suril Sarvaiya

    JBoss AS 7.1.1 - EJB Deployement - NoClassDefFound

    Suril Sarvaiya Newbie

      Hello All,

       

      I have used a tutorial from the net using which I have compiled and made an EJB jar and deployed it in standalone folder of our server.

      I have added a client user name using add user.bat

       

      I also have a jndi.properties file.

      My client class makes a lookup and when I try to run it, I get the following error :

       

      Exception in thread "main" java.lang.NoClassDefFoundError: test/Client

      Caused by: java.lang.ClassNotFoundException: test.Client

       

      The command which shows this error is :

       

      java -cp JBOSS_HOME/bin/client/jboss-client.jar:. test.Client ejb:/client-ejb//Clst.ClientIF

       

      Can someone guide me with what the issue is?

      Thanks a lot.

      Appreciate any help.

       

      Suril