You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by Chris Atwood <ca...@andrew.cmu.edu> on 2003/03/16 21:27:03 UTC

everything is broken

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: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org


Re: AW: everything is broken

Posted by Chris Atwood <ca...@andrew.cmu.edu>.
I didn't want to go back to 1.3 so I started poking around the docs 
mroe and found the solution on the turbine2 wiki

	http://nagoya.apache.org/wiki/apachewiki.cgi?JakartaTurbine2Faq

its a bug in xercesImpl.jar that comes with most versions of ant, I 
replaced it with the turbine one and it the build worked.

  - Chris


On Sunday, March 16, 2003, at 05:29 PM, Garvin Riensche wrote:

> Hello Chris,
>
>> I'm running java sun 1.4.1.01 with ant 1.5.1 with 512 ram, 1 gig swap.
> If you are using TDK 2.1 try ant 1.3 instead. I had the same problems 
> and
> using ant 1.3 solved them.
>
> regards,
> Garvin
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: turbine-user-help@jakarta.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org


AW: everything is broken

Posted by Garvin Riensche <g....@gmx.net>.
Hello Chris,

> I'm running java sun 1.4.1.01 with ant 1.5.1 with 512 ram, 1 gig swap.
If you are using TDK 2.1 try ant 1.3 instead. I had the same problems and
using ant 1.3 solved them.

regards,
Garvin


---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org