Not sure that you need it, but do you have a WEB-INF directory underneath
/usr/local/watermarks (i.e. /usr/local/watermarks/WEB-INF/)? If so, do you
have a web.xml file in there (even a skeletal one)?

------------------------------------------------------------
This e-mail and attachments, if any, may contain confidential and/or
proprietary information. Please be advised that the unauthorized use or
disclosure of the information is strictly prohibited. If you are not the
intended recipient, please notify the sender immediately by reply e-mail and
delete all copies of this message and attachments. Thank you. 

 

-----Original Message-----
From: Matthew Hixson [mailto:[EMAIL PROTECTED]
Sent: Fri 09 July 2004 4:59 pm
To: Tomcat Users List
Subject: Re: serving static content


      <Host name="localhost" debug="99"
        unpackWARs="true" autoDeploy="true"
        xmlValidation="false" xmlNamespaceAware="false">

<!-- ADD WATERMARKS DIRECTORY -->
       <Context path="/watermarks" appBase=""
                  docBase="/usr/local/watermarks"
                  debug="99" reloadable="true">
       </Context>

       <Valve className="org.apache.catalina.valves.AccessLogValve"
                prefix="localhost_access_log." suffix=".log"
                pattern="common" directory="${jboss.server.home.dir}/log"
                resolveHosts="false" />

       </Host>



On Jul 9, 2004, at 1:52 PM, Jim Cox wrote:

> What's your Context entry?
>
> ------------------------------------------------------------
> This e-mail and attachments, if any, may contain confidential and/or
> proprietary information. Please be advised that the unauthorized use or
> disclosure of the information is strictly prohibited. If you are not 
> the
> intended recipient, please notify the sender immediately by reply 
> e-mail and
> delete all copies of this message and attachments. Thank you.
>
>
>
> -----Original Message-----
> From: Matthew Hixson [mailto:[EMAIL PROTECTED]
> Sent: Fri 09 July 2004 4:54 pm
> To: Tomcat Users List
> Subject: Re: serving static content
>
>
> I'm trying to serve images from /usr/local/watermarks.  The URL should
> be http://mymachine.com/watermarks/.  I've tried adding a Context to
> server.xml, but every time I try to access
> http://mymachine.com/watermarks I get a 404 message:
>
> The requested resource (/watermarks/) is not available.
>
> This is with Tomcat 5.0.26 embedded in JBoss 3.2.4.  There are not any
> error messages in any logfiles.
>    Thanks,
>     -M@
>
> On Jul 9, 2004, at 1:41 PM, Mike Curwen wrote:
>
>> Tomcat will serve static content, pretty much "out of the box".  What
>> is
>> the problem you're experiencing ?
>>
>>
>>> -----Original Message-----
>>> From: Matthew Hixson [mailto:[EMAIL PROTECTED]
>>> Sent: Friday, July 09, 2004 3:27 PM
>>> To: Tomcat Users List
>>> Subject: serving static content
>>>
>>>
>>> Does there exist a howto on serving static content with Tomcat?  Even
>>> better would be one that shows how to do this with Tomcat+JBoss.
>>> Searching Google seems to turn up lots of hits that say
>>> basically, "Use
>>> Apache instead of Tomcat to serve static content."  I really need to
>>> get this working in Tomcat without Apache.
>>>    Thanks,
>>>      -M@
>>>
>>>
>>> ---------------------------------------------------------------------
>>> 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]

Reply via email to