<?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: PostgreSQL / Existing Tomcat Install Issue in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/postgresql-existing-tomcat-install-issue/m-p/9384#M3338</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Although you say the database exists and can be connected to it does seem like there is an issue with the database as you are getting the following exception:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;org.springframework.transaction.CannotCreateTransactionException: Could not open Hibernate session for transaction; nested exception is org.hibernate.exception.GenericJDBCException: Cannot open connection&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Have you placed the MySQL driver in the tomcat/common/lib? If you have done that have you tried connecting to the database as alfresco/alfresco?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 Dec 2005 09:18:51 GMT</pubDate>
    <dc:creator>gavinc</dc:creator>
    <dc:date>2005-12-19T09:18:51Z</dc:date>
    <item>
      <title>PostgreSQL / Existing Tomcat Install Issue</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/postgresql-existing-tomcat-install-issue/m-p/9383#M3337</link>
      <description>Greetings,I'm having problems installing Alfresco on an existing Tomcat 5.5.14 installation.I have followed the instructions on this thread,http://www.alfresco.org/forums/viewtopic.php?t=116with the caveat that the hibernate-context.xml file did not contain the Dialect specs, instead it was in the d</description>
      <pubDate>Thu, 15 Dec 2005 17:49:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/postgresql-existing-tomcat-install-issue/m-p/9383#M3337</guid>
      <dc:creator>jazzcat</dc:creator>
      <dc:date>2005-12-15T17:49:09Z</dc:date>
    </item>
    <item>
      <title>Re: PostgreSQL / Existing Tomcat Install Issue</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/postgresql-existing-tomcat-install-issue/m-p/9384#M3338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Although you say the database exists and can be connected to it does seem like there is an issue with the database as you are getting the following exception:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;org.springframework.transaction.CannotCreateTransactionException: Could not open Hibernate session for transaction; nested exception is org.hibernate.exception.GenericJDBCException: Cannot open connection&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Have you placed the MySQL driver in the tomcat/common/lib? If you have done that have you tried connecting to the database as alfresco/alfresco?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Dec 2005 09:18:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/postgresql-existing-tomcat-install-issue/m-p/9384#M3338</guid>
      <dc:creator>gavinc</dc:creator>
      <dc:date>2005-12-19T09:18:51Z</dc:date>
    </item>
    <item>
      <title>Re: PostgreSQL / Existing Tomcat Install Issue</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/postgresql-existing-tomcat-install-issue/m-p/9385#M3339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Do I need the MySQL driver even though I'm using PG?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I downloaded the PG JDBC driver and put it under {tomcat_root}common/lib; then I restarted Tomcat.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the catalina.out file, I get this message now:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Caused by: org.apache.commons.dbcp.SQLNestedException: Cannot load JDBC driver class 'org.postgresqlDriver'…&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;…Caused by: java.lang.ClassNotFoundException: org.postgresqlDriver&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I also explicitly added the {tomcat_root}/common/lib directory to the normal JAVA CLASSPATH for my user account.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm going to go visit a PostgreSQL JDBC list, but is there anything else from an alfresco point of view that I need to do to let it know to load the driver? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-Josh&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Dec 2005 19:47:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/postgresql-existing-tomcat-install-issue/m-p/9385#M3339</guid>
      <dc:creator>jazzcat</dc:creator>
      <dc:date>2005-12-20T19:47:07Z</dc:date>
    </item>
    <item>
      <title>Re: PostgreSQL / Existing Tomcat Install Issue</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/postgresql-existing-tomcat-install-issue/m-p/9386#M3340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I believe PostgreSQL changed it's class structure for it's JDBC driver at some point, it might be worth checking you have the most up-to-date version, or if you are running an old PostgreSQL version then check your hibernate mappings:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; If You are running an older version of JDBC, the driver name may be wrong. Version 6.5 and lower use "postgresql.Driver", and later versions use "org.postgresql.Driver".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Steve&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Dec 2005 10:10:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/postgresql-existing-tomcat-install-issue/m-p/9386#M3340</guid>
      <dc:creator>steve</dc:creator>
      <dc:date>2005-12-21T10:10:38Z</dc:date>
    </item>
    <item>
      <title>Re: PostgreSQL / Existing Tomcat Install Issue</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/postgresql-existing-tomcat-install-issue/m-p/9387#M3341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Please note that if you are running PostgreSql Server on the default port then a slight modification is required to the settings instructions that have been posted in this url:&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://www.alfresco.org/forums/viewtopic.php?t=23" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/forums/viewtopic.php?t=23&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The settings in respository.properties should look like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# Database configuration&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;db.driver=org.postgresql.Driver&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;db.name=alfresco&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;db.url=jdbc&lt;img id="smileytongue" class="emoticon emoticon-smileytongue" src="https://connect.hyland.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;ostgresql://localhost:5432/${db.name}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;db.username=alfresco&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;db.password=alfresco &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Note the port number (5432 default) that has been appended to the db url&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The 3 drivers that I am using are:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1. pg80b1.308.jdbc2.jar&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. pg80b1.308.jdbc2ee.jar&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3. pg80b1.308.jdbc3.jar&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;These can be found in C:\Program Files\PostgreSQL\8.0\jdbc directory (ie. the jdbc directory in your Postgres installation).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope that helps.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Arnab&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 Dec 2005 18:11:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/postgresql-existing-tomcat-install-issue/m-p/9387#M3341</guid>
      <dc:creator>arnab</dc:creator>
      <dc:date>2005-12-24T18:11:50Z</dc:date>
    </item>
  </channel>
</rss>

