tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Fabbris Pierluigi <pierluigi.fabb...@poste.it>
Subject javax.servlet.ServletException: Cannot allocate servlet instance for path /servlet/HelloWorld
Date Thu, 02 Aug 2007 16:39:56 GMT
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@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message