BluePrint (PetStore) install error - fix for build.properties does not exis
Hi,
Thought this might be useful for any attempting to making the modification listed in
Step 8 of setting up the PetStore app.
In the setup process ... step 8 states
...
Step 6. Right-click the project, choose Properties, go to the Run tab, and make sure that the context path is /petstore.
Step 7. Under the Tools menu, choose Java DB Database > Start Java DB Server.
Setup the environment, as described below.
Step 8. In the Files window, modify bp-project/build.properties, ensuring that the following properties are appropriate for your environment
In the download instalation there was no /build.properties installed.
I got the error 'unable to connect with server' as the default properties were being used by the app.
Not being able to find the file 'build.properties' in Step 8.
With out a lot of details, the actual file 'on my installation' was 'javadb.properties'.
It took a bit of file tracking.... looking at one file - seeing what file it imported and made use of and the like.
As I was just reading about java objects, classes and the like it was a well spent couple hours of learning, as I saw a great example of files being referenced as objects and their values used as object properties.
Which is exactly how I determined which file to make the needed modifications and what needed to be modified.
The file for the petstore netbean project is located here....
Drive:\Installdir\SDK\blueprints\petstore\setup\javadb.properties
it can be edited with notepad....
the file looks like this.
# Copyright 2006 Sun Microsystems, Inc. All rights
reserved. You may not modify, use, reproduce, or distribute
this software except in compliance with the terms of the
License at:
#
http://developer.sun.com/berkeley_license.html
# $Id:
javadb.properties,v 1.2 2006/05/03 22:03:20 inder Exp $
#
Database properties are in javadb.properties
db.sid=petstore
db.create.src=./setup/sql/javadb/petstore.sql
db.delete.src=./setup/sql/javadb/delete.sql
db.user=admin
db.password=adminadmin
__
The setup.xml file makes use of the last two lines to connect to the
Derby Database.
Supply your particular db.user and db.password into the file..
Happy learning

