Hi,

I'm trying to test out turbine 2.1 and ran into a few problems that I hope
you guys/gals will be able to help out with.

I'm following the doc at
http://jakarta.apache.org/turbine/howto/tdk-howto.html to setup the first
turbine app 'newapp'.  (btw, feedback on the getting_started.txt file in
the download package is that it doesn't really help..)

In step #4 on the tdk-howto, I've modified the
TDKROOT/webapps/APPNAME/WEB-INF/build/build.properties
to use Hypersonic sql db (just for testing this newapp for now).  I'm not
even sure if the properties for hsql is correct, so I'm listing them here:

databaseUrl=jdbc:HypersonicSQL:FULLPATH/newapp
databaseDriver=org.hsql.jdbcDriver
databaseUser=sa
databasePassword=

(what's FULLPATH really?  do I specify something like C:\hsql\db or what?
any examples?)

Then, in step #5 of the tdk-howto, I'm suppose to run "ant init" but this
causes the following exception:

E:\Java\software\tdk\webapps\newapp\WEB-INF\build>ant init
E:\jdk1.2.2\bin\java
Buildfile: build.xml

init:

init-tasks:

set-os:

set-windows2000:

set-windowsNT:

set-windows98:

set-unix:

unix-ext:

windows-ext:

ext:
     [echo] Platform = windows
     [echo] Extension = bat

create-database:
     [echo] create-database.bat
E:\Java\software\tdk\webapps\newapp\WEB-INF\src\sql\create-database.bat

BUILD FAILED

E:\Java\software\tdk\webapps\newapp\WEB-INF\build\build.xml:115: Exception
throw
n by 'generator.parse'. For more information consult the velocity log.
--- Nested Exception ---
org.apache.velocity.exception.ResourceNotFoundException: Unable to find
resource
 'sql/db-init/hypersonic/windows.vm'
        at
org.apache.velocity.runtime.resource.ResourceManager.getResource(Reso
urceManager.java, Compiled Code)
        at org.apache.velocity.runtime.Runtime.getTemplate(Runtime.java)
        at org.apache.velocity.runtime.Runtime.getTemplate(Runtime.java)
        at org.apache.velocity.texen.Generator.parse(Generator.java)
        at org.apache.velocity.texen.Generator.parse(Generator.java)
        at java.lang.reflect.Method.invoke(Native Method)
        at
org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.j
ava, Compiled Code)
        at
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTRefer
ence.java, Compiled Code)
        at
org.apache.velocity.runtime.parser.node.ASTReference.render(ASTRefere
nce.java)
        at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.
java, Compiled Code)
        at org.apache.velocity.Template.merge(Template.java)
        at org.apache.velocity.texen.Generator.parse(Generator.java)
        at org.apache.velocity.texen.ant.TexenTask.execute(TexenTask.java,
Compi
led Code)
        at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:124)
        at org.apache.tools.ant.Target.execute(Target.java, Compiled Code)
        at org.apache.tools.ant.Project.runTarget(Project.java:898)
        at org.apache.tools.ant.Project.executeTarget(Project.java,
Compiled Cod
e)
        at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java, Compiled
Code)
        at
org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:103)

        at org.apache.tools.ant.Target.execute(Target.java, Compiled Code)
        at org.apache.tools.ant.Project.runTarget(Project.java:898)
        at org.apache.tools.ant.Project.executeTarget(Project.java,
Compiled Cod
e)
        at org.apache.tools.ant.Project.executeTargets(Project.java,
Compiled Co
de)
        at org.apache.tools.ant.Main.runBuild(Main.java, Compiled Code)
        at org.apache.tools.ant.Main.main(Main.java:149)

Total time: 10 seconds



And finally, is there any doc on the file <TDK_ROOT>/build.properties?
Like what does the following properties do in the file?

        app.root = share/sample
        share.dir = share


TIA,
dan


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

Reply via email to