Results 1 to 4 of 4

Thread: How Symlinks allow linking and working with Tomcat

  1. #1
    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.

  2. #2
    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>

  3. #3
    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>

  4. #4
    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.

Similar Threads

  1. Is tomcat application available for Nokia X7?
    By Sheamas in forum Portable Devices
    Replies: 4
    Last Post: 10-06-2011, 01:02 PM
  2. Account linking not working Dragon age Legends on Facebook
    By intoxicating in forum Video Games
    Replies: 5
    Last Post: 23-03-2011, 10:10 AM
  3. Tomcat version 6.x via EasyApache
    By Galimberti in forum Software Development
    Replies: 6
    Last Post: 18-06-2010, 03:58 AM
  4. Tomcat Installation on FreeBSD
    By Isiah in forum Software Development
    Replies: 6
    Last Post: 17-06-2010, 03:38 AM
  5. Tomcat crashed when used with java
    By Pikachoo in forum Software Development
    Replies: 4
    Last Post: 06-03-2009, 01:09 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,750,302,530.15628 seconds with 16 queries