-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Ray,
On 6/4/15 8:01 AM, Ray Holme wrote: >> Inside the WAR or having the WAR as a symlnk? > > OK, I did a test and YES inside a WAR file > ${CATALINA_HOME}/webapps/Application/WEB-INF/lib/*.jarfiles ARE > expanded if they are symbolic links to real files. What? The JAR utility does not support symlinks, so your JAR tool is likely putting the whole file into the WAR archive. Now, ZIP files *do* support symlinks, but I'll bet that Java will fall-over if you try to open a ZIP file and it encounters a symlink in there. > (My bad for not testing before). Now I am really in trouble. I > have an application which has a > ${CATALINA_HOME}/webapps/Application/photosdirectory which is a > symbolic link Pointing where? > with the following line in the > ${CATALINA_HOME}/conf/Catalina/localhost/Application.xml file: > aliases="/photos=/opt/web_bigDirs/Applicationi_photos" - I NEVER > wanted this link expanded!!! Tomcat doesn't expand anything. If you have a WAR file with an "alias" configured in it, it will just access the aliased directory directly. > The idea is to have multiple deployment places (hoping someday when > testing done), each having their own photos on file and never > deploy my own test photos. Can you explain this in a little more detail? Remember that nobody here has any idea what your application does, or what you expect to happen. > I was assuming this would work. "Trust But Verify"? > I tested and double DARN, "jar cf" expands the link pulling in all > the sub files - this totally frustrates my intention. I wanted a > symbolic link there for Unix based machines and just an empty > directory for Microsoft OS(s). Perhaps if I remove my symbolic > link the "aliases" parameter will work anyway. The aliases setting is completely independent from any symlink business you've got going on. > I will have to try that when I get a chance. I certainly don't > want to distribute the contents of this "directory" in a war file > (it could be HUGE). I would just use the aliases setting and remove the symlink entirely. The entire purpose of "aliases" is to allow you to have the effect of symlinks, but do it in a safe way (that doesn't delete all your symlinked files when you undeploy the web application, for instance). - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 Comment: GPGTools - http://gpgtools.org iQIcBAEBCAAGBQJVcH7bAAoJEBzwKT+lPKRYwKEP/0nrcgRPykFIioBnPhPEUv1J PeOpUpKrsSCHBjgIq691Bo1nZTWkdCAiplC/rBv7VRw3iW6d1oGkdQcK3xV66wiS xlU2RwGfVYjau0Vbn/gTi4IimAMYYuzLWwYUOv9c9zNCcsctJlCVLksO9XDTHOdU wl3D54WENVuAxFxP0P9iIoT1UEu0myAQHtcO0ez0uvdzt1DkaFR+EkJHDWcBPjPB cqvHXOYHzR6Ixv4Z3t+8DprmPHgIHQxjPlt4OhEIgGFqE0q1oDA6VKjdDcRETdQB Q0v6eynBC43w7Ac61R6KU6zNXxpxTWL+8+xZ9dqAy8zlJmsDqLUXt8SkDGc9mkJR lcELbmfKttsHIgoVydyBjS8WyvpAYYkS8MLj/ntpb1w7lWuKHV6tHkcyX2pSfOEG g1sMUU8P4/rCrFk69/1GJkP9DUL1nfIskGybQ1cTPuBs5m1tPIgVVhSf8swOLdYl 6tkG+9+H8x8ICW/kuggSmiD8aKpl3+NBmfxRhzUJBNSDUDIsyGCp4vT2usAExyu4 SEaC5XlB18uNvIoZrDWx7naodWiMRIgTCno0cJyNgq+NpxlRJ7NbOHpa8xzwK0gV RG1vzP6jvSxIHioIk/W+R7+hiWU2DyzePAIhVsCTcvf96CmMuYtub3x+WYF5vEnM ZCBcvR4CU2ba0oIZQcXB =N8tQ -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org