Bug #823

2001-01-23 Thread Georg von Zezschwitz

Hi!

First - I was not able to reproduce the following bug.
I'd just suggest to decide whether my settings in
web.xml were correct and otherwise close the bug.

But here my original posting to BugRat:


I am unable to use tomcat 3.2.1 with PathInfo and Servlets. I
tried with Apache and the mod_jserv-Connector (from
Tomcat 3.2.1).

When specifing a servlet mapping like

..
 servlet-namenet.xx.yy.myservlet/servlet-name
 url-pattern/servlet/net.xx.yy.myservlet/url-pattern
..

in web.xml I get a 404 from Tomcat when accessing URLs
like
   /servlet/net.xx.yy.myservlet/anyinformation

When specifing a mapping like

..
 servlet-namenet.xx.yy.myservlet/servlet-name
 url-pattern/servlet/net.xx.yy.myservlet/*/url-pattern
..

the response was:

Internal Servlet Error:

java.lang.IllegalStateException: Can't happen - classname is null, who
added this ?
at java.lang.Throwable.fillInStackTrace(Native Method)
at java.lang.Throwable.fillInStackTrace(Compiled Code)
at java.lang.Throwable.(Compiled Code)
at java.lang.Exception.(Compiled Code)
at java.lang.RuntimeException.(Compiled Code)
at java.lang.IllegalStateException.(Compiled Code)
at org.apache.tomcat.core.ServletWrapper.loadServlet(Compiled
Code)
at org.apache.tomcat.core.ServletWrapper.init(Compiled Code)
at org.apache.tomcat.core.Handler.service(Compiled Code)
   

As I guess every time a program says "this can't happen"
a bug is involved, I felt invited to report it as a bug

Regards,


Georg
 
-- 
[EMAIL PROTECTED]   http://www.de.uu.net
Product Engineering  UUNET Deutschland GmbH
Tel. +49 231 972 1438Sebrathweg 20
Fax. +49 231 972 118044149 Dortmund, Germany

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




Bug 823

2001-01-23 Thread Marc Saegesser

Georg,

I tried duplicating this problem
(http://znutar.cortexity.com/BugRatViewer/ShowReport/823) with the latest
version of Tomcat and it seems to work fine.  The only thing I noticed in
your bug report is that you don't include the servlet-class tag from your
web.xml file.  Since your using periods in the servlet name and url pattern
and this the Java package name separator I wonder if you might have
something mis-configured.  Without seeing the rest of your web.xml I really
can't tell.

Anyway, I tried several combinations of servlet-names, url-patterns with and
without periods and path info worked correctly in all cases.  If you can
provide any additional information that would be helpful.

Marc Saegesser


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