title: Wildfly 12 infinispan cache lookup is not working
body: <p>I'm migration from wildfly 10 to wildfly 12. I have created local cache same as configured in wildfly 10.</p>
  <p>standalone-full.xml configuration:</p>
  <pre><code> &lt;cache-container name=&quot;DataCache&quot; default-cache=&quot;modelcache&quot; statistics-enabled=&quot;false&quot;&gt;
              &lt;local-cache name=&quot;modelcache&quot; statistics-enabled=&quot;false&quot;/&gt;
          &lt;/cache-container&gt;
  </code></pre>
  <p>Lookup code in singleton ejb annotated with @startup:</p>
  <pre><code> @Resource(lookup = &quot;java:jboss/infinispan/container/DataCache&quot;)
  private CacheContainer Container;
  @PostConstruct
  public void init() {
      Container.start();
      modelCache = Container.getCache(&quot;modelcache&quot;);
  </code></pre>
  <p>}</p>
  <p>I'm getting the below exception while deploying file</p>
  <p>Caused by:</p>
  <blockquote>
  <p>org.infinispan.commons.CacheConfigurationException: ISPN000436: Cache 'modelcache' has been requested, but no cache configuration exists
  with that name and no default cache has been set for this container</p>
  </blockquote>
  <p>How to fix this?</p>