Announcement Announcement Module
Collapse
No announcement yet.
Error configuring application listener of class org.springfr Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Error configuring application listener of class org.springfr

    Hi,

    I'm trying to test a web app using spring framework in eclipse 3.0.
    When I start JBoss 4 in Eclipse, I'm getting this error:

    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.ContextLoaderListe ner
    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(Secure ClassLoader.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.j ava:187)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:2 89)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launche r.java:274)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:2 82)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:2 82)
    at org.jboss.mx.loading.RepositoryClassLoader.loadCla ssLocally(RepositoryClassLoader.java:160)

  • #2
    You can use Jarhoo to help resolve NoClassDefFoundErrors:

    http://www.jarhoo.com

    I just did a search on there and in JBoss 3 the jar file you need is in the common\lib directory and is called servlet-api.jar.

    Is this file in your classpath or in the lib directory of your war file?

    Regards

    Michael

    Comment

    Working...
    X