geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Forrest Xia <forres...@gmail.com>
Subject Re: ee apps in trunk
Date Fri, 27 Nov 2009 09:37:46 GMT
On Thu, Nov 26, 2009 at 12:59 PM, Jarek Gawor <jgawor@gmail.com> wrote:

> You can try running rm -rf var/cache in the assembly directory before
> starting the server.
>
> Jarek
>
> On Wed, Nov 25, 2009 at 8:20 PM, Forrest Xia <forrestxm@gmail.com> wrote:
> > Hi Jarek,
> >
> > These WARNs just happen when starting up the server, not when building
> the
> > assembly.
> >
> > Today I will give some tries on:
> > 1. welcome-tomcat-server
>
Tomcat server start failed with an ERROR msg decribed in another post. So by
the time, the tomcat osgi-ed assembly does not work.


> > 2. another simple sample built with car-maven-plugin
>

Succeed with another sample app cviewer by building it as
welcome-jetty-server did. One question is why we need to pre-compile the JSP
files when build time. If you don't do that, an exception will throws when
accessing a jsp in browser.

HTTP ERROR 503

Problem accessing /cviewer/jsp/viewclass.jsp. Reason:

    java.lang.ClassCastException:
org.apache.geronimo.kernel.osgi.BundleClassLoader cannot be cast to
java.net.URLClassLoader

Caused by:

javax.servlet.UnavailableException: java.lang.ClassCastException:
org.apache.geronimo.kernel.osgi.BundleClassLoader cannot be cast to
java.net.URLClassLoader
    at
org.eclipse.jetty.servlet.ServletHolder.makeUnavailable(ServletHolder.java:407)
    at
org.eclipse.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:452)
    at
org.eclipse.jetty.servlet.ServletHolder.doStart(ServletHolder.java:258)
    at
org.apache.geronimo.jetty8.GeronimoServletHolder.doStart(GeronimoServletHolder.java:66)
    at
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55)
    at
org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:725)
    at
org.eclipse.jetty.servlet.ServletHandler.updateMappings(ServletHandler.java:1109)
    at
org.eclipse.jetty.servlet.ServletHandler.setServletMappings(ServletHandler.java:1165)
    at
org.eclipse.jetty.servlet.ServletHandler.addServletMapping(ServletHandler.java:847)
    at
org.apache.geronimo.jetty8.WebAppContextWrapper.registerServletHolder(WebAppContextWrapper.java:460)
    at
org.apache.geronimo.jetty8.ServletHolderWrapper.<init>(ServletHolderWrapper.java:82)
    at
org.apache.geronimo.jetty8.JspServletHolderWrapper.<init>(JspServletHolderWrapper.java:51)
    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.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)

> >
> > I will post what I get.
> >
> > Thanks!
> > Forrest
> >
>

Forrest

Mime
View raw message