aspose file tools*
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
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: 9
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: 9
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
 
Similar Threads
The return type of an ejbCreate(...) method must be the entity bean's primary key typ
Problem in JNDI look up in ejb 3.0
Exception in thread Exception in thread "main" java.lang.ClassCastException
javax.naming.NameNotFoundException: HelloBean not bound
Object is not of remote type error in GlassFish v3