Hello hello,
When I run the embedded I have a problem when the timer service tries to
start:
12 déc. 2011 17:45:15 org.glassfish.api.ActionReport failure GRAVE:
Exception while loading the app 12 déc. 2011 17:45:15
org.glassfish.ejb.startup.EjbDeployer clean ATTENTION: EJB Timer Service is
not available. Timers for application with id 86750547951943680 will not be
deleted 12 déc. 2011 17:45:15 org.glassfish.deployment.admin.DeployCommand
execute GRAVE: Exception while loading the app : EJB Timer Service is not
available 12 déc. 2011 17:45:15
org.glassfish.ejb.embedded.EJBContainerProviderImpl createEJBContainer INFO:
[EJBContainerProviderImpl] Cleaning up on failure ...
java.lang.NoSuchMethodError:
org.apache.jasper.xmlparser.ParserUtils.setSchemaResourcePrefix(Ljava/lang/String;)V
at com.sun.enterprise.web.WebContainer.postConstruct(WebContainer.java:408)
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 org.glassfish.internal.data.EngineInfo.getContainer(EngineInfo.java:93) at
org.glassfish.internal.data.EngineInfo.stop(EngineInfo.java:215) at
com.sun.enterprise.v3.server.ApplicationLoaderService.preDestroy(ApplicationLoaderService.java:436)
at
com.sun.hk2.component.AbstractCreatorInhabitantImpl.dispose(AbstractCreatorInhabitantImpl.java:83)
at
com.sun.hk2.component.SingletonInhabitant.release(SingletonInhabitant.java:81)
at
com.sun.hk2.component.EventPublishingInhabitant.release(EventPublishingInhabitant.java:108)
at com.sun.hk2.component.LazyInhabitant.release(LazyInhabitant.java:133) at
com.sun.enterprise.v3.server.AppServerStartup.stop(AppServerStartup.java:425)
at
com.sun.enterprise.glassfish.bootstrap.GlassFishImpl.stop(GlassFishImpl.java:88)
at
org.glassfish.ejb.embedded.EJBContainerImpl.stop(EJBContainerImpl.java:253)
at
org.glassfish.ejb.embedded.EJBContainerImpl.forceClose(EJBContainerImpl.java:201)
at
org.glassfish.ejb.embedded.EJBContainerImpl.close(EJBContainerImpl.java:180)
at
org.glassfish.ejb.embedded.EJBContainerProviderImpl.createEJBContainer(EJBContainerProviderImpl.java:147)
at
javax.ejb.embeddable.EJBContainer.createEJBContainer(EJBContainer.java:127)
at net.mycompany.myapp.util.JeeHelper.createEJBContainer(JeeHelper.java:44)
at
net.mycompany.myapp.batch.MatchingProcessTest.setUpClass(MatchingProcessTest.java:46)
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:45)
at
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
at
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42)
at
org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:27)
at
org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:30)
at org.junit.runners.ParentRunner.run(ParentRunner.java:300) at
junit.framework.JUnit4TestAdapter.run(JUnit4TestAdapter.java:39)
When the app on normal (not embedded) container, I do not have any problem. I
checked in the domain.xml of my embedded GlassFish that Timer Service and
associated DB Pools are properly declared (exactly like in normal container).
It smells like a classpath problem but where?
I am using GF 3.1.1/NB7.0/Java6/Windows7
Thanks for you help,
--
[Message sent by forum member 'gquintana']
View Post: http://forums.java.net/node/873553