You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Koes, Derrick" <De...@Smith-Nephew.com> on 2002/07/08 21:34:36 UTC

image url problem

I am trying to include an image in a pdf document generated from a servlet.

The image url is another servlet which retrieves the image from the
database.

Using the fo:external-graphic element, I get the following in the log:

 

2002-07-08 15:08:11.239 [Ajp13Processor[8009][0]] ERROR DoraLogger  - Error
while creating area : Error with image URL: Server returned HTTP response
code: 401 for URL: http://koes/dora/MediaContentHandler?type=image
<http://koes/dora/MediaContentHandler?type=image&id=1&mimetype=image/jpeg>
&id=1&mimetype=image/jpeg and no base directory is specified

 

I realize this is a servlet container configuration problem  (I am using
Tomcat 4.0.4 and Apache HTTPD 2.039 with the ajp [mod_jk] connector), but I
thought I'd post it to both lists to find out if users on either list have
had this problem and know how to resolve it.

 

Thanks,

Derrick


Re: image url problem

Posted by "J.Pietschmann" <j3...@yahoo.de>.
Koes, Derrick wrote:
> I am trying to include an image in a pdf document generated from a servlet.
> 
> The image url is another servlet which retrieves the image from the 
> database.
> 
> Using the fo:external-graphic element, I get the following in the log:
> 
> 2002-07-08 15:08:11.239 [Ajp13Processor[8009][0]] ERROR DoraLogger  - 
> Error while creating area : Error with image URL: Server returned HTTP 
> response code: 401 for URL: 
> http://koes/dora/MediaContentHandler?type=image&id=1&mimetype=image/jpeg 
> <http://koes/dora/MediaContentHandler?type=image&id=1&mimetype=image/jpeg> 
> and no base directory is specified

401 is "unauthorized". Can you see the image in a browser?
Check the Apache HTTPD documentation for how to set access
restrictions, or ask on the HTTPD list.

J.Pietschmann