You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Matthew Hixson <mh...@versaly.com> on 2004/07/09 22:27:20 UTC
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: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
RE: serving static content
Posted by Mike Curwen <g_...@globallyboundless.com>.
Adding a context is not quite enough. It must be recognized as a web-app
also. Which means place an empty web.xml file in the WEB-INF directory.
> -----Original Message-----
> From: Matthew Hixson [mailto:mhixson@versaly.com]
> Sent: Friday, July 09, 2004 3: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:mhixson@versaly.com]
> >> 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: tomcat-user-unsubscribe@jakarta.apache.org
> >> For additional commands, e-mail:
> tomcat-user-help@jakarta.apache.org
> >>
> >
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: serving static content
Posted by Matthew Hixson <mh...@versaly.com>.
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:mhixson@versaly.com]
>> 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: tomcat-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
RE: serving static content
Posted by Mike Curwen <g_...@globallyboundless.com>.
Tomcat will serve static content, pretty much "out of the box". What is
the problem you're experiencing ?
> -----Original Message-----
> From: Matthew Hixson [mailto:mhixson@versaly.com]
> 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: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org