Pedro wrote:
Hi All,

I use the maven jetty plug-in to run dynamic web servlets in eclipse, I would like to configure a JDBC realm, but I don't know how to go about configuring the plug-in to use my realm... please can someone give me some pointers or point me to some documentation.

You are probably best off asking this question on the Jetty lists but there are a couple of pointers:

http://docs.codehaus.org/display/JETTY/Maven+Jetty+Plugin

This is how I configured the plugin in a recent project:

      <plugin>
        <groupId>org.mortbay.jetty</groupId>
        <artifactId>maven-jetty-plugin</artifactId>
        <version>6.1.5</version>
        <configuration>
          <scanIntervalSeconds>1</scanIntervalSeconds>
          <userRealms>
<userRealm implementation="org.mortbay.jetty.plus.jaas.JAASUserRealm">
              <name>javabin realm</name>
              <loginModuleName>ldap</loginModuleName>

<callbackHandlerClass>org.mortbay.jetty.plus.jaas.callback.DefaultCallbackHandler</callbackHandlerClass>
              <roleClassNames>

<roleClassName>org.apache.geronimo.security.realm.providers.GeronimoGroupPrincipal</roleClassName>
              </roleClassNames>
            </userRealm>
          </userRealms>
          <systemProperties>
            <systemProperty>
              <name>basedir</name>
              <value>${basedir}</value>
            </systemProperty>
            <systemProperty>
              <name>java.security.auth.login.config</name>
              <value>src/test/resources/jaas.config</value>
            </systemProperty>
          </systemProperties>
        </configuration>
        <dependencies>
          <dependency>
            <groupId>org.mortbay.jetty</groupId>
            <artifactId>jetty-plus</artifactId>
            <version>6.1.5</version>
          </dependency>
        </dependencies>
      </plugin>

--
Trygve

---------------------------------------------------------------------
To unsubscribe from this list please visit:

   http://xircles.codehaus.org/manage_email

Reply via email to