cancel
Showing results for 
Search instead for 
Did you mean: 

ERROR Cannot bind datasource 'jdbc/nxactivities' in JNDI NamingException: Context is read only

ron_1
Star Contributor
Star Contributor

I am running Nuxeo 5.5 Tomcat Distribution on PostgreSQL 9.1 with Social Collaboration enabled. On startup, I receive the following error.

ERROR [org.nuxeo.runtime.datasource.DataSourceComponent] Cannot bind datasource 'jdbc/nxactivities' in JNDI javax.naming.NamingException: Context is read only
  at org.apache.naming.NamingContext.checkWritable(NamingContext.java:903)
  at org.apache.naming.NamingContext.bind(NamingContext.java:831)
  at org.apache.naming.NamingContext.bind(NamingContext.java:171)
  at org.apache.naming.NamingContext.bind(NamingContext.java:187)
  at org.nuxeo.runtime.datasource.DataSourceComponent.addDataSource(DataSourceComponent.java:119)
  at org.nuxeo.runtime.datasource.DataSourceComponent.registerContribution(DataSourceComponent.java:81)
  at org.nuxeo.runtime.model.DefaultComponent.registerExtension(DefaultComponent.java:39)
...

Later in the log during startup, I naturally receive the following error:

ERROR [org.hibernate.connection.DatasourceConnectionProvider] Could not find datasource: java:comp/env/jdbc/nxactivities javax.naming.NameNotFoundException: Name nxactivities is not bound in this Context
...

Any thoughts? Should I create a JIRA for this issue?

12 REPLIES 12

I suppose a side effect of first problem. We need to understand what is wrong in your installation. Look at my comment on your previous answer.

dam_
Champ in-the-making
Champ in-the-making

No I know it's another issue cause I got this too in the nuxeo bundled version when i'm on https. So it's a trust issue with certificate or so but not a db problem.

I didn't notice you were using https. If you don't use a reverse proxy, you should configure your tomcat as explained in the tomcat documentation