[JBoss Cache: Core Edition] - Eviction Policy Config not working
by LORDs_diakonos
Using the following xml config I have objects in the FQN "ContentletCache" greater then 2. I am trying to get it to respect the maxNodes.
| <attribute name="EvictionPolicyConfig">
| <config>
| <attribute name="wakeUpIntervalSeconds">3</attribute>
| <!-- This defaults to 200000 if not specified -->
| <attribute name="eventQueueSize">500000</attribute>
| <!-- Name of the DEFAULT eviction policy class. -->
| <attribute name="policyClass">org.jboss.cache.eviction.LRUPolicy</attribute>
| <!-- Cache wide default -->
| <region name="/_default_">
| <attribute name="maxNodes">10000</attribute>
| <attribute name="timeToLiveSeconds">864000</attribute>
| </region>
|
| <!-- contentlet cache -->
| <region name="/ContentletCache">
| <attribute name="maxNodes">2</attribute>
| <attribute name="minTimeToLiveSeconds">0</attribute>
| <attribute name="timeToLiveSeconds">0</attribute>
| <attribute name="maxAgeSeconds">0</attribute>
| </region>
| </config>
| </attribute>
|
My java logic is is as following
| public DotJBCacheAdministratorImpl() {
| CacheFactory<String, Object> factory = new DefaultCacheFactory<String, Object>();
| cache = factory.createCache("cache-configuration.xml");
| //cache.getRegion(Fqn.fromString(CacheLocator.getContentletCache().getPrimaryGroup()), true);
| }
|
cache.put("ContentletCache",key,object);
|
|
| return cache.get("return cache.get(group, key);", key);
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4167100#4167100
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4167100
17 years, 8 months
[Security & JAAS/JBoss] - JBOSS LDAP Authentification
by indra_joy
Hi,
I am trying to validate LDAP user before going to jmx_console.
My jboss-web.xml under jmx_console.war has the java:/jaas/Ldap
My web.xml under jmx_console.war <!-- A security constraint is uncommented.
My Login-Config under conf has Application Policy Defined LDAP.
But I am getting error in my server Logs as below.
javax.naming.NamingException: [LDAP: error code 1 - 00000000: LdapErr: DSID-0C090627, comment: In order to perform this operation a successful bind must be completed on the connection., data 0, veceatePassword(LdapExtLoginModule.java:229)
at org.jboss.security.auth.spi.UsernamePasswordLoginModule.login(UsernamePasswordLoginModule.java:210)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at javax.security.auth.login.LoginContext.invoke(LoginContext.java:769)
at javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)
at javax.security.auth.login.LoginContext$4.run(LoginContext.java:683)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)
at javax.security.auth.login.LoginContext.login(LoginContext.java:579)
at org.jboss.security.plugins.JaasSecurityManager.defaultLogin(JaasSecurityManager.java:601)
at org.jboss.security.plugins.JaasSecurityManager.authenticate(JaasSecurityManager.java:535)
at org.jboss.security.plugins.JaasSecurityManager.isValid(JaasSecurityManager.java:344)
at org.jboss.web.tomcat.security.JBossSecurityMgrRealm.authenticate(JBossSecurityMgrRealm.java:491)
at org.apache.catalina.authenticator.BasicAuthenticator.authenticate(BasicAuthenticator.java:180)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:490)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
at java.lang.Thread.run(Thread.java:595)
Can anybody help me in this regards, Reason still it's not validating the LDAP USER in the window and return the error.
Thanks in advance
Indrajoy
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4167099#4167099
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4167099
17 years, 8 months