Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
  • Piet Souris
  • Frits Walraven
  • Carey Brown

EJB test client working witthout maven

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
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:
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
Type: Remoting Host URL
Content: socket://localhost:3873/

regular project (working)
Proxy to jboss.j2ee:jar=MyFirstMavenEjb.jar,
service=EJB3 implementing [interface]
And when my army is complete, I will rule the world! But, for now, I'm going to be happy with this tiny ad:
Thread Boost feature
    Bookmark Topic Watch Topic
  • New Topic