pdf documents
- From: "Bob Wyatt" <bwyatt (at) comcast.net>
- Date: Wed, 21 Jun 2006 08:37:14 -0400
Pid,
Thank you very much for this response...
Placing the pdf.xml file in $CATALINA_HOME/conf/Catalina/localhost does now
allow http://myipaddr:8100/pdf to display the files in the specified
directory.
However, my webapp still does not pull it from here; it reports that the
resource /myapp/jsp/app/C666119.pdf is unavailable. So I am guessing there
is a file within the webapp that is over-riding, or over-ruling the
'default' that is now created?
Can someone provide any advice on where to look next?
Can someone provide some advice on what to do if I want to use more than one
pdf directory, where the second directory is not a subdirectory of the
first?
Regards,
Bob
-----Original Message-----
From: Pid [mailto:p (at) pidster.com]
Sent: Wednesday, June 21, 2006 05:04
To: Tomcat Users List
Subject: Re: pdf documents
Don't you need to put the context file pdf.xml in a different place?
$CATALINA_HOME/conf/<engine-prob-Catalina?>/<hostname-maybe-webapp?>/pdf.xml
Once it's there you have to call the correct URL, which will be
<webapp-path>/pdf/<file>.pdf
Bob Wyatt wrote:
> Mark,
>
> I appreciate all of your help and energy on my behalf...
>
> But alas, this does not work for me...
>
> "The requested resource (/myapp/jsp/app/C666119.pdf) is not available..."
>
> I removed the $CATALINA_HOME/webapps/myapp/WEB-INF/pdf.xml, and I modified
> $CATALINA_HOME/webapps/pdf.xml to read:
> # more pdf.xml
> <Context docBase="/usr/lg/unformq" path="/pdf" > </Context>
>
> The test to http://myip:8100/pdf also fails with resource unavailable...
>
> The log file does not report any errors; the last entries are from the
> shutdown and restart of tomcat...
>
> 2006-06-20 19:24:58 StandardContext[/servlets-examples]ContextListener:
> attributeReplaced('org.apache.catalina.WELCOME_FILES', '[Lja
> va.lang.String; (at) 38a11b3b')
> 2006-06-20 19:24:58 StandardContext[/servlets-examples]ContextListener:
> attributeReplaced('org.apache.catalina.WELCOME_FILES', '[Lja
> va.lang.String; (at) 66cb5b3c')
> 2006-06-20 19:24:58 StandardContext[/servlets-examples]ContextListener:
> attributeReplaced('org.apache.catalina.WELCOME_FILES', '[Lja
> va.lang.String; (at) 1495b3c')
> 2006-06-20 19:24:58 StandardContext[/servlets-examples]SessionListener:
> contextDestroyed()
> 2006-06-20 19:24:58 StandardContext[/servlets-examples]ContextListener:
> contextDestroyed()
> 2006-06-20 19:24:58 StandardContext[/jsp-examples]ContextListener:
> attributeReplaced('org.apache.catalina.WELCOME_FILES', '[Ljava.la
> ng.String; (at) 195f9b3d')
> 2006-06-20 19:24:58 StandardContext[/jsp-examples]ContextListener:
> attributeReplaced('org.apache.catalina.WELCOME_FILES', '[Ljava.la
> ng.String; (at) 4745b3d')
> 2006-06-20 19:24:58 StandardContext[/jsp-examples]ContextListener:
> attributeReplaced('org.apache.catalina.WELCOME_FILES', '[Ljava.la
> ng.String; (at) 345db3d')
> 2006-06-20 19:24:58 StandardContext[/jsp-examples]SessionListener:
> contextDestroyed()
> 2006-06-20 19:24:58 StandardContext[/jsp-examples]ContextListener:
> contextDestroyed()
> 2006-06-20 19:25:39
> StandardContext[/balancer]org.apache.webapp.balancer.BalancerFilter:
init():
> ruleChain: [org.apache.webapp.balan
> cer.RuleChain: [org.apache.webapp.balancer.rules.URLStringMatchRule:
Target
> string: News / Redirect URL: http://www.cnn.com], [org.a
> pache.webapp.balancer.rules.RequestParameterRule: Target param name:
> paramName / Target param value: paramValue / Redirect URL: http
> ://www.yahoo.com], [org.apache.webapp.balancer.rules.AcceptEverythingRule:
> Redirect URL: http://jakarta.apache.org]]
> 2006-06-20 19:25:39 StandardContext[/jsp-examples]ContextListener:
> contextInitialized()
> 2006-06-20 19:25:39 StandardContext[/jsp-examples]SessionListener:
> contextInitialized()
> 2006-06-20 19:25:39 StandardContext[/servlets-examples]ContextListener:
> contextInitialized()
> 2006-06-20 19:25:39 StandardContext[/servlets-examples]SessionListener:
> contextInitialized()
>
> Regards,
>
> Bob
>
> -----Original Message-----
> From: Mark Thomas [mailto:markt (at) apache.org]
> Sent: Tuesday, June 20, 2006 19:14
> To: Tomcat Users List
> Subject: Re: pdf documents
>
> Bob Wyatt wrote:
>> <Context docBase="/usr/test/pdf" > </Context>
>
> Sorry, I should have read you post more carefully. The above works for
> 5.5.x but for 5.0.x you will need
> <Context docBase="/usr/test/pdf" path="/pdf" > </Context>
>
> On this version directory listings are enabled so http://host:port/pdf
> should return a directory listing.
>
>> So I then copied pdf.xml to $CATALINA_HOME/webapps/appname/WEB-INF,
> shutdown
>> and restarted Tomcat, and I receive the same error message.
>
> I don't think this would ever work. I'd delete this copy of pdf.xml so
> it doesn't cause confusion down the road.
>
> If, after a restart, this still doesn't work have a look in
> $CATALINA_HOME/logs and post the relevant sections of the logs.
>
> Mark
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users (at) tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe (at) tomcat.apache.org
> For additional commands, e-mail: users-help (at) tomcat.apache.org
>
>
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users (at) tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe (at) tomcat.apache.org
> For additional commands, e-mail: users-help (at) tomcat.apache.org
>
>
>
---------------------------------------------------------------------
To start a new topic, e-mail: users (at) tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe (at) tomcat.apache.org
For additional commands, e-mail: users-help (at) tomcat.apache.org
---------------------------------------------------------------------
To start a new topic, e-mail: users (at) tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe (at) tomcat.apache.org
For additional commands, e-mail: users-help (at) tomcat.apache.org