examples/servlet path broken?

2002-12-16 Thread Daryl Lee
I've upgraded to Tomcat 4.1.12, and the servlet examples don't work any
more.  The servlet examples use a path like
.../examples/servlet/HelloWorldExample to access individual servlets.
The only way I could make HelloWorldExample work was to give it the full
monty in examples/WEB-INF/web.xml by defining it as a servlet and 
providing a mapping, a la:

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

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

Is there a more generic solution that would re-enable the usage the
examples expect?
-- 
Daryl Lee
Marietta, GA

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




RE: examples/servlet path broken?

2002-12-16 Thread Shapira, Yoav
Hi,
The invoker servlet mapping is disabled by default in 4.1.12.  Comment
it back in $CATALINA_HOME/conf/web.xml.  This change was made for
security purposes.  You can find more details in the list archives and
the release notes.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Daryl Lee [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 16, 2002 12:01 PM
To: Tomcat User List
Subject: examples/servlet path broken?

I've upgraded to Tomcat 4.1.12, and the servlet examples don't work
any
more.  The servlet examples use a path like
.../examples/servlet/HelloWorldExample to access individual servlets.
The only way I could make HelloWorldExample work was to give it the
full
monty in examples/WEB-INF/web.xml by defining it as a servlet and
providing a mapping, a la:

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

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

Is there a more generic solution that would re-enable the usage the
examples expect?
--
Daryl Lee
Marietta, GA

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


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