users@glassfish.java.net

Re: Using embedded GF 3.1.1 for unit testing

From: Marina Vatkina <marina.vatkina_at_oracle.com>
Date: Fri, 02 Sep 2011 14:48:21 -0700

May be something is specified wrong in your classpath? Or some
class-path element in some manifest adds unexpected extras?

We did see a bunch of those messages at some point, but they were all
cleaned up.

-marina

forums_at_java.net wrote:
> i tried the following now, but i still get the same issue:
>
>
>
> SCHWERWIEGEND: MNTG0301:Cannot process XML ProbeProvider, xml =
> META-INF/gfprobe-provider.xml
>
> java.lang.IllegalStateException: Provider already mapped
> glassfish:javamail:smtp-transport
>
> GlassFishRuntime runtime = null;
> GlassFish gf = null;
>
> @Before
> public void setUp() throws GlassFishException {
> runtime = GlassFishRuntime.bootstrap();
>
> GlassFishProperties properties = new GlassFishProperties();
> properties.setProperty("glassfish.embedded.tmpdir",
> "target/gf-tmp");
>
> Logger.getLogger("").getHandlers()[0].setLevel(Level.FINEST);
>
> Logger.getLogger("javax.enterprise.system.tools.deployment").setLevel(Level.FINEST);
>
>
> Logger.getLogger("javax.enterprise.system").setLevel(Level.FINEST);
> gf = runtime.newGlassFish(properties);
> gf.start();
> }
>
> @After
> public void tearDown() throws GlassFishException {
> if (gf != null) {
> gf.stop();
> gf.dispose();
> }
> if (runtime != null) {
> runtime.shutdown();
> }
> }
>
> i dont know what to try else. The directories and the domain.xml is
> created
> ehen GF is
>
> started, but then it stops immediately:
>
>
>
> FEINER: created object
> org.glassfish.admin.mbeanserver.JMXStartupService_at_1882d18
> 02.09.2011 23:29:15 com.sun.hk2.component.AbstractCreatorImpl inject
> FEINER: injection starting on
> org.glassfish.admin.mbeanserver.JMXStartupService_at_1882d18
> 02.09.2011 23:29:15 com.sun.hk2.component.FactoryCreator create
> FEINER: factory
> LazyInhabitant-21142706(org.glassfish.admin.mbeanserver.MBeanServerFactory,
>
> active:
> SingletonInhabitant-29676948(org.glassfish.admin.mbeanserver.MBeanServerFactory))
>
> invoked
> 02.09.2011 23:29:15 com.sun.hk2.component.FactoryCreator create
> FEINER: factory created object
> com.sun.jmx.mbeanserver.JmxMBeanServer_at_4e32c8
> 02.09.2011 23:29:15 com.sun.hk2.component.AbstractCreatorImpl inject
> FEINER: injection starting on
> com.sun.jmx.mbeanserver.JmxMBeanServer_at_4e32c8
> 02.09.2011 23:29:15 com.sun.hk2.component.AbstractCreatorImpl inject
> FEINER: injection finished on
> com.sun.jmx.mbeanserver.JmxMBeanServer_at_4e32c8
> 02.09.2011 23:29:15 com.sun.hk2.component.AbstractCreatorImpl get
> FEINER: created object com.sun.jmx.mbeanserver.JmxMBeanServer_at_4e32c8
> 02.09.2011 23:29:15 com.sun.hk2.component.AbstractCreatorImpl inject
> FEINER: calling PostConstruct on
> org.glassfish.admin.mbeanserver.JMXStartupService_at_1882d18
> 02.09.2011 23:29:15 Repository contains
> FEINER: name=amx-support:type=boot-amx
> 02.09.2011 23:32:36
> com.sun.enterprise.transaction.startup.TransactionRecoveryWrapper$1 event
> FEIN: TM RECOVERY WRAPPER - ON SHUTDOWN
> 02.09.2011 23:32:36
> com.sun.enterprise.transaction.startup.TransactionRecoveryWrapper$1 event
> FEIN: TM RECOVERY WRAPPER - ON SHUTDOWN
> 02.09.2011 23:32:36 com.sun.enterprise.v3.server.AppServerStartup stop
> FEIN: Releasing services class
> com.sun.enterprise.v3.server.ApplicationLoaderService
> 02.09.2011 23:32:36 com.sun.hk2.component.AbstractCreatorInhabitantImpl
> dispose
> FEINER: calling PreDestroy on Application Loader
> 02.09.2011 23:32:36 com.sun.enterprise.v3.server.AppServerStartup stop
> FEIN: Releasing services class
> com.sun.enterprise.v3.server.ApplicationLoaderService
> 02.09.2011 23:32:36 com.sun.hk2.component.AbstractCreatorInhabitantImpl
> dispose
> FEINER: calling PreDestroy on Application Loader
> 02.09.2011 23:32:36 com.sun.enterprise.v3.server.AppServerStartup stop
> FEIN: Releasing services class
> com.sun.enterprise.v3.server.PostInitializer
> 02.09.2011 23:32:36 com.sun.enterprise.v3.server.AppServerStartup stop
> FEIN: Releasing services class
> org.glassfish.admin.monitor.jvm.JVMStatsProviderBootstrap
> 02.09.2011 23:32:36 com.sun.enterprise.v3.server.AppServerStartup stop
> FEIN: Releasing services class
> org.glassfish.javaee.services.ResourceManager
> 02.09.2011 23:32:36 com.sun.hk2.component.AbstractCreatorInhabitantImpl
> dispose
> FEINER: calling PreDestroy on
> org.glassfish.javaee.services.ResourceManager_at_1282707
> 02.09.2011 23:32:36 org.glassfish.javaee.services.ResourceManager
> preDestroy
> AM FEINSTEN: ConnectorRuntime not initialized, hence skipping
> resource-adapters shutdown, resources, pools cleanup
> 02.09.2011 23:32:36 com.sun.enterprise.v3.server.AppServerStartup stop
> FEIN: Releasing services class
> org.glassfish.javaee.services.ApplicationScopedResourcesManager
> 02.09.2011 23:32:36 com.sun.hk2.component.AbstractCreatorInhabitantImpl
> dispose
> FEINER: calling PreDestroy on
> org.glassfish.javaee.services.ApplicationScopedResourcesManager_at_1a66c87
> 02.09.2011 23:32:36
> org.glassfish.javaee.services.ApplicationScopedResourcesManager
> preDestroy
> AM FEINSTEN: ConnectorRuntime not initialized, hence skipping
> resource-adapters shutdown, resources, pools cleanup
> 02.09.2011 23:32:36 com.sun.enterprise.v3.server.AppServerStartup stop
> FEIN: Releasing services class
> com.sun.enterprise.security.admin.cli.SecureAdminConfigMonitor
> 02.09.2011 23:32:36 com.sun.enterprise.v3.server.AppServerStartup stop
> FEIN: Releasing services class
> com.sun.enterprise.connectors.jms.system.JmsProviderLifecycle
> 02.09.2011 23:32:36 com.sun.enterprise.v3.server.AppServerStartup stop
> FEIN: Releasing services class
> org.glassfish.javaee.services.ResourceManager
> 02.09.2011 23:32:36 com.sun.hk2.component.AbstractCreatorInhabitantImpl
> dispose
> FEINER: calling PreDestroy on
> org.glassfish.javaee.services.ResourceManager_at_1e67280
> 02.09.2011 23:32:36 org.glassfish.javaee.services.ResourceManager
> preDestroy
> AM FEINSTEN: ConnectorRuntime not initialized, hence skipping
> resource-adapters shutdown, resources, pools cleanup
> 02.09.2011 23:32:36 com.sun.enterprise.v3.server.AppServerStartup stop
> FEIN: Releasing services class
> org.glassfish.javaee.services.ApplicationScopedResourcesManager
> 02.09.2011 23:32:36 com.sun.hk2.component.AbstractCreatorInhabitantImpl
> dispose
> FEINER: calling PreDestroy on
> org.glassfish.javaee.services.ApplicationScopedResourcesManager_at_1d626a4
> 02.09.2011 23:32:36
> org.glassfish.javaee.services.ApplicationScopedResourcesManager
> preDestroy
> AM FEINSTEN: ConnectorRuntime not initialized, hence skipping
> resource-adapters shutdown, resources, pools cleanup
> 02.09.2011 23:32:36 com.sun.enterprise.v3.server.AppServerStartup stop
> FEIN: Releasing services class
> com.sun.enterprise.container.common.impl.managedbean.ManagedBeanManagerImpl
>
> 02.09.2011 23:32:36 com.sun.enterprise.v3.server.AppServerStartup stop
> FEIN: Releasing services class
> org.glassfish.deployment.autodeploy.AutoDeployService
> 02.09.2011 23:32:36 com.sun.hk2.component.AbstractCreatorInhabitantImpl
> dispose
> FEINER: calling PreDestroy on
> org.glassfish.deployment.autodeploy.AutoDeployService_at_1677737
> 02.09.2011 23:32:36 org.glassfish.deployment.autodeploy.AutoDeployService
> stopAutoDeployer
> FEIN: [AutoDeploy] Stopping
> 02.09.2011 23:32:36 com.sun.enterprise.v3.server.AppServerStartup stop
> FEIN: Releasing services class
> org.glassfish.admin.mbeanserver.MBeanServerFactory
> 02.09.2011 23:32:36 com.sun.enterprise.v3.server.AppServerStartup stop
> FEIN: Releasing services class
> org.glassfish.admin.mbeanserver.JMXStartupService
> 02.09.2011 23:32:36 com.sun.enterprise.v3.server.AppServerStartup stop
> FEIN: Releasing services class
> com.sun.enterprise.v3.services.impl.WebContainerStarter
> 02.09.2011 23:32:36 com.sun.enterprise.v3.server.AppServerStartup stop
> FEIN: Releasing services class
> org.glassfish.internal.config.UnprocessedConfigListener
> 02.09.2011 23:32:36 com.sun.enterprise.v3.server.AppServerStartup stop
> FEIN: Releasing services class
> com.sun.enterprise.v3.server.ApplicationConfigListener
> 02.09.2011 23:32:36 com.sun.enterprise.v3.server.AppServerStartup stop
> FEIN: Releasing services class
> com.sun.enterprise.v3.server.PostInitializer
> 02.09.2011 23:32:36 com.sun.enterprise.v3.server.AppServerStartup stop
> FEIN: Releasing services class
> com.sun.enterprise.v3.server.DynamicReloadService
> 02.09.2011 23:32:36 com.sun.hk2.component.AbstractCreatorInhabitantImpl
> dispose
> FEINER: calling PreDestroy on
> com.sun.enterprise.v3.server.DynamicReloadService_at_15e0eab
> 02.09.2011 23:32:36 com.sun.enterprise.v3.server.DynamicReloadService
> stop
> FEIN: [Reloader] Stopping
> 02.09.2011 23:32:36 com.sun.enterprise.v3.server.AppServerStartup stop
> FEIN: Releasing services class
> org.glassfish.admin.monitor.jvm.JVMStatsProviderBootstrap
> 02.09.2011 23:32:36 com.sun.enterprise.v3.server.AppServerStartup stop
> FEIN: Releasing services class
> com.sun.enterprise.security.admin.cli.SecureAdminConfigMonitor
> 02.09.2011 23:32:36 com.sun.enterprise.v3.server.AppServerStartup stop
> FEIN: Releasing services class
> com.sun.enterprise.connectors.jms.system.JmsProviderLifecycle
> 02.09.2011 23:32:36 com.sun.enterprise.v3.server.AppServerStartup stop
> FEIN: Releasing services class
> com.sun.enterprise.registration.glassfish.PingService
> 02.09.2011 23:32:36 com.sun.enterprise.v3.server.AppServerStartup stop
> FEIN: Releasing services class
> org.glassfish.deployment.autodeploy.AutoDeployService
> 02.09.2011 23:32:36 com.sun.hk2.component.AbstractCreatorInhabitantImpl
> dispose
> FEINER: calling PreDestroy on
> org.glassfish.deployment.autodeploy.AutoDeployService_at_1044daf
> 02.09.2011 23:32:36 org.glassfish.deployment.autodeploy.AutoDeployService
> stopAutoDeployer
> FEIN: [AutoDeploy] Stopping
> 02.09.2011 23:32:36 com.sun.enterprise.v3.server.AppServerStartup stop
> FEIN: Releasing services class
> com.sun.enterprise.v3.services.impl.GrizzlyService
> 02.09.2011 23:32:36 com.sun.hk2.component.AbstractCreatorInhabitantImpl
> dispose
> FEINER: calling PreDestroy on
> com.sun.enterprise.v3.services.impl.GrizzlyService_at_1a5f230
> 02.09.2011 23:32:36 com.sun.enterprise.v3.server.AppServerStartup stop
> FEIN: Releasing services class com.sun.enterprise.v3.admin.MbeanService
> 02.09.2011 23:32:36 com.sun.enterprise.v3.server.AppServerStartup stop
> FEIN: Releasing services class
> com.sun.enterprise.container.common.impl.managedbean.ManagedBeanManagerImpl
>
> 02.09.2011 23:32:36 com.sun.enterprise.v3.server.AppServerStartup stop
> FEIN: Releasing services class
> com.sun.enterprise.v3.admin.listener.CombinedJavaConfigSystemPropertyListener
>
> 02.09.2011 23:32:36 com.sun.enterprise.v3.server.AppServerStartup stop
> FEIN: Releasing services class
> com.sun.enterprise.v3.server.DynamicReloadService
> 02.09.2011 23:32:36 com.sun.hk2.component.AbstractCreatorInhabitantImpl
> dispose
> FEINER: calling PreDestroy on
> com.sun.enterprise.v3.server.DynamicReloadService_at_197507c
> 02.09.2011 23:32:36 com.sun.enterprise.v3.server.DynamicReloadService
> stop
> FEIN: [Reloader] Stopping
> 02.09.2011 23:32:36 com.sun.enterprise.v3.server.AppServerStartup stop
> FEIN: Releasing services class
> com.sun.enterprise.v3.server.LifecycleModuleService
> 02.09.2011 23:32:36 com.sun.hk2.component.AbstractCreatorInhabitantImpl
> dispose
> FEINER: calling PreDestroy on
> com.sun.enterprise.v3.server.LifecycleModuleService_at_15c0c91
> 02.09.2011 23:32:36 com.sun.enterprise.v3.server.AppServerStartup stop
> FEIN: Releasing services class
> com.sun.enterprise.admin.util.CommandThreadPool
> 02.09.2011 23:32:36 com.sun.enterprise.v3.server.AppServerStartup stop
> FEIN: Releasing services class
> com.sun.enterprise.admin.util.InstanceStateService
> 02.09.2011 23:32:36 com.sun.enterprise.v3.server.AppServerStartup stop
> FEIN: Releasing services class
> org.glassfish.gms.bootstrap.GMSAdapterService
> 02.09.2011 23:32:36 com.sun.enterprise.v3.server.AppServerStartup stop
> FEIN: Releasing services class
> com.sun.enterprise.admin.util.CommandThreadPool
> 02.09.2011 23:32:36 com.sun.enterprise.v3.server.AppServerStartup stop
> FEIN: Releasing services class
> com.sun.enterprise.admin.util.InstanceStateService
> 02.09.2011 23:32:36 com.sun.enterprise.v3.server.AppServerStartup stop
> FEIN: Releasing services class
> com.sun.enterprise.naming.GlassFishNamingBuilder
> 02.09.2011 23:32:36 com.sun.hk2.component.AbstractCreatorInhabitantImpl
> dispose
> FEINER: calling PreDestroy on
> com.sun.enterprise.naming.GlassFishNamingBuilder_at_1f49969
> 02.09.2011 23:32:36 com.sun.enterprise.v3.server.AppServerStartup stop
> FEIN: Releasing services class
> org.glassfish.gms.bootstrap.GMSAdapterService
> 02.09.2011 23:32:36 com.sun.enterprise.v3.server.AppServerStartup stop
> FEIN: Releasing services class
> com.sun.enterprise.transaction.startup.TransactionRecoveryWrapper
> 02.09.2011 23:32:36 com.sun.enterprise.v3.server.AppServerStartup stop
> FEIN: Releasing services class
> com.sun.enterprise.v3.services.impl.GrizzlyService
> 02.09.2011 23:32:36 com.sun.hk2.component.AbstractCreatorInhabitantImpl
> dispose
> FEINER: calling PreDestroy on
> com.sun.enterprise.v3.services.impl.GrizzlyService_at_72edc
> 02.09.2011 23:32:36 com.sun.enterprise.v3.server.AppServerStartup stop
> FEIN: Releasing services class com.sun.enterprise.v3.admin.MbeanService
> 02.09.2011 23:32:36 com.sun.enterprise.v3.server.AppServerStartup stop
> FEIN: Releasing services class
> com.sun.enterprise.v3.server.ApplicationConfigListener
> 02.09.2011 23:32:36 com.sun.enterprise.v3.server.AppServerStartup stop
> FEIN: Releasing services class
> com.sun.enterprise.v3.admin.listener.CombinedJavaConfigSystemPropertyListener
>
> 02.09.2011 23:32:36 com.sun.enterprise.v3.server.AppServerStartup stop
> FEIN: Releasing services class
> com.sun.enterprise.v3.services.impl.WebContainerStarter
> 02.09.2011 23:32:36 com.sun.enterprise.v3.server.AppServerStartup stop
> FEIN: Releasing services class
> com.sun.enterprise.v3.server.LifecycleModuleService
> 02.09.2011 23:32:36 com.sun.hk2.component.AbstractCreatorInhabitantImpl
> dispose
> FEINER: calling PreDestroy on
> com.sun.enterprise.v3.server.LifecycleModuleService_at_ab436d
> 02.09.2011 23:32:36 com.sun.enterprise.v3.server.AppServerStartup stop
> FEIN: Releasing services class
> org.glassfish.enterprise.api.enabler.ORBConnectorStartup
> 02.09.2011 23:32:36 com.sun.enterprise.v3.server.AppServerStartup stop
> FEIN: Releasing services class
> org.glassfish.osgijpa.extension.JPAStartupService
> 02.09.2011 23:32:36 com.sun.enterprise.v3.server.AppServerStartup stop
> FEIN: Releasing services class
> com.sun.enterprise.transaction.startup.TransactionRecoveryWrapper
> 02.09.2011 23:32:36 com.sun.enterprise.v3.server.AppServerStartup stop
> FEIN: Releasing services class
> org.glassfish.ha.store.adapter.cache.ReplicationStoreProxy2
> 02.09.2011 23:32:36 com.sun.enterprise.v3.server.AppServerStartup stop
> FEIN: Releasing services class
> org.glassfish.ha.store.adapter.cache.ShoalBackingStoreProxy
> 02.09.2011 23:32:36 com.sun.enterprise.v3.server.AppServerStartup stop
> FEIN: Releasing services class
> org.glassfish.enterprise.api.enabler.ORBConnectorStartup
> 02.09.2011 23:32:36 com.sun.enterprise.v3.server.AppServerStartup stop
> FEIN: Releasing services class
> org.glassfish.osgijpa.extension.JPAStartupService
> 02.09.2011 23:32:36 com.sun.enterprise.v3.server.AppServerStartup stop
> FEIN: Releasing services class
> org.glassfish.internal.config.UnprocessedConfigListener
> 02.09.2011 23:32:36
> org.glassfish.ha.store.adapter.cache.ShoalBackingStoreProxy$1 event
> FEIN: Unregistered SHOAL BackingStore Proxy with persistence-type =
> replicated
> 02.09.2011 23:32:36 org.glassfish.admin.mbeanserver.JMXStartupService
> shutdown
> FEIN: JMXStartupService: shutting down AMX and JMX
> 02.09.2011 23:32:36 Repository retrieve
> FEINER: name=amx-support:type=boot-amx
> 02.09.2011 23:32:36 Repository remove
> FEINER: name=amx-support:type=boot-amx
> 02.09.2011 23:32:36 DefaultMBeanServerInterceptor unregisterMBean
> FEINER: Send delete notification of object amx-support:type=boot-amx
> 02.09.2011 23:32:36 DefaultMBeanServerInterceptor sendNotification
> FEINER: JMX.mbean.unregistered amx-support:type=boot-amx
> 02.09.2011 23:32:36 org.glassfish.admin.mbeanserver.JMXStartupService
> shutdown
> INFO: JMXStartupService and JMXConnectors have been shut down.
> 02.09.2011 23:32:36 com.sun.enterprise.v3.server.AppServerStartup stop
> INFO: Shutdown procedure finished
> 02.09.2011 23:32:36 com.sun.hk2.component.AbstractCreatorInhabitantImpl
> dispose
> FEINER: calling PreDestroy on
> org.glassfish.admin.monitor.MonitoringBootstrap_at_1098594
> 02.09.2011 23:32:36
> org.glassfish.admin.monitor.StatsProviderManagerDelegateImpl <init>
> FEIN: In the ctor : instance name server
> 02.09.2011 23:32:36
> org.glassfish.admin.monitor.StatsProviderManagerDelegateImpl <init>
> FEIN: In the ctor : MONITORING SERVER
> amx:pp=/mon,type=server-mon,name=server
> 02.09.2011 23:32:36 com.sun.hk2.component.AbstractCreatorInhabitantImpl
> dispose
> FEINER: calling PreDestroy on
> org.glassfish.admin.monitor.MonitoringBootstrap_at_20224a
> 02.09.2011 23:32:36
> org.glassfish.admin.monitor.StatsProviderManagerDelegateImpl <init>
> FEIN: In the ctor : instance name server
> 02.09.2011 23:32:36
> org.glassfish.admin.monitor.StatsProviderManagerDelegateImpl <init>
> FEIN: In the ctor : MONITORING SERVER
> amx:pp=/mon,type=server-mon,name=server
>
>
>
> --
>
> [Message sent by forum member 'chris.joelly']
>
> View Post: http://forums.java.net/node/839727
>
>