run error
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   struts_problem
Posted On:   Tuesday, July 24, 2007 08:24 AM

hi, when i run build.xml file it creates jar file for ejb project but when run target comes it gives following error run: [java] java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet [java] at java.lang.ClassLoader.defineClass0(Native Method) [java] at java.lang.ClassLoader.defineClass(ClassLoader.java:502) [java] at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123) [java] at java.net.URLClassLoader.defineClass(URLClassLoader.java:250) [java] at java.net.URLClassLoader.access$100(URLClassLoader.java:54) [java] at java.net.URLClassLoader$1.run(URLClassLoader.java:193) [java] at java.security.AccessController.doPrivileged(Native Method) [ja   More>>

hi,
when i run build.xml file it creates jar file for ejb project but when run target comes it gives following error


run:
[java] java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet
[java] at java.lang.ClassLoader.defineClass0(Native Method)
[java] at java.lang.ClassLoader.defineClass(ClassLoader.java:502)
[java] at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
[java] at java.net.URLClassLoader.defineClass(URLClassLoader.java:250)
[java] at java.net.URLClassLoader.access$100(URLClassLoader.java:54)
[java] at java.net.URLClassLoader$1.run(URLClassLoader.java:193)
[java] at java.security.AccessController.doPrivileged(Native Method)
[java] at java.net.URLClassLoader.findClass(URLClassLoader.java:186)
[java] at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
[java] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265)
[java] at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
[java] at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
[java] Exception in thread "main"
[java] Java Result: 1

   <<Less

Re: run error

Posted By:   Anonymous  
Posted On:   Tuesday, July 24, 2007 09:01 AM

Hi,
check wether you have set the classpath correctly to the servlet.jar in your build.xml
Regards,
Krishna Rajendra A.
About | Sitemap | Contact