This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Testing and the fly likes Glassfish embedded + maven cobertura plugin Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Engineering » Testing
Bookmark "Glassfish embedded + maven cobertura plugin" Watch "Glassfish embedded + maven cobertura plugin" New topic
Author

Glassfish embedded + maven cobertura plugin

Joao Longo
Greenhorn

Joined: Jan 04, 2012
Posts: 14
Hello people!

I've used embedded glassfish in the following way:


The problem is that embedded glassfish uses the classes in "target/classes" and maven cobertura uses "target/generated-classes/cobertura". Then, the first time the tests run it's ok, but in the second time, when cobertura run, I receive a java.lang.RuntimeException: javax.naming.NamingException (probably because cobertura is working on "target/generated-classes/cobertura" while glassfish is working on "target/classes").

Any ideas to solve this problem???
Oscar Gm
Greenhorn

Joined: Apr 03, 2012
Posts: 1
I have the same problem... Did you find a solution?
Joao Longo
Greenhorn

Joined: Jan 04, 2012
Posts: 14
Oscar Gm wrote:I have the same problem... Did you find a solution?

Yes, I remove Cobertura plugin
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Glassfish embedded + maven cobertura plugin