- This topic has 1 reply, 2 voices, and was last updated 20 years, 1 month ago by Riyad Kalla.
-
AuthorPosts
-
jklcom99MemberHi,
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)
Riyad KallaMemberThe 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.
-
AuthorPosts