6 Replies Latest reply on Jun 8, 2018 10:42 AM by wuweibear

    jndi issue: Naming context is read-only

    wuweibear

      1. The error is the following:

       

      15:35:47,007 ERROR [stderr] (bootstrap personality thread) Exception in thread "bootstrap personality thread" java.lang.UnsupportedOperationException:

      WFLYNAM0043: Naming context is read-only

      at org.jboss.as.naming.WritableServiceBasedNamingStore.requireOwner(WritableServiceBasedNamingStore.java:161)

      at org.jboss.as.naming.WritableServiceBasedNamingStore.bind(WritableServiceBasedNamingStore.java:66)

      at org.jboss.as.naming.NamingContext.bind(NamingContext.java:262)

      at org.jboss.as.naming.InitialContext$DefaultInitialContext.bind(InitialContext.java:264)

      at org.jboss.as.naming.NamingContext.bind(NamingContext.java:289)

      at javax.naming.InitialContext.bind(InitialContext.java:425)

      at javax.naming.InitialContext.bind(InitialContext.java:425)

       

      2. I try to upgrade jboss eap 5 to jboss eap 7, I realized in jboss5 directory, there is property file:

      ....\server\default\conf\jndi.properties

      This property file has two items:

      java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory

      java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces

       

      Do I need to add those in jboss eap 7?

       

      Thanks