Forums Register Login

Http 500 error

+Pie Number of slices to send: Send
Hello All
could anyone help me out.
whenever i am trying to run my tomcat server to invoke a servlet,it always displays this error

HTTP Status 500 -

--------------------------------------------------------------------------------

type Exception report

message

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

exception

javax.servlet.ServletException: Error instantiating servlet class MyServlet
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:825)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:738)
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:526)
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
java.lang.Thread.run(Unknown Source)


root cause

java.lang.IllegalAccessException: Class org.apache.catalina.core.StandardWrapper can not access a member of class MyServlet with modifiers ""
sun.reflect.Reflection.ensureMemberAccess(Unknown Source)
java.lang.Class.newInstance0(Unknown Source)
java.lang.Class.newInstance(Unknown Source)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:825)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:738)
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:526)
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
java.lang.Thread.run(Unknown Source)


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


--------------------------------------------------------------------------------

Apache Tomcat/5.5.7
if anyone knows the solution of this please mail me the answer on meenakshi.ahuja02@gmail.com
+Pie Number of slices to send: Send
I think your servlet class or one of its member has wrong access modifier.

I'm not sure what is wrong without viewing your code,
but I think your servlet class and/or its member(s) have package-private (=default) access,
and container is complaining about that.
[ September 02, 2008: Message edited by: Bupjae Lee ]
+Pie Number of slices to send: Send
check all required class files available and having proper access modifiers
+Pie Number of slices to send: Send
Hi Dear,

From stack trace i can say that your MyServlet servlet have access modifier problem. Please check any default method access modifier, they all need to be public.
+Pie Number of slices to send: Send
Hello All,
I had a similar problem but the reason which I found out was quite different.I work on the same project from two different locations one from home and other from office through different systems.I am using Eclipse as IDE on both locations. I exported my servlets and jsp from office to home. Then I changed Server Settings(Apache 7) and my servlets were running fine. But when I created a new servlet it failed to instantiate. It was showing the same error code and message as your problem suggests. It took me some time to solve the problem by hit and trial method by when I excluded the earlier version and location of Apache ( Jar file from Java Build Path-Library in Eclipse) the problem solved for me miraculously. I wish it can be useful for you only if you are having same problem scenario.

Thanks
Vivek Agrawal
Attractive, successful people love this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 3007 times.
Similar Threads
Error in simple servlet
ServletException
[Installation] Mistake on Jforum Install task
preparedstatement throws sqlexception
Resource element in Tomcat 5.5 -- help needed
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 08:56:13.