I'm not sure if this is the problem you are seeing....

Previously when we were unpacking plugins we supplied the file system location of the unpacked web app (inside the plugin) to the web container. IMO this isn't appropriate when using a packed war in osgi. We may have to fix tomcat so it doesn't think it needs this file system location. I haven't seen a problem in jetty 8 from this but thought there were problems earlier in jetty 5 or 6 when we left it out.

thanks
david jencks

On Nov 27, 2009, at 12:16 AM, Forrest Xia wrote:

Hi Jarek,

Yes, as you pointed out, the classes in util bundle use many classes not imported by the util bundle, that caused resources not found and class not found exceptions when booting the tomcat server.

Follow your instructions, I unified StringManager class in catalina bundle and finally add DynamicImport-Package * to util pom. then the server can start now, and seems http port is open on 8080 as well.

But I noticed an error msg printed out on the console:
[********************************* ] 84% 7s Starting org.apache.ger...2009-11-27 16:06:22,011 ERROR [GlobalResourcesLifecycleListener] No global naming context defined for server

I googled for a while, not find any clue about it.

After that, I tried to load the welcome-tomcat car, it failed with exception as follows: ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="org.apache.geronimo.configs/welcome- tomcat/3.0-SNAPSHOT/car? J2EEApplication =null,j2eeType=WebModule,name=org.apache.geronimo.configs/welcome- tomcat/3.0-SNAPSHOT/car"
java.lang.NullPointerException
at org .apache .geronimo.tomcat.TomcatWebAppContext.<init>(TomcatWebAppContext.java: 172) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun .reflect .NativeConstructorAccessorImpl .newInstance(NativeConstructorAccessorImpl.java:39) at sun .reflect .DelegatingConstructorAccessorImpl .newInstance(DelegatingConstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at org.apache.xbean.recipe.ReflectionUtil $ConstructorFactory.create(ReflectionUtil.java:952) at org .apache.xbean.recipe.ObjectRecipe.internalCreate(ObjectRecipe.java: 276) at org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:96) at org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:61) at org .apache .geronimo .gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:917) at org .apache .geronimo .gbean .runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java: 269) at org .apache .geronimo .gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:103) at org .apache .geronimo.gbean.runtime.GBeanInstance.start(GBeanInstance.java:530) at org .apache .geronimo .gbean.runtime.GBeanDependency.attemptFullStart(GBeanDependency.java: 110) at org .apache .geronimo .gbean.runtime.GBeanDependency.addTarget(GBeanDependency.java:145) at org.apache.geronimo.gbean.runtime.GBeanDependency $1.running(GBeanDependency.java:119) at org .apache .geronimo .kernel .basic .BasicLifecycleMonitor.fireRunningEvent(BasicLifecycleMonitor.java: 175) at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.access $300(BasicLifecycleMonitor.java:44) at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor $RawLifecycleBroadcaster.fireRunningEvent(BasicLifecycleMonitor.java: 253) at org .apache .geronimo .gbean .runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java: 295) at org .apache .geronimo .gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:103) at org .apache .geronimo .gbean .runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java: 125) at org .apache .geronimo .gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:544) at org .apache .geronimo .kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:385) at org .apache .geronimo .kernel .config .ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java: 461) at org .apache .geronimo .kernel .config .KernelConfigurationManager.start(KernelConfigurationManager.java:223) at org .apache .geronimo .kernel .config .SimpleConfigurationManager .startConfiguration(SimpleConfigurationManager.java:715) at org .apache .geronimo.system.main.EmbeddedDaemon.doStartup(EmbeddedDaemon.java: 149) at org .apache .geronimo.system.main.EmbeddedDaemon.execute(EmbeddedDaemon.java:81) at org.apache.geronimo.main.Bootstrapper.execute(Bootstrapper.java:109) at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65) at org.apache.geronimo.cli.daemon.DaemonCLI.main(DaemonCLI.java: 32)

Any comments?

Forrest

Reply via email to