hi everyone,
i have run into an error while trying to run the first example in
Chapter 3.
I followed all the steps-
1. Installing java ee 5
2. installing and configuring Maven
3. installing and configuring Ant.
4. running mvn install in the <book-code> directory to load pom.xml
into the repository.
The mvn install step in <book-code>/chap03/rest-get/client-http
returns successfully with -'Build Successfull'.
but it throws an error on running the following step - 'ant deploy'
with -Build Failed'.
I must admit that i have little understanding of what was going on,
and was just following the steps.
This is the complete error message given by the command- 'ant
deploy' :
/*
Buildfile: build.xml
deploy-glassfish:
[echo] deploying C:\examples\chap03\rest-get\endpoint-servlet/
target/chap03
-restget-endpoint-servlet-1.0.war
BUILD FAILED
C:\examples\common-build.xml:54: Execute failed: java.io.IOException:
CreateProc
ess: ${C:\Sun\SDK}\bin\asadmin.bat deploy --host localhost --port 4848
--user ad
min --passwordfile c:/examples/glassfish.password C:\examples
\chap03\rest-get\en
dpoint-servlet/target/chap03-restget-endpoint-servlet-1.0.war error=2
Total time: 1 second
*/
Can someone please tell me what the problem might be?
Thanks,
Pranav