2017-05-17 6 views
0

내 shiro.ini에서 LDAP 및 JDBC와 같은 2 개의 영역을 구성했습니다.SHIRO 영역 요청 시간을 사용자 인증에 추가하는 방법은 무엇입니까?

하지만 인증 요청 시간을 설정할 수 없습니다.

내가 추가 할 때 : ldapRealm.connectionTimeout = 1000 다음이 발생합니다 예외 :

SEVERE: Exception sending context initialized event to listener instance of class org.apache.shiro.web.env.EnvironmentLoaderListener 

org.apache.shiro.config.ConfigurationException : 부동산 '은 ConnectionTimeout은'형 com.bc의 객체에 존재하지 않는 .xyz.auth.efgLdapRealm. at org.apache.shiro.config.ReflectionBuilder.isTypedProperty (ReflectionBuilder.java:413) at org.apache.shiro.config.ReflectionBuilder.applyProperty (ReflectionBuilder.java:702) at org.apache.shiro.config. ReflectionBuilder.applySingleProperty (ReflectionBuilder.java:364) at org.apache.shiro.config.ReflectionBuilder.applyProperty (ReflectionBuilder.java:325) at org.apache.shiro.config.ReflectionBuilder $ AssignmentStatement.doExecute (ReflectionBuilder.java : 955) at org.apache.shiro.config.ReflectionBuilder $ Statement.execute (ReflectionBuilder.java:887) at org.apache.shiro.config.ReflectionBuilder $ BeanConfigurationProcessor.execute (ReflectionBuilder.java:765) at org. apache.shiro.config.ReflectionBuilder.buildObjects (ReflectionBuilder.ja VA : org.apache.shiro.config.IniSecurityManagerFactory.buildInstances 260) (IniSecurityManagerFactory.java:167) org.apache.shiro.config.IniSecurityManagerFactory.createSecurityManager (IniSecurityManagerFactory.java:130에서 ) org.apache에서 . shiro.config.IniSecurityManagerFactory.createSecurityManager (IniSecurityManagerFactory.java:108) org.apache.shiro.config.IniSecurityManagerFactory.createInstance에서 org.apache.shiro.config.IniSecurityManagerFactory.createInstance (IniSecurityManagerFactory.java:94) 에서 (IniSecurityManagerFactory. java : 46) at org.apache.shiro.config.IniFactorySupport.createInstance (IniFactorySupport.java:123) at org.apache.shiro.util.AbstractFactory.getInstance (AbstractFactory.java:47) at org.apache. shiro.web.env.In (IniWebEnvironment.java : 99) at java : 92) at org.apache.shiro.util.LifecycleUtils.init (LifecycleUtils.java:45) at org.apache.shiro.util.LifecycleUtils.init (LifecycleUtils.java:40) at org.apache. shiro.web.env.EnvironmentLoader.createEnvironment (EnvironmentLoader.java:221) at org.apache.shiro.web.env.EnvironmentLoader.initEnvironment (EnvironmentLoader.java:133) at org.apache.shiro.web.env. EnvironmentLoaderListener.contextInitialized (EnvironmentLoaderListener.java:58) at org.apache.catalina.core.StandardContext.ListenerStart (StandardContext.java) : 4727) at org.apache.catalina.core.StandardContext.startInternal (StandardContext.java:5189) at org.apache.catalina.util.LifecycleBase.start (LifecycleBase.java:150) at org.apache.catalina .Core.ContainerBase $ StartChild.call (ContainerBase.java:1419) at org.apache.catalina.core.ContainerBase $ StartChild.call (ContainerBase.java:1409) at java.util.concurrent.FutureTask.run (FutureTask .java : 266) at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor $ Worker.run (ThreadPoolExecutor.java:617) at java.lang.Thread .run (Thread.java : 745)

답변

0

사용자 정의 LDAP 영역이있는 것 같습니다. efgLdapRealmsetConnectionTimeout() 메소드가 있습니까?

+0

아니요, 그 방법이 없습니다. –