  | Mailing List | | Home | | Forum Home | | JBoss - Java Application Server | | Tomcat - JSP/Servlet container | | Struts - A MVC web framework | | iText - An open source PDF Java Library | | JDOM - JDOM XML Parser | | J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition | | JSP - A mailing list about Java Server Pages specification and reference | | J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog | | Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology | |
Struts & Hibernate
|
|
|
  | | | javax.servlet.ServletException: Cannot allocate servlet instance for path /servl | javax.servlet.ServletException: Cannot allocate servlet instance for path /servl 2007-08-02 - By Fabbris Pierluigi
Back Hi, I've a problem with test of Servlet. I created a Hello World Severlet in the directory classes on Tomcat. I've try with: http://localhost:8080/servlet /Helloworld, but I've this Excpetion:
javax.servlet.ServletException: Cannot allocate servlet instance for path /servlet/HelloWorld org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java :380) org.apache.catalina.servlets.InvokerServlet.doGet(InvokerServlet.java:134) javax.servlet.http.HttpServlet.service(HttpServlet.java:690) javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
*root cause*
java.lang.IllegalAccessException: Class org.apache.catalina.core .StandardWrapper can not access a member of class HelloWorld with modifiers "" sun.reflect.Reflection.ensureMemberAccess(Unknown Source) java.lang.Class.newInstance0(Unknown Source) java.lang.Class.newInstance(Unknown Source) org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java :361) org.apache.catalina.servlets.InvokerServlet.doGet(InvokerServlet.java:134) javax.servlet.http.HttpServlet.service(HttpServlet.java:690) javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
Why? And how I remove this problem? Tanks for the help that you give me. Sincerally yours, Fabbris Pierluigi
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ To start a new topic, e-mail: users@(protected) To unsubscribe, e-mail: users-unsubscribe@(protected) For additional commands, e-mail: users-help@(protected)
|
|
 |