| Author |
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(InvokerServlet.java:386) at org.apache.catalina.servlets.InvokerServlet.doGet(InvokerServlet.java:131) at javax.servlet.http.HttpServlet.service(HttpServlet.java:696) at javax.servlet.http.HttpServlet.service(HttpServlet.java:809) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:198) ....................... ....................... at java.lang.Thread.run(Thread.java:534) 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(Reflection.java:57) at java.lang.Class.newInstance0(Class.java:302) at java.lang.Class.newInstance(Class.java:261) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:847) ...................... ....................... at java.lang.Thread.run(Thread.java:534) if someone could help me out regards ashok [BSouther: Added UBB CODE tags] [ January 02, 2007: Message edited by: Ben Souther ]
|
 |
Jaikiran Pai
Marshal
Joined: Jul 20, 2005
Posts: 8141
|
|
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
Sheriff
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: UseRealWords 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. -Ben
|
Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
|
 |
 |
|
|
subject: error 500
|
|
|