If you change jetty-shared-webapps.xml to point to
/usr/share/java/webapps you will get nothing working. After diving into
Jetty's directory hierarchy, I could not find the config file that was
making Jetty look for webapps in /usr/share/java/webapps.

I could come up with 2 hacks to make it work (both worked, I checked
them separately):

FIRST: Make a simbolic link called /usr/share/java/webapps pointing to
/var/lib/jetty/webapps

SECOND: In the /etc/init.d/jetty file I added a line just before the line 200, 
so it looks like this:
   NAME=jetty
   WEBAPPDIR="$JETTY_HOME/webapps"

This makes sure that if any other file changed the name, to java, it
overwrites it and makes it work.

Anyways, the bug is real and I could not find an elegant solution to
this as I am not a Jetty expert. First time I use it, and I have to say
I saw many people having trouble on Ubuntu, because it doesn't work out
of the box.

Thanks

-- 
Should create /usr/share/java/webapps ?
https://bugs.launchpad.net/bugs/505836
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to