Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

problem in loading a text document into a browser via tomcat 1

Status
Not open for further replies.

AnthonyGeorge

Technical User
Jun 3, 2004
46
GB
I am trying to build a web application that will load a text page into a browser.

The application loads the web page into the the following directory:

C:\jakarta-tomcat-4.1.12\webapps\know_your_customer_docs\customer1\customer1.doc.

I have added the following to my server.xml file:

<Context path="/customers"
docBase="/jakarta-tomcat-4.1.12/webapps/know_your_customer_docs="0" reloadable="true"
</Context>


I am trying to load the document with the following URL:

I then get the following error:

The requested resource (/customers/customer1/customer1.doc) is not available.

Thanks for any help.

Anthony
 
OK, a bit of a re-arrange is needed ...

Forget the <Context> entry in server.xml.

Create these directories :
C:\jakarta-tomcat-4.1.12\webapps\customers
C:\jakarta-tomcat-4.1.12\webapps\customers\docs
C:\jakarta-tomcat-4.1.12\webapps\customers\WEB-INF

Delete this directory :
C:\jakarta-tomcat-4.1.12\webapps\know_your_customer_docs

Put your customer.doc in :
C:\jakarta-tomcat-4.1.12\webapps\customers\docs

and then access it via this url :

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top