Re: [jetty-user] Jetty 8.0
Jan Bartel <[email protected]> Wed, 28 Mar 2012 14:50:07 +1100
| Newsgroups | gmane.comp.java.jetty.support |
|---|---|
| Message-ID | <CALg=VpiW+AmTFjz7JD_aDjgzn9y-XCGy9NOuutAYm8JfOA4XQg@mail.gmail.com> |
Kirk, Fixed the NPE with the start line: https://bugs.eclipse.org/bugs/show_bug.cgi?id=375490 Are you sure you haven't got $JETTY_HOME/webapps and $JETTY_HOME/contexts configured in one of the xml config files? thanks Jan On 24 March 2012 20:43, Kirk Pepperdine <[email protected]> wrote: > 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 > > --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email