Thanks, but in that setup I was trying to use the HypersonicSQL db.
Now I'm getting the same error when I try it with Oracle... I've read the
Oracle 8i-howto doc and I have appropriately changed my
<tdk_root>/webapps/newapp/WEB-INF/build/build.properties and
<tdk_root>/webapps/newapp/WEB-INF/conf/TurbineResources.properties files.
I think the problem is with the "ResourceNotFoundException: Unable to find
resource 'sql/db-init/oracle/windows.vm'" error, as you can see in the
following error text (I'm sure I must not be the first one to get this,
so what did you guys do to resolve this problem in TDK 2.1?):
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/oracle/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: 11 seconds
Thanks in advance,
-dan
On Wed, 8 Aug 2001, Andrea Papotti wrote:
> > 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?)
> >
>
> from my test:
> ---
> databaseUrl = jdbc:mysql://127.0.0.1/newapp
> databaseDriver = org.gjt.mm.mysql.Driver
> databaseUser = root
> databasePassword = [password removed to protect innocents]
> databaseHost = 127.0.0.1
> ---
>
> I was using mySql, so the databaseDriver does not apply, but the remaining
> lines should be correct also for you.
>
> Hope is useful,
> Andrea
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]