basic security "Configuration error"

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

basic security "Configuration error"

Cameron Taggart
I'm launching my application from Eclipse using JettyLauncher and
Jetty 5.1.10.  When I try to add basic authentication to "index.html",
I just get a HTTP 500 error stating "Configuration Error".  There are
no warning or errors reported from Jetty on the server side that I
have seen.

Here is my jetty config file:

<?xml version="1.0"?>
<!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure//EN"
"http://jetty.mortbay.org/configure.dtd">

<Configure class="org.mortbay.jetty.Server">

  <Call name="addListener">
    <Arg>
      <New class="org.mortbay.http.SocketListener">
        <Set name="Port"><SystemProperty name="jetty.port" default="80"/></Set>
      </New>
    </Arg>
  </Call>

  <Call name="addRealm">
    <Arg>
      <New class="org.mortbay.http.HashUserRealm">
        <Arg>Jetty Demo Realm</Arg>
        <Arg><SystemProperty name="jetty.home"
default="."/>/etc/demoRealm.properties</Arg>
      </New>
    </Arg>
  </Call>

  <Call name="addWebApplication">
    <Arg>/</Arg>
    <Arg>src/main/webapp</Arg>
    <Set name="extractWAR">false</Set>
  </Call>

</Configure>



Here are the security portions of my web.xml:

  <login-config>
    <auth-method>BASIC</auth-method>
    <realm-name>MetTrack 7 Authentication</realm-name>
  </login-config>

  <security-constraint>
    <web-resource-collection>
      <web-resource-name>Home</web-resource-name>
      <url-pattern>/index.html</url-pattern>
      <http-method>GET</http-method>
      <http-method>POST</http-method>
    </web-resource-collection>
    <auth-constraint>
      <role-name>admin</role-name>
    </auth-constraint>
  </security-constraint>


Any ideas on how I can get basic authentication working?  How do I see
what the configuration error actually is (more details)?

Thanks,
Cameron


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
<a href="http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642">http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
_______________________________________________
Jetty-support mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jetty-support