[jboss-jira] [JBoss JIRA] (WFLY-4613) Infinispan cache container does not accept EAGER start
ofbiz brazil (JIRA)
issues at jboss.org
Fri May 15 20:59:19 EDT 2015
[ https://issues.jboss.org/browse/WFLY-4613?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13068595#comment-13068595 ]
ofbiz brazil edited comment on WFLY-4613 at 5/15/15 8:58 PM:
-------------------------------------------------------------
Even if I try to create a Bean looking for cache container in lazy mode, Spring can not find the jndi.
But when I set as EAGER it works fine, no error appears.
Would it an issue with Lazy mode?
Example:
@Bean
public CacheContainer dataSource() throws NamingException {
JndiTemplate context = new JndiTemplate();
return context.lookup("java:jboss/infinispan/container/hibernate", CacheContainer.class);
}
Caused by: javax.naming.NameNotFoundException: Error looking up infinispan/container/hibernate, service service jboss.naming.context.java.jboss.infinispan.container.hibernate is not started
at org.jboss.as.naming.ServiceBasedNamingStore.lookup(ServiceBasedNamingStore.java:126)
at org.jboss.as.naming.ServiceBasedNamingStore.lookup(ServiceBasedNamingStore.java:74)
at org.jboss.as.naming.NamingContext.lookup(NamingContext.java:178)
at org.jboss.as.naming.InitialContext.lookup(InitialContext.java:123)
was (Author: ofbizbrazil):
Even if I try to create a Bean looking for cache container in lazy mode, Spring can not find the jndi.
@Bean
public CacheContainer dataSource() throws NamingException {
JndiTemplate context = new JndiTemplate();
return context.lookup("java:jboss/infinispan/container/hibernate", CacheContainer.class);
}
Caused by: javax.naming.NameNotFoundException: Error looking up infinispan/container/hibernate, service service jboss.naming.context.java.jboss.infinispan.container.hibernate is not started
at org.jboss.as.naming.ServiceBasedNamingStore.lookup(ServiceBasedNamingStore.java:126)
at org.jboss.as.naming.ServiceBasedNamingStore.lookup(ServiceBasedNamingStore.java:74)
at org.jboss.as.naming.NamingContext.lookup(NamingContext.java:178)
at org.jboss.as.naming.InitialContext.lookup(InitialContext.java:123)
> Infinispan cache container does not accept EAGER start
> ------------------------------------------------------
>
> Key: WFLY-4613
> URL: https://issues.jboss.org/browse/WFLY-4613
> Project: WildFly
> Issue Type: Feature Request
> Components: Build System, Clustering, ConfigAdmin, EE, Naming
> Affects Versions: 9.0.0.CR1
> Environment: Wildfly 9.0.0 CR1, Windows 7, Solaris, Java 8u40
> Reporter: ofbiz brazil
> Assignee: Paul Ferraro
>
> At cache container the property start gives error if we set EAGER.
> Message error:
> WFLYCTL0248: Invalid value EAGER for start; legal values are [LAZY]
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
More information about the jboss-jira
mailing list