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
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:
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
I read through Ant Documentation, and come up wtih the followoing solution:
| target name=compile-test
| javac srcdir=${tst-dir}
|verbose=${TALK}
|
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
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 /
|
|
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
|
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
|
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]
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
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 :
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
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:
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]
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
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
16 matches
Mail list logo