I'm trying to work my way through the Java EE 6 Tutorial from Sun, and am unable to deploy the 'hello1' Web application.
When I try to deploy the app from within NetBeans I get the following error message:
Initializing...
deploy?path=C:\glassfishv3\docs\javaee-tutorial\examples\web\hello1\build\web&name=hello1&force=true failed. Instance is not GlassFish Server 3. C:\glassfishv3\docs\javaee-tutorial\examples\web\hello1\nbproject\build-impl.xml:683: The module has not been deployed. BUILD FAILED (total time: 0 seconds) When I try to deploy from the command-line using this command
ant deploy
I get this error message:
Buildfile: C:\glassfishv3\docs\javaee-tutorial\examples\web\hello1\build.xml
check:
tools:
-pre-deploy:
deploy:
BUILD FAILED C:\glassfishv3\docs\javaee-tutorial\examples\bp-project\app-server-ant.xml:350: Execute failed: java.io.IOException: Cannot run program "C:\glassfishv3\docs\jav aee-tutorial\examples\bp-project\..\..\..\..\..\bin\asadmin.bat": CreateProcess error=3, The system cannot find the path specified at java.lang.ProcessBuilder.start(Unknown Source) at java.lang.Runtime.exec(Unknown Source) at org.apache.tools.ant.taskdefs.Execute$Java13CommandLauncher.exec(Exec ute.java:827) ... |