5 Replies Latest reply on May 14, 2013 8:56 AM by Jun Wang

    JBAS011859: Naming context is read-only

    Sébastien Revel Newbie

      Hi,


      I work on a project wich use Jersey 1.8

      We test our aplication on Glassfish 3.1 and it's work.


      Unfortunatly, we have learned yesterday that our prod environment will be JBoss

      7.1.1 final.


      When I test our app in JBoss 7.1.1, after have fixed some ClassNotFound

      excetions

      or RestEasy conflicts, I have an exception :


      java.lang.UnsupportedOperationException: JBAS011859: Naming context is read-only


      at org.jboss.as.naming.WritableServiceBasedNamingStore.requireOwner

      (WritableServiceBasedNamingStore.java:126)


              at

      org.jboss.as.naming.WritableServiceBasedNamingStore.createSubcontext(WritableSer

      vi

      ceBasedNamingStore.java:116)

              at

      org.jboss.as.naming.NamingContext.createSubcontext(NamingContext.java:338)

              at

      org.jboss.as.naming.InitialContext.createSubcontext(InitialContext.java:229)

              at

      org.jboss.as.naming.NamingContext.createSubcontext(NamingContext.java:346)

              at javax.naming.InitialContext.createSubcontext(InitialContext.java:464)

              at

      com.sun.jersey.server.impl.cdi.CDIExtension$1.stepInto(CDIExtension.java:280)


      Anyone has already use Jersey on JBoss 7 ? any ideas ?

      Thks for your help.


      Seb