You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by "BIN ZHOU (JIRA)" <ji...@apache.org> on 2015/04/24 23:52:39 UTC
[jira] [Created] (TOMEE-1561) LazyRealm not working with CDI in
tomee 1.7
BIN ZHOU created TOMEE-1561:
-------------------------------
Summary: LazyRealm not working with CDI in tomee 1.7
Key: TOMEE-1561
URL: https://issues.apache.org/jira/browse/TOMEE-1561
Project: TomEE
Issue Type: Bug
Reporter: BIN ZHOU
Priority: Minor
with definition:
<Context preemptiveAuthentication="true" >
<Realm className="org.apache.catalina.realm.LockOutRealm">
<Realm
cdi="true"
className="org.apache.tomee.catalina.realm.LazyRealm"
realmClass="example.test.UserRealm"/>
</Realm>
</Context>
got NPE
org.apache.catalina.LifecycleException: Failed to stop component [StandardServer[8005]]
at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:236)
at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:272)
at org.apache.catalina.startup.Catalina.start(Catalina.java:693)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:321)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:455)
Caused by: org.apache.catalina.LifecycleException: Failed to stop component [StandardService[Catalina]]
at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:236)
at org.apache.catalina.core.StandardServer.stopInternal(StandardServer.java:760)
at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:232)
... 8 more
Caused by: org.apache.catalina.LifecycleException: An invalid Lifecycle transition was attempted ([before_stop]) for component [org.apache.catalina.core.StandardThreadExecutor@1921ad94] in state [INITIALIZED]
at org.apache.catalina.util.LifecycleBase.invalidTransition(LifecycleBase.java:409)
at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:219)
at org.apache.catalina.core.StandardService.stopInternal(StandardService.java:528)
at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:232)
... 10 more
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)