[ 
https://issues.apache.org/jira/browse/ISIS-2758?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17366252#comment-17366252
 ] 

ASF subversion and git services commented on ISIS-2758:
-------------------------------------------------------

Commit 868d9eb21ae234916398308bdeed995c3d1f6904 in isis's branch 
refs/heads/master from danhaywood
[ https://gitbox.apache.org/repos/asf?p=isis.git;h=868d9eb ]

ISIS-2758: reworks ImpersonatedUserHolderUsingHttpSession, so not @RequestScoped

as this prevents it from being used in initial fixture scripts.

domain-app-demo/persist-all/simple-object-builder: Error creating bean with 
name 'scopedTarget.isis.webapp.ImpersonatedUserHolderUsingHttpSession': Scope 
'request' is not active for the current thread; consider defining a scoped 
proxy for this bean if you intend to refer to it from a singleton; nested 
exception is java.lang.IllegalStateException: No thread-bound request found: 
Are you referring to request attributes outside of an actual web request, or 
processing a request outside of the originally receiving thread? If you are 
actually operating within a web request and still receive this message, your 
code is probably running outside of DispatcherServlet: In this case, use 
RequestContextListener or RequestContextFilter to expose the current request.


> Initial fixture scripts can fail to load due to JSF not present exception.
> --------------------------------------------------------------------------
>
>                 Key: ISIS-2758
>                 URL: https://issues.apache.org/jira/browse/ISIS-2758
>             Project: Isis
>          Issue Type: Bug
>          Components: Isis Core
>    Affects Versions: 2.0.0-M5
>            Reporter: Daniel Keir Haywood
>            Assignee: Daniel Keir Haywood
>            Priority: Major
>             Fix For: 2.0.0-M6
>
>
> stack trace due to: ExceptionInInitializerError 
> "java.util.MissingResourceException: Can't find javax.faces.LogStrings bundle 
> from"
> where call to currentUserName() brings in ImpersonatedUserHolder and 
> ultimately its proxy results in going down a code path to attempt to bring in 
> JSF:
> {code:java}
> public abstract class RequestContextHolder {
>    private static final boolean jsfPresent =    
>        ClassUtils.isPresent("javax.faces.context.FacesContext",
>                             RequestContextHolder.class.getClassLoader());
>   {code}
> this class is part of 
> {code:java}
> <dependency>
>     <groupId>javax</groupId>
>     <artifactId>javaee-api</artifactId>
> </dependency>
>   {code}
> referenced by both isis-commons and isis-applib.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to