RE: Tomcat 4.1.24/Win2K - Servlet not found.

2003-06-25 Thread Shapira, Yoav

Howdy,

>I just have one more question, why does the url
>http://localhost:8080/myApp/servlet/TestingServlet work, while
>
>http://localhost:8080/myApp/servlet/Testing not work, even though I
>mention the  as "Testing" ? Isn't Testing supposed to be
>'alias' for the whole name?
>
>In that case, what is the use of the  tag?

The  is used to connect a  and 
tag.  It's not an alias.

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: Tomcat 4.1.24/Win2K - Servlet not found.

2003-06-25 Thread Rohit Bapat
Thanks everyone for your quick replies. I added Yoav's code snippet to
my web.xml and it worked just fine. Thanks Yoav.

I just have one more question, why does the url
http://localhost:8080/myApp/servlet/TestingServlet work, while

http://localhost:8080/myApp/servlet/Testing not work, even though I
mention the  as "Testing" ? Isn't Testing supposed to be
'alias' for the whole name?

In that case, what is the use of the  tag?

Thanks
Rohit.

On Wed, 25 Jun 2003, Shapira, Yoav wrote:

>
> Howdy,
>
> >But if I have http://localhost:8080/myApp/servlet/TestingServlet,
> (without
> >the web.xml file) it doesn't find the servlet.
> 
>
> Add to your web.xml:
> 
>   Testing
>   /servlet/TestingServlet
> 
>
> And then the above URL will work.
>
> >also, I'm learning from a book am not sure what the use of 
> tag
> >is, in the web.xml file?
>
> It's simply the root tag in the schema.  It is required (and you cannot
> have more than one) for the web.xml file to be valid.
>
> Yoav Shapira



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



RE: Tomcat 4.1.24/Win2K - Servlet not found.

2003-06-25 Thread Shapira, Yoav

Howdy,

>But if I have http://localhost:8080/myApp/servlet/TestingServlet,
(without
>the web.xml file) it doesn't find the servlet.


Add to your web.xml:

  Testing
  /servlet/TestingServlet


And then the above URL will work.

>also, I'm learning from a book am not sure what the use of 
tag
>is, in the web.xml file?

It's simply the root tag in the schema.  It is required (and you cannot
have more than one) for the web.xml file to be valid.

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



Re: Tomcat 4.1.24/Win2K - Servlet not found.

2003-06-25 Thread Jason Bainbridge
On Thu, 26 Jun 2003 00:44, Tim Funk wrote:
> http://jakarta.apache.org/tomcat/faq/misc.html#invoker
>
> Also look at the sun's webservices developer tutorial.

Try getting that kind of support from a commercial product. :) 

3 separate answers in less than 10 minutes!

Cheers,
-- 
Jason Bainbridge
http://jblinux.org

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



RE: Tomcat 4.1.24/Win2K - Servlet not found.

2003-06-25 Thread Mike Curwen
I was about to post a follow up, because I noticed later that the
original poster was trying to "do the right thing".  ;)

But *several* of you beat me to it.  


> -Original Message-
> From: John Turner [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, June 25, 2003 11:47 AM
> To: Tomcat Users List
> Subject: Re: Tomcat 4.1.24/Win2K - Servlet not found.
> 
> 
> 
> Except that using the Invoker is disabled for a reason and should be 
> avoided if possible.
> 
> John
> 
> On Wed, 25 Jun 2003 11:44:38 -0500, Mike Curwen 
> <[EMAIL PROTECTED]> wrote:
> 
> > Look in CATALINA_HOME/conf/web.xml.   This is a large file 
> with a large
> > amount of comments.
> > You should find a servlet-mapping tag that has the pattern 
> /servlet/* 
> > and you'll find it commented out.  This is the 'invoker 
> servlet' that 
> > every beginner dreads, because there are a LOT of books / tutorials 
> > out there that assume it is enabled, but ever since tomcat 
> 4.1.12 it 
> > has been disabled by default. Just remove the comments, and 
> you should 
> > be alright.
> >


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



Re: Tomcat 4.1.24/Win2K - Servlet not found.

2003-06-25 Thread John Turner
Except that using the Invoker is disabled for a reason and should be 
avoided if possible.

John

On Wed, 25 Jun 2003 11:44:38 -0500, Mike Curwen <[EMAIL PROTECTED]> wrote:

Look in CATALINA_HOME/conf/web.xml.   This is a large file with a large
amount of comments.
You should find a servlet-mapping tag that has the pattern /servlet/*
and you'll find it commented out.  This is the 'invoker servlet' that
every beginner dreads, because there are a LOT of books / tutorials out
there that assume it is enabled, but ever since tomcat 4.1.12 it has
been disabled by default.
Just remove the comments, and you should be alright.

-Original Message-
From: Rohit Bapat [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 
25, 2003 11:37 AM
To: [EMAIL PROTECTED]
Subject: Tomcat 4.1.24/Win2K - Servlet not found.

Hello,
I'm a Tomcat beginner, and I'm having the following problem -  The 
browser can't locate the servlet under URL /servlet.

I read some recommended solutions for this in the mailing list, as well 
as the sample web.xml file on the Tomcat website, but am still having 
trouble getting the Servlets to be found.

(http://marc.theaimsgroup.com/?l=tomcat-user&m=103945394724196&w=2)
(http://marc.theaimsgroup.com/?l=tomcat-user&m=104327383710262&w=2)
but I'm still having trouble modifying my web.xml file. I hope someone 
can help.

I'm running Tomcat 4.1.24 LE, j2se1.4.1 and j2ee1.3.1 on Win2000 Prof.

My directory structure is as follows:
- c
--Tomcat
---webapps
myApp
-images, WEB-INF (web.xml lies here)
-classes (.java and .class here)
my TestServlet file is located here - c:\Tomcat\webapps\myApp\WEB- 
INF\classes\

It compiled correctly and made the .class

If I put  http://localhost:8080  when Tomcat runs, I get the welcome 
page, so I know Tomcat's running fine.

But if I have http://localhost:8080/myApp/servlet/TestingServlet, 
(without
the web.xml file) it doesn't find the servlet.

nor does it find the servlet with this 
http://localhost:8080/myApp/servlet/Testing (with web.xml)

I tried putting an image in c:\Tomcat\webapps\myApp\images\   and tried
http://localhost:8080/myApp/images/test.pic   it finds the  picture
correctly.
myweb.xml file reads as follows:
--
--

http://java.sun.com/dtd/web-app_2_3.dtd";>


Testing
TestingServlet


--
--
I'm still confused as to how I should modify my web.xml file?



Testing
???***


???***
???***


--

also, I'm learning from a book am not sure what the use of  tag 
is, in the web.xml file?

Thank you,
Rohit.




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


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



--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Tomcat 4.1.24/Win2K - Servlet not found.

2003-06-25 Thread Jason Bainbridge
On Thu, 26 Jun 2003 00:37, Rohit Bapat wrote:
> 
> 
> Testing
> ???***
> 
> 
> ???***
> ???***
> 
> 

/me wishes books and tutorials wouldn't assume the servlet invoker was 
enabled...


Testing
TestingServlet


Testing
Testing



http://localhost:8080/Testing

Although you might still get problems as your class should be in a package eg.

WEB-INF/
/classes
/com
/mydomain
/myapp
TestingServlet.class

and you would have a 

package com.mydomain.myapp;

statement within your TestingServlet.java file then modify the web.xml to:



Testing
com.mydomain.myapp.TestingServlet


Testing
Testing



Regards,
-- 
Jason Bainbridge
http://jblinux.org

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



Re: Tomcat 4.1.24/Win2K - Servlet not found.

2003-06-25 Thread Tim Funk
http://jakarta.apache.org/tomcat/faq/misc.html#invoker

Also look at the sun's webservices developer tutorial.

-Tim

Rohit Bapat wrote:
Hello,
I'm a Tomcat beginner, and I'm having the following problem -  The
browser can't locate the servlet under URL /servlet.
I read some recommended solutions for this in the mailing list, as well as
the sample web.xml file on the Tomcat website, but am still having trouble
getting the Servlets to be found.
(http://marc.theaimsgroup.com/?l=tomcat-user&m=103945394724196&w=2)
(http://marc.theaimsgroup.com/?l=tomcat-user&m=104327383710262&w=2)
but I'm still having trouble modifying my web.xml file. I hope someone can
help.
I'm running Tomcat 4.1.24 LE, j2se1.4.1 and j2ee1.3.1 on Win2000 Prof.

My directory structure is as follows:
- c
--Tomcat
---webapps
myApp
-images, WEB-INF (web.xml lies here)
   -classes (.java and .class here)
my TestServlet file is located here -
c:\Tomcat\webapps\myApp\WEB-INF\classes\
It compiled correctly and made the .class

If I put  http://localhost:8080  when Tomcat runs, I get the welcome page,
so I know Tomcat's running fine.
But if I have http://localhost:8080/myApp/servlet/TestingServlet, (without
the web.xml file) it doesn't find the servlet.
nor does it find the servlet with this
http://localhost:8080/myApp/servlet/Testing (with web.xml)
I tried putting an image in c:\Tomcat\webapps\myApp\images\ and tried
http://localhost:8080/myApp/images/test.pic   it finds the  picture
correctly.
myweb.xml file reads as follows:


http://java.sun.com/dtd/web-app_2_3.dtd";>


Testing
TestingServlet



I'm still confused as to how I should modify my web.xml file?



Testing
???***


???***
???***


--
also, I'm learning from a book am not sure what the use of  tag
is, in the web.xml file?
Thank you,
Rohit.




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



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


RE: Tomcat 4.1.24/Win2K - Servlet not found.

2003-06-25 Thread Mike Curwen
Look in CATALINA_HOME/conf/web.xml.   This is a large file with a large
amount of comments.
 
You should find a servlet-mapping tag that has the pattern /servlet/*
and you'll find it commented out.  This is the 'invoker servlet' that
every beginner dreads, because there are a LOT of books / tutorials out
there that assume it is enabled, but ever since tomcat 4.1.12 it has
been disabled by default.
 
Just remove the comments, and you should be alright.


> -Original Message-
> From: Rohit Bapat [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, June 25, 2003 11:37 AM
> To: [EMAIL PROTECTED]
> Subject: Tomcat 4.1.24/Win2K - Servlet not found.
> 
> 
> Hello,
> I'm a Tomcat beginner, and I'm having the following 
> problem -  The browser can't locate the servlet under URL /servlet.
> 
> I read some recommended solutions for this in the mailing 
> list, as well as the sample web.xml file on the Tomcat 
> website, but am still having trouble getting the Servlets to be found.
> 
> (http://marc.theaimsgroup.com/?l=tomcat-user&m=103945394724196&w=2)
> (http://marc.theaimsgroup.com/?l=tomcat-user&m=104327383710262&w=2)
> 
> but I'm still having trouble modifying my web.xml file. I 
> hope someone can help.
> 
> I'm running Tomcat 4.1.24 LE, j2se1.4.1 and j2ee1.3.1 on Win2000 Prof.
> 
> My directory structure is as follows:
> - c
> --Tomcat
> ---webapps
> myApp
> -images, WEB-INF (web.xml lies here)
>-classes (.java and .class here)
> 
> my TestServlet file is located here - 
> c:\Tomcat\webapps\myApp\WEB-INF\classes\
> 
> It compiled correctly and made the .class
> 
> If I put  http://localhost:8080  when Tomcat runs, I get the 
> welcome page, so I know Tomcat's running fine.
> 
> But if I have 
> http://localhost:8080/myApp/servlet/TestingServlet, (without
> the web.xml file) it doesn't find the servlet.
> 
> nor does it find the servlet with this 
> http://localhost:8080/myApp/servlet/Testing (with web.xml)
> 
> I tried putting an image in c:\Tomcat\webapps\myApp\images\   
>   and tried
> http://localhost:8080/myApp/images/test.pic   it finds the  picture
> correctly.
> 
> myweb.xml file reads as follows:
> --
> --
> 
> 
>  PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
> "http://java.sun.com/dtd/web-app_2_3.dtd";>
> 
> 
> 
> Testing
> TestingServlet
> 
> 
> --
> --
> 
> I'm still confused as to how I should modify my web.xml file?
> 
> 
> 
> Testing
> ???***
> 
> 
> ???***
> ???***
> 
> 
> --
> 
> 
> also, I'm learning from a book am not sure what the use of 
>  tag is, in the web.xml file?
> 
> Thank you,
> Rohit.
> 
> 
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


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