facebook

what is the version of servlet.jar in MyEclipse 3.8.2?

  1. MyEclipse Archived
  2.  > 
  3. Application Servers and Deployment
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #218683 Reply

    jklcom99
    Member

    Hi,

    I’m trying to deploy a web app to Jboss 4.0 and I’m getting this error when start Jboss:

    18:57:44,584 INFO [TomcatDeployer] deploy, ctxPath=/xsl, warUrl=file:/C:/jboss-4.0.0RC1/server/default/deploy/xsl.war/
    18:57:45,255 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)
    at org.jboss.mx.loading.UnifiedLoaderRepository3.loadClassFromClassLoader(UnifiedLoaderRepository3.java:265)
    at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:175)
    at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:463)
    at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:374)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:282)
    at java.net.FactoryURLClassLoader.loadClass(URLClassLoader.java:575)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:282)

    #218687 Reply

    Riyad Kalla
    Member

    The exception you are getting isn’t really related to MyEclipse, you are just flat out missing your javax.servlet.jar file, it is usually in your <jboss dir>\server\default\lib directory….

    If you navigate to your JBoss 4 connector settings in MyEclipse, what “Server name” are you using? If it is NOT default, then navigate to your <jboss dir>\server\SOME_NAME\lib directory where SOME_NAME is the name you used, and make sure you have all the necessary JARs in your lib dir… if you don’t, you can copy all of them from default\lib over.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: what is the version of servlet.jar in MyEclipse 3.8.2?

You must be logged in to post in the forum log in