From: alex.kern on
have you found a reason? I'm experiencing the same problem!

On Jan 13, 1:34 am, "fastcars" <bruce.j.mcdon...(a)gmail.com> wrote:
> I am using myfaces/tobago in a webapp and having problems getting a
> clean startup in tomcat
> So I reinstall tomcat, redeploy as below no joy.
>
> The apache myfaces site alleges it should work in apache 5.0.x out of
> the box.......
> I am obviously doing something wrong. The issue is related to the
> tomcat classloader installing listeners and filters, and at that point,
> not having access (I suspect) to the WEB-INF/lib/*.jar files for the
> web app in question. Placing these jars in common/lib gets me a bit
> further, however I them get a failure inside tobago context listener.
>
> I unzip tomcat.5.0.30 onto my windows box.
> Deploy a sample app I have to CATALINA_HOME/webapps/jsftest
>
> go to CATALINA_HOME/bin and do a catalina run
>
> 2007-01-13 11:07:29 StandardContext[/admin]Error configuring
> application listener of class
> org.apache.myfaces.webapp.StartupServletContextListener
> java.lang.NoClassDefFoundError: javax/servlet/ServletContextListener
> at java.lang.ClassLoader.defineClass1(Native Method)
>
> SO i then place the myfaces jars into
>
> CATALINA_HOME/common/lib, delete tomcat logs (so it clear what errors
> are derived from what), restrart
>
> Error this time as below.
>
> Could be whats in my web.xml, however this was taken from tobago blank
> war
> Anyone have any ideas ?
>
> 2007-01-13 11:25:01 StandardContext[/admin]Exception sending context
> initialized event to listener instance of class
> org.apache.myfaces.tobago.webapp.TobagoServletContextListener
> java.lang.RuntimeException: Error while deploy process. Tobago can't be
> initialized! Application will not run!
> at
> org.apache.myfaces.tobago.webapp.TobagoServletContextListener.contextInitialized(TobagoServletContextListener.java:72)
> at
> org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3831)
> at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:4323)
> at
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:823)
> at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
> at
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
> at
> org.apache.catalina.core.StandardHostDeployer.addChild(StandardHostDeployer.java:903)
> 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:585)
> at
> org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:216)
> at org.apache.commons.digester.SetNextRule.end(SetNextRule.java:208)
> at org.apache.commons.digester.Rule.end(Rule.java:228)
> at org.apache.commons.digester.Digester.endElement(Digester.java:1067)
> at
> org.apache.catalina.util.CatalinaDigester.endElement(CatalinaDigester.java:76)
> at
> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:633)
> at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:1241)
> at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1685)
> at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:368)
> at
> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:834)
> at
> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)
> at
> com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148)
> at
> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1242)
> at org.apache.commons.digester.Digester.parse(Digester.java:1591)
> at
> org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:488)
> at
> org.apache.catalina.core.StandardHost.install(StandardHost.java:863)
> at
> org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:483)
> at
> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:427)
> at org.apache.catalina.startup.HostConfig.start(HostConfig.java:983)
> at
> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:349)
> at
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
> at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1091)
> at org.apache.catalina.core.StandardHost.start(StandardHost.java:789)
> at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
> at
> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478)
> at
> org.apache.catalina.core.StandardService.start(StandardService.java:480)
> at
> org.apache.catalina.core.StandardServer.start(StandardServer.java:2313)
> at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
> 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:585)
> at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
> Caused by: javax.faces.FacesException: No config file found:
> '/WEB-INF/tobago-config.xml'. Tobago can't run without configuration.
> at
> org.apache.myfaces.tobago.config.TobagoConfigParser.parse(TobagoConfigParser.java:101)
> at
> org.apache.myfaces.tobago.config.TobagoConfigParser.parse(TobagoConfigParser.java:47)
> at
> org.apache.myfaces.tobago.webapp.TobagoServletContextListener.contextInitialized(TobagoServletContextListener.java:53)
> ... 44 more


 | 
Pages: 1
Prev: '\u000a' and '\u000d'
Next: Tomcat error with bean