thanks that did it!

along with moving out of the webapps context and
getting my own context in server.xml vs defaults

thanks to everyone else who helped!

--- Pier Paolo Bortone
<[EMAIL PROTECTED]> wrote:
> Ok.
> 
> Andy, I send you my web.xml that could be help you,
> where all dwf file are
> handled by NetSite servlet.
> 
> Bye.
> ----- Original Message -----
> From: "Etienne Baert (SPS Office)" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, December 13, 2000 4:14 PM
> Subject: RE: Servlet Mappings and what am I doing
> wrong.
> 
> 
> > Hi Andy,
> >
> > I think your problem comes because you are
> > putting directory information into the
> > url-mapping value in web.xml :
> > you wrote : /myorg.com/*.msp
> > you should write : *.msp
> >
> > Your path to your application (context) should
> > appear into the server.xml under the conf folder :
> >
> > <Context path="/myorg.com" docBase="..." ...>
> > </Context>
> >
> > Hope this helps,
> > Etienne
> >
> > -----Original Message-----
> > From: Andrew Oliver
> [mailto:[EMAIL PROTECTED]]
> > Sent: mercredi 13 decembre 2000 15:42
> > To: [EMAIL PROTECTED]
> > Subject: Servlet Mappings and what am I doing
> wrong.
> >
> >
> > I have some legacy code that uses its own non-jsp
> tag
> > system.
> >
> > The following is my web.xml file put in
> >
> > webapps/myapp/WEB-INF dir
> >
> > The attempt is to map files with the extension
> *.msp
> > to the RouterServlet.  Unfortunately this is not
> > happening, if I goto the directory and do an msp
> file
> > it lists it as text.  I then tried to do the same
> with
> > the entire directory (hence the second mapping).
> >
> > What else do I need?  What am I doing wrong? 
> (This
> > used to use JServ ApJServAction but I'm attempting
> to
> > move to Tomcat3.2 and the new connector) and
> migrate
> > toward a standard system.
> >
> > Please note I've genericised all filenames/ips in
> > this.  If there is a site called myorg.com, I'm
> not
> > affilliated with it.  I was trying to be generic.
> >
> > Thanks,
> >
> > -Andy
> >
> > <?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>
> >             RouterServlet
> >         </servlet-name>
> >         <servlet-class>
> >             com.myorg.servlet.RouterServlet
> >         </servlet-class>
> >         <init-param>
> >
> > <param-name>handlers_classpath</param-name>
> >
> > <param-value>com.myorg.servlet</param-value>
> >         </init-param>
> >         <init-param>
> >                 <param-name>handlers</param-name>
> >                 <param-value>
> >
>
Article,Index,Default,Previous,Image,SendFriend,Poll</param-value>
> >         </init-param>
> >         <init-param>
> >                 <param-name>pools</param-name>
> >                 <param-value>pools</param-value>
> >         </init-param>
> >         <init-param>
> >                 <param-name>pool_url</param-name>
> >
> >
>
<param-value>jdbc:oracle:thin:@192.168.1.2:1521:MYDB</param-value>
> >         </init-param>
> >         <init-param>
> >                
> <param-name>pool_max_conn</param-name>
> >                 <param-value>20</param-value>
> >         </init-param>
> >         <init-param>
> >
> > <param-name>pool_max_checkout</param-name>
> >                 <param-value>10</param-value>
> >         </init-param>
> >         <init-param>
> >                
> <param-name>realfiledir</param-name>
> >
> >
>
<param-value>/usr/local/apache/virtual/myorg.com/htdocs</param-value>
> >         </init-param>
> >         <init-param>
> >                 <param-name>thread</param-name>
> >                 <param-value>true</param-value>
> >         </init-param>
> >         <init-param>
> >
> > <param-name>thread_interval</param-name>
> >                 <param-value>300</param-value>
> >         </init-param>
> >         <init-param>
> >                 <param-name>debug</param-name>
> >                 <param-value>false</param-value>
> >         </init-param>
> >     </servlet>
> >         <servlet-mapping>
> >                 <servlet-name>
> >                         RouterServlet
> >                 </servlet-name>
> >                 <url-pattern>
> >                         /myorg.com/*
> >                 </url-pattern>
> >         </servlet-mapping>
> >         <servlet-mapping>
> >                 <servlet-name>
> >                         RouterServlet
> >                 </servlet-name>
> >                 <url-pattern>
> >                         /myorg.com/*.msp
> >                 </url-pattern>
> >         </servlet-mapping>
> >
> >     <taglib>
> >         <taglib-uri>
> >
> > http://java.apache.org/tomcat/examples-taglib
> >         </taglib-uri>
> >         <taglib-location>
> >            /WEB-INF/jsp/example-taglib.tld
> >         </taglib-location>
> >     <taglib>
> >
> >     <security-constraint>
> >       <web-resource-collection>
> >          <web-resource-name>Protected
> > Area</web-resource-name>
> >          <!-- Define the context-relative URL(s)
> to be
> > protected -->
> >
> >
> <url-pattern>/jsp/security/protected/*</url-pattern>
> >          <!-- If you list http methods, only those
> > methods are protected -->
> >          <http-method>DELETE</http-method>
> >          <http-method>GET</http-method>
> >          <http-method>POST</http-method>
> >          <http-method>PUT</http-method>
> >       </web-resource-collection>
> >       <auth-constraint>
> >          <!-- Anyone with one of the listed roles
> may
> > access this area -->
> >          <role-name>tomcat</role-name>
> >          <role-name>role1</role-name>
> >       </auth-constraint>
> >     </security-constraint>
> >
> >     <!-- Default login configuration uses BASIC
> > authentication -->
> >     <login-config>
> >       <auth-method>BASIC</auth-method>
> 
=== message truncated ===> <?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>
>             NetSite
>         </servlet-name>
>         <servlet-class>
>             netsite.NetSiteServlet
>         </servlet-class>
>         <init-param>
>             <param-name>properties</param-name>
>            
>
<param-value>E:/jakarta-tomcat-3.2/webapps/netsite/WEB-INF/properties/properties.properties</param-value>
>         </init-param>
>     </servlet>
>     <servlet-mapping>
>         <servlet-name>
>             NetSite
>         </servlet-name>
>         <url-pattern>
>             /NetSite
>         </url-pattern>
>     </servlet-mapping>
>     <servlet-mapping>
>         <servlet-name>
>             NetSite
>         </servlet-name>
>         <url-pattern>
>             *.dwf
>         </url-pattern>
>     </servlet-mapping>
> </web-app>
> 


__________________________________________________
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/

Reply via email to