<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: ERROR Cannot bind datasource 'jdbc/nxactivities' in JNDI NamingException: Context is read only in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/error-cannot-bind-datasource-jdbc-nxactivities-in-jndi/m-p/314405#M1406</link>
    <description>&lt;P&gt;If you want but it means that I'll need to configure it manually.&lt;/P&gt;</description>
    <pubDate>Tue, 10 Apr 2012 18:05:51 GMT</pubDate>
    <dc:creator>dam_</dc:creator>
    <dc:date>2012-04-10T18:05:51Z</dc:date>
    <item>
      <title>ERROR Cannot bind datasource 'jdbc/nxactivities' in JNDI NamingException: Context is read only</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/error-cannot-bind-datasource-jdbc-nxactivities-in-jndi/m-p/314399#M1400</link>
      <description>&lt;P&gt;I am running Nuxeo 5.5 Tomcat Distribution on PostgreSQL 9.1 with Social Collaboration enabled. On startup, I receive the following error.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;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)
...
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Later in the log during startup, I naturally receive the following error:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;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
...
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Any thoughts? Should I create a JIRA for this issue?&lt;/P&gt;</description>
      <pubDate>Fri, 30 Mar 2012 17:36:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/error-cannot-bind-datasource-jdbc-nxactivities-in-jndi/m-p/314399#M1400</guid>
      <dc:creator>ron_1</dc:creator>
      <dc:date>2012-03-30T17:36:15Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR Cannot bind datasource 'jdbc/nxactivities' in JNDI NamingException: Context is read only</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/error-cannot-bind-datasource-jdbc-nxactivities-in-jndi/m-p/314400#M1401</link>
      <description>&lt;P&gt;Can you explain how we can reproduce this? Which distribution did you downloaded? On which system are your running? What did you configured? Can we have a dump of your &lt;CODE&gt;bin/nuxeo.conf&lt;/CODE&gt;?&lt;/P&gt;</description>
      <pubDate>Tue, 03 Apr 2012 15:37:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/error-cannot-bind-datasource-jdbc-nxactivities-in-jndi/m-p/314400#M1401</guid>
      <dc:creator>slacoin_Lacoin</dc:creator>
      <dc:date>2012-04-03T15:37:11Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR Cannot bind datasource 'jdbc/nxactivities' in JNDI NamingException: Context is read only</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/error-cannot-bind-datasource-jdbc-nxactivities-in-jndi/m-p/314401#M1402</link>
      <description>&lt;P&gt;Hi,
I have the same problem.&lt;/P&gt;
&lt;P&gt;At startup :&lt;/P&gt;
&lt;PRE&gt; ERROR [DataSourceComponent] Cannot bind datasource 'jdbc/nxactivities' in JNDI
 javax.naming.NamingException: Le Contexte est en lecture seule
   at org.apache.naming.NamingContext.checkWritable(NamingContext.java:903)
   at org.apache.naming.NamingContext.bind(NamingContext.java:831)
&lt;/PRE&gt;
&lt;P&gt;When I upload a file :&lt;/P&gt;
&lt;PRE&gt;
 ERROR [DatasourceConnectionProvider] Could not find datasource: java:comp/env/jdbc/nxactivities
 javax.naming.NameNotFoundException: Le Nom nxactivities n'est pas lié à ce Contexte
   at org.apache.naming.NamingContext.lookup(NamingContext.java:770)
   at org.apache.naming.NamingContext.lookup(NamingContext.java:140)
&lt;/PRE&gt;
&lt;P&gt;Here is my server config :
&lt;BR /&gt;OS: Linux  (Ubuntu 11.10)
&lt;BR /&gt;JDK: java-6-sun-1.6.0.31
&lt;BR /&gt;Database: PostgreSQL 9.1&lt;/P&gt;
&lt;P&gt;I bundled "nuxeo-cap-5.5-tomcat" in a static WAR and put it in my own Tomcat V6.0.35
&lt;BR /&gt;I'm on https on port 8083, and use ldaps authentification.&lt;/P&gt;
&lt;P&gt;FYI, the bundled version don't display the error when I launch it with nuxectl console.
(nuxeoctl start don't work because I get &lt;A href="http://doc.nuxeo.com/pages/viewpage.action?pageId=3868884"&gt;this error&lt;/A&gt; but I guess it's another issue...)&lt;/P&gt;
&lt;P&gt;Here is my nuxeo.conf&lt;/P&gt;
&lt;PRE&gt;
 nuxeo.log.dir=/var/nuxeo-home/log
 nuxeo.pid.dir=/var/nuxeo-home/log
 nuxeo.data.dir=/var/nuxeo-home/data
 nuxeo.tmp.dir=/var/nuxeo-home/tmp
 nuxeo.web.dir=/var/nuxeo-home/web
 nuxeo.runtime.home=/var/nuxeo-home
 nuxeo.force.generation=false
 nuxeo.wizard.done=true
 nuxeo.templates=postgresql,dam,collaboration,https
 nuxeo.bind.address={myIP}
 nuxeo.server.emptySessionPath=false
 nuxeo.server.ajp.port=8009
 nuxeo.server.https.port=8083
 nuxeo.server.https.keystoreFile=/etc/tomcat/public.pfx
 nuxeo.server.https.keystorePass={myPass}
 nuxeo.server.tomcat-admin.port=8006
 nuxeo.url=https://localhost:8083/nuxeo
 nuxeo.loopback.url=https://{MYIP}:8083/nuxeo
 opensocial.gadgets.port=8083
 server.status.key={aKey}
 nuxeo.updatecenter.disabled=true
 nuxeo.db.name=nuxeodb
 nuxeo.db.user=nuxeodb
 nuxeo.db.password={myPass}
 mail.smtp.host=smtp.{myhost}
 mail.smtp.auth=true
 mail.smtp.username=postmaster%{myhost}
 mail.smtp.password={myPass}
&lt;/PRE&gt;
&lt;P&gt;I also changed nuxeo default config, data, tmp, web, log dir and also runtime home as explained &lt;A href="http://doc.nuxeo.com/pages/viewpage.action?pageId=9275166"&gt;here&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Like ron said, any toughts on that?
Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Apr 2012 14:07:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/error-cannot-bind-datasource-jdbc-nxactivities-in-jndi/m-p/314401#M1402</guid>
      <dc:creator>dam_</dc:creator>
      <dc:date>2012-04-10T14:07:00Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR Cannot bind datasource 'jdbc/nxactivities' in JNDI NamingException: Context is read only</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/error-cannot-bind-datasource-jdbc-nxactivities-in-jndi/m-p/314402#M1403</link>
      <description>&lt;P&gt;There is something wrong in what you've described. If you're using the static war version of nuxeo, you should not have a {{nuxeoctl}} in your tomcat. As nuxeo is packaged as a full war, you should start your server using the catalina way of doing (ie&lt;/P&gt;</description>
      <pubDate>Tue, 10 Apr 2012 15:10:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/error-cannot-bind-datasource-jdbc-nxactivities-in-jndi/m-p/314402#M1403</guid>
      <dc:creator>slacoin_Lacoin</dc:creator>
      <dc:date>2012-04-10T15:10:02Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR Cannot bind datasource 'jdbc/nxactivities' in JNDI NamingException: Context is read only</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/error-cannot-bind-datasource-jdbc-nxactivities-in-jndi/m-p/314403#M1404</link>
      <description>&lt;P&gt;I just said that before packaging it in a static war, I launched it in the bundled version with nuxeoctl (to test it) and it worked.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Apr 2012 15:13:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/error-cannot-bind-datasource-jdbc-nxactivities-in-jndi/m-p/314403#M1404</guid>
      <dc:creator>dam_</dc:creator>
      <dc:date>2012-04-10T15:13:58Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR Cannot bind datasource 'jdbc/nxactivities' in JNDI NamingException: Context is read only</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/error-cannot-bind-datasource-jdbc-nxactivities-in-jndi/m-p/314404#M1405</link>
      <description>&lt;P&gt;May I give you my static war for test ?&lt;/P&gt;</description>
      <pubDate>Tue, 10 Apr 2012 17:27:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/error-cannot-bind-datasource-jdbc-nxactivities-in-jndi/m-p/314404#M1405</guid>
      <dc:creator>slacoin_Lacoin</dc:creator>
      <dc:date>2012-04-10T17:27:00Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR Cannot bind datasource 'jdbc/nxactivities' in JNDI NamingException: Context is read only</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/error-cannot-bind-datasource-jdbc-nxactivities-in-jndi/m-p/314405#M1406</link>
      <description>&lt;P&gt;If you want but it means that I'll need to configure it manually.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Apr 2012 18:05:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/error-cannot-bind-datasource-jdbc-nxactivities-in-jndi/m-p/314405#M1406</guid>
      <dc:creator>dam_</dc:creator>
      <dc:date>2012-04-10T18:05:51Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR Cannot bind datasource 'jdbc/nxactivities' in JNDI NamingException: Context is read only</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/error-cannot-bind-datasource-jdbc-nxactivities-in-jndi/m-p/314406#M1407</link>
      <description>&lt;P&gt;Hi again,&lt;/P&gt;
&lt;P&gt;I think I managed to bypass the problem.&lt;/P&gt;
&lt;P&gt;I commented the datasource in "nuxeo/WEB-INF/activity-datasource-config.xml" and declared it in my tomcat nuxeo.xml like this :&lt;/P&gt;
&lt;PRE&gt;   &amp;lt; ResourceLink global="jdbc/nuxeo" name="jdbc/nxactivities" type="javax.sql.DataSource"/&amp;gt;&lt;/PRE&gt;
&lt;P&gt;Now I don't see any errors on startup or when I upload a file for instance.&lt;/P&gt;
&lt;P&gt;I wanted to test the collaboration tab, but I got this error :&lt;/P&gt;
&lt;PRE&gt;
 18:12:46,953 ERROR [OpenSocialAdapter] Unable to get gadget spec for publicsocialworkspaces
   org.apache.shindig.gadgets.GadgetException: Unable to retrieve spec for &lt;A href="https://MyIp:8083/nuxeo/site/gadgets/publicsocialworkspaces/publicsocialworkspaces.xml" target="test_blank"&gt;https://MyIp:8083/nuxeo/site/gadgets/publicsocialworkspaces/publicsocialworkspaces.xml&lt;/A&gt;. HTTP error 500&lt;/PRE&gt;
&lt;P&gt;But I guess it's another issue ?&lt;/P&gt;</description>
      <pubDate>Wed, 11 Apr 2012 18:33:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/error-cannot-bind-datasource-jdbc-nxactivities-in-jndi/m-p/314406#M1407</guid>
      <dc:creator>dam_</dc:creator>
      <dc:date>2012-04-11T18:33:40Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR Cannot bind datasource 'jdbc/nxactivities' in JNDI NamingException: Context is read only</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/error-cannot-bind-datasource-jdbc-nxactivities-in-jndi/m-p/314407#M1408</link>
      <description>&lt;P&gt;How can we manage the transfert ? Do you have a place where I can upload the file ? Or do we want me to share the archive ?&lt;/P&gt;</description>
      <pubDate>Wed, 11 Apr 2012 18:39:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/error-cannot-bind-datasource-jdbc-nxactivities-in-jndi/m-p/314407#M1408</guid>
      <dc:creator>slacoin_Lacoin</dc:creator>
      <dc:date>2012-04-11T18:39:44Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR Cannot bind datasource 'jdbc/nxactivities' in JNDI NamingException: Context is read only</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/error-cannot-bind-datasource-jdbc-nxactivities-in-jndi/m-p/314408#M1409</link>
      <description>&lt;P&gt;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.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Apr 2012 19:44:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/error-cannot-bind-datasource-jdbc-nxactivities-in-jndi/m-p/314408#M1409</guid>
      <dc:creator>slacoin_Lacoin</dc:creator>
      <dc:date>2012-04-11T19:44:16Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR Cannot bind datasource 'jdbc/nxactivities' in JNDI NamingException: Context is read only</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/error-cannot-bind-datasource-jdbc-nxactivities-in-jndi/m-p/314409#M1410</link>
      <description>&lt;P&gt;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.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Apr 2012 10:22:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/error-cannot-bind-datasource-jdbc-nxactivities-in-jndi/m-p/314409#M1410</guid>
      <dc:creator>dam_</dc:creator>
      <dc:date>2012-04-12T10:22:43Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR Cannot bind datasource 'jdbc/nxactivities' in JNDI NamingException: Context is read only</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/error-cannot-bind-datasource-jdbc-nxactivities-in-jndi/m-p/314410#M1411</link>
      <description>&lt;P&gt;That won't be necessary after all cause I managed to bypass this problem.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Apr 2012 10:23:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/error-cannot-bind-datasource-jdbc-nxactivities-in-jndi/m-p/314410#M1411</guid>
      <dc:creator>dam_</dc:creator>
      <dc:date>2012-04-12T10:23:54Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR Cannot bind datasource 'jdbc/nxactivities' in JNDI NamingException: Context is read only</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/error-cannot-bind-datasource-jdbc-nxactivities-in-jndi/m-p/314411#M1412</link>
      <description>&lt;P&gt;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&lt;/P&gt;</description>
      <pubDate>Thu, 12 Apr 2012 10:33:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/error-cannot-bind-datasource-jdbc-nxactivities-in-jndi/m-p/314411#M1412</guid>
      <dc:creator>slacoin_Lacoin</dc:creator>
      <dc:date>2012-04-12T10:33:27Z</dc:date>
    </item>
  </channel>
</rss>

