Closed glassfishrobot closed 11 years ago
@glassfishrobot Commented hwellmann said: Retested with 4.0-b84. Now the message key is different, but it still doesn't get resolved:
Apr 11, 2013 10:29:43 PM com.sun.enterprise.deployment.node.SaxParserHandler startElement SEVERE: AS-DEPLOYMENT-00015
@glassfishrobot Commented @honghzzhang said: Can you send the test case that you used to me (hzhang_jn@java.net)? And do you see the same issue if you deploy the application to regular GlassFish installation?
@glassfishrobot Commented hwellmann said: The test case is here:
You need to locally override the GlassFish version in the parent POM.
I don't see this issue with a regular GlassFish installation.
@glassfishrobot Commented bhavanishankar said: When I run your test by modifying it not to use your custom domain.xml, it runs fine, with this message:
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running org.ops4j.pax.exam.glassfish.embedded.EmbeddedGlassFishLaunchTest
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/space/bhavani/.m2/repository/ch/qos/logback/logback-classic/1.0.6/logback-classic-1.0.6.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/space/bhavani/.m2/repository/org/glassfish/main/extras/glassfish-embedded-all/4.0-SNAPSHOT/glassfish-embedded-all-4.0-SNAPSHOT.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation. Found populator: org.glassfish.kernel.embedded.EmbeddedDomainXml
22:47:31.480 [main] INFO j.e.s.c.s.o.g.s.s.impl.authorization - Authorization Service has successfully initialized.
22:47:32.009 [main] INFO o.h.validator.internal.util.Version - HV000001: Hibernate Validator 5.0.0.CR3
22:47:32.467 [main] INFO javax.enterprise.system.core - Network listener http-listener on port 0 disabled per domain.xml
22:47:32.468 [main] INFO javax.enterprise.system.core - Network listener https-listener on port 0 disabled per domain.xml
** GlassFishBatchExecutorServiceProvider.postConstruct() called
22:47:33.198 [main] INFO javax.enterprise.system.core - Undefined Product Name - define product and version info in config/branding 0.0.0 (0) startup time : Embedded (1,278ms), startup services(1,690ms), total(2,968ms)
22:47:33.315 [pool-11-thread-1] INFO o.g.jersey.server.ApplicationHandler - Initiating Jersey application, version Jersey: 2.0-m13-3 2013-03-20 11:16:41...
22:47:33.421 [Thread-5] INFO javax.enterprise.system.jmx - JMXStartupService has disabled JMXConnector system
22:47:33.563 [main] WARN j.e.r.r.c.s.e.connectors.jms.util - RAR7000 : Check for a new version of MQ installation failed : /tmp/gfembed1788006010151245660tmp/lib/install/applications/jmsra/../imqjmsra.rar (No such file or directory):/tmp/gfembed1788006010151245660tmp/lib/install/applications/jmsra/imqjmsra.rar
22:47:33.674 [main] INFO o.o.p.e.g.e.EmbeddedGlassFishLaunchTest - deploying wicket-examples
22:47:34.134 [main] INFO unknown.jul.logger - Snifer org.glassfish.web.sniffer.WebSniffer@1ccb7 set up following modules: [com.sun.enterprise.module.single.ProxyModule@16d6956, com.sun.enterprise.module.single.ProxyModule@16d6956, com.sun.enterprise.module.single.ProxyModule@16d6956]
22:47:34.525 [main] ERROR javax.enterprise.web - Error adding HttpProbes. NetworkListener http-listeners GrizzlyProxy is NULL
22:47:34.526 [main] ERROR javax.enterprise.web - Error adding HttpProbes. NetworkListener https-listeners GrizzlyProxy is NULL
22:47:34.535 [main] INFO javax.enterprise.web - Created virtual server server
22:47:34.871 [main] INFO javax.enterprise.web.core - Setting JAAS app name glassfish-web
22:47:34.872 [main] INFO javax.enterprise.web - Virtual server server loaded default web module
22:47:35.392 [main] INFO javax.enterprise.web - Loading application [wicket-examples] at [/wicket-examples]
22:47:35.465 [main] INFO javax.enterprise.system.core - wicket-examples was successfully deployed in 1,720 milliseconds.
22:47:35.470 [main] INFO o.o.p.e.g.e.EmbeddedGlassFishLaunchTest - undeploying wicket-examples
** GlassFishBatchExecutorServiceProvider.onEvent() called: org.glassfish.api.event.EventListener$Event@7dd1a2
PlainTextActionReporterSUCCESSNo monitoring data to report.
22:47:35.532 [main] INFO o.o.p.e.g.e.EmbeddedGlassFishLaunchTest - stopping GlassFish
22:47:35.534 [main] INFO javax.enterprise.system.jmx - JMXStartupService and JMXConnectors have been shut down.
JdbcRuntimeExtension, getAllSystemRAResourcesAndPools = [GlassFishConfigBean.org.glassfish.jdbc.config.JdbcResource, GlassFishConfigBean.org.glassfish.jdbc.config.JdbcResource, GlassFishConfigBean.org.glassfish.jdbc.config.JdbcConnectionPool, GlassFishConfigBean.org.glassfish.jdbc.config.JdbcConnectionPool]
22:47:35.602 [main] INFO javax.enterprise.system.core - Shutdown procedure finished
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 6.26 sec
Results :
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0
But when I run the test as it is so that it uses your domain.xml, it throws the error as follows:
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running org.ops4j.pax.exam.glassfish.embedded.EmbeddedGlassFishLaunchTest
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/space/bhavani/.m2/repository/ch/qos/logback/logback-classic/1.0.6/logback-classic-1.0.6.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/space/bhavani/.m2/repository/org/glassfish/main/extras/glassfish-embedded-all/4.0-SNAPSHOT/glassfish-embedded-all-4.0-SNAPSHOT.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation. Found populator: org.glassfish.kernel.embedded.EmbeddedDomainXml
22:56:57.731 [main] WARN j.e.s.c.s.o.g.s.s.impl.authorization - Authorization Service initialization failed, exception="java.lang.IllegalStateException", message="The Authorization service is not configured in the domain configuration file.".
java.lang.IllegalStateException: The Authorization service is not configured in the domain configuration file.
at org.glassfish.security.services.impl.authorization.AuthorizationServiceImpl.initialize(AuthorizationServiceImpl.java:146) [glassfish-embedded-all-4.0-SNAPSHOT.jar:na]
at org.glassfish.security.services.impl.authorization.AuthorizationServiceImpl.postConstruct(AuthorizationServiceImpl.java:439) [glassfish-embedded-all-4.0-SNAPSHOT.jar:na]
at org.jvnet.hk2.internal.ClazzCreator.postConstructMe(ClazzCreator.java:282) [glassfish-embedded-all-4.0-SNAPSHOT.jar:na]
at org.jvnet.hk2.internal.ClazzCreator.create(ClazzCreator.java:329) [glassfish-embedded-all-4.0-SNAPSHOT.jar:na]
at org.jvnet.hk2.internal.SystemDescriptor.create(SystemDescriptor.java:448) [glassfish-embedded-all-4.0-SNAPSHOT.jar:na]
at org.jvnet.hk2.internal.SingletonContext.findOrCreate(SingletonContext.java:107) [glassfish-embedded-all-4.0-SNAPSHOT.jar:na]
at org.jvnet.hk2.internal.Utilities.createService(Utilities.java:2203) [glassfish-embedded-all-4.0-SNAPSHOT.jar:na]
at org.jvnet.hk2.internal.ServiceLocatorImpl.getService(ServiceLocatorImpl.java:543) [glassfish-embedded-all-4.0-SNAPSHOT.jar:na]
at org.jvnet.hk2.internal.ThreeThirtyResolver.resolve(ThreeThirtyResolver.java:77) [glassfish-embedded-all-4.0-SNAPSHOT.jar:na]
at org.jvnet.hk2.internal.ClazzCreator.resolve(ClazzCreator.java:192) [glassfish-embedded-all-4.0-SNAPSHOT.jar:na]
at org.jvnet.hk2.internal.ClazzCreator.resolveAllDependencies(ClazzCreator.java:215) [glassfish-embedded-all-4.0-SNAPSHOT.jar:na]
at org.jvnet.hk2.internal.ClazzCreator.create(ClazzCreator.java:312) [glassfish-embedded-all-4.0-SNAPSHOT.jar:na]
at org.jvnet.hk2.internal.SystemDescriptor.create(SystemDescriptor.java:448) [glassfish-embedded-all-4.0-SNAPSHOT.jar:na]
at org.jvnet.hk2.internal.SingletonContext.findOrCreate(SingletonContext.java:107) [glassfish-embedded-all-4.0-SNAPSHOT.jar:na]
at org.jvnet.hk2.internal.Utilities.createService(Utilities.java:2203) [glassfish-embedded-all-4.0-SNAPSHOT.jar:na]
at org.jvnet.hk2.internal.ServiceLocatorImpl.getService(ServiceLocatorImpl.java:543) [glassfish-embedded-all-4.0-SNAPSHOT.jar:na]
at org.jvnet.hk2.internal.ThreeThirtyResolver.resolve(ThreeThirtyResolver.java:77) [glassfish-embedded-all-4.0-SNAPSHOT.jar:na]
at org.jvnet.hk2.internal.ClazzCreator.resolve(ClazzCreator.java:192) [glassfish-embedded-all-4.0-SNAPSHOT.jar:na]
at org.jvnet.hk2.internal.ClazzCreator.resolveAllDependencies(ClazzCreator.java:215) [glassfish-embedded-all-4.0-SNAPSHOT.jar:na]
at org.jvnet.hk2.internal.ClazzCreator.create(ClazzCreator.java:312) [glassfish-embedded-all-4.0-SNAPSHOT.jar:na]
at org.jvnet.hk2.internal.SystemDescriptor.create(SystemDescriptor.java:448) [glassfish-embedded-all-4.0-SNAPSHOT.jar:na]
at org.jvnet.hk2.internal.SingletonContext.findOrCreate(SingletonContext.java:107) [glassfish-embedded-all-4.0-SNAPSHOT.jar:na]
at org.jvnet.hk2.internal.Utilities.createService(Utilities.java:2203) [glassfish-embedded-all-4.0-SNAPSHOT.jar:na]
at org.jvnet.hk2.internal.ServiceLocatorImpl.getService(ServiceLocatorImpl.java:543) [glassfish-embedded-all-4.0-SNAPSHOT.jar:na]
at org.jvnet.hk2.internal.ThreeThirtyResolver.resolve(ThreeThirtyResolver.java:77) [glassfish-embedded-all-4.0-SNAPSHOT.jar:na]
at org.jvnet.hk2.internal.ClazzCreator.resolve(ClazzCreator.java:192) [glassfish-embedded-all-4.0-SNAPSHOT.jar:na]
at org.jvnet.hk2.internal.ClazzCreator.resolveAllDependencies(ClazzCreator.java:215) [glassfish-embedded-all-4.0-SNAPSHOT.jar:na]
at org.jvnet.hk2.internal.ClazzCreator.create(ClazzCreator.java:312) [glassfish-embedded-all-4.0-SNAPSHOT.jar:na]
at org.jvnet.hk2.internal.SystemDescriptor.create(SystemDescriptor.java:448) [glassfish-embedded-all-4.0-SNAPSHOT.jar:na]
at org.jvnet.hk2.internal.PerLookupContext.findOrCreate(PerLookupContext.java:69) [glassfish-embedded-all-4.0-SNAPSHOT.jar:na]
at org.jvnet.hk2.internal.Utilities.createService(Utilities.java:2203) [glassfish-embedded-all-4.0-SNAPSHOT.jar:na]
at org.jvnet.hk2.internal.ServiceLocatorImpl.getService(ServiceLocatorImpl.java:573) [glassfish-embedded-all-4.0-SNAPSHOT.jar:na]
at org.jvnet.hk2.internal.ServiceLocatorImpl.getService(ServiceLocatorImpl.java:560) [glassfish-embedded-all-4.0-SNAPSHOT.jar:na]
at com.sun.enterprise.glassfish.bootstrap.ConfiguratorImpl.configure(ConfiguratorImpl.java:64) [glassfish-embedded-all-4.0-SNAPSHOT.jar:na]
at com.sun.enterprise.glassfish.bootstrap.GlassFishImpl.configure(GlassFishImpl.java:71) [glassfish-embedded-all-4.0-SNAPSHOT.jar:na]
at com.sun.enterprise.glassfish.bootstrap.GlassFishImpl.<init>(GlassFishImpl.java:65) [glassfish-embedded-all-4.0-SNAPSHOT.jar:na]
at com.sun.enterprise.glassfish.bootstrap.StaticGlassFishRuntime$1.<init>(StaticGlassFishRuntime.java:115) [glassfish-embedded-all-4.0-SNAPSHOT.jar:na]
at com.sun.enterprise.glassfish.bootstrap.StaticGlassFishRuntime.newGlassFish(StaticGlassFishRuntime.java:115) [glassfish-embedded-all-4.0-SNAPSHOT.jar:na]
at org.ops4j.pax.exam.glassfish.embedded.EmbeddedGlassFishLaunchTest.launchGlassFish(EmbeddedGlassFishLaunchTest.java:45) [test-classes/:na]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.7.0_17]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[na:1.7.0_17]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.7.0_17]
at java.lang.reflect.Method.invoke(Method.java:601) ~[na:1.7.0_17]
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47) [junit-4.11.jar:na]
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) [junit-4.11.jar:na]
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44) [junit-4.11.jar:na]
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) [junit-4.11.jar:na]
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271) [junit-4.11.jar:na]
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70) [junit-4.11.jar:na]
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50) [junit-4.11.jar:na]
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238) [junit-4.11.jar:na]
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63) [junit-4.11.jar:na]
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236) [junit-4.11.jar:na]
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53) [junit-4.11.jar:na]
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229) [junit-4.11.jar:na]
at org.junit.runners.ParentRunner.run(ParentRunner.java:309) [junit-4.11.jar:na]
at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:252) [surefire-junit4-2.12.2.jar:2.12.2]
at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:141) [surefire-junit4-2.12.2.jar:2.12.2]
at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:112) [surefire-junit4-2.12.2.jar:2.12.2]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.7.0_17]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[na:1.7.0_17]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.7.0_17]
at java.lang.reflect.Method.invoke(Method.java:601) ~[na:1.7.0_17]
at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189) [surefire-api-2.12.2.jar:2.12.2]
at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165) [surefire-booter-2.12.2.jar:2.12.2]
at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85) [surefire-booter-2.12.2.jar:2.12.2]
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:113) [surefire-booter-2.12.2.jar:2.12.2]
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75) [surefire-booter-2.12.2.jar:2.12.2]
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.657 sec <<< FAILURE!
Results :
Tests in error:
launchGlassFish(org.ops4j.pax.exam.glassfish.embedded.EmbeddedGlassFishLaunchTest): A MultiException has 8 exceptions. They are:(..)
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0
So, it is clearly a issue with the custom domain.xml you have used.
Could you please tell me where did you get this domain.xml from?
@glassfishrobot Commented bhavanishankar said: The above results were found with the latest 4.0-SNAPSHOT of Embedded GlassFish.
@glassfishrobot Commented bhavanishankar said: For me, it looks like you are trying to just copy the domain.xml from an installed glassfish into src/main/resources/glassfish-config/domain.xml and try to use it from your program.
That will not work because the full glassfish's domain.xml will be pointing to some of the configurations that are specific to the full glassfish's domain.
So if your idea is to make use of the entire full GlassFish's domain, then instead of just using the domain.xml, you should bootstrap glassfish pointing to the entire domain directory of the full GlassFish, like this:
// Don't do this ;-> // gfProps.setConfigFileURI(domainXml.getAbsoluteFile().toURI().toString());
// Instead point the Embedded GlassFish to your installed GF's domain dir :-> gfProps.setInstanceRoot(System.getEnv("S1AS_HOME") + "/domains/domain1");
Reopen the issue if the above suggestion does not work.
@glassfishrobot Commented Was assigned to bhavanishankar
@glassfishrobot Commented This issue was imported from java.net JIRA GLASSFISH-20270
@glassfishrobot Commented Reported by hwellmann
@glassfishrobot Commented Marked as invalid on Thursday, April 18th 2013, 9:21:04 pm
I'm trying to deploy a WAR on Embedded Glassfish 4.0-b72 which worked fine on 3.1.2.2.
Now there is a whole lot of error messages of the following kind.
Apr 10, 2013 9:54:59 PM com.sun.enterprise.deployment.node.SaxParserHandler startElement SEVERE: enterprise.deployment.backend.invalidDescriptorMappingFailure Apr 10, 2013 9:54:59 PM org.glassfish.web.deployment.archivist.WebArchivist getPlainDefaultWebXmlBundleDescriptor WARNING: Error in parsing default-web.xml
Since the resource bundle key enterprise.deployment.backend.invalidDescriptorMappingFailure does not get resolved, I can't see what the real problem is.
(Possible cause: My domain.xml was created with b82, which may not be backward compatible with b72. b72 is the latest Embedded artifact I could find on Maven Central.)
Affected Versions
[4.0_dev]