Java EE 6 Tutorial from Sun

4 views
Skip to first unread message

Vance

unread,
Aug 23, 2010, 6:58:44 PM8/23/10
to javaee6-...@googlegroups.com
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)
...

Abdul Mohsin

unread,
Aug 24, 2010, 3:28:06 PM8/24/10
to javaee6-codecamp

its saying : Instance is not GlassFish Server 3 , can you plz check
that ...

Thanks,
Abdul
Reply all
Reply to author
Forward
0 new messages