After some time of vacation, today is my first day, and I have upgraded to
Apache TomEE 1.7.0 and I have tried the same example. Now the archive is
deployed correctly to remote server but the test execution does not
"inject" the EJB.

In remote apache tomee I can see this log message:
Sep 01, 2014 9:22:22 AM org.apache.openejb.assembler.classic.JndiBuilder
bind
INFO: Jndi(name=HelloWorldEjbLocalBean) --> Ejb(deployment-id=HelloWorldEjb)

so Jar file is deployed correctly and EJB registered as expected but when
the test is executed:

@RunWith(Arquillian.class)
public class HelloWorldTest {

@Deployment
public static JavaArchive deployment() {
return ShrinkWrap.create(JavaArchive.class).addClass(HelloWorldEjb.class);
}
 @EJB
HelloWorldEjb helloWorldEjb;
 @Test
public void testHelloWorld() {
assertThat(helloWorldEjb.message(), is("Hello World"));
}
}

A NPE is thrown because helloWorldEjb is null.

I have tried the same with an embedded TomEE and it works, so it seems a
"problem?" with remote adapter?

Thank you so much.



2014-08-13 17:13 GMT+02:00 Romain Manni-Bucau <[email protected]>:

> or the staging repo maybe (that's what I meant)?
>
>
> Romain Manni-Bucau
> Twitter: @rmannibucau
> Blog: http://rmannibucau.wordpress.com/
> LinkedIn: http://fr.linkedin.com/in/rmannibucau
> Github: https://github.com/rmannibucau
>
>
> 2014-08-13 14:37 GMT+02:00 Alex Soto <[email protected]>:
> > Cool now trying to use the snapshot, :) I will keep you informed.
> >
> >
> > 2014-08-13 14:36 GMT+02:00 Andy Gumbrecht <[email protected]>:
> >
> >> At least 1.6.0.2 - Not sure that will help, as I think what you need is
> >> only in 1.7.x - We may get a release tonight if some of the other PMC
> >> members submit a vote.
> >>
> >> Andy.
> >>
> >> --
> >>   Andy Gumbrecht
> >>
> >>   http://www.tomitribe.com
> >>   [email protected]
> >>   https://twitter.com/AndyGeeDe
> >>
> >>   TomEE treibt Tomitribe! | http://tomee.apache.org
> >>
> >>
> >
> >
> > --
> > +----------------------------------------------------------+
> >   Alex Soto Bueno - Computer Engineer
> >   www.lordofthejars.com
> > +----------------------------------------------------------+
>



-- 
+----------------------------------------------------------+
  Alex Soto Bueno - Computer Engineer
  www.lordofthejars.com
+----------------------------------------------------------+

Reply via email to