1 Oct 2003 04:31
[Jetty-support] Problem starting jetty plus
Michael Eastwood <meastwood <at> synergyccs.com.au>
2003-10-01 02:31:22 GMT
2003-10-01 02:31:22 GMT
Hello. Have been looking at the JettyPlus bits and pieces, and came across a couple of problems: 1. Trying to start the jettyplus demo, ant exits with a xercesImpl parsing exception (can't put '--' inside a comment). Specifically, lines 60-65 of jettyplus.xml contain 'comments' such as -- millis -- which interfere with parsing. Changing these to - millis - allowed the demo to run correctly. 2. Trying to weave JNDI Datasource lookups into my own code, I reconfigured the server to use the org.mortbay.jetty.plus.Server class, and edited start.config in start.jar as per instructions on http://jetty.mortbay.org/jetty/plus/. Unfortunately, with these changes made start.jar becomes useless, exiting with NullPointerExceptions. Specifically, org/mortbay/plus/Server.java in its main method creates new Servers as per the xml configuration, then tries immediately to start each one. Starting involves iterating over the service list. This service list is not initialized unless the xml configuration file contains at least one "addService" call. This requirement isn't stated on the plus page above, or in the README file that comes in the plus section's build area. Although it might seem obvious that you would want to congiure services to bother using the plus server, a more helpful error message, or a little doco might smooth the way. Michael ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek(Continue reading)
RSS Feed