[jboss-user] [EJB 3.0] - Re: Re: ant failed.

2009-07-23 Thread samwan809
PeterJ wrote : That might work. Basically, if you create an EJB3, then the JAR file should contain the local and remote interface classes and the implementation class. The remote interface class needs to be included in the client's classpath - for a simple test it is usually easier to just

[jboss-user] [EJB 3.0] - Re: ant test failed.

2009-07-23 Thread samwan809
Thanks for the hints. After copied the jar file to the current directory where the ant test is running, now I got th following error: | calling_card_reg # ant test | Buildfile: build.xml | | compile-test: | | test: | [junit] Testsuite:

[jboss-user] [EJB 3.0] - Re: Re: ant failed.

2009-07-21 Thread samwan809
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

[jboss-user] [EJB 3.0] - Re: ant failed.

2009-07-20 Thread samwan809
I read through Ant Documentation, and come up wtih the followoing solution: | target name=compile-test | javac srcdir=${tst-dir} |verbose=${TALK} |

[jboss-user] [EJB 3.0] - Re: ant failed.

2009-07-20 Thread samwan809
The app server is running on another machine. 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? Here is the full trace at the client machine: | calling_card_reg # ant test

[jboss-user] [EJB 3.0] - Re: ant failed.

2009-07-20 Thread samwan809
I still failed with the same error. Here is my build.xml: | ?xml version=1.0? | | project name=portlet basedir=. default=deploy | import file=../build-common-portlet.xml / | | target name=compile | mkdir dir=docroot/WEB-INF/classes / | |

[jboss-user] [EJB 3.0] - Re: ant failed.

2009-07-20 Thread samwan809
Hi, I finally got that working. Now the problem is with my Client.java code. Here is the errors I am getting: | ... | Test: | [junit] Testsuite: com.ip6networks.calling_card_registration.test.Client | [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 1.497 sec |

[jboss-user] [EJB 3.0] - Re: ant failed.

2009-07-20 Thread samwan809
Yeah it works in half way now...getting there... I just don't know what I have missing in the Client.java in order to run it with Junit. I searched google , but couldn't found definite/clear answer. the following errors shown: | | calling_card_reg # ant test | Buildfile: build.xml |

[jboss-user] [EJB 3.0] - Re: Junit failed.

2009-07-20 Thread samwan809
Followed your suggested change, it might work for the Junit test case, but it failed with the ordinary case: | calling_card_reg # ant test | Buildfile: build.xml | | compile-test: | [javac] Compiling 11 source files | [javac]

[jboss-user] [EJB 3.0] - Re: Junit failed.

2009-07-20 Thread samwan809
PeterJ wrote : Looks like you are going to learn how packages and classpaths relate (this is often a hurdle one has to overcome when learning Java). | | Your class is named Client and is in the com.ip6networks.calling_card_registration.test package. This means that the JVM will scan the

[jboss-user] [EJB 3.0] - Re: Junit failed.

2009-07-20 Thread samwan809
Hi, I don't know how to change the build.xml file so that it reflect my *class files for Junit. Any suggestion is highly appreciated. Thanks Sam View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4244069#4244069 Reply to the post :

[jboss-user] [EJB 3.0] - Re: Re: ant failed.

2009-07-20 Thread samwan809
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

[jboss-user] [EJB 3.0] - Junit failed.

2009-07-14 Thread samwan809
Hi, I have the following problem when I tried to establish a JNDI connectoin from a remote machine to the EJB3 JBOSS server thought JNDI. # ant test Buildfile: build.xml compile-test: [javac] Compiling 4 source files test: [junit] Testsuite: Client [junit] Tests run: 1, Failures:

[jboss-user] [EJB 3.0] - How to compile Calculator bean in ejb3 tutorial.

2009-07-12 Thread samwan809
Hi, I tried to compile the stateless calculator bean from ejb3 tutorial, but I got no clue how to compile/deploy and run the example. Can anyone shed some lights on me please? here is the directory I am at: :stateless # pwd /usr/java-source/ejb3-tutorial/source/stateless # mvn compile [INFO]

[jboss-user] [EJB 3.0] - communicate with a remote JNDI EJB3 object

2009-07-12 Thread samwan809
Hi, With the Calculator example in ejb3 tutorial, I can execute an ejb3 client communicate with the Calculator ejb3 bean, that is fine. But if I want to execute this Calculator client on a remote machine, how can I make change to the Calculator client java class so that it can communicate with

[jboss-user] [EJB 3.0] - Adding Hibernate code in EJB3.

2009-07-10 Thread samwan809
Hi, I have deployed a Calculator EJB3 bean within Jboss 5 GA. eg. CalculatorBean/remote - EJB3.x Default Remote Business Interface CalculatorBean/remote-org.jboss.tutorial.stateless.bean.CalculatorRemote - EJB3.x Remote Business Interface CalculatorBean/local - EJB3.x Default