I am using GWT 2.5.1 in Eclipse Indigo. I am trying to configure basic
authentication in hosted mode and I'm running into the following
warning when I launch my app:
Starting Jetty on port 8888
[WARN] Unknown realm: myRealm
When I try to access the app URL I get:
HTTP ERROR: 404
NOT_FOUND
RequestURI=/myApp.html
Powered by jetty://
The following is in my web.xml:
<login-config>
<auth-method>BASIC</auth-method>
<realm-name>myRealm</realm-name>
</login-config>
I have also created the following jetty-web.xml that sits next to
web.xml:
<?xml version="1.0"?>
<!DOCTYPE Configure
PUBLIC "-//Mort Bay Consulting//DTD Configure//EN"
"http://jetty.mortbay.org/configure.dtd">
<Configure class="org.mortbay.jetty.webapp.WebAppContext">
<Set name="contextPath">/myWebApp</Set>
<Set name="war">
<SystemProperty name="jetty.home" default="." />
/webapps/myWebApp
</Set>
<Get name="securityHandler">
<Set name="userRealm">
<New class="org.mortbay.jetty.security.HashUserRealm">
<Set name="name">myRealm</Set>
<Set
name="config">fullyQualifiedPathToMyRealm.properties</Set>
</New>
</Set>
</Get>
</Configure>
Without the fully qualified path to the realm properties file I get an
exception, so I know that it's now reading the config without error.
Why is the realm not being set?
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.