You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by horri khalid <ho...@gmail.com> on 2008/06/04 12:15:46 UTC

SEVERE: Error configuring application listener

Hi Guys

I'm new in this ML, I hope that I can be useful and helpful for others.

Now I have a serious problem which take from me a lot of time to get around
it, but until now I have no solution.
So the problem is started when I upgraded tomcat from 5 to 6, I have a
simple application of integration JSF and Spring.
When I deploy my app I receive this stack :


*SEVERE: Error configuring application listener of class
org.springframework.web.context.ContextLoaderListener*
java.lang.ClassNotFoundException:
org.springframework.web.context.ContextLoaderListener
    at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1360)
    at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1206)
    at
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3786)
    at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4350)
    at
org.apache.catalina.startup.HostConfig.checkResources(HostConfig.java:1114)
    at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1212)
    at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:293)
    at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
    at
org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1337)
    at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1601)
    at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1610)
    at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1590)
    at java.lang.Thread.run(Thread.java:595)
Jun 4, 2008 10:29:20 AM org.apache.catalina.core.StandardContext
listenerStart
SEVERE: Skipped installing application listeners due to previous error(s)
Jun 4, 2008 10:29:20 AM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Jun 4, 2008 10:29:20 AM org.apache.catalina.core.StandardContext start
SEVERE: Context [/Spring] startup failed due to previous errors

 *My envirenment :*
--------------------------------
OS    : Windows XP sp2.
IDE   : MyEclipse 5.5
JDK  : 1.6.0_05
Tomcat : 6
Spring  : 2
JSF     : 1.2

*web.xml:*
-----------------
 <?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance" version="2.5"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
  <context-param>
    <param-name>javax.faces.CONFIG_FILES</param-name>
    <param-value>/WEB-INF/faces-config.xml</param-value>
  </context-param>

 <listener>

<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>

 </listener>

<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/classes/applicationContext.xml</param-value>
</context-param>
  <servlet>
    <servlet-name>Faces Servlet</servlet-name>
    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
    <load-on-startup>1</load-on-startup>
  </servlet>
  <servlet-mapping>
    <servlet-name>Faces Servlet</servlet-name>
    <url-pattern>*.jsf</url-pattern>
  </servlet-mapping>
  <welcome-file-list>
    <welcome-file>index.jsp</welcome-file>
  </welcome-file-list>
</web-app>
-----------------------------



*faces-config.xml:*
------------------------------
<?xml version='1.0' encoding='UTF-8'?>

<faces-config xmlns="http://java.sun.com/xml/ns/javaee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd"
    version="1.2">
    <application>
        <variable-resolver>
            org.springframework.web.jsf.DelegatingVariableResolver
        </variable-resolver>
    </application>
</faces-config>
--------------------------------------------------------

thanks in advance and any help is appreciated.

Khaled


------------------------------------------------
I "try", I "catch", "finally" I WIN .... :-)