A Curious Animal
Bla, bla, bla, ..., (evolution) , ..., blog, blog, blog, ...
Bla, bla, bla, ..., (evolution) , ..., blog, blog, blog, ...
Thu, 10 Sep, 2009
Recently I started working with Jetty. I have never used it, always working with Tomcat and my dear GlassFish.
One of my first problems with Jetty was about the symbolic links in Linux. Usually, while developing, I like to have my code organized in some directories and my servers in others. Then I create a simlink from the webapps Jetty's folder to my project folder. But that strategy fails initially in Jetty.
Taking a look in the FAQ pages found here and here, you can read that:
Jetty by defaults runs in a mode where all file accesses are checked for aliases, such as case insensitivity, short names, symbolic links and extra characters (Eg %00). If a resource is an alias, then it is treated as not found.
There are, or at least I know two solutions.
java -Dorg.mortbay.util.FileResource.checkAliases=False -jar start.jar
default
org.mortbay.jetty.servlet.DefaultServlet
. . .
aliases
true
. . .
Recent comments
7 weeks 4 days ago
15 weeks 5 hours ago
1 year 2 days ago
1 year 21 weeks ago
1 year 21 weeks ago