How do I get a working create_tomcat.rb config?

1 view
Skip to first unread message

richard_c

unread,
May 6, 2008, 12:20:52 PM5/6/08
to tempo-dev
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"

Nicolas Modrzyk

unread,
May 6, 2008, 6:08:59 PM5/6/08
to temp...@googlegroups.com
sorry, only replying now.

I did not get what the problem was ?
There is nothing by default in the different lists. You need to deploy
forms and pipa to the server so that they appear properly.

Or did you get any error while using the script itself ?

Regards,

Niko,

richard_c

unread,
May 6, 2008, 10:56:03 PM5/6/08
to tempo-dev
Less rambling version:
- I can't figure our what the MISSING_LIBS list should look like.
- no errors while running the script create_tomcat.rb itself (if
MISSING_LIBS is changed, at least by commenting out MYSQL_CONNECTOR,
etc.).

In response to your suggestion; how do I "deploy forms and pipa to the
server"? (I'm not being facetious, I'm just a total newbie).

If further deploys are needed to get a working configuration; what
should be working when the create_tomcat.rb script is done? I
understood that the AbsenceRequest example should be working, is that
not the case?

Thank you for your help.

Richard

On May 6, 11:08 pm, "Nicolas Modrzyk" <hellon...@gmail.com> wrote:
> sorry, only replying now.
>
> I did not get what the problem was ?
> There is nothing by default in the different lists. You need to deploy
> forms and pipa to the server so that they appear properly.
>
> Or did you get any error while using the script itself ?
>
> Regards,
>
> Niko,
>

Nicolas Modrzyk

unread,
May 7, 2008, 3:36:29 PM5/7/08
to temp...@googlegroups.com
Hi Richard,

I was just cleaning up the libraries (commons and spring overflow)
and so the updated create_tomcat.rb is now working as expected.

Niko,

On 5/6/08, richard_c <richar...@gmail.com> wrote:
>

Reply all
Reply to author
Forward
0 new messages