Re: [jetty-user] Jetty 8.0
Kirk Pepperdine <[email protected]> Sat, 24 Mar 2012 10:43:14 +0100
| Newsgroups | gmane.comp.java.jetty.support |
|---|---|
| Message-ID | <[email protected]> |
Hi,
I've trying to configure 8.1.2 to run with a webapp that I cannot keep in the distribution. I'm using the command line as follows.
java -Dapp.properties=webapp.properties -Djetty.home=../bin/jetty-distribution-8.1.2 -jar ../bin/jetty-distribution-8.1.2/start.jar ./jetty/etc/jetty.xml
The problem is in addition to scanning my webapp and context directories, it is also scanning the $JETTY_HOME/webapps and $JETTY_HOME/contexts first. This causes the script fails with a BindException: address already in use. If I switch ports on my listener then all is well. So the question is, how do I get jetty to not scan the configuration in the distribution. Note that I've gone through jetty-context.xml and jetty-webapps.xml to change the deployment directory to my local directory. Just having difficulty seeing what I've missed.
One other point, when I run
java -Djetty.home=../bin/jetty-distribution-8.1.2 -jar ../bin/jetty-distribution-8.1.2/start.jar --help
from the same directory as I'm trying to run my webapp from (not the jetty distribution dir) I get the following output:
<loads of good stuff snipped out>
The current start.ini arguments are:
java.lang.NullPointerException
at org.eclipse.jetty.start.Main.loadStartIni(Main.java:1053)
at org.eclipse.jetty.start.Main.usage(Main.java:384)
at org.eclipse.jetty.start.Main.start(Main.java:517)
at org.eclipse.jetty.start.Main.main(Main.java:82)
<good stuff snipped out>
Appreciate any pointers.
Kind regards,
Kirk Pepperdine
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email