[jetty-dev] [jira] (JETTY-1549) jetty-maven-plugin fails to reload the LoginService properly

"Paul Alesius (JIRA)" <[email protected]> Mon, 15 Oct 2012 20:35:36 -0500 (CDT)
Newsgroups gmane.comp.java.jetty.general
Message-ID <1277812741.11811.1350351336126.JavaMail.j2ee-jira@codehaus01.managed.contegix.com>
Paul Alesius
created JETTY-1549

jetty-maven-plugin fails to reload the LoginService properly

Issue Type:

Bug

Affects Versions:

8.1.7

Assignee:

Unassigned

Components:

Maven

Created:

15/Oct/12 8:34 PM

Description:

With:

<scanIntervalSeconds>3</scanIntervalSeconds>

The declared HashLoginService fails to reload properly, causing:

java.lang.IllegalStateException: LoginService has different IdentityService to org.eclipse.jetty.security.ConstraintSecurityHandler

The workaround is to declare in jetty-web.xml:

<New id="DefaultLoginService" class="org.eclipse.jetty.security.HashLoginService">

...

<Get id="DefaultIdentityService" name="identityService" />

</New>

<!-- will probably leak the old identity service and associated components upon many restarts of the maven plugin -->

<Get name="securityHandler">

<Set name="identityService">

<Ref id="DefaultIdentityService" />

</Set>

<Set name="loginService">

<Ref id="DefaultLoginService" />

</Set>

</Get>

Project:

Jetty

Priority:

Major

Reporter:

Paul Alesius

This message is automatically generated by JIRA.

If you think it was sent incorrectly, please contact your JIRA administrators .

For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email