0

I have tried changing the docBase (with the help of several tutorials for serving static images from outside WebApp)of the Apache Tomcat installed by Netbeans, but till now no luck for me and getting 404 error.

<Context path="/WebApp/images" docBase="C:\\Users\Digvijay\Pictures\SAB" />

I am using windows.

I am not sure if there is some other way to configure Apache Tomcat installed by netbeans.

By the way below are the links for the solutions I tried

Simplest way to serve static data from outside the application server in a Java web application

Mapping a directory outside the web-app to URL in TOMCAT

Community
  • 1
  • 1
me_digvijay
  • 5,374
  • 9
  • 46
  • 83

1 Answers1

0

Following steps works for me (NetBeans 7.3) ...

  1. Select "Services" tab in NetBeans (top-lefthand box)
  2. Right-click "Servers :: Apache Tomcat " and select "Edit server.xml" item
  3. Put content as described in links and save file
  4. Right-click "Servers :: Apache Tomcat " and select "Restart"
Atza
  • 16