You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Craig R. McClanahan" <Cr...@eng.sun.com> on 2001/02/03 20:24:37 UTC
Re: I can not set the web.xml of a new conext in jakarta-tomcat-4.0-b1
INTEGRITY Ügyfélszolgálat wrote:
> I don't known why don't work cause I tried to copy examples context
> to an another name, but it not worked.
> I tried to create a context in tomcat 3.2.1 (it works), and copy
> to tomcat 4.0b1 (it doesn't work, is is the owntest context).
>
> Anybody knows why?
>
Did you restart Tomcat 4.0 after setting this application up? What URL
did you try? What response did you get? What response did you expect?
Craig McClanahan
>
> Here my owntest (It works in 3.2.1 but it doesn't in 4.0b1!):
>
> I create a new context in server.xml:
> <Context path="/owntest"
> docBase="owntest"
> crossContext="false"
> debug="0"
> reloadable="true" >
> </Context>
>
> I set webapps/owntest/:
>
> Web-inf/
> classes/SnoopServlet.class
> web.xml
>
> web.xml:
>
> <?xml version="1.0" encoding="ISO-8859-1"?>
>
> <!DOCTYPE web-app
> PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
> "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
>
> <web-app>
> <servlet>
> <servlet-name>
> snoop
> </servlet-name>
> <servlet-class>
> SnoopServlet
> </servlet-class>
> </servlet>
> <servlet-mapping>
> <servlet-name>
> snoop
> </servlet-name>
> <url-pattern>
> /snoop
> </url-pattern>
> </servlet-mapping>
> </web-app>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, email: tomcat-user-help@jakarta.apache.org
Re: I can not set the web.xml of a new conext in jakarta-tomcat-4.0-b1
Posted by Godzzo <go...@integrity.hu>.
> OK, the next step is to check the log files -- what do they say?
>
> By the way, Tomcat *is* case sensitive on the name of the WEB-INF
> directory, so unless you really have it in "owntest/WEB-INF/web.xml",
> your web.xml file will not have been read.
OK.
It was Web-inf not WEB-INF.
Now it works.
Sorry, I am a beginner in tomcat, and I use wincommander
(where you couldn't see that the name of the file is upper or lower cased).
Thank You for your fast help:)
>
> Craig
>
Re: I can not set the web.xml of a new conext in jakarta-tomcat-4.0-b1
Posted by "Craig R. McClanahan" <Cr...@eng.sun.com>.
Godzzo wrote:
> > Did you restart Tomcat 4.0 after setting this application up?
> yes
>
> > What URL did you try?
> localhost:8080/owntest/snoop -> 404
> localhost:8080/owntest/servlet/snoop -> 404
> localhost:8080/owntest/servlet/SnoopServlet -> It works
>
> It behaves like didn't read owntest/Web-inf/web.xml.
>
OK, the next step is to check the log files -- what do they say?
By the way, Tomcat *is* case sensitive on the name of the WEB-INF
directory, so unless you really have it in "owntest/WEB-INF/web.xml",
your web.xml file will not have been read.
Craig
Re: I can not set the web.xml of a new conext in jakarta-tomcat-4.0-b1
Posted by Godzzo <go...@integrity.hu>.
> Did you restart Tomcat 4.0 after setting this application up?
yes
> What URL did you try?
localhost:8080/owntest/snoop -> 404
localhost:8080/owntest/servlet/snoop -> 404
localhost:8080/owntest/servlet/SnoopServlet -> It works
It behaves like didn't read owntest/Web-inf/web.xml.
>
> Craig McClanahan
>