I’d liek to create a suite of integration tests that simply starts jettyRun up, runs the tests, then calls jettyStop. This part is simple, but the part that has been killing me is just getting the jndi names setup and working.
I followed the example on the jetty site, but so far no luck. Does anyone have any simple jetty.xml example that includes simple jndi setup?
I have the same question as James and the above response doesn’t answer the question for me.
I am new to Gradle and Jetty and am stuck in the gap between Gradle documentation and Jetty documentation.
How do I know which version of Jetty is being used (so I can read the correct Jetty documentation)?
The Gradle documentation says: jettyConfig – The jetty configuration file to use. When null, no configuration file is used.
Which config file are they referring to (Jetty has at least 3) When the setting is null and no config file is used, how is Jetty configured? Can I provide a jetty-web.xml or jetty-env.xml? If so, where do I put them? How do I override the default location? Are there any Groovy/DSL tricks for controlling/overriding configuration?
These kinds of questions are not addressed in the Web App Quickstart or in the Jetty Plugin reference. The Web App Quickstart should provide a complete example with a JNDI DataSource configuration.
p.s. Get Satisfaction is very unsatisfying. I was unable to login using either the Google or OpenId options. Even clicking “Reply” and then immediately canceling leaves the “Reply” button in the “Replying…” state so you have to copy your reply, save it elsewhere, and reload the page to try again.
Also, I recommend putting the jetty configuration file somewhere besides under your WEB-INF unless jetty is your production runtime. We use ours for local development so I put the config file under src/test/resources.