I'm interested in using turbine and its components for my next project. Earlier this weekend I downloaded the tdk and started playing around with it. First problem was the example application doesn't build for me when I run

ant init

in tdk/webapps/newapp/WEB-INF/build after running ant at the root of the tdk. I get this output

************************************************************************ *****
Buildfile: build.xml


init:

init-tasks:

set-os:

set-windows2000:

set-windowsNT:

set-windows98:

set-unix:

unix-ext:

windows-ext:

ext:
     [echo] Platform = unix
     [echo] Extension = sh

create-database:
[echo] create-database.sh
[torque-create-db] /opt/tdk/webapps/newapp/WEB-INF/src/sql/create-database.sh
[exec] Database "newapp" dropped


init-tasks:

turbine-sql:
     [echo] +------------------------------------------+
     [echo] |                                          |
     [echo] | Generating SQL for Turbine base system!  |
     [echo] |                                          |
     [echo] +------------------------------------------+
[torque-sql] /opt/tdk/webapps/newapp/WEB-INF/src/sql/turbine-schema.sql

BUILD FAILED
java.lang.VerifyError: (class: org/apache/turbine/torque/engine/database/transform/XmlToAppData, method: parseFile signature: (Ljava/lang/String;)Lorg/apache/turbine/torque/engine/database/model/ AppData;) Incompatible object argument for function call
at org.apache.turbine.torque.TorqueSQLTask.initControlContext(TorqueSQLTask .java:153)
at org.apache.velocity.texen.ant.TexenTask.execute(TexenTask.java)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:166)
at org.apache.tools.ant.Task.perform(Task.java:319)
at org.apache.tools.ant.Target.execute(Target.java:309)
at org.apache.tools.ant.Target.performTasks(Target.java:336)
at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:371)
at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:143)
at org.apache.tools.ant.Task.perform(Task.java:319)
at org.apache.tools.ant.Target.execute(Target.java:309)
at org.apache.tools.ant.Target.performTasks(Target.java:336)
at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
at org.apache.tools.ant.Project.executeTargets(Project.java:1250)
at org.apache.tools.ant.Main.runBuild(Main.java:610)
at org.apache.tools.ant.Main.start(Main.java:196)
at org.apache.tools.ant.Main.main(Main.java:235)


Total time: 3 seconds
************************************************************************ *****


In looking into this it seems that the turbine-schema.sql is empty, so the build fails.

Moving on.

I figured that I'd build everything from scratch, so I installed maven and attempted to build the turbine components. For turbine itself all dependencies download fine, and then I get this error

************************************************************************ *****
java:prepare-filesystem:
[mkdir] Created dir: /home/catwood/turbine/cvs/jakarta-turbine-2/target/classes


java:compile:
[copy] Copying 370 files to /home/catwood/turbine/cvs/jakarta-turbine-2/target/src
[copy] Copied 16 empty directories to /home/catwood/turbine/cvs/jakarta-turbine-2/target/src
scheduler-om:
copy-scheduler-om:
[copy] Copying 1 file to /home/catwood/turbine/cvs/jakarta-turbine-2/target


BUILD FAILED
null:82:35: <attainGoal> null:-1:-1: <null> No goal [torque:om]
Total time: 6 seconds
************************************************************************ *****


So I move onto fulcrum where I get this error after the files download
************************************************************************ *****
java:prepare-filesystem:
[mkdir] Created dir: /home/catwood/turbine/cvs/jakarta-turbine-fulcrum/target/classes


java:compile:
[copy] Copying 1 file to /home/catwood/turbine/cvs/jakarta-turbine-fulcrum/target/classes/org/ apache/fulcrum
[copy] Copying 186 files to /home/catwood/turbine/cvs/jakarta-turbine-fulcrum/target/src
[copy] Copying 1 file to /home/catwood/turbine/cvs/jakarta-turbine-fulcrum/target


BUILD FAILED
null:-1:-1: <null> No goal [torque:om]
Total time: 6 seconds
************************************************************************ *****


and JSC compiles but one the junit tests fails
************************************************************************ *****
test:test:
[junit] Running org.apache.jcs.TestDiskCache
[junit] Tests run: 3, Failures: 0, Errors: 0, Time elapsed: 5.863 sec
[junit] Running org.apache.jcs.TestDiskCacheConcurrent
[junit] Exception in thread "main" java.lang.OutOfMemoryError
[junit] [ERROR] TEST org.apache.jcs.TestDiskCacheConcurrent FAILED
[junit] Running org.apache.jcs.TestJCS
[junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.994 sec
[junit] Running org.apache.jcs.TestSimpleLoad
[junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 6.07 sec
[junit] Running org.apache.jcs.TestTCPLateralCache
[junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 2.009 sec
************************************************************************ *****


Also, one this is very unclear to me, does the torque plugin need to be installed into maven? The docs says so, but notes in the CVS say its already incorporated.

I'm running java sun 1.4.1.01 with ant 1.5.1 with 512 ram, 1 gig swap.

So what's the deal? Are you guys experiencing these errors? Or did I happen to come along when the CVS tree is broken? Any suggestions on how to get turbine running?

Thank

Chris Atwood


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to