Hi, http://archives.apache.org/eyebrowse/SearchList?listId=&listName=turbine [EMAIL PROTECTED]&searchText=XmlToAppData&defaultField=body&Searc h=Search
Mit freundlichen Gr�ssen J�rgen Hoffmann ByteACTION GmbH cert. Perl Programmer cert. Linux System Administrator cert. Java Programmer -----Urspr�ngliche Nachricht----- Von: Adam Barker [mailto:adamrossbarker@;hotmail.com] Gesendet: Montag, 28. Oktober 2002 06:37 An: [EMAIL PROTECTED] Betreff: Sample app build difficulties Hi all, I apologize if this has been covered, but I've done a great deal of searching and poking around and haven't been able to find an answer. I'm trying to get the Turbine sample app to build/install. Specs: Windows XP Professional JDK 1.4.1_01 or JDK 1.3.1_06 Ant 1.5.1 MySQL The first step of the TDK installation, i.e. running ant from the root directory, seems to work just fine. It's the "ant init" from the newapp build directory that's failing. At first, it failed because the create-database.sh script was returning some kind of failure. I ran the script by hand and removed that target from the build.xml file. Now it's failing with the following trace: C:\work\java\tdk\webapps\newapp\WEB-INF\build>ant init Buildfile: build.xml init: init-tasks: turbine-sql: [echo] +------------------------------------------+ [echo] | | [echo] | Generating SQL for Turbine base system! | [echo] | | [echo] +------------------------------------------+ [torque-sql] C:\work\java\tdk\webapps\newapp\WEB-INF\src\sql\turbine-schema.sql BUILD FAILED java.lang.VerifyError: (class: org/apache/turbine/torque/engine/database/transfo rm/XmlToAppData, method: parseFile signature: (Ljava/lang/String;)Lorg/apache/tu rbine/torque/engine/database/model/AppData;) Incompatible object argument for fu nction call at org.apache.turbine.torque.TorqueSQLTask.initControlContext(TorqueSQLT ask.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: 1 second java.lang.VerifyError: (class: org/apache/turbine/torque/engine/database/transfo rm/XmlToAppData, method: parseFile signature: (Ljava/lang/String;)Lorg/apache/tu rbine/torque/engine/database/model/AppData;) Incompatible object argument for fu nction call at org.apache.turbine.torque.TorqueSQLTask.initControlContext(TorqueSQLT ask.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) (class: org/apache/turbine/torque/engine/database/transform/XmlToAppData, method : parseFile signature: (Ljava/lang/String;)Lorg/apache/turbine/torque/engine/dat abase/model/AppData;) Incompatible object argument for function call I saw one post suggesting that this might be caused by an incompatibility with the 1.4 jdk due to the built in XML parser, but the same problem occurs when I use the 1.3 jdk. I think I've followed the documentation pretty closely, and I've changed nothing about the installation, except to set the correct user name and password for my database. There does seem to be a bit of inconsistency in the GETTING_STARTED.txt document, however. It refers to a ./project/newapp.properties file in several places, but this directory does not exist. I am working under the assumption that the doc is actually referring to the webapps/newapp/WEB-INF/build/build.properties file. Anyway, any help you can provide is greatly appreciated. I'm intrigued by the TDK, and I'd love to get started with it. Thanks, Adam Barker -- To unsubscribe, e-mail: <mailto:turbine-user-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:turbine-user-help@;jakarta.apache.org> -- To unsubscribe, e-mail: <mailto:turbine-user-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:turbine-user-help@;jakarta.apache.org>
