Recent activity
Subscribe to this feed
sebastien.hebert replied on June 16, 2009 11:49 to the question "Chapter 6 problem" in javaee6:
Hi ! You have a NullPointerException because you don't obtain a valid EJBContainer with the "EJBContainer.createContainer()" statement.
In fact, Glassfish V3 doesn't provide embedded EJBContainer for instance. That's why the JUnit test exec fails and so, the build fails too. You can delete JUnit Test and then, the build should work
If you want to test your EJB3, you have to use an embeddable EJB3 ontainer like OpenEJB.
sebastien.hebert replied on June 10, 2009 18:12 to the question "Problem with EJBContainer - embeddable glassfish" in javaee6:
sebastien.hebert marked one of Antonio Goncalves' replies in javaee6 as useful. Antonio Goncalves replied to the question "Problem with EJBContainer - embeddable glassfish".
sebastien.hebert asked a question in javaee6 on June 08, 2009 18:50:
Problem with EJBContainer - embeddable glassfishHi ! Sorry for my english speech (I'm a french guy). In chapter 6, there is an example with EJB 3 testing out of the box. It can be possible with EJB 3 embeddable container.
The following line : "EJBContainer.createContainer();" throws an EJBException (No provider name). It looks like a configuration problem but the book doesn't explain how to configure Properties with EJBContainer.
Please help me.
Thanks.
Loading Profile...
