Two Laptop Bag
The moose likes Servlets and the fly likes error 500 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "error 500" Watch "error 500" New topic

error 500

ashok ganesan
Ranch Hand

Joined: Jan 02, 2007
Posts: 50
// a simple servlet programminmg

if i try to run this program i get error 500
the error details are..

javax.servlet.ServletException: Cannot allocate servlet instance for path /servlet/forwardat org.apache.catalina.servlets.InvokerServlet.serveRequest(
at org.apache.catalina.servlets.InvokerServlet.doGet(
at javax.servlet.http.HttpServlet.service(
at javax.servlet.http.HttpServlet.service(
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(

root cause

java.lang.IllegalAccessException: Class org.apache.catalina.core.StandardWrapper can not access a member of class forward with modifiers ""
at sun.reflect.Reflection.ensureMemberAccess(
at java.lang.Class.newInstance0(
at java.lang.Class.newInstance(
at org.apache.catalina.core.StandardWrapper.loadServlet(

if someone could help me out



[BSouther: Added UBB CODE tags]
[ January 02, 2007: Message edited by: Ben Souther ]
Jaikiran Pai

Joined: Jul 20, 2005
Posts: 10441

Make it:

[My Blog] [JavaRanch Journal]
ashok ganesan
Ranch Hand

Joined: Jan 02, 2007
Posts: 50
hi a lot that code runs after changing ...but that public .. usually java code run without that also not in servlets
Ben Souther

Joined: Dec 11, 2004
Posts: 13410

ashok ganesan,
Welcome to JavaRanch!

In an effort to help you get the most from our forums, we've compiled a
list of tips for asking questions here. You can find the list in our
FAQ section here.
In particular please see:

Abbreviations such as "u" or "ur" in
place of "you" and "you are" or "you're" confound language translation software making
it hard for our non-English speaking members to read your posts.
"plz" is not a word in the English language.

Again, welcome to JavaRanch and good luck with your question.

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
I agree. Here's the link:
subject: error 500
It's not a secret anymore!