Skip to content
Advertisement

EJB 3.0 test client working without maven but not with

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 :

JavaScript

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 :

JavaScript

It’s POM :

JavaScript

Both clients have the same main :

JavaScript

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

Advertisement

Answer

The awnser was quite simple but couldn’t have been found by what I posted 😡

I was using a jee6 archetype and Jboss 5.1.0.GA is not compatible with jee6. If I uses a jee5 archetype I have no problems making them talk.

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement