0 Replies Latest reply on Nov 9, 2011 2:54 AM by Julian Prabhakar

    Exception while deploying to jbossweb-7.0.2.Final

    Julian Prabhakar Newbie

      We are getting this error during deployment -

       

      FATAL [org.egov.infstr.utils.HibernateUtil] (http--127.0.0.1-8080-1) Error occurred in SessionFactory getSessionFactory: java.lang.UnsupportedOperationException: Naming context is read-only

          at org.jboss.as.naming.NamingContext.createSubcontext(NamingContext.java:318)
          at org.hibernate.service.jndi.internal.JndiServiceImpl.bind(JndiServiceImpl.java:153) [hibernate-core-4.0.0.CR5.jar:]
          at org.hibernate.service.jndi.internal.JndiServiceImpl.bind(JndiServiceImpl.java:110) [hibernate-core-4.0.0.CR5.jar:]
          at org.hibernate.internal.SessionFactoryRegistry.addSessionFactory(SessionFactoryRegistry.java:79) [hibernate-core-4.0.0.CR5.jar:]
          at org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:439) [hibernate-core-4.0.0.CR5.jar:]
          at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1726) [hibernate-core-4.0.0.CR5.jar:]
          at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1764) [hibernate-core-4.0.0.CR5.jar:]

      Is this because of a JBoss issue? Pls help.