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
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.
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
PLaese no send emailthank you
-Mensaje original-
De: Matthew Hixson [mailto:[EMAIL PROTECTED]
Enviado el: Viernes 9 de Julio de 2004 15:54
Para: Tomcat Users List
Asunto: Re: serving static content
I'm trying to serve images from /usr/local/watermarks. The URL should
be http
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
To unsubscribe, e-mail: [EMAIL PROTECTED]
!
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, July 09, 2004 3:57 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: RE: serving static content
PLaese no send emailthank you
: 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
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
: 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
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 5:09 pm
To: Tomcat Users List
Subject: Re: serving static content
I
PROTECTED]
Sent: Fri 09 July 2004 5:09 pm
To: Tomcat Users List
Subject: Re: serving static content
I actually did try this already. I have a WEB-INF with a web.xml in
it. The entire web.xml is:
---
?xml version=1.0?
!DOCTYPE web-app PUBLIC
-//Sun Microsystems, Inc.//DTD Web
. Thank you.
-Original Message-
From: Matthew Hixson [mailto:[EMAIL PROTECTED]
Sent: Fri 09 July 2004 5:09 pm
To: Tomcat Users List
Subject: Re: serving static content
I actually did try this already. I have a WEB-INF with a
web.xml in
it. The entire web.xml
it in the manager. Or it might be that tomcat, for
whatever reason, isn't starting the context.
--mikej
-=-
mike jackson
[EMAIL PROTECTED]
-Original Message-
From: Matthew Hixson [mailto:[EMAIL PROTECTED]
Sent: Friday, July 09, 2004 2:48 PM
To: Tomcat Users List
Subject: Re: serving static content
On Fri, Jul 09, 2004 at 01:58:40PM -0700, Matthew Hixson wrote:
: Host name=localhost debug=99
:unpackWARs=true autoDeploy=true
:xmlValidation=false xmlNamespaceAware=false
:
: Context path=/watermarks appBase=
: docBase=/usr/local/watermarks
:
Got it! My colleague discovered this post:
http://www.jboss.org/index.html?module=bbop=viewtopicp=3840204#3840204
I put the defaultWebXml attribute into the Context and pointed it to
the stock global Tomcat web.xml file. Now Tomcat thinks that
/watermarks/ is a real webapp apparently and files
Howdy,
I tried adding a Context to the
webappBase\WEB-INF\web.xml file:
A context IS a web application: it's a one to one relationship.
But it doesn't seem to work. Can someone please point
me in the right direction to serve static content /
files?
You don't need to configure tomcat to
OK that makes sense and I've tested it and you're
right.
I have a directory structure like this (everything
over SSL):
.../webapps/theWebApp/
.../webapps/theWebApp/certs
and in the .../webapps/theWebApp/ directory I have a
file called main.html that has a link to
Howdy,
and in the .../webapps/theWebApp/ directory I have a
file called main.html that has a link to
https://servername/theWebApp/certs/CACert.cer
and when I click it it will not allow me to save it or
access it at all. However, if I put a test file in
the /certs directory called hi.html, I can
18 matches
Mail list logo