• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

symbolic link directory within webapp directory

 
Fred Rogan
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have set up a web application in a directory outside of the webapps directory on a unix box and created a symbolic link to the directory within the webapps directory. ie. directory is '/home/fitcorp/fitcorpdev/'
with a symbolic link 'webapps/dev'.

I have added the new application to the server.xml document for tomcat and when I start tomcat 4.1 it recognises the application and creates no errors in the log files. However when I try to access a servlet in the application it writes to the log file that it has started the application using the default directory structure and cannot access the web.xml file. The application throws an error stating it cannot access the servlet.

I'm not sure why it is trying to start the application again. Is it something to do with having a symbolic link in the directory?

If anyone can offer any suggestions they would be greatly appreciated
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
 
Fred Rogan
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Ben.

allowLinking was not included in my context tag, default is false. When I added it and set it to true my problems were resolved.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic