Cannot allocate servlet instance for path

2002-10-10 Thread LFigueiredo

Hi,

I hope someone can help me to solve this ( the previous threads in the 
list did not helped me at all ).

I am using win2k + Tomcat 4.1.12
I enabled the invoker servlet and i am using 
\webapps\ROOT\WEB-INF\classes to publish my Servlets ( Generated with 
Genexus ).

I am calling this url ( http://leonardo/servlet/hlogin ) and the error i 
get is this one:
P Status 500 - 
type Exception report
message 
description The server encountered an internal error () that prevented it from 
fulfilling this request.
exception 
javax.servlet.ServletException: Cannot allocate servlet instance for path 
/servlet/hlogin
 at 
org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java:427)
 at 
org.apache.catalina.servlets.InvokerServlet.doGet(InvokerServlet.java:180)
 at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
 at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)


Thanks in advance,

Leonardo
Abaco TI - Brazil


Cannot allocate servlet instance for path ...

2002-09-09 Thread Mauro Daniel Ardolino



Hello!
It may be a well known problem, but I'm new in working with Tomcat.
I've made a simple servlet and I want to run it in Tomcat.  The servlet is
in the package simpleServlet and it is called SimpleServlet.
My directory structure is:
\webapps\simpleServlet\WEB-INF\
   classes\SimpleServlet.class
   web.xml

After I startup Tomcat and trying to browse with this URL...:
http://localhost:8080/simpleServlet/servlet/SimpleServlet
...I get this error message:

--
javax.servlet.ServletException: Cannot allocate servlet instance for path
/simpleServlet/servlet/SimpleServlet
at
org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java:419)
at
org.apache.catalina.servlets.InvokerServlet.doGet(InvokerServlet.java:180)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1027)
at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125)
at java.lang.Thread.run(Thread.java:479)
-

I will thank a lot if you can help me.

Reggards.

- Mauro




--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Cannot allocate servlet instance for path

2002-08-27 Thread Annam, Sunil

Hi,

I was using Tomcat 3.x and now switched to tomcat 4.1.9. I am not able to run the 
servlets that I used to do. So just for testing I did the following
created a folder exmp under webapps. created a foler Web-inf under exmp and 
classes under Web-inf. Copied HelloWorldExample.class from 
webapps/examples/Web-inf/classes. 

webapps--exmp
|-Web-inf
|-web.xml
|-classes
   |-HelloWorldExample.class


Modified server.xml. Added the following
Context path=/exmp docBase=exmp debug=0
 reloadable=true crossContext=true
/Context

Created web.xml in Web-inf

?xml version=1.0 encoding=ISO-8859-1?
!DOCTYPE web-app
 PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
http://java.sun.com/dtd/web-app_2_3.dtd;
web-app

servlet
servlet-nameHelloWorld/servlet-name
servlet-class
  HelloWorldExample
/servlet-class

/servlet


  /web-app


When I start Tomcat and try to access HelloWorldExample by url 
http://localhost:8080/exmp/servlets/HelloWorldExample;, it gives me Error 404
In the localhost_log.txt
invoker: Cannot allocate servlet instance for path /exmp/servlet/HelloWorldExample
javax.servlet.ServletException: Wrapper cannot find servlet class HelloWorldExample or 
a class it depends on
at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:880)


Any idea what is happening ? what am I missing ?

HelloWorldExample from examples/servlet/HelloWorldExample is working.

Thanks in advance.

Sunil Annam





RE: Cannot allocate servlet instance for path

2002-08-27 Thread Annam, Sunil

Found the problem. I am using Windows NT. In NT explorer, Web-inf and WEB-INF are 
both displayed as Web-inf. Only if you right click and see property you can find 
MS-DOS name which is the actual one.
When I installed Tomcat, examples webapps had a folder Web-inf which is actually 
WEB-INF. So I also created same name.

Spent almost a day but now I am happy that it is working.


-Original Message-
From: Annam, Sunil 
Sent: Tuesday, August 27, 2002 3:23 PM
To: [EMAIL PROTECTED]
Subject: Cannot allocate servlet instance for path


Hi,

I was using Tomcat 3.x and now switched to tomcat 4.1.9. I am not able to run the 
servlets that I used to do. So just for testing I did the following
created a folder exmp under webapps. created a foler Web-inf under exmp and 
classes under Web-inf. Copied HelloWorldExample.class from 
webapps/examples/Web-inf/classes. 

webapps--exmp
|-Web-inf
|-web.xml
|-classes
   |-HelloWorldExample.class


Modified server.xml. Added the following
Context path=/exmp docBase=exmp debug=0
 reloadable=true crossContext=true
/Context

Created web.xml in Web-inf

?xml version=1.0 encoding=ISO-8859-1?
!DOCTYPE web-app
 PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
http://java.sun.com/dtd/web-app_2_3.dtd;
web-app

servlet
servlet-nameHelloWorld/servlet-name
servlet-class
  HelloWorldExample
/servlet-class

/servlet


  /web-app


When I start Tomcat and try to access HelloWorldExample by url 
http://localhost:8080/exmp/servlets/HelloWorldExample;, it gives me Error 404
In the localhost_log.txt
invoker: Cannot allocate servlet instance for path /exmp/servlet/HelloWorldExample
javax.servlet.ServletException: Wrapper cannot find servlet class HelloWorldExample or 
a class it depends on
at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:880)


Any idea what is happening ? what am I missing ?

HelloWorldExample from examples/servlet/HelloWorldExample is working.

Thanks in advance.

Sunil Annam



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]