1 Reply Latest reply on Aug 22, 2016 4:31 PM by Martial BRISOU

    Datasource, Quartz and Scheduler : Naming context is read-only

    Florian Mélot Newbie

      Hi community,

       

      We're currently migrating from Jboss 5 to Wildfly 8 (before any questions I cannot migrate to Wildfly 10, all other teams have already migrated to 8)

      I have a small issue with the datasource connection and quartz. My product deploys many EAR and some of our scheduled process.

      All my datasources work fine but if I encapsulate it in quartz job I'm getting this trace :

       

      16:48:58,276 ERROR [com.sqli.sante.common.SchedulerStatistiques] (IdeoLink Statistics QuartzScheduler_Worker-1) Erreur collecte et insertion indicateurs :JBAS011859: Naming context is read-only: java.lang.UnsupportedOperationException: JBAS011859: Naming context is read-only

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

      at org.jboss.as.naming.WritableServiceBasedNamingStore.rebind(WritableServiceBasedNamingStore.java:109)

      at org.jboss.as.naming.NamingContext.rebind(NamingContext.java:274)

      at org.hibernate.engine.jndi.internal.JndiServiceImpl.bind(JndiServiceImpl.java:213) [hibernate-core-4.3.7.Final.jar:4.3.7.Final]

      at org.hibernate.engine.jndi.internal.JndiServiceImpl.bind(JndiServiceImpl.java:159) [hibernate-core-4.3.7.Final.jar:4.3.7.Final]

      at org.hibernate.internal.SessionFactoryRegistry.addSessionFactory(SessionFactoryRegistry.java:103) [hibernate-core-4.3.7.Final.jar:4.3.7.Final]

      at org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:497) [hibernate-core-4.3.7.Final.jar:4.3.7.Final]

      at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1859) [hibernate-core-4.3.7.Final.jar:4.3.7.Final]

      at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1930) [hibernate-core-4.3.7.Final.jar:4.3.7.Final]

       

      Do you have any ideas on how to solve it ? Do you need some trace or any informations ?

       

      Thanks in advance,

       

      Florian