Error while building javaeetutorial5

When I try to build "bookstore" from javaeetutorial5 I get this error:

Buildfile: build.xml

-pre-init:

init:

default-ear:

-pre-compile:

bpp-actual-compilation:

[echo] Compiling bookstore

[javac] Compiling 11 source files to /opt/javaeetutorial5/examples/web/bookstore/build/classes

BUILD FAILED

/opt/javaeetutorial5/examples/bp-project/command-line-ant-tasks.xml:89: /opt/javaeetutorial5/examples/web/bookstore/c:/Sun/AppServer not found.

Total time: 1 second

Thesolution is to edit the file /javaeetutorial5/examples/bp-project/build.properties.sample

--david

[653 byte] By [David04] at [2007-11-26 9:03:36]
# 1

Hi David,

Yes, the problem came from the ../bp-project/build.properties & ../bp-project/app-server.properties files. As indicated from your error messages "/opt/javaeetutorial5/examples/web/bookstore/c:/Sun/AppServer not found." It seems you are using AppServer on a solaris machine while those configuration files are default for window enviroment "c:/Sun/AppServer not found."

Here is what you should to do:

-Copy build.properties.sample to build.properties

-Edit the variables below for the correct path:

javaee.home=<The installation directory of your AppServer>

javaee.server.name=<machine name> (localhost)

javaee.server.port=<The port number for the server instance> (8080)

javaee.server.username=<The administrator username>

javaee.server.passwordfile=</path/to/passwordfile>

Note:

Inside passwordfile add: AS_ADMIN_PASSWORD=<The administrator password>

javaee.adminserver.port=<The port number for admin server> (4848)

-Do the same thing for app-server.properties file (optional)

You can find the information above from the link below

http://java.sun.com/javaee/5/docs/tutorial/doc/

Section: About The Examples

-davis

davisn6 at 2007-7-6 23:12:52 > top of Java-index,Application & Integration Servers,Application Servers...