tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Manohar Kamath <manoharu...@yahoo.com>
Subject java.lang.ClassFormatError on Servlet
Date Tue, 08 Apr 2003 12:12:38 GMT

Dear All,

I am finding a strange problem with a servlet.

No problem while compiling, but i am getting problem while calling the servlet

throws error :

type Exception report

message 

description The server encountered an internal error () that prevented it from fulfilling
this request.

exception 
javax.servlet.ServletException: Cannot allocate servlet instance for path /servlet/MyServlet
at org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java:435)	at org.apache.catalina.servlets.InvokerServlet.doGet(InvokerServlet.java:180)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)

root cause 
java.lang.ClassFormatError: MyServlet (Extra bytes at the end of the class file)	at java.lang.ClassLoader.defineClass0(Native
Method)	at java.lang.ClassLoader.defineClass(ClassLoader.java:509)	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)

 

will anyone can help on this

 

thanks in advance,

Manohar Kamath

 



---------------------------------
Do you Yahoo!?
Yahoo! Tax Center - File online, calculators, forms, and more
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message