2 Replies Latest reply on Nov 1, 2004 8:35 PM by Joan Horta Tosas

    ClassNotFoundException: org.springframework.web.context.Cont

    Jeff Lu Newbie

      Hi,

      I'm new to Jboss. I'm getting this error when try to deploy a web app using springframework:

      What am I missing? Thank you

      15:46:54,283 INFO [TomcatDeployer] deploy, ctxPath=/xsl, warUrl=file:/C:/jboss-4.0.0RC1/server/default/deploy/xsl.war/
      15:46:55,945 ERROR [Engine] StandardContext[/xsl]Error configuring application listener of class org.springframework.web.context.ContextLoaderListener
      java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
      at java.net.URLClassLoader$1.run(URLClassLoader.java:199)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
      at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3775)
      at org.apache.catalina.core.StandardContext.start(StandardContext.java:4343)
      at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:823)

        • 1. Re: ClassNotFoundException: org.springframework.web.context.
          Jeff Lu Newbie

          I'm getting this error now:

          16:39:16,287 INFO [TomcatDeployer] deploy, ctxPath=/xsl, warUrl=file:/C:/jboss-4.0.0RC1/server/default/deploy/xsl.war/
          16:39:16,858 ERROR [Engine] StandardContext[/xsl]Error configuring application listener of class org.springframework.web.context.ContextLoaderListener
          java.lang.NoClassDefFoundError: javax/servlet/ServletContextListener
          at java.lang.ClassLoader.defineClass0(Native Method)
          at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
          at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
          at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
          at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
          at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
          at java.security.AccessController.doPrivileged(Native Method)
          at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
          at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
          at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
          at java.lang.ClassLoader.loadClass(ClassLoader.java:282)
          at java.lang.ClassLoader.loadClass(ClassLoader.java:282)
          at org.jboss.mx.loading.RepositoryClassLoader.loadClassLocally(RepositoryClassLoader.java:160)

          • 2. Re: ClassNotFoundException: org.springframework.web.context.
            Joan Horta  Tosas Novice

            Are the SpringFramework jars in your WAR file or in your server/default/lib dir?