1 Reply Latest reply on Jun 13, 2012 2:01 AM by jaikiran pai

    java.lang.IllegalStateException: ObjectFactoryBuilder already set

    Gajendra Rathore Newbie

      I was getting error : "javax.naming.NamingException: JBAS011843: Failed instantiate InitialContextFactory org.jboss.naming.remote.client.InitialContextFactory from classloader ModuleClassLoader for Module "deployment.lms.ear.manage.war:main" from Service Module Loader"

       

      I solved this issue by adding jboss-as-naming-7.1.1.Final.jar into lib folder. I don't know whether this approach is right or not, I think this jar should been picked from modules.

       

      But after adding this jar I am getting error “java.lang.IllegalStateException: ObjectFactoryBuilder already set  javax.naming.spi.NamingManager.setObjectFactoryBuilder(NamingManager.java:94) [rt.jar:1.6.0_10-rc2]”

       

      kindly help