users@glassfish.java.net

Re: [Glassfish embedded] Problem with JPA2 entities in jar in a war

From: <glassfish_at_javadesktop.org>
Date: Tue, 07 Sep 2010 02:44:31 PDT

No that would be madness :)

But we use Glassfish Embedded for unit testing, so in order to do some kind of TDD it must be possible to do a quick compile and test. Our maven build takes about 40 seconds so that is a bit too much for this process.

It would be nice to get a confirmation from someone that multiple directory classpath won't work. That's what I observe but maybe it should be done in a different way.

I am also trying this in 3.1 builds, but currently I get stopped by another issue:

WARNING: C:\Dev\workspace-admin\simple\gfembed6064864137021454253tmp\config\logging.properties not found, creating new file from template.
org.jvnet.hk2.component.ComponentException: problem initializing
        at com.sun.hk2.component.SingletonInhabitant.get(SingletonInhabitant.java:71)
        at com.sun.hk2.component.EventPublishingInhabitant.get(EventPublishingInhabitant.java:136)
        at com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantImpl.java:61)
        at com.sun.enterprise.v3.server.AppServerStartup.run(AppServerStartup.java:215)
        at com.sun.enterprise.v3.server.AppServerStartup.start(AppServerStartup.java:131)
        at com.sun.enterprise.module.bootstrap.Main.launch(Main.java:466)
        at com.sun.enterprise.module.bootstrap.Main.launch(Main.java:326)
        at com.sun.enterprise.module.bootstrap.Main.launch(Main.java:308)
        at com.sun.enterprise.module.bootstrap.Main.launch(Main.java:301)
        at com.sun.enterprise.glassfish.bootstrap.ASEmbedded.start(ASEmbedded.java:97)
        at org.glassfish.api.embedded.Server.<init>(Server.java:317)

I have tried putting logging.properties everywhere but haven't managed to get GF beyond this point.

Thanks for helping Harald!

-Anders
[Message sent by forum member 'andersaab']

http://forums.java.net/jive/thread.jspa?messageID=482017