Chapter 6 problem
As I am deploying the examples, in Chapter 6 I get the results at http://waltparkman.wikidot.com/cpt-6-....
It seems that as the BookEJBTest JUnit job runs, it is also running the BookTest from Chapter 2 and won't finish because "Table/View 'BOOK' already exists in Schema 'APP'" and "Table/View 'SEQUENCE' already exists in Schema 'APP'".
The .jar file won't create because the JUnit test fails.
Do I have to drop the tables before running the test, or is the test set up wrong?
Thanks
It seems that as the BookEJBTest JUnit job runs, it is also running the BookTest from Chapter 2 and won't finish because "Table/View 'BOOK' already exists in Schema 'APP'" and "Table/View 'SEQUENCE' already exists in Schema 'APP'".
The .jar file won't create because the JUnit test fails.
Do I have to drop the tables before running the test, or is the test set up wrong?
Thanks
2
people have this question
I have this question, too!
Tell me when someone answers.
The more people who ask this question, the more it gets noticed.
The more people who ask this question, the more it gets noticed.
Create a customer community for your own organization
Plans starting at $19/month
-
Inappropriate?Got the jar built, but now can't deploy it.
http://waltparkman.wikidot.com/jee6-c... -
Inappropriate?Walt, could this be related with : http://getsatisfaction.com/javaee6/to...
-
Inappropriate?I cannot deploy the Chapter 6 jar in Glassfish 3. After running the Glassfish Update Tool on 6/11 I got the following in server.log at startup:
[#|2009-06-11T07:53:21.859-0700|SEVERE|glassfish|null|_ThreadID=11;_ThreadName=Thread-1;|Unable to start v3. Closing all ports
java.lang.NullPointerException
at com.sun.grizzly.config.dom.NetworkListener$Duck.findThreadPool(NetworkListener.java:131)
NetworkListener$Duck?
I’m waiting for Glassfish 3 to work right
-
Inappropriate?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. -
Inappropriate?Hi i'm having the same problem too.
Is there a way to make this examples work? -
Inappropriate?No, the unit test on chapter 6 will not work until GlassFish releases the EJBContainer (still not implemented). I'll keep you posted when it's implemented.
BTW, I've uploaded a newer version of the code : http://antoniogoncalves.org/xwiki/bin...
Loading Profile...



EMPLOYEE
