cancel
Showing results for 
Search instead for 
Did you mean: 

Installation Feedback Version 5.1 --- Bugs??

tbednarz
Champ in-the-making
Champ in-the-making
Hi,

I just installed Activity 5.1 and here are my feedbacks:

I use Postgres 8.4 database server. Therefore I changed build.properties and also build.postgres.properties. For development, testing etc I work on a Windows 7 32-bit Workstation with 3 GB RAM. I run Sun JDK (1.6.0_22-b04). I wanted the latest tomcat (6.0.30), so I set in build.properties for tomcat the following:

tomcat.version=6.0.30

I ran ant demo.start (I installed the latest ant 1.8.2)

The script run successfully, however the following happened:

Under ${actviti.home}/apps  I have two directories: apache-tomcat-6.0.29 and apache-tomcat-6.0.30. Both contain data. Seems like you have some hardcoded tomcat version somewhere in a script and ignore what is set in build.properties.  (see attached screenshot)

Unfortunately all logs have a size of 0 bytes in the tomcat/logs directory so I have no output of the exceptions thrown. But there was one saying it failed to connect to h2 database. Since I configured postgres, it should not try h2 at all!

When I imported the projects into Eclipse (I use 3.6 Helios JEE edition) there where some libs missing:
antlr-2.7.7.jar should be in libs-test for projects activiti-engine-examples, activiti-groovy-examples and activiti-jpa-examples. In activiti-spring-examples there is missing
Description   Resource   Path   Location   Type
Project 'activiti-spring-examples' is missing required library: 'libs-test/spring-orm-3.0.3.RELEASE.jar'   activiti-spring-examples      Build path   Build Path Problem

Where can I get this jar file?

And then a question:

I have tomcat installed as a service independent from activiti, since I use it for many other apps too. I built activiti and copied all activiti* webapps to my standard tomcat webapps directory. Some of the apps work,some don't like the designer. What do I need to do to correctly deploy the samples to another tomcat instance?

Many thanks for your feedbacks

Thomas
3 REPLIES 3

frederikherema1
Star Contributor
Star Contributor
Hi,

Did you install the demo first with database set to H2 before changing it to prostgres? If so, best is to clean the demo up when changing the db-setting, run "ant demo.stop" (if still running) and "ant demo.clean".
This should solve the tomcat-version issue as well I presume, if not, please let us know.

Missing spring-orm can be found in maven (http://mvnrepository.com/artifact/org.springframework/spring-orm/3.0.3.RELEASE), we'll look into that to see if there is an issue with the inclusion of this library.

The webapps can be deployed to another tomcat without a problem. What needs to be altered for the webapps (cycle, explorer, probe) is the endpoint-configuration to use (should point to REST, default is localhost:8080) if your hostname/port is different. This can be done in the surf.xml in the WEB-INF folder of the webapps:

  <!– The activiti REST API endpoint –>
      <endpoint>
        <id>activiti-rest-endpoint</id>
        <name>Activiti REST Endpoint</name>
        <description>Access to Activiti REST webapp</description>
        <connector-id>activiti-rest</connector-id>
        <endpoint-url>http://localhost:8080/activiti-rest/service</endpoint-url>
        <basic-auth>true</basic-auth>
        <identity>user</identity>
      </endpoint>

tbednarz
Champ in-the-making
Champ in-the-making
Hi Frederik,

Did you install the demo first with database set to H2 before changing it to prostgres?

No, I first created the postgres db and account, changed the properties file and then started the build with ant.

If so, best is to clean the demo up when changing the db-setting, run "ant demo.stop" (if still running) and "ant demo.clean".
This should solve the tomcat-version issue as well I presume, if not, please let us know.

I did a clean and a re-install too. It did not change anything. I think it should be easy to reproduce. Simply set the tomcat version to 6.0.30. It does the download correctly, it simply looks to me like a hardcoded version is lurking somewhere in a xml file…

For the rest, I will download the spring-orm and I will try the deployment to a different instance of tomcat. Thank you for your help with that.

Thomas

tbednarz
Champ in-the-making
Champ in-the-making
I downloaded Version 5.2. Regarding my posts above there are no changes.