mszalay
May 29th, 2008, 05:29 AM
Hi all
I'm trying to build my first JSF-WebApplication with SpringDM and SpringSource.
I managed to get all JSF bundles and my web application starts up.
I get the following error when I try to start the JSF Servlet:
org.apache.myfaces.webapp.StartupServletContextLis tener.unknown E Error initializing ServletContext
javax.faces.FacesException: java.lang.ClassNotFoundException: org.apache.myfaces.config.impl.digester.elements.F acesConfig
at org.apache.myfaces.config.FacesConfigurator.config ure(FacesConfigurator.java:144)
at org.apache.myfaces.webapp.StartupServletContextLis tener.initFaces(StartupServletContextListener.java :68)
at org.apache.myfaces.webapp.StartupServletContextLis tener.contextInitialized(StartupServletContextList ener.java:51)
at org.apache.catalina.core.StandardContext.listenerS tart(StandardContext.java:3843)
at org.apache.catalina.core.StandardContext.start(Sta ndardContext.java:4350)
at org.apache.catalina.core.ContainerBase.addChildInt ernal(ContainerBase.java:791)
at org.apache.catalina.core.ContainerBase.addChild(Co ntainerBase.java:771)
at org.apache.catalina.core.StandardHost.addChild(Sta ndardHost.java:525)
at com.springsource.platform.servlet.tomcat.TomcatSer vletContainer.addContext(TomcatServletContainer.ja va:658)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.springframework.osgi.service.importer.internal .aop.ServiceInvoker.doInvoke(ServiceInvoker.java:5 9)
at org.springframework.osgi.service.importer.internal .aop.ServiceInvoker.invoke(ServiceInvoker.java:67)
at org.springframework.aop.framework.ReflectiveMethod Invocation.proceed(ReflectiveMethodInvocation.java :171)
at org.springframework.aop.support.DelegatingIntroduc tionInterceptor.doProceed(DelegatingIntroductionIn terceptor.java:131)
So, SpringSource starts my app with Tomcat, Tomcat starts the MyFaces web listener, the web listeners read the JSF config using digester, but digester cannot find the myfaces-classes.
It's clear why digester does not find the myfaces-classes, because it has no import-package or dependency to myfaces.
But how do we solve the problem? How can MyFaces be used in that situation?
Regards Michael
I'm trying to build my first JSF-WebApplication with SpringDM and SpringSource.
I managed to get all JSF bundles and my web application starts up.
I get the following error when I try to start the JSF Servlet:
org.apache.myfaces.webapp.StartupServletContextLis tener.unknown E Error initializing ServletContext
javax.faces.FacesException: java.lang.ClassNotFoundException: org.apache.myfaces.config.impl.digester.elements.F acesConfig
at org.apache.myfaces.config.FacesConfigurator.config ure(FacesConfigurator.java:144)
at org.apache.myfaces.webapp.StartupServletContextLis tener.initFaces(StartupServletContextListener.java :68)
at org.apache.myfaces.webapp.StartupServletContextLis tener.contextInitialized(StartupServletContextList ener.java:51)
at org.apache.catalina.core.StandardContext.listenerS tart(StandardContext.java:3843)
at org.apache.catalina.core.StandardContext.start(Sta ndardContext.java:4350)
at org.apache.catalina.core.ContainerBase.addChildInt ernal(ContainerBase.java:791)
at org.apache.catalina.core.ContainerBase.addChild(Co ntainerBase.java:771)
at org.apache.catalina.core.StandardHost.addChild(Sta ndardHost.java:525)
at com.springsource.platform.servlet.tomcat.TomcatSer vletContainer.addContext(TomcatServletContainer.ja va:658)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.springframework.osgi.service.importer.internal .aop.ServiceInvoker.doInvoke(ServiceInvoker.java:5 9)
at org.springframework.osgi.service.importer.internal .aop.ServiceInvoker.invoke(ServiceInvoker.java:67)
at org.springframework.aop.framework.ReflectiveMethod Invocation.proceed(ReflectiveMethodInvocation.java :171)
at org.springframework.aop.support.DelegatingIntroduc tionInterceptor.doProceed(DelegatingIntroductionIn terceptor.java:131)
So, SpringSource starts my app with Tomcat, Tomcat starts the MyFaces web listener, the web listeners read the JSF config using digester, but digester cannot find the myfaces-classes.
It's clear why digester does not find the myfaces-classes, because it has no import-package or dependency to myfaces.
But how do we solve the problem? How can MyFaces be used in that situation?
Regards Michael