aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes EJB test client working witthout maven Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "EJB test client working witthout maven" Watch "EJB test client working witthout maven" New topic
Author

EJB test client working witthout maven

roger bumico
Greenhorn

Joined: May 02, 2012
Posts: 4
Hi, here is my problem, I made an EJB with maven and 2 test clients,

* a test client without maven, only added jnp-client and the EJB to it's class path, work like a charm
* a test client using MAVEN, added the EJB through the POM and jnp-client, does not work

this is my EJB :



it's POM :




this is my first test client, the one without maven wich has no problem whatsoever to speak with the EJB



this is my second test client, using maven, it cannot speak with the EJB, all I'm getting is :





It's POM :




Both clients have the same main :



So, anybody has even the slightest idea about why the maven test client is not working?

Jboss 5.1.0.GA
Eclipse indigo
Maven 3.0.4
roger bumico
Greenhorn

Joined: May 02, 2012
Posts: 4
Also I did some poking around by printing a toString on both context lookup here is what I got :


Maven project (not working)
Reference Class Name: Proxy for: com.thongvan.mp.MyFirstMavenEjb.TestMavenEjb
Type: ProxyFactoryKey
Content: ProxyFactory/MyFirstMavenEjb/TestMavenEjbBean/TestMavenEjbBean/remote
Type: EJB Container Name
Content: jboss.j2ee:jar=MyFirstMavenEjb.jar,name=TestMavenEjbBean,service=EJB3
Type: Proxy Factory is Local
Content: false
Type: Remote Business Interface
Content: com.thongvan.mp.MyFirstMavenEjb.TestMavenEjb
Type: Remoting Host URL
Content: socket://localhost:3873/


regular project (working)
Proxy to jboss.j2ee:jar=MyFirstMavenEjb.jar,
name=TestMavenEjbBean,
service=EJB3 implementing [interface com.thongvan.mp.MyFirstMavenEjb.TestMavenEjb]
 
jQuery in Action, 2nd edition
 
subject: EJB test client working witthout maven