Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Directory listing context docBase

 
billy thompson
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to setup tomcat with directory listing of files enabled. Tomcat was installed through Eclipse. I have edited the server.xml file to include the new context path needed however http://localhost:8080/movies doesn't work (404). http://localhost:8080/movies/DB_Connect does work with it's other path though. What other settings could possibly cause this problem? The reason i need the directory available publicly is because i want to be able to have files downloaded from a servlet easily with sendRedirect()

<Host appBase="webapps" autoDeploy="true" name="localhost" unpackWARs="true" xmlNamespaceAware="false" xmlValidation="false">

<Context docBase="DB_Connect" path="/DB_Connect" reloadable="true" source="org.eclipse.jst.jee.serverB_Connect"/>
<Context docBase="C:/Movies" path="/movies" reloadable="true"/>

</Host>
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!