<?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: Activiti tables creation issue in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/activiti-tables-creation-issue/m-p/91546#M62497</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a specific reason why you are using lazy-init="true" ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When you look in the database, can you see that no tables are created?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Are there any error messages before the log messages you already included?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Jan 2012 07:35:25 GMT</pubDate>
    <dc:creator>trademak</dc:creator>
    <dc:date>2012-01-26T07:35:25Z</dc:date>
    <item>
      <title>Activiti tables creation issue</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-tables-creation-issue/m-p/91545#M62496</link>
      <description>Hi,I am trying to use Activiti 5.7 inside of a Spring webapp on Tomcat 6 and Oracle 10g database. When I deploy the webapp, I thought the way it should work is the process engine configuration spring bean will check and see that the tables do not exist in the new user schema and proceed to create th</description>
      <pubDate>Wed, 25 Jan 2012 21:14:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-tables-creation-issue/m-p/91545#M62496</guid>
      <dc:creator>frequentcrasher</dc:creator>
      <dc:date>2012-01-25T21:14:22Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti tables creation issue</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-tables-creation-issue/m-p/91546#M62497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a specific reason why you are using lazy-init="true" ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When you look in the database, can you see that no tables are created?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Are there any error messages before the log messages you already included?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jan 2012 07:35:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-tables-creation-issue/m-p/91546#M62497</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2012-01-26T07:35:25Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti tables creation issue</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-tables-creation-issue/m-p/91547#M62498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for taking the time to look at my question. I got a chance to download and debug through the source code and here's what I realized I was doing that was slightly different. We were setting up a test environment so we created a second oracle user/schema on the same database to have a second environment. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's my interpretation of what's going on so please take it with a grain of salt since I'm no expert at this. When the process engine configuration bean is created by Spring, the app eventually find its way to DbSqlSession.dbSchemaCreate() where there's a call to isEngineTablePresent() followed by a call to getDbVersion(). I think the DbSqlSession object created for the isEngineTablePresent call might be instantiated using the constructor that doesn't pass schema so the app thinks the engine tables exists at this point because the call to fetch database meta data indeed find a table named ACT_RU_EXECUTION from the first user/schema and proceed to query the ACT_GE_PROPERTY table for the schema.version property which bombs. I see a DbSqlSession constructor that takes schema but it was used by something else and I didn't find a property I could set that will pass the schema along to the schema check/create piece.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I created a test user schema and started up the app in debug mode pointing to this test database and updated the schema property of the DbSqlSession object on the fly and everything ran great as a test. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;On the lazy-init, I don't think I consciously picked it as a choice. Either I copied it from an example or one of the other developers chose it. Since you pointed it out, I assume it is not the recommeded practice and will look in the documentation to see what it does exactly. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I verified that no database tables are created when it errors out each time (we tried multiple times on a couple different developer's local databases). The errors I pasted in the original post were the first error messages to show up each time.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jan 2012 19:45:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-tables-creation-issue/m-p/91547#M62498</guid>
      <dc:creator>frequentcrasher</dc:creator>
      <dc:date>2012-01-27T19:45:04Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti tables creation issue</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-tables-creation-issue/m-p/91548#M62499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have noticed the same problem in 5.10, with two user schemas in oracle - first with activiti tables and second with no tables. When trying to start process engine with db config set to use second user schema &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;method &lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;isTablePresent&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN&gt; returns true as it was checking for any table in the db.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is this issue fixed in the current release?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2013 10:21:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-tables-creation-issue/m-p/91548#M62499</guid>
      <dc:creator>pgadecki</dc:creator>
      <dc:date>2013-01-15T10:21:33Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti tables creation issue</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-tables-creation-issue/m-p/91549#M62500</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Did you specify the "databaseSchema" property on the process-engine-configuration?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2013 10:58:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-tables-creation-issue/m-p/91549#M62500</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2013-01-15T10:58:04Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti tables creation issue</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-tables-creation-issue/m-p/91550#M62501</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;No, but now I used your advice. I don't have direct access to the db user name, but I was able to plug into process engine configuration initialization and managed to get use of patch &lt;/SPAN&gt;&lt;A href="https://jira.codehaus.org/secure/attachment/58549/ACT-1062.patch" rel="nofollow noopener noreferrer"&gt;https://jira.codehaus.org/secure/attachment/58549/ACT-1062.patch&lt;/A&gt;&lt;SPAN&gt; from jira issue &lt;/SPAN&gt;&lt;A href="https://jira.codehaus.org/browse/ACT-1062" rel="nofollow noopener noreferrer"&gt;https://jira.codehaus.org/browse/ACT-1062&lt;/A&gt;&lt;SPAN&gt; so the code looks like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;this.databaseSchema = this.dataSource.getConnection().getMetaData().getUserName();&lt;BR /&gt;this.dbSqlSessionFactory.setDatabaseSchema(this.databaseSchema);&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2013 12:06:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-tables-creation-issue/m-p/91550#M62501</guid>
      <dc:creator>pgadecki</dc:creator>
      <dc:date>2013-01-15T12:06:21Z</dc:date>
    </item>
  </channel>
</rss>

