(to Kyle Brown) 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 must use manual means for adding no-ejb class to jar. how to do?
*********************************************** 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 ) by liang sun Kyle Brown bartender posted November 09, 2001 09:28 AM -------------------------------------------------------------------------------- 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, ******************************
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?
Peter den Haan
author
Ranch Hand
Joined: Apr 20, 2000
Posts: 3252
posted
0
An application server may well ignore the CLASSPATH; besides, it's not a good idea to put application-specific classes in a shared location like that. Have you tried Kyle's suggestion of including it in your EJB jar? - Peter