users@glassfish.java.net

Re: Deployment to Glassfish V3 Prelude, via Eclipse 3.4 Fails.

From: Ludovic Champenois <Ludovic.Champenois_at_Sun.COM>
Date: Thu, 16 Oct 2008 16:30:09 -0700

glassfish_at_javadesktop.org wrote:
> <xmp>
> Project: 6 Servlets that use Groovy scripts to query database, analyse results, and return a report. Published in Web Archive (.war) file.
>
> ---
>
> System: Ubuntu (Hardy) Linux 2.6.24-21-generic #1 SMP Mon Aug 25 17:32:09 UTC 2008 i686 GNU/Linux
>
> java version "1.6.0_07"
> Java(TM) SE Runtime Environment (build 1.6.0_07-b06)
> Java HotSpot(TM) Client VM (build 10.0-b23, mixed mode)
>
> Glassfish Server plugin 1.0.11, V3 Prelude ( b28 )
>
Update version 1.0.12 to be published very soon will have many new
enhancements that might solve this.

Meanwhile, It seems the our plugin is issuing the deploy command much
too fast before the server is really functional.
As a workaround, I think if you run the app again, or if you start the
server then wait a few seconds before running the web app it will work.
(and use an anonymous server access to avoid auth error)

V1.0.12 has the code to wait until the server is fully ready. It will
also get rid of this ANT way of deploying, making the redeployment much
faster.
Ludo
> Eclipse Platform, Version: 3.4.1, Build id: M20080911-1700
>
> ---
>
> Problem: Publish ( to server ) in Eclipse Servers Tab Fails.
>
> I installed both as Anonymous, and admin ( w/ pwd adminadmin ) which is defaulted in the plugin.
>
> ---
>
> Results under Anonymous install.
> ---------------------------------
> Buildfile: /home/bigjay/development/scl.workspace/.metadata/.plugins/org.eclipse.jst.server.generic.core/serverdef/glassfishv3-ant.xml
> deploy.j2ee.web:
> resourcesfile.check:
> addresources:
> [get] Getting: http://localhost:4848/__asadmin/deploy?path=/home/bigjay/development/scl.workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/AnalyticEngine&force=true&properties=KeepSessions=true
> [get] To: /home/bigjay/development/scl.workspace/.metadata/.plugins/org.eclipse.jst.server.generic.core/serverdef/result.html
> [concat] <html><body><h1>GlassFish deploy AdminCommand command report</h1><br><br>
> [concat] Exit Code : FAILURE
> [concat] <hr>
> [concat] <h2>There is no installed container capable of handling this application</h2>
> [concat] <hr>
> [concat] </body></html>
> BUILD SUCCESSFUL
> Total time: 2 seconds
> ---------------------------------
>
> Results under User install.
> ---------------------------------
> Buildfile: /home/bigjay/development/scl.workspace/.metadata/.plugins/org.eclipse.jst.server.generic.core/serverdef/glassfishv3-ant.xml
> deploy.j2ee.web:
> resourcesfile.check:
> addresources:
> [get] Getting: http://localhost:4848/__asadmin/deploy?path=/home/bigjay/development/scl.workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/AnalyticEngine&force=true&properties=KeepSessions=true
> [get] To: /home/bigjay/development/scl.workspace/.metadata/.plugins/org.eclipse.jst.server.generic.core/serverdef/result.html
>
> BUILD FAILED
> /home/bigjay/development/scl.workspace/.metadata/.plugins/org.eclipse.jst.server.generic.core/serverdef/glassfishv3-ant.xml:134: HTTP Authorization failure
>
> Total time: 721 milliseconds
> ---------------------------------
>
> I've tried this numerous times, with the same results each time. I read through http://forums.java.net/jive/thread.jspa?messageID=303727 thread, which
> helped me to upgrade my plugin to 1.0.11. But unlike that thread mine never succeeds.
>
> also editing glassfishv3-ant.xml, does not work, as it is generated. I added the user and password, but it failed again. I left the editor open, and it said the file had been modified ( by the publish, not me ). I reloaded it, and my changes were gone.
>
> Any Ideas ??
>
> Thanks !
> Jay
> </xmp>
> [Message sent by forum member 'jreher' (jreher)]
>
> http://forums.java.net/jive/thread.jspa?messageID=308433
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>