Yea, I accidently hit the send button on the last email before I was done writing it, but it's working. I just had to create two context files under conf/Catalina/localhost/
-ryan -----Original Message----- From: Gurumoorthy [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 19, 2005 1:33 PM To: Tomcat Users List Subject: Re: Need help exporting contexts not under webapps/ Did you manage to get it right ? I would recommend that you use lower case context path name Regards Guru ----- Original Message ----- From: "J. Ryan Earl" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[email protected]> Sent: Tuesday, April 19, 2005 6:56 PM Subject: RE: Need help exporting contexts not under webapps/ > Thanks for the reply, I actually figured it a few hours later. I was trying > to do 2/ in your list. I added a PICS.xml and a DOCS.xml under the > ${CATALINA_HOME}/conf/Catalina/localhost/ directory which gave me the PICS > and DOCS contexts. ie: > > [EMAIL PROTECTED] localhost]$ pwd > /home/tomcat/jakarta-tomcat-5.5.9/conf/Catalina/localhost > [EMAIL PROTECTED] localhost]$ ls > DOCS.xml host-manager.xml manager.xml PICS.xml > [EMAIL PROTECTED] localhost]$ cat PICS.xml > <Context docBase="/mnt/CMFiles/PICS" > privileged="true" antiResourceLocking="false" > antiJARLocking="false"> > </Context> > [EMAIL PROTECTED] localhost]$ cat PICS.xml > <Context docBase="/mnt/CMFiles/PICS" > privileged="true" antiResourceLocking="false" > antiJARLocking="false"> > </Context> > [EMAIL PROTECTED] localhost]$ cat PICS.xml DOCS.xml > <Context docBase="/mnt/CMFiles/PICS" > privileged="true" antiResourceLocking="false" > antiJARLocking="false"> > </Context> > <Context docBase="/mnt/CMFiles/DOCS" > privileged="true" antiResourceLocking="false" > antiJARLocking="false"> > </Context> > > > > -----Original Message----- > From: QM [mailto:[EMAIL PROTECTED] > Sent: Monday, April 18, 2005 8:30 PM > To: Tomcat Users List > Subject: Re: Need help exporting contexts not under webapps/ > > > On Mon, Apr 18, 2005 at 01:16:04PM -0500, J. Ryan Earl wrote: > : So my question is, in short, given a directory structure of static files, > : how do you get Tomcat to serve said static content off of an arbitrary > URI? > > So, are you trying to > 1/ have a Tomcat-run webapp serve content that exists outside of the > context path? > > 2/ setup the static content as its own webapp (context)? > > > For #1, the (portable, spec-friendly) way is to write a servlet or > filter to intercept requests for a given URI, open the matching file as > an InputStream, and push the data to the client via the Response > OutputStream. > > For #2, I don't remember the exact syntax off the top of my head so I > won't waste your time with something that may not work. =) But it's > definitely possible for a webapp to not exist under the "webapps/" > directory. > > Just make sure said webapp has a WEB-INF directory and a web.xml. Even > a web.xml of just > <web-app/> > should do. > > -QM > > -- > > software -- http://www.brandxdev.net/ > tech news -- http://www.RoarNetworX.com/ > code scan -- http://www.JxRef.org/ > > --------------------------------------------------------------------- > 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] > --------------------------------------------------------------------- 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]
