I should clarify, I mean GWT Eclipse Plugin 2.5.1 (GWT 2.4).
The following login-config in the web.xml works fine in Tomcat:
<login-config>
<auth-method>BASIC</auth-method>
</login-config>
I don't actually want to have to define a Jetty realm, but with the above
web.xml I get the following warning when I launch my app:
Starting Jetty on port 8888
[WARN] Unknown realm: Default
It would be nice to have basic authentication working in hosted mode.
On Friday, March 16, 2012 1:38:43 PM UTC, TimD wrote:
>
> 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 view this discussion on the web visit
https://groups.google.com/d/msg/google-web-toolkit/-/tQP4sAjExtQJ.
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.