jaas.conf for embedded Jetty in HostedMode

73 views
Skip to first unread message

vetal

unread,
Jul 22, 2009, 11:23:17 AM7/22/09
to Codehaus Mojo gwt-maven-plugin Users
Hello!
How i can set jass configuration for embedded Jetty in HostedMode?

Any help, please!

Thanks, vetal

Arthur Kalmenson

unread,
Jul 22, 2009, 11:56:56 AM7/22/09
to codehaus-mojo-gwt-...@googlegroups.com
I think you just need to use antrun to copy the configuration file to
where Jetty is starting.

--
Arthur Kalmenson

Vitaly Parfonov

unread,
Jul 22, 2009, 12:07:43 PM7/22/09
to codehaus-mojo-gwt-...@googlegroups.com
I try do something like this
mvn clean -Dgwt.extraJvmArgs="-Djava.security.auth.login.config=jaas.conf"  gwt:run

jaas.conf file :
my-domain {
  services.security.j2ee.LoginModule required;.
};

in web.xml :
<login-config>
   <auth-method>FORM</auth-method>
 <realm-name>my-domain</realm-name>
</login-config>
<security-role>
<description>the user role</description>
<role-name>users</role-name>
</security-role>
<security-role>
<description>the admin role</description>
<role-name>admin</role-name>
</security-role>

But then start server in console i get: Unknown realm : my-domain

to Arthur as i understand in HostedMode we dont have any started directory for jetty
in one on my post where i ask about Jetty home i get next answer : "There is no jetty home, it is fully embedded in gwt-dev hosted mode"

2009/7/22 Arthur Kalmenson <arthu...@gmail.com>



--
Best regards,
Vitaly
Reply all
Reply to author
Forward
0 new messages