Closed dankurka closed 9 years ago
Your <Set name="UserRealms"><Array ...><Item> should rather be <Get name="SecurityHandler"><Set
name="UserName"> (you set a single UserRealm –rather than an array– on the WebAppContext's
SecurityHandler).
You could bypass authentication (hardcoding the user in the jetty-web.xml for instance)
but it requires coding your own Authenticator; probably not worth it in your case (see
below)
But maybe you should rather use your Tomcat server instead of the embedded Jetty: http://code.google.com/webtoolkit/doc/latest/DevGuideCompilingAndDebugging.html#How_do_I_use_my_own_server_in_development_mode_instead_of_GWT's
Reported by t.broyer
on 2011-04-30 14:43:35
Thanks a ton.
Finally this jetty-web.xml worked.
----
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTDConfigure//EN" "http://jetty.mortbay.org/configure.dtd">
<Configure class="org.mortbay.jetty.webapp.WebAppContext">
<Get name="securityHandler">
<Set name="userRealm">
<New class="org.mortbay.jetty.security.HashUserRealm">
<Set name="name">MyRealm</Set>
<Set name="config"><SystemProperty name="jetty.home" default="."/>/etc/realm.properties</Set>
</New>
</Set>
</Get>
</Configure>
Reported by shoonya.mohit
on 2011-04-30 16:22:49
Just had a doubt.
Why the jetty official page is showing, we set an array?
http://docs.codehaus.org/display/JETTY/Walkthrough+jetty.xml
Reported by shoonya.mohit
on 2011-04-30 16:24:45
Comments indicate Thomas likely resolved the user's issue.
Reported by stephen.haberman
on 2011-12-17 08:19:48
Invalid
Originally reported on Google Code with ID 6297
Reported by
shoonya.mohit
on 2011-04-30 13:38:49