Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
    Bookmark Topic Watch Topic
  • New Topic

java.lang.ClassFormatError: Incompatible magic value 13375 in class file mycontroller/ValidatorExc

 
Nitin Belaram
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
  • Report post to moderator
when i am calling servlet from my jsp page i am getting this error.

javax.servlet.ServletException: Servlet execution threw an exception


root cause

java.lang.ClassFormatError: Incompatible magic value 13375 in class file mycontroller/ValidatorException
java.lang.ClassLoader.defineClass1(Native Method)
java.lang.ClassLoader.defineClass(Unknown Source)
java.security.SecureClassLoader.defineClass(Unknown Source)
org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1852)
org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:876)
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1329)
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1208)
java.lang.ClassLoader.loadClassInternal(Unknown Source)
mycontroller.RegisterServlet.doPost(RegisterServlet.java:53)
javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)



note The full stack trace of the root cause is available in the Apache Tomcat/5.5.25 logs.




Please suggest what i am doing wrong or where the error lies
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Report post to moderator
Don't duplicate threads. Keep the discussion in the other one.
 
    Bookmark Topic Watch Topic
  • New Topic