Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 29-05-2009
Member
 
Join Date: Apr 2009
Posts: 89
How Symlinks allow linking and working with Tomcat

I have read that symlink allows linking with the point at the directory files, and it also works with the Tomcat, and it also provides the web application to link resources located outside the web application root directory. In my college workshop symlinks were used for various aspects of the tomcat installation. but i have never done that myself and therefore eager to know more about the symlink so if anyone has any information please let me know.
Reply With Quote
  #2  
Old 29-05-2009
Member
 
Join Date: Oct 2008
Posts: 167
Re: How Symlinks allow linking and working with Tomcat

Following are the way where we create a context.xml file in a WEB-INF directory to run run your web application.

Code:
<?xml version="1.0" encoding="UTF-8"?>

<Context path="/myapp" allowLinking="true">

</Context>
Reply With Quote
  #3  
Old 29-05-2009
Member
 
Join Date: Jan 2009
Posts: 140
Re: How Symlinks allow linking and working with Tomcat

Tomcat follow symbolic links?and it?s very easy! All you have to do is add allowLinking="true" to the Context tag in the context.xml file. It's always better to actually install the files (usually in a .war) to the server directly instead of using links. This allows you to "hot-deploy" and "hot-undeploy" (I think Tomcat supports this now) by copying and removing the .war file. For Tomcat 5.5 and later, I find the most convenient way is to have a META-INF directory in the web application directory and have a context.xml file in this. Like this all the files to do with the web application are in the same place and copying and deploying is easy. So, context.xml looks like the following:

Code:
<?xml version="1.0" encoding="UTF-8"?>

<Context path="/myapp" allowLinking="true">

</Context>
Reply With Quote
  #4  
Old 29-05-2009
Member
 
Join Date: Jan 2009
Posts: 143
Re: How Symlinks allow linking and working with Tomcat

When using a shared webhosting environment, it is recommended that usage of context.xml inside a WAR is forbidden (using the deployXML attribute of the Host element)?. I would suggest creating a "tomcat group" in the "system-settings"->"users and groups". (or you could "man /etc/group" and manually add a line to the "/etc/group" file, something like this. Presumably this is because it would allow badly behaved configurations to be loaded.
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "How Symlinks allow linking and working with Tomcat"
Thread Thread Starter Forum Replies Last Post
Is tomcat application available for Nokia X7? Sheamas Portable Devices 4 10-06-2011 01:02 PM
Account linking not working Dragon age Legends on Facebook intoxicating Video Games 5 23-03-2011 10:10 AM
Tomcat version 6.x via EasyApache Galimberti Software Development 6 18-06-2010 03:58 AM
Tomcat Installation on FreeBSD Isiah Software Development 6 17-06-2010 03:38 AM
Tomcat crashed when used with java Pikachoo Software Development 4 06-03-2009 01:09 PM


All times are GMT +5.5. The time now is 12:11 PM.