<?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: &amp;quot;Could not find datasource&amp;quot; error with Nuxeo 5.6-RC2 in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/quot-could-not-find-datasource-quot-error-with-nuxeo-5-6-rc2/m-p/317046#M4047</link>
    <description>&lt;P&gt;First check your configuration by running &lt;CODE&gt;./bin/nuxeoctl showconf&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;Then check in &lt;CODE&gt;$NUXEO_HOME/conf/server.xml&lt;/CODE&gt; the value of the generated "Common datasource for all basic nuxeo datasources":&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;    &amp;lt;Resource name="jdbc/nuxeo" auth="Container" type="javax.sql.DataSource"
    maxActive="100" maxIdle="30" maxWait="10000"
    driverClassName="org.apache.derby.jdbc.EmbeddedDriver"
    **url="jdbc:derby:/.../nxserver/data/derby/nuxeo;create=true"** validationQuery=""
    **username="sa"** **password=""** /&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Is there any trailing variable which has not been replaced with a value? Do the parameters I surrounded with asterisks seem correct?&lt;/P&gt;
&lt;P&gt;Optionally also check the content of &lt;CODE&gt;$NUXEO_HOME/conf/Catalina/localhost/nuxeo.xml&lt;/CODE&gt;.&lt;/P&gt;</description>
    <pubDate>Wed, 01 Aug 2012 14:41:10 GMT</pubDate>
    <dc:creator>Julien_Carsique</dc:creator>
    <dc:date>2012-08-01T14:41:10Z</dc:date>
    <item>
      <title>"Could not find datasource" error with Nuxeo 5.6-RC2</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/quot-could-not-find-datasource-quot-error-with-nuxeo-5-6-rc2/m-p/317045#M4046</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I upgraded my custom nuxeo distribution to nuxeo-5.6-RC2 and I am getting the following stacktraces at nuxeo startup. Are there any new variables to define in my custom template I shoud define ? FYI I redefined variable nuxeo.db.name to 'nuxeo-5.6' to point to another DB, should I redefine another variable ?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;2012-08-01 09:20:10,402 ERROR [org.hibernate.connection.DatasourceConnectionProvider] Could not find datasource: java:comp/env/jdbc/nxuidsequencer
javax.naming.NameNotFoundException: Le Nom jdbc n'est pas lié à ce Contexte
    at org.apache.naming.NamingContext.lookup(NamingContext.java:770)
    at org.apache.naming.NamingContext.lookup(NamingContext.java:153)
    at org.apache.naming.factory.ResourceLinkFactory.getObjectInstance(ResourceLinkFactory.java:97)
    at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)
    at org.apache.naming.NamingContext.lookup(NamingContext.java:793)
    at org.apache.naming.NamingContext.lookup(NamingContext.java:140)
    at org.apache.naming.NamingContext.lookup(NamingContext.java:781)
    at org.apache.naming.NamingContext.lookup(NamingContext.java:140)
    at org.apache.naming.NamingContext.lookup(NamingContext.java:781)
    at org.apache.naming.NamingContext.lookup(NamingContext.java:140)
    at org.apache.naming.NamingContext.lookup(NamingContext.java:781)
    at org.apache.naming.NamingContext.lookup(NamingContext.java:153)
    at org.apache.naming.SelectorContext.lookup(SelectorContext.java:152)
    at javax.naming.InitialContext.lookup(InitialContext.java:392)
    at org.hibernate.connection.DatasourceConnectionProvider.configure(DatasourceConnectionProvider.java:75)
    at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:137)
    at org.hibernate.ejb.InjectionSettingsFactory.createConnectionProvider(InjectionSettingsFactory.java:29)
    at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:89)
    at org.hibernate.cfg.Configuration.buildSettingsInternal(Configuration.java:2119)
    at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2115)
    at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1339)
    at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:867)
    at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:669)
    at org.hibernate.ejb.Ejb3Configuration.createEntityManagerFactory(Ejb3Configuration.java:646)
    at org.nuxeo.ecm.core.persistence.HibernateConfiguration$1.run(HibernateConfiguration.java:153)
2012-08-01 09:20:10,462 WARN  [org.hibernate.ejb.Ejb3Configuration] Overriding hibernate.transaction.factory_class is dangerous, this might break the EJB3 specification implementation
2012-08-01 09:20:10,480 ERROR [org.hibernate.connection.DatasourceConnectionProvider] Could not find datasource: java:comp/env/jdbc/placeful_service_ds
javax.naming.NameNotFoundException: Le Nom jdbc n'est pas lié à ce Contexte
    at org.apache.naming.NamingContext.lookup(NamingContext.java:770)
    at org.apache.naming.NamingContext.lookup(NamingContext.java:153)
    at org.apache.naming.factory.ResourceLinkFactory.getObjectInstance(ResourceLinkFactory.java:97)
    at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)
    at org.apache.naming.NamingContext.lookup(NamingContext.java:793)
    at org.apache.naming.NamingContext.lookup(NamingContext.java:140)
    at org.apache.naming.NamingContext.lookup(NamingContext.java:781)
    at org.apache.naming.NamingContext.lookup(NamingContext.java:140)
    at org.apache.naming.NamingContext.lookup(NamingContext.java:781)
    at org.apache.naming.NamingContext.lookup(NamingContext.java:140)
    at org.apache.naming.NamingContext.lookup(NamingContext.java:781)
    at org.apache.naming.NamingContext.lookup(NamingContext.java:153)
    at org.apache.naming.SelectorContext.lookup(SelectorContext.java:152)
    at javax.naming.InitialContext.lookup(InitialContext.java:392)
    at org.hibernate.connection.DatasourceConnectionProvider.configure(DatasourceConnectionProvider.java:75)
    at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:137)
    at org.hibernate.ejb.InjectionSettingsFactory.createConnectionProvider(InjectionSettingsFactory.java:29)
    at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:89)
    at org.hibernate.cfg.Configuration.buildSettingsInternal(Configuration.java:2119)
    at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2115)
    at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1339)
    at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:867)
    at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:669)
    at org.hibernate.ejb.Ejb3Configuration.createEntityManagerFactory(Ejb3Configuration.java:646)
    at org.nuxeo.ecm.core.persistence.HibernateConfiguration$1.run(HibernateConfiguration.java:153)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 01 Aug 2012 13:32:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/quot-could-not-find-datasource-quot-error-with-nuxeo-5-6-rc2/m-p/317045#M4046</guid>
      <dc:creator>Vincent_Dutat</dc:creator>
      <dc:date>2012-08-01T13:32:12Z</dc:date>
    </item>
    <item>
      <title>Re: "Could not find datasource" error with Nuxeo 5.6-RC2</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/quot-could-not-find-datasource-quot-error-with-nuxeo-5-6-rc2/m-p/317046#M4047</link>
      <description>&lt;P&gt;First check your configuration by running &lt;CODE&gt;./bin/nuxeoctl showconf&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;Then check in &lt;CODE&gt;$NUXEO_HOME/conf/server.xml&lt;/CODE&gt; the value of the generated "Common datasource for all basic nuxeo datasources":&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;    &amp;lt;Resource name="jdbc/nuxeo" auth="Container" type="javax.sql.DataSource"
    maxActive="100" maxIdle="30" maxWait="10000"
    driverClassName="org.apache.derby.jdbc.EmbeddedDriver"
    **url="jdbc:derby:/.../nxserver/data/derby/nuxeo;create=true"** validationQuery=""
    **username="sa"** **password=""** /&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Is there any trailing variable which has not been replaced with a value? Do the parameters I surrounded with asterisks seem correct?&lt;/P&gt;
&lt;P&gt;Optionally also check the content of &lt;CODE&gt;$NUXEO_HOME/conf/Catalina/localhost/nuxeo.xml&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Aug 2012 14:41:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/quot-could-not-find-datasource-quot-error-with-nuxeo-5-6-rc2/m-p/317046#M4047</guid>
      <dc:creator>Julien_Carsique</dc:creator>
      <dc:date>2012-08-01T14:41:10Z</dc:date>
    </item>
    <item>
      <title>Re: "Could not find datasource" error with Nuxeo 5.6-RC2</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/quot-could-not-find-datasource-quot-error-with-nuxeo-5-6-rc2/m-p/317047#M4048</link>
      <description>&lt;P&gt;Strange, I don't find the piece of XML you mentioned in my server.xml ... Nevertheless, I find the string "Common datasource for all basic nuxeo datasources" in $NUXEO_HOME/templates/common-base/conf/server.xml.nxftl ... Another strange thing, there's a file named 'server.xml.nx.nxftl' in directory $NUXEO_HOME/templates/common-base/conf/ ... Is it a typo ?&lt;/P&gt;</description>
      <pubDate>Wed, 01 Aug 2012 16:01:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/quot-could-not-find-datasource-quot-error-with-nuxeo-5-6-rc2/m-p/317047#M4048</guid>
      <dc:creator>Vincent_Dutat</dc:creator>
      <dc:date>2012-08-01T16:01:02Z</dc:date>
    </item>
    <item>
      <title>Re: "Could not find datasource" error with Nuxeo 5.6-RC2</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/quot-could-not-find-datasource-quot-error-with-nuxeo-5-6-rc2/m-p/317048#M4049</link>
      <description>&lt;P&gt;I forgot to mention that I am using postgresql template.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Aug 2012 17:01:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/quot-could-not-find-datasource-quot-error-with-nuxeo-5-6-rc2/m-p/317048#M4049</guid>
      <dc:creator>Vincent_Dutat</dc:creator>
      <dc:date>2012-08-01T17:01:58Z</dc:date>
    </item>
    <item>
      <title>Re: "Could not find datasource" error with Nuxeo 5.6-RC2</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/quot-could-not-find-datasource-quot-error-with-nuxeo-5-6-rc2/m-p/317049#M4050</link>
      <description>&lt;P&gt;OK, problem solved&lt;/P&gt;</description>
      <pubDate>Wed, 01 Aug 2012 17:22:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/quot-could-not-find-datasource-quot-error-with-nuxeo-5-6-rc2/m-p/317049#M4050</guid>
      <dc:creator>Vincent_Dutat</dc:creator>
      <dc:date>2012-08-01T17:22:42Z</dc:date>
    </item>
  </channel>
</rss>

