question about calling a no-ejb class's method in ejb method
liang sun
Ranch Hand
Joined: May 12, 2001
Posts: 51
posted
0
I call a no-ejb class's method in ejb method,
import a.wu; ..... public void bean_method() { wu k=new wu(); k.show(); } .......... complie success,but in runTIME, throws java.rmi.RemoteException: EJB Exception: ; nested exception is: java.lang.NoClassDefFoundError: a/wu�� ( NOTE: you must konw classpath of Class a.wu have already been set,complie success )
Kyle Brown
author
Ranch Hand
Joined: Aug 10, 2001
Posts: 3878
posted
0
It doesn't matter that you can compile the class -- that's a different classpath. Make sure that your a.wu class is included inside the EJB JAR file along with your EJB classes and it should work fine. Kyle ------------------ Kyle Brown, Author of Enterprise Java (tm) Programming with IBM Websphere See my homepage at http://members.aol.com/kgb1001001 for other WebSphere information.
sorry, i forgot to tell you that i run my project in JBUilder5.0 ,I have already set classpath of Class a.wu in jbuilder 5.0��
liang sun
Ranch Hand
Joined: May 12, 2001
Posts: 51
posted
0
I set path of Class a.wu to Classpath of application server. but still can't solve question! why?
Rahool Joshi
Greenhorn
Joined: Nov 19, 2001
Posts: 1
posted
0
Originally posted by liang sun: I set path of Class a.wu to Classpath of application server. but still can't solve question! why?
I think when you are not sure that your class is in the servers classpath, put your class in the lib of server or the directory where server classes are located.it should work.. Rahool
subject: question about calling a no-ejb class's method in ejb method