Hi,
I'm trying to build Tempo 5.2.0.19 from source. There's a few reasons
for this, but it's a given for the moment. I'm building in a virtual
Ubuntu machine (JeOS 8.10, on VMWare); and I'm having a few issues. It
doesn't seem to work. The combination of MISSING_LIBS below results in
class cast exceptions, and without them, class not found errors for
Xerces. How do I move on? Also, there's a few bugs I've turned up
(note sed command below), where should I report them?
I'm only working with v.5.2.0.19 so I'm not trying to hit a moving
target. If there's another version which "just works" then I'm happy
to try.
The process is:
1. Install JeOS (there aren't options).
2. Install VMWare tools (not much here to fiddle with).
3. Run script:
sudo apt-get update && sudo apt-get upgrade
sudo aptitude install mysql-server rubygems ruby ruby1.8-dev sun-java5-
jdk subversion
# I ensure mysql has no password for root. All good.
sudo JAVA_HOME=/usr/lib/jvm/java-1.5.0-sun gem install buildr --
version 1.2.10 -y
export JAVA_HOME=/usr/lib/jvm/java-1.5.0-sun
sudo gem install hpricot -y
TEMPO_SVN=$HOME/tempo-svn
cd ~
svn co
http://tempo.intalio.org/tempo/tags/5.2.0.19 tempo-svn
cd $TEMPO_SVN
/var/lib/gems/1.8/bin/buildr package 2>&1 | tee ~/build.log
sed -ie 's/com.intalio.bpms.configDirectory/org.apache.ode.configDir/'
$TEMPO_SVN/rsc/tomcat/log4j.properties
cd $TEMPO_SVN/rsc/scripts/
4. I need to hack create_tomcat.rb (see below for diff) and run it.
./create_tomcat.rb
5. I create the mysql DB, initialise it, and start up.
sudo mysqladmin create bpms
mysql -u root bpms < $TEMPO_SVN/rsc/tempo-sql/ode-mysql.sql
6. I start the Tomcat server:
cd $TEMPO_SVN/rsc/scripts/intalio/apache-tomcat-5.5.26/bin
./catalina.sh run 2>&1 | tee ~/tomcat.log
The exact nature of the failure depends on which combination of
libraries I use in MISSING_LIBS, but when I log in, there's nothing
there. No tasks, no procedures, nothing. It doesn't matter which user
I login as (admin, examples\msmith, etc.).
How can I get further? How should I debug this? What are the correct
values for MISSING_LIBS? Is there a different way to build this?
Thanks,
Richard
(enc)
create_tomcat.rb.diff:
user@ubuntu:~$ diff ~/rgc_create_tomcat.rb ~/tempo-svn/rsc/scripts/
create_tomcat.rb
11,12c11
< # RGC: there's no directory called dependencies
< #require "../../dependencies"
---
> require "../../dependencies"
325,326c324
< #MYSQL_CONNECTOR,
< "mysql:mysql-connector-java:jar:5.1.6",
---
> MYSQL_CONNECTOR,
329d326
< #COMMONS-COLLECTIONS,
331,335c328,330
< #COMMONS_POOL,
< "commons-pool:commons-pool:jar:1.4",
< #COMMONS_LOG,
< "commons-logging:commons-logging:jar:1.0.4",
< #STAX_API,
---
> COMMONS_POOL,
> COMMONS_LOG,
> STAX_API,
337c332
< #WSDL4J,
---
> WSDL4J,
339,343c334,335
< #SLF4J,
< "org.slf4j:slf4j-api:jar:1.4.3",
< "org.slf4j:slf4j-log4j12:jar:1.4.3",
< #LOG4J,
< "log4j:log4j:jar:1.2.15",
---
> SLF4J,
> LOG4J,
349d340
< "org.apache.pluto:pluto-deploy:jar:1.0.1",
351d341
< "castor:castor:jar:1.0",
353,354d342
< "xerces:xercesImpl:jar:2.9.1",
< "xerces:xmlParserAPIs:jar:2.9.0"