8 Replies - 2944 Views - Last Post: 10 March 2010 - 01:07 AM

#1 manoj.dec22   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 10
  • Joined: 15-September 08

Http Status 500 in servlets

Posted 10 March 2010 - 12:35 AM

javax.servlet.ServletException: Error instantiating servlet class First
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:857)
org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:565)
org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1509)
java.lang.Thread.run(Unknown Source)


root cause

java.lang.IllegalAccessException: Class org.apache.catalina.core.StandardWrapper can not access a member of class First 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:102)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:857)
org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:565)
org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1509)
java.lang.Thread.run(Unknown Source)

Is This A Good Question/Topic? 0
  • +

Replies To: Http Status 500 in servlets

#2 no2pencil   User is offline

  • Professor Snuggly Pants
  • member icon

Reputation: 6821
  • View blog
  • Posts: 31,446
  • Joined: 10-May 07

Re: Http Status 500 in servlets

Posted 10 March 2010 - 12:37 AM

Is this on your webserver, from your program, or just on a website you are viewing?

500 is generally "oops, the server messed up"
Was This Post Helpful? 0
  • +
  • -

#3 manoj.dec22   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 10
  • Joined: 15-September 08

Re: Http Status 500 in servlets

Posted 10 March 2010 - 12:45 AM

Its on my server Tomcat 6.0
Was This Post Helpful? 0
  • +
  • -

#4 no2pencil   User is offline

  • Professor Snuggly Pants
  • member icon

Reputation: 6821
  • View blog
  • Posts: 31,446
  • Joined: 10-May 07

Re: Http Status 500 in servlets

Posted 10 March 2010 - 12:47 AM

** Moved to Webservers & Hosting **

Is this on a Windows or Linux server?
Was This Post Helpful? 0
  • +
  • -

#5 manoj.dec22   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 10
  • Joined: 15-September 08

Re: Http Status 500 in servlets

Posted 10 March 2010 - 12:49 AM

windows

In log it shows

Mar 10, 2010 1:23:34 PM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Allocate exception for servlet First
java.lang.IllegalAccessException: Class org.apache.catalina.core.StandardWrapper can not access a member of class First with modifiers ""
at sun.reflect.Reflection.ensureMemberAccess(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1115)
at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:808)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:129)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:857)
at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:565)
at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1509)
at java.lang.Thread.run(Unknown Source)
Was This Post Helpful? 0
  • +
  • -

#6 no2pencil   User is offline

  • Professor Snuggly Pants
  • member icon

Reputation: 6821
  • View blog
  • Posts: 31,446
  • Joined: 10-May 07

Re: Http Status 500 in servlets

Posted 10 March 2010 - 12:56 AM

Is this code for an Applet?

Are you trying to run this from the command line?
Was This Post Helpful? 0
  • +
  • -

#7 manoj.dec22   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 10
  • Joined: 15-September 08

Re: Http Status 500 in servlets

Posted 10 March 2010 - 12:57 AM

Its not a code
its an error
Was This Post Helpful? 0
  • +
  • -

#8 no2pencil   User is offline

  • Professor Snuggly Pants
  • member icon

Reputation: 6821
  • View blog
  • Posts: 31,446
  • Joined: 10-May 07

Re: Http Status 500 in servlets

Posted 10 March 2010 - 01:01 AM

Right, it's an error. But to get the error, you ran a program. This program was created with Java code. Can you just answer my question instead of trying to correct me.

Or you could just Google it for yourself, which is all that I'm doing. *& finding plenty of results, btw*

See, rather than include any detail, you've simply thrown an error report on the screen, & I'm having a wonderful time playing 20 questions to try to figure out what you are doing, & how you've gotten to where you are.
Was This Post Helpful? 0
  • +
  • -

#9 no2pencil   User is offline

  • Professor Snuggly Pants
  • member icon

Reputation: 6821
  • View blog
  • Posts: 31,446
  • Joined: 10-May 07

Re: Http Status 500 in servlets

Posted 10 March 2010 - 01:07 AM

Here's another question, did you ever correct your classpath as suggested in this post?
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1