users@glassfish.java.net

Using embedded GF 3.1.1 for unit testing

From: <forums_at_java.net>
Date: Fri, 2 Sep 2011 11:16:29 -0500 (CDT)

Hello,

i want to test webapps, webservices and ejb's using GF 3.1.1 embedded. I
added

<dependency>
   <groupId>org.glassfish.extras</groupId>
   <artifactId>glassfish-embedded-all</artifactId>
   <version>3.1.1</version>
</dependency>

To my POM and i wrote a simple test which performs the following:

Map<String, Object> properties = new HashMap<String, Object>();
properties.put(EJBContainer.MODULES, new File("target/classes"));
properties.put("org.glassfish.ejb.embedded.glassfish.installation.root",
"glassfish");
properties.put(EJBContainer.APP_NAME, "app");
EJBContainer c = EJBContainer.createEJBContainer(properties);

But when i try to run the test case glassfish throws the following exception:

02.09.2011 18:10:29 org.glassfish.ejb.embedded.EJBContainerProviderImpl
getValidFile
SCHWERWIEGEND: EJB6004:Specified application server installation location
[glassfish] does not exist.
02.09.2011 18:10:41 com.sun.enterprise.v3.server.CommonClassLoaderServiceImpl
findDerbyClient
INFO: Cannot find javadb client jar file, derby jdbc driver will not be
available by default.
02.09.2011 18:10:43
org.glassfish.flashlight.impl.provider.FlashlightProbeProviderFactory
processXMLProbeProviders
SCHWERWIEGEND: MNTG0301:Cannot process XML ProbeProvider, xml =
META-INF/gfprobe-provider.xml
java.lang.IllegalStateException: Provider already mapped
glassfish:javamail:smtp-transport
    at
org.glassfish.flashlight.impl.core.ProbeProviderRegistry.registerProbeProvider(ProbeProviderRegistry.java:100)
    at
org.glassfish.flashlight.impl.provider.FlashlightProbeProviderFactory.registerProvider(FlashlightProbeProviderFactory.java:539)
    at
org.glassfish.flashlight.impl.provider.FlashlightProbeProviderFactory.processXMLProbeProviders(FlashlightProbeProviderFactory.java:364)
    at
org.glassfish.admin.monitor.MonitoringBootstrap.processProbeProviderXML(MonitoringBootstrap.java:484)
    at
org.glassfish.admin.monitor.MonitoringBootstrap.processManifest(MonitoringBootstrap.java:360)
    at
org.glassfish.admin.monitor.MonitoringBootstrap.addProvider(MonitoringBootstrap.java:301)
    at
org.glassfish.admin.monitor.MonitoringBootstrap.verifyModule(MonitoringBootstrap.java:245)
    at
org.glassfish.admin.monitor.MonitoringBootstrap.discoverProbeProviders(MonitoringBootstrap.java:188)
    at
org.glassfish.admin.monitor.MonitoringBootstrap.enableMonitoringForProbeProviders(MonitoringBootstrap.java:624)
    at
org.glassfish.admin.monitor.MonitoringBootstrap.postConstruct(MonitoringBootstrap.java:176)
    at
com.sun.hk2.component.AbstractCreatorImpl.inject(AbstractCreatorImpl.java:131)
    at
com.sun.hk2.component.ConstructorCreator.initialize(ConstructorCreator.java:91)
    at
com.sun.hk2.component.AbstractCreatorImpl.get(AbstractCreatorImpl.java:82)
    at
com.sun.hk2.component.SingletonInhabitant.get(SingletonInhabitant.java:67)
    at
com.sun.hk2.component.EventPublishingInhabitant.get(EventPublishingInhabitant.java:139)
    at
com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantImpl.java:76)
    at
com.sun.enterprise.v3.server.AppServerStartup.run(AppServerStartup.java:229)
    at
com.sun.enterprise.v3.server.AppServerStartup.doStart(AppServerStartup.java:145)
    at
com.sun.enterprise.v3.server.AppServerStartup.start(AppServerStartup.java:136)
    at
com.sun.enterprise.glassfish.bootstrap.GlassFishImpl.start(GlassFishImpl.java:79)
    at
org.glassfish.ejb.embedded.EJBContainerImpl.<init>(EJBContainerImpl.java:104)
    at
org.glassfish.ejb.embedded.EJBContainerProviderImpl.createContainer(EJBContainerProviderImpl.java:218)
    at
org.glassfish.ejb.embedded.EJBContainerProviderImpl.createEJBContainer(EJBContainerProviderImpl.java:129)
    at
javax.ejb.embeddable.EJBContainer.createEJBContainer(EJBContainer.java:127)
    at erp.test.TransactionTest.saveAndGetKlant(TransactionTest.java:60)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
    at
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
    at
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
    at
org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
    at
org.junit.runners.BlockJUnit4ClassRunner.runNotIgnored(BlockJUnit4ClassRunner.java:79)
    at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:71)
    at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:49)
    at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
    at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
    at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
    at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
    at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
    at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
    at
org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
    at
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
    at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
    at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
    at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
    at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
02.09.2011 18:10:43
org.glassfish.flashlight.impl.provider.FlashlightProbeProviderFactory
processXMLProbeProviders
SCHWERWIEGEND: MNTG0301:Cannot process XML ProbeProvider, xml =
META-INF/mojarra-jsf-api-probe-provider.xml
java.lang.IllegalStateException: Provider already mapped
glassfish:jsf:faces-servlet
    at
org.glassfish.flashlight.impl.core.ProbeProviderRegistry.registerProbeProvider(ProbeProviderRegistry.java:100)
    at
org.glassfish.flashlight.impl.provider.FlashlightProbeProviderFactory.registerProvider(FlashlightProbeProviderFactory.java:539)
    at
org.glassfish.flashlight.impl.provider.FlashlightProbeProviderFactory.processXMLProbeProviders(FlashlightProbeProviderFactory.java:364)
    at
org.glassfish.admin.monitor.MonitoringBootstrap.processProbeProviderXML(MonitoringBootstrap.java:484)
    at
org.glassfish.admin.monitor.MonitoringBootstrap.processManifest(MonitoringBootstrap.java:360)
    at
org.glassfish.admin.monitor.MonitoringBootstrap.addProvider(MonitoringBootstrap.java:301)
    at
org.glassfish.admin.monitor.MonitoringBootstrap.verifyModule(MonitoringBootstrap.java:245)
    at
org.glassfish.admin.monitor.MonitoringBootstrap.discoverProbeProviders(MonitoringBootstrap.java:188)
    at
org.glassfish.admin.monitor.MonitoringBootstrap.enableMonitoringForProbeProviders(MonitoringBootstrap.java:624)
    at
org.glassfish.admin.monitor.MonitoringBootstrap.postConstruct(MonitoringBootstrap.java:176)
    at
com.sun.hk2.component.AbstractCreatorImpl.inject(AbstractCreatorImpl.java:131)
    at
com.sun.hk2.component.ConstructorCreator.initialize(ConstructorCreator.java:91)
    at
com.sun.hk2.component.AbstractCreatorImpl.get(AbstractCreatorImpl.java:82)
    at
com.sun.hk2.component.SingletonInhabitant.get(SingletonInhabitant.java:67)
    at
com.sun.hk2.component.EventPublishingInhabitant.get(EventPublishingInhabitant.java:139)
    at
com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantImpl.java:76)
    at
com.sun.enterprise.v3.server.AppServerStartup.run(AppServerStartup.java:229)
    at
com.sun.enterprise.v3.server.AppServerStartup.doStart(AppServerStartup.java:145)
    at
com.sun.enterprise.v3.server.AppServerStartup.start(AppServerStartup.java:136)
    at
com.sun.enterprise.glassfish.bootstrap.GlassFishImpl.start(GlassFishImpl.java:79)
    at
org.glassfish.ejb.embedded.EJBContainerImpl.<init>(EJBContainerImpl.java:104)
    at
org.glassfish.ejb.embedded.EJBContainerProviderImpl.createContainer(EJBContainerProviderImpl.java:218)
    at
org.glassfish.ejb.embedded.EJBContainerProviderImpl.createEJBContainer(EJBContainerProviderImpl.java:129)
    at
javax.ejb.embeddable.EJBContainer.createEJBContainer(EJBContainer.java:127)
    at erp.test.TransactionTest.saveAndGetKlant(TransactionTest.java:60)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
    at
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
    at
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
    at
org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
    at
org.junit.runners.BlockJUnit4ClassRunner.runNotIgnored(BlockJUnit4ClassRunner.java:79)
    at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:71)
    at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:49)
    at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
    at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
    at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
    at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
    at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
    at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
    at
org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
    at
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
    at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
    at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
    at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
    at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
02.09.2011 18:10:43
org.glassfish.flashlight.impl.provider.FlashlightProbeProviderFactory
processXMLProbeProviders
SCHWERWIEGEND: MNTG0301:Cannot process XML ProbeProvider, xml =
jersey-gf-server-probe-provider.xml
java.lang.IllegalStateException: Provider already mapped
glassfish:jersey:server-hidden
    at
org.glassfish.flashlight.impl.core.ProbeProviderRegistry.registerProbeProvider(ProbeProviderRegistry.java:100)
    at
org.glassfish.flashlight.impl.provider.FlashlightProbeProviderFactory.registerProvider(FlashlightProbeProviderFactory.java:539)
    at
org.glassfish.flashlight.impl.provider.FlashlightProbeProviderFactory.processXMLProbeProviders(FlashlightProbeProviderFactory.java:364)
    at
org.glassfish.admin.monitor.MonitoringBootstrap.processProbeProviderXML(MonitoringBootstrap.java:484)
    at
org.glassfish.admin.monitor.MonitoringBootstrap.processManifest(MonitoringBootstrap.java:360)
    at
org.glassfish.admin.monitor.MonitoringBootstrap.addProvider(MonitoringBootstrap.java:301)
    at
org.glassfish.admin.monitor.MonitoringBootstrap.verifyModule(MonitoringBootstrap.java:245)
    at
org.glassfish.admin.monitor.MonitoringBootstrap.discoverProbeProviders(MonitoringBootstrap.java:188)
    at
org.glassfish.admin.monitor.MonitoringBootstrap.enableMonitoringForProbeProviders(MonitoringBootstrap.java:624)
    at
org.glassfish.admin.monitor.MonitoringBootstrap.postConstruct(MonitoringBootstrap.java:176)
    at
com.sun.hk2.component.AbstractCreatorImpl.inject(AbstractCreatorImpl.java:131)
    at
com.sun.hk2.component.ConstructorCreator.initialize(ConstructorCreator.java:91)
    at
com.sun.hk2.component.AbstractCreatorImpl.get(AbstractCreatorImpl.java:82)
    at
com.sun.hk2.component.SingletonInhabitant.get(SingletonInhabitant.java:67)
    at
com.sun.hk2.component.EventPublishingInhabitant.get(EventPublishingInhabitant.java:139)
    at
com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantImpl.java:76)
    at
com.sun.enterprise.v3.server.AppServerStartup.run(AppServerStartup.java:229)
    at
com.sun.enterprise.v3.server.AppServerStartup.doStart(AppServerStartup.java:145)
    at
com.sun.enterprise.v3.server.AppServerStartup.start(AppServerStartup.java:136)
    at
com.sun.enterprise.glassfish.bootstrap.GlassFishImpl.start(GlassFishImpl.java:79)
    at
org.glassfish.ejb.embedded.EJBContainerImpl.<init>(EJBContainerImpl.java:104)
    at
org.glassfish.ejb.embedded.EJBContainerProviderImpl.createContainer(EJBContainerProviderImpl.java:218)
    at
org.glassfish.ejb.embedded.EJBContainerProviderImpl.createEJBContainer(EJBContainerProviderImpl.java:129)
    at
javax.ejb.embeddable.EJBContainer.createEJBContainer(EJBContainer.java:127)
    at erp.test.TransactionTest.saveAndGetKlant(TransactionTest.java:60)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
    at
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
    at
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
    at
org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
    at
org.junit.runners.BlockJUnit4ClassRunner.runNotIgnored(BlockJUnit4ClassRunner.java:79)
    at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:71)
    at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:49)
    at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
    at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
    at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
    at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
    at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
    at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
    at
org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
    at
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
    at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
    at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
    at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
    at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
02.09.2011 18:10:43
org.glassfish.flashlight.impl.provider.FlashlightProbeProviderFactory
processXMLProbeProviders
SCHWERWIEGEND: MNTG0301:Cannot process XML ProbeProvider, xml =
jersey-gf-statsprovider-probe-provider.xml
java.lang.IllegalStateException: Provider already mapped
glassfish:jersey:server
    at
org.glassfish.flashlight.impl.core.ProbeProviderRegistry.registerProbeProvider(ProbeProviderRegistry.java:100)
    at
org.glassfish.flashlight.impl.provider.FlashlightProbeProviderFactory.registerProvider(FlashlightProbeProviderFactory.java:539)
    at
org.glassfish.flashlight.impl.provider.FlashlightProbeProviderFactory.processXMLProbeProviders(FlashlightProbeProviderFactory.java:364)
    at
org.glassfish.admin.monitor.MonitoringBootstrap.processProbeProviderXML(MonitoringBootstrap.java:484)
    at
org.glassfish.admin.monitor.MonitoringBootstrap.processManifest(MonitoringBootstrap.java:360)
    at
org.glassfish.admin.monitor.MonitoringBootstrap.addProvider(MonitoringBootstrap.java:301)
    at
org.glassfish.admin.monitor.MonitoringBootstrap.verifyModule(MonitoringBootstrap.java:245)
    at
org.glassfish.admin.monitor.MonitoringBootstrap.discoverProbeProviders(MonitoringBootstrap.java:188)
    at
org.glassfish.admin.monitor.MonitoringBootstrap.enableMonitoringForProbeProviders(MonitoringBootstrap.java:624)
    at
org.glassfish.admin.monitor.MonitoringBootstrap.postConstruct(MonitoringBootstrap.java:176)
    at
com.sun.hk2.component.AbstractCreatorImpl.inject(AbstractCreatorImpl.java:131)
    at
com.sun.hk2.component.ConstructorCreator.initialize(ConstructorCreator.java:91)
    at
com.sun.hk2.component.AbstractCreatorImpl.get(AbstractCreatorImpl.java:82)
    at
com.sun.hk2.component.SingletonInhabitant.get(SingletonInhabitant.java:67)
    at
com.sun.hk2.component.EventPublishingInhabitant.get(EventPublishingInhabitant.java:139)
    at
com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantImpl.java:76)
    at
com.sun.enterprise.v3.server.AppServerStartup.run(AppServerStartup.java:229)
    at
com.sun.enterprise.v3.server.AppServerStartup.doStart(AppServerStartup.java:145)
    at
com.sun.enterprise.v3.server.AppServerStartup.start(AppServerStartup.java:136)
    at
com.sun.enterprise.glassfish.bootstrap.GlassFishImpl.start(GlassFishImpl.java:79)
    at
org.glassfish.ejb.embedded.EJBContainerImpl.<init>(EJBContainerImpl.java:104)
    at
org.glassfish.ejb.embedded.EJBContainerProviderImpl.createContainer(EJBContainerProviderImpl.java:218)
    at
org.glassfish.ejb.embedded.EJBContainerProviderImpl.createEJBContainer(EJBContainerProviderImpl.java:129)
    at
javax.ejb.embeddable.EJBContainer.createEJBContainer(EJBContainer.java:127)
    at erp.test.TransactionTest.saveAndGetKlant(TransactionTest.java:60)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
    at
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
    at
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
    at
org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
    at
org.junit.runners.BlockJUnit4ClassRunner.runNotIgnored(BlockJUnit4ClassRunner.java:79)
    at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:71)
    at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:49)
    at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
    at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
    at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
    at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
    at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
    at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
    at
org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
    at
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
    at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
    at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
    at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
    at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
02.09.2011 18:10:44 com.sun.enterprise.v3.services.impl.GrizzlyService
createNetworkProxy
INFO: Network listener http-listener on port 0 disabled per domain.xml
02.09.2011 18:10:44 com.sun.enterprise.v3.services.impl.GrizzlyService
createNetworkProxy
INFO: Network listener https-listener on port 0 disabled per domain.xml
02.09.2011 18:10:44 org.glassfish.ha.store.spi.BackingStoreFactoryRegistry
register
INFO: Registered org.glassfish.ha.store.adapter.cache.ShoalBackingStoreProxy
for persistence-type = replicated in BackingStoreFactoryRegistry
02.09.2011 18:10:44 com.sun.enterprise.v3.services.impl.GrizzlyService
createNetworkProxy
INFO: Network listener http-listener on port 0 disabled per domain.xml
02.09.2011 18:10:44 com.sun.enterprise.v3.services.impl.GrizzlyService
createNetworkProxy
INFO: Network listener https-listener on port 0 disabled per domain.xml
02.09.2011 18:10:44 com.sun.enterprise.v3.server.AppServerStartup run
SCHWERWIEGEND: Startup service failed to start :
com.sun.enterprise.naming.GlassFishNamingBuilder
02.09.2011 18:10:44 com.sun.enterprise.v3.server.AppServerStartup run
INFO: GlassFish Server Open Source Edition 3.1.1 (12) startup time : Embedded
(3.951ms), startup services(2.850ms), total(6.801ms)
02.09.2011 18:10:44 com.sun.enterprise.v3.server.AppServerStartup run
INFO: Service : class org.glassfish.gms.bootstrap.GMSAdapterService took 4 ms
02.09.2011 18:10:44 com.sun.enterprise.v3.server.AppServerStartup run
INFO: Service : class com.sun.enterprise.v3.server.LifecycleModuleService
took 3 ms
02.09.2011 18:10:44 com.sun.enterprise.v3.server.AppServerStartup run
INFO: Service : class com.sun.enterprise.v3.server.ApplicationLoaderService
took 84 ms
02.09.2011 18:10:44 com.sun.enterprise.v3.server.AppServerStartup run
INFO: Service : class com.sun.enterprise.v3.services.impl.WebContainerStarter
took 10 ms
02.09.2011 18:10:44 com.sun.enterprise.v3.server.AppServerStartup run
INFO: Service : class com.sun.enterprise.admin.util.CommandThreadPool took 0
ms
02.09.2011 18:10:44 com.sun.enterprise.v3.server.AppServerStartup run
INFO: Service : class
com.sun.enterprise.v3.admin.listener.CombinedJavaConfigSystemPropertyListener
took 12 ms
02.09.2011 18:10:44 com.sun.enterprise.v3.server.AppServerStartup run
INFO: Service : class com.sun.enterprise.v3.server.SystemTasks took 40 ms
02.09.2011 18:10:44 com.sun.enterprise.v3.server.AppServerStartup run
INFO: Service : class com.sun.enterprise.v3.admin.LocalPasswordImpl took 2 ms
02.09.2011 18:10:44 com.sun.enterprise.v3.server.AppServerStartup run
INFO: Service : class
org.glassfish.ha.store.adapter.cache.ShoalBackingStoreProxy took 22 ms
02.09.2011 18:10:44 com.sun.enterprise.v3.server.AppServerStartup run
INFO: Service : class org.glassfish.osgijpa.extension.JPAStartupService took
1 ms
02.09.2011 18:10:44 com.sun.enterprise.v3.server.AppServerStartup run
INFO: Service : class com.sun.enterprise.naming.GlassFishNamingBuilder took 2
ms
02.09.2011 18:10:44 com.sun.enterprise.v3.server.AppServerStartup run
INFO: Service : class org.glassfish.kernel.javaee.MEJBService took 6 ms
02.09.2011 18:10:44 com.sun.enterprise.v3.server.AppServerStartup run
INFO: Service : class
org.glassfish.enterprise.api.enabler.ORBConnectorStartup took 1 ms
02.09.2011 18:10:44 com.sun.enterprise.v3.server.AppServerStartup run
INFO: Service : class com.sun.enterprise.admin.util.InstanceStateService took
3 ms
02.09.2011 18:10:44 com.sun.enterprise.v3.server.AppServerStartup run
INFO: Service : class com.sun.enterprise.v3.admin.IdmService took 3 ms
02.09.2011 18:10:44 com.sun.enterprise.v3.server.AppServerStartup run
INFO: Service : class com.sun.enterprise.v3.admin.MbeanService took 3 ms
02.09.2011 18:10:44 com.sun.enterprise.v3.server.AppServerStartup run
INFO: Service : class org.glassfish.internal.api.Globals took 1 ms
02.09.2011 18:10:44 com.sun.enterprise.v3.server.AppServerStartup run
INFO: Service : class org.glassfish.admin.monitor.MonitoringBootstrap took
131 ms
02.09.2011 18:10:44 com.sun.enterprise.v3.server.AppServerStartup run
INFO: Service : class com.sun.enterprise.v3.services.impl.GrizzlyService took
33 ms
02.09.2011 18:10:44 com.sun.enterprise.v3.server.AppServerStartup run
INFO: Service : class
org.glassfish.ha.store.adapter.cache.ReplicationStoreProxy2 took 2 ms
02.09.2011 18:10:44 com.sun.enterprise.v3.server.AppServerStartup run
INFO: Service : class
com.sun.enterprise.transaction.startup.TransactionRecoveryWrapper took 2 ms
02.09.2011 18:10:45
com.sun.enterprise.transaction.JavaEETransactionManagerSimplified
initDelegates
INFO: DTX5019: Transaction Manager is ready. Using
[com.sun.enterprise.transaction.jts.JavaEETransactionManagerJTSDelegate] as
the delegate
02.09.2011 18:10:46
org.glassfish.admin.mbeanserver.JMXStartupService$JMXConnectorsStarterThread
run
INFO: JMXStartupService: JMXConnector system is disabled, skipping.
 

What is wrong with my usage of embedded glassfish?

Can anybody point me to some good documentation about the various
possibilities to use embedded

Glassfish? I read the admin and developers guide of glassfish but i can not
find lots of information,

especially not for Glassfish 3.1(.1)

Thanks in advance

 


--
[Message sent by forum member 'chris.joelly']
View Post: http://forums.java.net/node/839727