Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

EJB test client working witthout maven

 
roger bumico
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic