I have the trunk (4.0.1-SNAPSHOT) checked out and have successfully built
everything. Because of bug 21118 (
https://java.net/jira/browse/GLASSFISH-21118) I am trying to make a change
to the CoyoteAdapter and build web-core.jar and copy it to
glassfish/modules of my glassfish-4.0.1 b08 app server. So this is the
promoted build (that I did not make). I figured I could replace the
web-core.jar, delete the osgi-cache for the domain and get my changes in
there to test.
The app server will not start the web container complaining of:
MissingResourceException: Can't find org.apache.catalina.core.LogMessages
bundle
Are there instructions anywhere on something I should do differently? Is
this not the correct way to test a change? I followed the FullBuild page
and everything seemed happy. Why is the web-core.jar build causing the
LogMessages bundle to not be found?
Here is the stack trace I get during startup:
<
2014-07-19 09:34:46.223 - :: ERROR [RunLevelControllerThread-1405776885223]
javax.enterprise.system.core.ee:257 - Unable to start container
com.sun.enterprise.web.WebContainer
org.glassfish.hk2.api.MultiException: A MultiException has 3 exceptions.
They are:
1. java.lang.ExceptionInInitializerError
2. java.lang.IllegalStateException: Unable to perform operation: create on
com.sun.enterprise.web.EmbeddedWebContainer
3. java.lang.IllegalStateException: Unable to perform operation: post
construct on com.sun.enterprise.web.WebContainer
at
org.jvnet.hk2.internal.ClazzCreator.create(ClazzCreator.java:394)
[hk2-locator.jar:na]
at
org.jvnet.hk2.internal.SystemDescriptor.create(SystemDescriptor.java:460)
[hk2-locator.jar:na]
at
org.jvnet.hk2.internal.SingletonContext$1.compute(SingletonContext.java:114)
~[na:na]
at
org.jvnet.hk2.internal.SingletonContext$1.compute(SingletonContext.java:102)
~[na:na]
at
org.glassfish.hk2.utilities.cache.Cache$OriginThreadAwareFuture$1.call(Cache.java:97)
~[hk2-utils.jar:na]
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
~[na:1.8.0_11]
at
org.glassfish.hk2.utilities.cache.Cache$OriginThreadAwareFuture.run(Cache.java:154)
~[hk2-utils.jar:na]
at org.glassfish.hk2.utilities.cache.Cache.compute(Cache.java:199)
~[hk2-utils.jar:na]
at
org.jvnet.hk2.internal.SingletonContext.findOrCreate(SingletonContext.java:153)
~[na:na]
at
org.jvnet.hk2.internal.Utilities.createService(Utilities.java:2258)
[hk2-locator.jar:na]
at
org.jvnet.hk2.internal.ServiceLocatorImpl.internalGetService(ServiceLocatorImpl.java:661)
~[na:na]
at
org.jvnet.hk2.internal.ServiceLocatorImpl.getService(ServiceLocatorImpl.java:626)
~[na:na]
at
com.sun.enterprise.web.WebContainer.postConstruct(WebContainer.java:736)
~[web-glue.jar:na]
at
org.jvnet.hk2.internal.ClazzCreator.postConstructMe(ClazzCreator.java:329)
[hk2-locator.jar:na]
at
org.jvnet.hk2.internal.ClazzCreator.create(ClazzCreator.java:377)
[hk2-locator.jar:na]
at
org.jvnet.hk2.internal.SystemDescriptor.create(SystemDescriptor.java:460)
[hk2-locator.jar:na]
at
org.jvnet.hk2.internal.SingletonContext$1.compute(SingletonContext.java:114)
~[na:na]
at
org.jvnet.hk2.internal.SingletonContext$1.compute(SingletonContext.java:102)
~[na:na]
at
org.glassfish.hk2.utilities.cache.Cache$OriginThreadAwareFuture$1.call(Cache.java:97)
~[hk2-utils.jar:na]
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
~[na:1.8.0_11]
at
org.glassfish.hk2.utilities.cache.Cache$OriginThreadAwareFuture.run(Cache.java:154)
~[hk2-utils.jar:na]
at org.glassfish.hk2.utilities.cache.Cache.compute(Cache.java:199)
~[hk2-utils.jar:na]
at
org.jvnet.hk2.internal.SingletonContext.findOrCreate(SingletonContext.java:153)
~[na:na]
at
org.jvnet.hk2.internal.Utilities.createService(Utilities.java:2258)
[hk2-locator.jar:na]
at
org.jvnet.hk2.internal.ServiceHandleImpl.getService(ServiceHandleImpl.java:98)
[hk2-locator.jar:na]
at
org.jvnet.hk2.internal.ServiceHandleImpl.getService(ServiceHandleImpl.java:87)
[hk2-locator.jar:na]
at
org.glassfish.internal.data.EngineInfo.getContainer(EngineInfo.java:86)
~[internal-api.jar:na]
at
org.glassfish.kernel.javaee.WebContainerStarter.startWebContainer(WebContainerStarter.java:241)
[javaee-kernel.jar:na]
at
org.glassfish.kernel.javaee.WebContainerStarter.postConstruct(WebContainerStarter.java:180)
[javaee-kernel.jar:na]
at
org.jvnet.hk2.internal.ClazzCreator.postConstructMe(ClazzCreator.java:329)
[hk2-locator.jar:na]
at
org.jvnet.hk2.internal.ClazzCreator.create(ClazzCreator.java:377)
[hk2-locator.jar:na]
at
org.jvnet.hk2.internal.SystemDescriptor.create(SystemDescriptor.java:460)
[hk2-locator.jar:na]
at
org.glassfish.hk2.runlevel.internal.AsyncRunLevelContext.findOrCreate(AsyncRunLevelContext.java:225)
[hk2-runlevel.jar:na]
at
org.glassfish.hk2.runlevel.RunLevelContext.findOrCreate(RunLevelContext.java:82)
[hk2-runlevel.jar:na]
at
org.jvnet.hk2.internal.Utilities.createService(Utilities.java:2258)
[hk2-locator.jar:na]
at
org.jvnet.hk2.internal.ServiceHandleImpl.getService(ServiceHandleImpl.java:98)
[hk2-locator.jar:na]
at
org.jvnet.hk2.internal.ServiceHandleImpl.getService(ServiceHandleImpl.java:87)
[hk2-locator.jar:na]
at
org.glassfish.hk2.runlevel.internal.CurrentTaskFuture$QueueRunner.oneJob(CurrentTaskFuture.java:1162)
[hk2-runlevel.jar:na]
at
org.glassfish.hk2.runlevel.internal.CurrentTaskFuture$QueueRunner.run(CurrentTaskFuture.java:1147)
[hk2-runlevel.jar:na]
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
[na:1.8.0_11]
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
[na:1.8.0_11]
at java.lang.Thread.run(Thread.java:745) [na:1.8.0_11]
Caused by: java.lang.ExceptionInInitializerError: null
at
org.apache.catalina.core.StandardService.<clinit>(StandardService.java:89)
~[web-core.jar:na]
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method) ~[na:1.8.0_11]
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
~[na:1.8.0_11]
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
~[na:1.8.0_11]
at java.lang.reflect.Constructor.newInstance(Constructor.java:408)
~[na:1.8.0_11]
at
org.glassfish.hk2.utilities.reflection.ReflectionHelper.makeMe(ReflectionHelper.java:1104)
~[hk2-utils.jar:na]
at
org.jvnet.hk2.internal.ClazzCreator.createMe(ClazzCreator.java:274)
[hk2-locator.jar:na]
at
org.jvnet.hk2.internal.ClazzCreator.create(ClazzCreator.java:368)
[hk2-locator.jar:na]
... 41 common frames omitted
Caused by: java.util.MissingResourceException: Can't find
org.apache.catalina.core.LogMessages bundle
at java.util.logging.Logger.setupResourceInfo(Logger.java:1942)
~[na:1.8.0_11]
at java.util.logging.Logger.<init>(Logger.java:380) ~[na:1.8.0_11]
at java.util.logging.LogManager.demandLogger(LogManager.java:554)
~[na:1.8.0_11]
at java.util.logging.Logger.demandLogger(Logger.java:455)
~[na:1.8.0_11]
at java.util.logging.Logger.getLogger(Logger.java:553)
~[na:1.8.0_11]
at
org.apache.catalina.core.StandardServer.<clinit>(StandardServer.java:106)
~[web-core.jar:na]
... 49 common frames omitted
>