"PeterJ" wrote : anonymous wrote : I heard that I need to compile the ejb3
server and client codes in one machine first, then copy the ejb3 client code to the client
machine to make this work, is that true?
| Yes.
|
| Always follow the 'caused by' trail - the last one will tell you the root
cause for the problem:
|
| [junit] Caused by: java.lang.ClassNotFoundException:
org.jboss.tutorial.stateless.bean.CalculatorRemote
|
| Looks like your classpath doesn't include this class, which appears to be the
interface of the EJB (one of the files you hopefully copied over in the text I quoted)
I think I need to make a JAR file include all the local remote interface classes, and then
put it to the tomcat/lib/ folder. Can I use tar or jar command bundle the classes? IF not
I may need to do it in the JBOSS applicaiton server as follow:
Change the EJB3 tutorial (in the JBOSS server) so that when it creates a JAR file, it
should make a directory path com/ip6networks/calling_card_registration/... and bundled all
classes according this path, then copy the JAR file into tomcat/lib/ folder before running
the EJB client app.
Thanks
Sam
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4244808#...
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&a...