See comments inline Med venlig hilsen/Kind regards Casper/Kalle
-----Original Message----- From: Jan Kessinger [mailto:jankessin...@gmx.de] Sent: 21. januar 2013 10:00 To: users@tomcat.apache.org Subject: smylink inside webapps to eclipse project fails Hello. I am failing to deploy a eclipse/spring project via smylink to my tomcat. Apache Tomcat/7.0.26 1.6.0_24-b24 Sun Microsystems Inc. Linux 3.2.0-35-generic-pae i386 My plan is to use a symlink to the spring workspace: ######################################################################### root@machine:/var/lib/tomcat7/webapps# ls -la drwxrwxr-x 4 tomcat7 tomcat7 4096 Jan 21 09:27 . drwxr-xr-x 6 root root 4096 Jan 20 20:59 .. drwxr-xr-x 3 root root 4096 Jan 20 21:30 ROOT lrwxrwxrwx 1 root root 50 Jan 21 09:19 springapp -> /home/usr/Lab/SpringWorkspace/springapp/war/ drwxr-xr-x 3 root root 4096 Jan 21 09:27 springapp2 ######################################################################### The copied folder springapp2 works fine, the webapp is reachable in the browser via localhost:8080/springapp2/ The symlink springapp delivers a 404 in the browser trying to open localhost:8080/springapp/ The logfile output is: ######################################################################### 21.01.2013 09:29:33 org.apache.catalina.startup.HostConfig start SCHWERWIEGEND: Unable to create directory for deployment: /var/lib/tomcat7/webapps/springapp 21.01.2013 09:29:33 org.apache.catalina.startup.HostConfig start SCHWERWIEGEND: Application base [/var/lib/tomcat7/webapps/springapp] for host [sprigtestsymlink] does not exist or is not a directory. deployOnStartUp and autoDeploy have been set to false to prevent deployment errors. Other errors may still occur. Kalle: To me this indicates that tomcat can't read the symlink/folder. Are you sure the permissions are right? Also I'm no expert in tomcat so I'm not quite sure that tomcat can actually handle symlinks (but I can't see why it wouldn't). ######################################################################### /var/lib/tomcat7/conf/sever.xml: ######################################################################### <Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="true"> <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" prefix="localhost_access_log." suffix=".txt" pattern="%h %l %u %t "%r" %s %b" /> </Host> <Host name="sprigtestsymlink" appBase="webapps/springapp" unpackWARs="true" autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false"> </Host> Kalle: This is wrong. Check http://wiki.apache.org/tomcat/TomcatDevelopmentVirtualHosts. It clearly states that all appbases should be placed outside the webapps folder (which is the appbase for the localhost Host element). Remove the Host (also the one below) and try again. <Host name="springtestcopiedfolder" appBase="webapps/springapp2" unpackWARs="true" autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false"> </Host> ######################################################################### I would appriciate any hint. Greetings from Berlin, Jan kessinger --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org