users@glassfish.java.net

javadb.properties and build.properties

From: <glassfish_at_javadesktop.org>
Date: Thu, 23 Jul 2009 13:40:52 PDT

As mentioned above I had also to change the javadb.properites and remove the "examples/" folders:

file before:
db.create.src=${javaee.tutorial.home}/examples/common/sql/${db.vendor}/tutorial.sql
db.delete.src=${javaee.tutorial.home}/examples/common/sql/${db.vendor}/delete.sql
file after:
db.create.src=${javaee.tutorial.home}/common/sql/${db.vendor}/tutorial.sql
db.delete.src=${javaee.tutorial.home}/common/sql/${db.vendor}/delete.sql

Otherwise I get the following:
E:\glassfishv3\glassfish\docs\javaee-tutorial\examples\web\bookstore1>ant create-tables
Buildfile: build.xml

-pre-init:

init:

check:

tools:

start-db:
     [exec] Database already started on host localhost, port 1527.
     [exec] Command start-database executed successfully.

delete-tables:

BUILD FAILED
E:\glassfishv3\glassfish\docs\javaee-tutorial\examples\bp-project\database-ant.xml:48: E:\glassfishv3\glassfish\javadb\lib not found.

What's strange though is this entry in the build.properties:
javaee.server.passwordfile=${javaee.tutorial.home}/examples/common/admin-password.txt

Here the there is still pointed to the examples folder. I didn't change it since I am using the anonymous admin user. The "examples/" might be remove in case someone installs it with an admin user. Correct?

Tai
[Message sent by forum member 'taitruong' (taitruong)]

http://forums.java.net/jive/thread.jspa?messageID=357301