Answer the question
In order to leave comments, you need to log in
Authentication under Jetty in Eclipse - a problem with redeploy. How to decide?
I am developing an application on GWT. I'm debugging it in Eclipse in DevMode, which in turn starts the Jetty server.
I decided to add user authentication to my application, and use the capabilities of Jetty for this. To do this, I wrote the following jetty-web.xml configuration file:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "http://www.eclipse.org/jetty/configure.dtd">
<Configure class="org.eclipse.jetty.webapp.WebAppContext">
<Get name="securityHandler">
<Set name="loginService">
<New class="org.eclipse.jetty.security.HashLoginService" id="DefaultLoginService">
<Set name="name">Test Realm</Set>
<Set name="config">realm.properties</Set>
<Call name="start"/>
</New>
</Set>
<Set name="checkWelcomeFiles">true</Set>
</Get>
</Configure>
[WARN] Failed startup of context c.g.g.d.s.j.WebAppContextWithReload{/,file:/E:/workspace/WebApp1/WebContent/},E:\workspace\WebApp1\WebContent
java.lang.IllegalStateException: LoginService has different IdentityService to [email protected]
at org.eclipse.jetty.security.SecurityHandler.doStart(SecurityHandler.java:354)
...
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question