cancel
Showing results for 
Search instead for 
Did you mean: 

5.12 -> 5.14 issues after updating

gavnunns
Champ on-the-rise
Champ on-the-rise
I updated a activiti module this this morning, updated the history db tables and tested Activiti Explorer, this worked fine.

Now when I run in stand alone mode with the following POM and activiti.cfg.xml the process ProcessEngines.getDefaultProcessEngine() returns null.


<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="http://www.springframework.org/schema/beans   http://www.springframework.org/schema/beans/spring-beans.xsd">

    <bean id="processEngineConfiguration" class="org.activiti.engine.impl.cfg.StandaloneProcessEngineConfiguration">
        <!– Database configurations –>
        <property name="databaseType" value="oracle"/>
        <property name="jdbcUrl" value="jdbc:oracle:thin:@*****:1521/activiti"/>
        <property name="jdbcDriver" value="oracle.jdbc.OracleDriver"/>
        <property name="jdbcUsername" value="*****"/>
        <property name="jdbcPassword" value="*****"/>

        <property name="jobExecutorActivate" value="true"/>

        <property name="mailServerPort" value="25"/>
        <property name="mailServerHost" value="*****" />
        <property name="mailServerUsername" value="*****" />
        <property name="mailServerPassword" value="*****" />
        <property name="mailServerDefaultFrom" value="freedom@polarismail.net" />

    </bean>

</beans>



<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>

    <groupId>groupId</groupId>
    <artifactId>ActivitiThriftServer</artifactId>
    <version>1.0-SNAPSHOT</version>

    <properties>
        <activiti-version>5.14</activiti-version>
    </properties>

    <dependencies>
        <dependency>
            <groupId>org.activiti</groupId>
            <artifactId>activiti-engine</artifactId>
            <version>${activiti-version}</version>
        </dependency>
        <dependency>
            <groupId>org.activiti</groupId>
            <artifactId>activiti-spring</artifactId>
            <version>${activiti-version}</version>
        </dependency>
        <dependency>
            <groupId>org.codehaus.groovy</groupId>
            <artifactId>groovy-all</artifactId>
            <version>2.0.8</version>
        </dependency>
        <dependency>
            <groupId>com.h2database</groupId>
            <artifactId>h2</artifactId>
            <version>1.3.168</version>
        </dependency>
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <version>4.8.1</version>
        </dependency>
        <dependency>
            <groupId>org.apache.thrift</groupId>
            <artifactId>libthrift</artifactId>
            <version>0.9.1</version>
        </dependency>
        <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-log4j12</artifactId>
            <version>1.7.2</version>
        </dependency>
        <dependency>
            <groupId>com.oracle</groupId>
            <artifactId>ojdbc6</artifactId>
            <version>12.1.0.1</version>
        </dependency>
        <dependency>
            <groupId>org.codehaus.groovy.modules.http-builder</groupId>
            <artifactId>http-builder</artifactId>
            <version>0.6</version>
        </dependency>
        <dependency>
            <groupId>mysql</groupId>
            <artifactId>mysql-connector-java</artifactId>
            <version>5.1.16</version>
        </dependency>
    </dependencies>

    <repositories>
        <repository>
            <id>Activiti</id>
            <url>http://maven.alfresco.com/nexus/content/repositories/activiti</url>
        </repository>
        <repository>
            <id>Codehaus</id>
            <url>http://repository.codehaus.org</url>
        </repository>
    </repositories>
</project>
2 REPLIES 2

gavnunns
Champ on-the-rise
Champ on-the-rise
Solved - Well sort of Smiley Happy

Seems it was some form of path issue that was causing ProcessEngines.getDefaultProcessEngine() to not find the activiti.cfg.xml resource.  I moved to setting the config file using a file input stream and the ProcessEngineConfiguration this allows me to better debug and ensure the file was found and loaded correctly.

Thanks

frederikherema1
Star Contributor
Star Contributor
Thanks for reporting back Smiley Wink