dev@glassfish.java.net

Re: problems building glassfish

From: Ken Paulsen <Ken.Paulsen_at_Sun.COM>
Date: Mon, 28 May 2007 09:01:16 -0700

Hi Irfan!

There's a setup.xml / setup-cluster.xml file that contains the port number it uses (at least I think that's where it gets the port number during maven configure-runtime / configure-cluster).  This file exists in the bootstrap directory, however, I think it gets copied to the "publish/glassfish" directory.  Try changing it there and see if that works.

Good luck!

Ken

Irfan Ahmed wrote:
Hi All,

I am new to GlassFish.

There are two issues that I have come across:

  1. I am not able to access the GlassFish build instructions at http://www.glassfishwiki.org/gfwiki/Wiki.jsp?page=BuildInformation . It seems that the site is down.
  2. I used Dinesh's weblog for build instructions to GlassFish (http://blogs.sun.com/dpatil/entry/glassfish_build). Also I had a web server running on port 8080 and hence got an error on maven configure-runtime step. Hence I used maven configure-runtime -Dinteractive. However it seems that maven does not take the given port and still continues to start the GlassFish instance at port 8080. Output as follows:
maven configure-runtime -Dinteractive
 __  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.0.2

build:start:

configure-runtime:
    [echo] Supply the admin user's password and override any of the other initial configuration settings as necessary.
Admin User: [admin]

Admin User's Password (8 chars minimum):
adminadmin
Re-enter Password:
adminadmin
Admin Port [4848]

HTTP Port [8080]
9090
HTTPS Port [8181]
9191
    [echo] Please wait while configuring....
    [copy] Copying 1 file to /space/irfan/workspace/glassfish/publish/glassfish
    [echo] Current Java Version 1.5.0_01
    [copy] Copying 1 file to /space/irfan/workspace/glassfish/publish/glassfish/config
    [copy] Copying 1 file to /space/irfan/workspace/glassfish/publish/glassfish/config
    [copy] Copying 1 file to /space/irfan/workspace/glassfish/publish/glassfish/bin
    [copy] Copying 1 file to /space/irfan/workspace/glassfish/publish/glassfish/bin
    [copy] Copying 1 file to /space/irfan/workspace/glassfish/publish/glassfish/bin
    [copy] Copying 1 file to /space/irfan/workspace/glassfish/publish/glassfish/bin
    [copy] Copying 1 file to /space/irfan/workspace/glassfish/publish/glassfish/bin
    [copy] Copying 1 file to /space/irfan/workspace/glassfish/publish/glassfish/bin
    [copy] Copying 1 file to /space/irfan/workspace/glassfish/publish/glassfish/bin
    [copy] Copying 1 file to /space/irfan/workspace/glassfish/publish/glassfish/bin
    [copy] Copying 1 file to /space/irfan/workspace/glassfish/publish/glassfish/bin
    [copy] Copying 1 file to /space/irfan/workspace/glassfish/publish/glassfish/bin
    [copy] Copying 1 file to /space/irfan/workspace/glassfish/publish/glassfish/bin
    [copy] Copying 1 file to /space/irfan/workspace/glassfish/publish/glassfish/bin
    [copy] Copying 1 file to /space/irfan/workspace/glassfish/publish/glassfish/bin
    [copy] Copying 1 file to /space/irfan/workspace/glassfish/publish/glassfish/bin
    [copy] Copying 1 file to /space/irfan/workspace/glassfish/publish/glassfish/bin
    [copy] Copying 1 file to /space/irfan/workspace/glassfish/publish/glassfish/bin
    [copy] Copying 1 file to /space/irfan/workspace/glassfish/publish/glassfish/updatecenter/bin
    [exec] Port 8080 is in use.
    [exec] CLI130 Could not create domain, domain1

BUILD FAILED
File...... /space/irfan/workspace/glassfish/glassfish/bootstrap/maven.xml
Element... ant:ant
Line...... 496
Column.... 76
exec returned: 1
Total time: 21 seconds
Finished at: Mon May 28 17:32:21 IST 2007
            

Warm Rgds,
Irfan