Problem with servlets in Tomcat 4.1.18

2003-02-17 Thread David . T . Clark
Hello, I have recently downloaded Tomcat 4.1.18 and I am having a little
problem getting servlets to work.  After installing a Tomcat 4.1.18 I
created a directory called test under the webapps directory.  I then
created directory WEB-INF under test and classes under WEB-INF.  I placed a
single servlet called HelloWorldExample in the classes directory.  When I
try to use it I get the 404 error message saying it cannot find it..  The
really frustrating part is I can copy this directory into the webapps
directory for Tomcat 4.1.10  or just copy this servlet into any other
preexisting directory and it works fine.  I can't seem to get any servlets
to work in any directory I create.  Any ideas?  I have never had this
problem before in Tomcat. JSPs work fine, just can't get servlets to work.
Any help would be appreciated.  Thanks

David T Clark
Batch/Intranet/Rename Support
ALLTEL Information Services
Core Systems (MAD Development Center)
(904) 854-5095   (Jacksonville)





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




Re: Problem with servlets in Tomcat 4.1.18

2003-02-17 Thread Holger Klawitter
Am Montag, 17. Februar 2003 01:14 schrieb [EMAIL PROTECTED]:
 Hello, I have recently downloaded Tomcat 4.1.18 and I am having a little
 problem getting servlets to work.  After installing a Tomcat 4.1.18 I
 created a directory called test under the webapps directory.  I then
 created directory WEB-INF under test and classes under WEB-INF.  I placed a
 single servlet called HelloWorldExample in the classes directory.  When I
 try to use it I get the 404 error message saying it cannot find it..  The
 really frustrating part is I can copy this directory into the webapps
 directory for Tomcat 4.1.10  or just copy this servlet into any other
 preexisting directory and it works fine.  I can't seem to get any servlets
 to work in any directory I create.  Any ideas?  I have never had this
 problem before in Tomcat. JSPs work fine, just can't get servlets to work.
 Any help would be appreciated.  Thanks

The behaviour of tomcat changed.
The invoker Servlet Mapper is turned of by default.
You have to turn it on your webapp web.xml or in the global web.xml.

sarcasm target=tomcat-mainteriners
This info is well hidden at the very end of the RELEASE_NOTES, the first place 
of *new* users to look in.
/sarcasm

sidenote target=tomcat-maintainers type=reconsiling
Looking in the archive of the mailing list would also help as this question 
gets posted and answered every day.
/sidenote

With kind regards / mit freundlichem Gruß
Holger Klawitter
--
Holger Klawitter  http://www.klawitter.de
[EMAIL PROTECTED]

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




RE: Problem with servlets in Tomcat 4.1.18

2003-02-17 Thread Turner, John

In recent versions of Tomcat, the default Invoker servlet is disabled by
default for security reasons.  You either have to enable the Invoker servlet
in your web application's web.xml file (not recommended), or explicitly map
your servlet to a URL in your web application's web.xml.

If you decide to use the Invoker, you will want to check the /examples web
app's web.xml file to see how to do that.

If you decide to explicitly map your servlet(s), you would do something like
this in your web.xml file:

servlet
  servlet-nameHelloWorldExample/servlet-name
  servlet-classcom.mypackage.HelloWorldExample/servlet-class
/servlet

servlet-mapping
  servlet-nameHelloWorldExample/servlet-name
  url-pattern/HelloWorldExample/url-pattern
/servlet-mapping

Note that the order of elements in web.xml is rigidly enforced, you have to
follow the DTD to avoid generating syntax errors.

John

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Sunday, February 16, 2003 7:15 PM
 To: [EMAIL PROTECTED]
 Subject: Problem with servlets in Tomcat 4.1.18
 
 
 Hello, I have recently downloaded Tomcat 4.1.18 and I am 
 having a little
 problem getting servlets to work.  After installing a Tomcat 4.1.18 I
 created a directory called test under the webapps directory.  I then
 created directory WEB-INF under test and classes under 
 WEB-INF.  I placed a
 single servlet called HelloWorldExample in the classes 
 directory.  When I
 try to use it I get the 404 error message saying it cannot 
 find it..  The
 really frustrating part is I can copy this directory into the webapps
 directory for Tomcat 4.1.10  or just copy this servlet into any other
 preexisting directory and it works fine.  I can't seem to get 
 any servlets
 to work in any directory I create.  Any ideas?  I have never had this
 problem before in Tomcat. JSPs work fine, just can't get 
 servlets to work.
 Any help would be appreciated.  Thanks
 
 David T Clark
 Batch/Intranet/Rename Support
 ALLTEL Information Services
 Core Systems (MAD Development Center)
 (904) 854-5095   (Jacksonville)
 
 
 
 
 
 -
 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]




Problem with servlets in Tomcat 4.1.18

2003-02-05 Thread David . T . Clark
Hello, I have recently downloaded Tomcat 4.1.18 and I am having a little
problem getting servlets to work.  After installing a Tomcat 4.1.18 I
created a directory called test under the webapps directory.  I then
created directory WEB-INF under test and classes under WEB-INF.  I placed a
single servlet called HelloWorldExample in the classes directory.  When I
try to use it I get the 404 error message saying it cannot find it..  The
really frustrating part is I can copy this directory into the webapps
directory for Tomcat 4.1.10  or just copy this servlet into any other
preexisting directory and it works fine.  I can't seem to get any servlets
to work in any directory I create.  Any ideas?  I have never had this
problem before in Tomcat. Any help would be appreciated.  Thanks

David T Clark
Batch/Intranet/Rename Support
ALLTEL Information Services
Core Systems (MAD Development Center)
(904) 854-5095   (Jacksonville)





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




Problem with servlets in Tomcat 4.1.18

2003-02-05 Thread David . T . Clark
Two more peices of information just as an FYI.. JSPs work and Java Beans
work. Servlets are the only thing that don'e seem to work.  Looking forward
to hearing from you.  Thanks

David T Clark
Batch/Intranet/Rename Support
ALLTEL Information Services
Core Systems (MAD Development Center)
(904) 854-5095   (Jacksonville)


- Forwarded by David T Clark/ATISMD/ALLTEL on 02/05/2003 05:50 PM -
   

  David T Clark

   To:   
[EMAIL PROTECTED]
  02/05/2003 05:47 cc: 

  PM   Subject:  Problem with servlets in 
Tomcat 4.1.18
   

   




Hello, I have recently downloaded Tomcat 4.1.18 and I am having a little
problem getting servlets to work.  After installing a Tomcat 4.1.18 I
created a directory called test under the webapps directory.  I then
created directory WEB-INF under test and classes under WEB-INF.  I placed a
single servlet called HelloWorldExample in the classes directory.  When I
try to use it I get the 404 error message saying it cannot find it..  The
really frustrating part is I can copy this directory into the webapps
directory for Tomcat 4.1.10  or just copy this servlet into any other
preexisting directory and it works fine.  I can't seem to get any servlets
to work in any directory I create.  Any ideas?  I have never had this
problem before in Tomcat. Any help would be appreciated.  Thanks

David T Clark
Batch/Intranet/Rename Support
ALLTEL Information Services
Core Systems (MAD Development Center)
(904) 854-5095   (Jacksonville)






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




Re: Problem with servlets in Tomcat 4.1.18

2003-02-05 Thread Jeff Tulley
Sounds to me like the InvokerServlet change is biting you.  As of Tomcat
4.1.12, the InvokerServlet is not turned on by default, due to some
security problems with it.  If I understand the side effects of using or
not using the InvokerServlet, it would let you get away with some
servlets deploying that otherwise you ought to have defined in your
web.xml.  I'd look into getting the right entries in there, and see if
it doesn't deploy.

 [EMAIL PROTECTED] 2/5/03 3:52:45 PM 
Two more peices of information just as an FYI.. JSPs work and Java
Beans
work. Servlets are the only thing that don'e seem to work.  Looking
forward
to hearing from you.  Thanks

David T Clark
Batch/Intranet/Rename Support
ALLTEL Information Services
Core Systems (MAD Development Center)
(904) 854-5095   (Jacksonville)


- Forwarded by David T Clark/ATISMD/ALLTEL on 02/05/2003 05:50 PM
-
   
   
  David T Clark
   
   To:  
[EMAIL PROTECTED]   

  02/05/2003 05:47 cc: 
   
  PM   Subject:  Problem with
servlets in Tomcat 4.1.18
   
   
   
   



Hello, I have recently downloaded Tomcat 4.1.18 and I am having a
little
problem getting servlets to work.  After installing a Tomcat 4.1.18 I
created a directory called test under the webapps directory.  I then
created directory WEB-INF under test and classes under WEB-INF.  I
placed a
single servlet called HelloWorldExample in the classes directory.  When
I
try to use it I get the 404 error message saying it cannot find it.. 
The
really frustrating part is I can copy this directory into the webapps
directory for Tomcat 4.1.10  or just copy this servlet into any other
preexisting directory and it works fine.  I can't seem to get any
servlets
to work in any directory I create.  Any ideas?  I have never had this
problem before in Tomcat. Any help would be appreciated.  Thanks

David T Clark
Batch/Intranet/Rename Support
ALLTEL Information Services
Core Systems (MAD Development Center)
(904) 854-5095   (Jacksonville)






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


Jeff Tulley  ([EMAIL PROTECTED])
(801)861-5322
Novell, Inc., the leading provider of Net business solutions
http://www.novell.com

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




RE: Problem with servlets in Tomcat 4.1.18

2003-02-05 Thread Nicole Hibbard
This tells you how to enable the invoker servlet

http://www.moreservlets.com/Using-Tomcat-4.html 

-Original Message-
From: Jeff Tulley [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 05, 2003 3:04 PM
To: [EMAIL PROTECTED]
Subject: Re: Problem with servlets in Tomcat 4.1.18


Sounds to me like the InvokerServlet change is biting you.  As of Tomcat
4.1.12, the InvokerServlet is not turned on by default, due to some
security problems with it.  If I understand the side effects of using or
not using the InvokerServlet, it would let you get away with some
servlets deploying that otherwise you ought to have defined in your
web.xml.  I'd look into getting the right entries in there, and see if
it doesn't deploy.

 [EMAIL PROTECTED] 2/5/03 3:52:45 PM 
Two more peices of information just as an FYI.. JSPs work and Java
Beans
work. Servlets are the only thing that don'e seem to work.  Looking
forward
to hearing from you.  Thanks

David T Clark
Batch/Intranet/Rename Support
ALLTEL Information Services
Core Systems (MAD Development Center)
(904) 854-5095   (Jacksonville)


- Forwarded by David T Clark/ATISMD/ALLTEL on 02/05/2003 05:50 PM
-
   
   
  David T Clark
   
   To:  
[EMAIL PROTECTED]   

  02/05/2003 05:47 cc: 
   
  PM   Subject:  Problem with
servlets in Tomcat 4.1.18
   
   
   
   



Hello, I have recently downloaded Tomcat 4.1.18 and I am having a
little
problem getting servlets to work.  After installing a Tomcat 4.1.18 I
created a directory called test under the webapps directory.  I then
created directory WEB-INF under test and classes under WEB-INF.  I
placed a
single servlet called HelloWorldExample in the classes directory.  When
I
try to use it I get the 404 error message saying it cannot find it.. 
The
really frustrating part is I can copy this directory into the webapps
directory for Tomcat 4.1.10  or just copy this servlet into any other
preexisting directory and it works fine.  I can't seem to get any
servlets
to work in any directory I create.  Any ideas?  I have never had this
problem before in Tomcat. Any help would be appreciated.  Thanks

David T Clark
Batch/Intranet/Rename Support
ALLTEL Information Services
Core Systems (MAD Development Center)
(904) 854-5095   (Jacksonville)






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


Jeff Tulley  ([EMAIL PROTECTED])
(801)861-5322
Novell, Inc., the leading provider of Net business solutions
http://www.novell.com

-
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]