aspose file tools*
The moose likes Tomcat and the fly likes Exception  while running tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Exception  while running tomcat" Watch "Exception  while running tomcat" New topic
Author

Exception while running tomcat

arekonda ramesh babu
Ranch Hand

Joined: Apr 11, 2006
Posts: 35
hai when iam deploying under tomcat 5.0
got this Exception:
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 Mine
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
java.lang.Thread.run(Thread.java:595)


root cause

java.lang.IllegalAccessException: Class org.apache.catalina.core.StandardWrapper can not access a member of class Mine with modifiers ""
sun.reflect.Reflection.ensureMemberAccess(Reflection.java:65)
java.lang.Class.newInstance0(Class.java:344)
java.lang.Class.newInstance(Class.java:303)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
java.lang.Thread.run(Thread.java:595)


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


it compiles fine and when posting this into web-inf/classes

and running got this problem

Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Post the code to your Mine class.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
arekonda ramesh babu
Ranch Hand

Joined: Apr 11, 2006
Posts: 35
hai

iam not getting the word "post the code to your Mine class".

this is the source code which i compiled seprerately, and only class file of it posted under tomcat

import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
class Mine extends HttpServlet{
public void doGet(HttpServletRequest req,HttpServletResponse res)
throws ServletException,IOException{
PrintWriter out=res.getWriter();
ServletConfig con=this.getServletConfig();
out.println(con.getInitParameter("email"));
}
}

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Exception while running tomcat