You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Bassel Mannaa <ob...@gmail.com> on 2006/03/27 01:59:16 UTC

unable to deploy a servlet while disabling the invoker

greetings,

I've been trying to deploy a servlet. It worked out when I enabled the
"invoker" servlet and called my "Hello" servlet like this "
http://localhost:8080/myapp/servlet/Hello".
but when I redisabled the invoker servlet and inserted the web.xml file in
WEB-INF and tried to call the servlet i got the 404 error.
thats what i included in the web.xml file.
------------------------------------------------
<?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-name>Hello</servlet-name>
<servlet-class>Hello</servlet-class>
<servrlet-mapping>
<servlet-name>Hello</servlet-name>
<url-pattern>/Hello</url-pattern>
</servrlet-mapping>
</servlet>
</web-app>
---------------------------------------
How can i deploy a servlet without enabling the invoker?
i'm using tomcat 5.5.16, the zip distribution
regards,
Bassel Mannaa

Re: unable to deploy a servlet while disabling the invoker

Posted by Martin Gainty <mg...@hotmail.com>.
Good call wendy..

personally..I steer clear of things such as invoker which supposedly 
auto-configure web.xml for you
Much better to identify jsp,servlet, startup params in web.xml beforehand
That way you always know what tomcat is supposed to do-
Martin-
----- Original Message ----- 
From: "Wendy Smoak" <ws...@gmail.com>
To: "Tomcat Users List" <us...@tomcat.apache.org>
Sent: Sunday, March 26, 2006 7:13 PM
Subject: Re: unable to deploy a servlet while disabling the invoker


On 3/26/06, Bassel Mannaa <ob...@gmail.com> wrote:

> <servrlet-mapping>
..
> </servrlet-mapping>

In addition to making sure you're using the right URL, check your
spelling in web.xml.

--
Wendy

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: unable to deploy a servlet while disabling the invoker

Posted by Wendy Smoak <ws...@gmail.com>.
On 3/26/06, Bassel Mannaa <ob...@gmail.com> wrote:

> <servrlet-mapping>
...
> </servrlet-mapping>

In addition to making sure you're using the right URL, check your
spelling in web.xml.

--
Wendy

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: unable to deploy a servlet while disabling the invoker

Posted by Markus Schönhaber <ma...@schoenhaber.de>.
Bassel Mannaa wrote:
> I've been trying to deploy a servlet. It worked out when I enabled the
> "invoker" servlet and called my "Hello" servlet like this "
> http://localhost:8080/myapp/servlet/Hello".
> but when I redisabled the invoker servlet and inserted the web.xml file in
> WEB-INF and tried to call the servlet i got the 404 error.
> thats what i included in the web.xml file.
> ------------------------------------------------
> <?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-name>Hello</servlet-name>
> <servlet-class>Hello</servlet-class>
> <servrlet-mapping>
> <servlet-name>Hello</servlet-name>
> <url-pattern>/Hello</url-pattern>
> </servrlet-mapping>
> </servlet>
> </web-app>
> ---------------------------------------
> How can i deploy a servlet without enabling the invoker?

By simply deploying it. Your problem is not the deployment but the URL you use 
to access your servlet. Try
http://localhost:8080/myapp/Hello
At least this is what you configured in the above web.xml.

Regards
  mks

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: unable to deploy a servlet while disabling the invoker

Posted by Tim Lucia <ti...@yahoo.com>.
How did you invoke it with the invoker servlet disabled?  According to your
web.xml, it would be available at:

http://localhost:8080/myapp/Hello


Tim


-----Original Message-----
From: Bassel Mannaa [mailto:obscure.eidolon@gmail.com] 
Sent: Sunday, March 26, 2006 6:59 PM
To: users@tomcat.apache.org
Subject: unable to deploy a servlet while disabling the invoker

greetings,

I've been trying to deploy a servlet. It worked out when I enabled the
"invoker" servlet and called my "Hello" servlet like this "
http://localhost:8080/myapp/servlet/Hello".
but when I redisabled the invoker servlet and inserted the web.xml file in
WEB-INF and tried to call the servlet i got the 404 error.
thats what i included in the web.xml file.
------------------------------------------------
<?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-name>Hello</servlet-name>
<servlet-class>Hello</servlet-class>
<servrlet-mapping>
<servlet-name>Hello</servlet-name>
<url-pattern>/Hello</url-pattern>
</servrlet-mapping>
</servlet>
</web-app>
---------------------------------------
How can i deploy a servlet without enabling the invoker?
i'm using tomcat 5.5.16, the zip distribution
regards,
Bassel Mannaa


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org