Help needed on error on pdf download using URL

P

pramodr

Hi group,

I have setup security for a particular folder in Tomcat server (4.0.6),
which contains pdf files and could be accessed through basic password
authentication implemented through Java Authenticator class. Now my
problem is that I am unable to open the pdf using the URL, like
http://myserver:8900/examples/pdffolder/R1.pdf. I use IE 6.0 which says
the site cannot be opened.

Any guidence on this will be greatly appreciated.

Pramod R
 
P

pramodr

Forgot to mension:

The security profile is added in web.xml as follows

<security-constraint>
<display-name>Example Security Constraint</display-name>
<web-resource-collection>
<web-resource-name>Protected Area</web-resource-name>
<!-- Define the context-relative URL(s) to be protected -->
<url-pattern>/examples/*</url-pattern>
<!-- If you list http methods, only those methods are protected -->
<http-method>DELETE</http-method>
<http-method>GET</http-method>
<http-method>POST</http-method>
<http-method>PUT</http-method>
</web-resource-collection>
<auth-constraint>
<!-- Anyone with one of the listed roles may access this area
-->
<role-name>tomcat</role-name>
<role-name>role1</role-name>
</auth-constraint>
</security-constraint>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,266
Messages
2,571,077
Members
48,772
Latest member
Backspace Studios

Latest Threads

Top