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;@38a11b3b')
> 2006-06-20 19:24:58 StandardContext[/servlets-examples]ContextListener:
> attributeReplaced('org.apache.catalina.WELCOME_FILES', '[Lja
> va.lang.String;@66cb5b3c')
> 2006-06-20 19:24:58 StandardContext[/servlets-examples]ContextListener:
> attributeReplaced('org.apache.catalina.WELCOME_FILES', '[Lja
> va.lang.String;@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;@195f9b3d')
> 2006-06-20 19:24:58 StandardContext[/jsp-examples]ContextListener:
> attributeReplaced('org.apache.catalina.WELCOME_FILES', '[Ljava.la
> ng.String;@4745b3d')
> 2006-06-20 19:24:58 StandardContext[/jsp-examples]ContextListener:
> attributeReplaced('org.apache.catalina.WELCOME_FILES', '[Ljava.la
> ng.String;@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:[EMAIL PROTECTED] 
> 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@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to