Hi Marcus
great it works. thanks. i wrote this in my build.gradle
jettyRun.jettyConfig=new File("src/main/resources/jetty.xml")
but the realm if i define in my jetty.xml file, is implement in my
webapp project.
Looks like the jettyPlugin does not use the project classpath for the
jetty configuration. is there a way to do that?
Caused by: java.lang.ClassNotFoundException: MY_REALM
at org.mortbay.util.Loader.loadClass(Loader.java:91)
at
org.mortbay.xml.XmlConfiguration.nodeClass(XmlConfiguration.java:224)
at
org.mortbay.xml.XmlConfiguration.newObj(XmlConfiguration.java:572)
at
org.mortbay.xml.XmlConfiguration.itemValue(XmlConfiguration.java:915)
at
org.mortbay.xml.XmlConfiguration.value(XmlConfiguration.java:837)
at
org.mortbay.xml.XmlConfiguration.newArray(XmlConfiguration.java:686)
at
org.mortbay.xml.XmlConfiguration.itemValue(XmlConfiguration.java:917)
at
org.mortbay.xml.XmlConfiguration.value(XmlConfiguration.java:837)
at org.mortbay.xml.XmlConfiguration.set(XmlConfiguration.java:
286)
at
org.mortbay.xml.XmlConfiguration.configure(XmlConfiguration.java:248)
at
org.mortbay.xml.XmlConfiguration.configure(XmlConfiguration.java:190)
at
org.gradle.api.plugins.jetty.JettyRun.applyJettyXml(JettyRun.java:498)
at
org
.gradle
.api
.plugins
.jetty
.AbstractJettyRunTask.startJettyInternal(AbstractJettyRunTask.java:314)
regards
marko
On Feb 10, 2009, at 11:11 AM, Marcus Better wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Marko Bauhardt wrote:
I want to add an UserRealm to the jetty server configuration. so i
have to configure the object "org.mortbay.jetty.Server" within a
jetty.xml.
The Jetty tasks have a jettyConfig property that you can point to your
jetty.xml.
You should also be able to get at the Server object through the
"server"
property.
Cheers,
Marcus
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
iEYEARECAAYFAkmRUu4ACgkQXjXn6TzcAQkD2QCgxVVepeSxljcy+0Z+ZI/u66nC
lEcAoK70zm+qhvVFk9kywkdA2E8z0n7R
=RS1a
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
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