users@glassfish.java.net

Re: error while launching a mysql database with glassfish

From: Jacob Kessler <Jacob.Kessler_at_Sun.COM>
Date: Wed, 17 Dec 2008 11:04:45 -0800

Only one application can listen on a given port at a time. If you've
already started mysql, it will be listening on port 3306, and you won't
be able to start anything else listening on that port. So, either stop
the mysql server (to let the ant task start it), or disable that
sub-task (since the database is already started).

glassfish_at_javadesktop.org wrote:
> hello,
>
> I ask for some help on basic management of glassfish with mysql.
>
> here is what I have done:
> I downloaded glassfish, unpacked it in /Users/(myname)/Downloads (I'm on macos X.5), then I installed mysql with the plugin for the "system preferences".I ran mysql from it (the "system preferences") and I obtained a message telling me that mysql is well launched.
> then, I entered the command "ant -f setup.xml" in order to configure glassfish.
> I successfully launched the "domain1", and created a personal domain.
>
> I ran the following task:
>
>
> <target name="start-domain" description="starts application server
> petstore domain" depends="check">
> <echo message="Starting ${application.name} domain for
> ${glassfish.home}"/>
> <exec executable="${asadmin}" failonerror="true"
> dir="${glassfish.home}">
> <arg line=" start-domain"/>
> <arg line=" --echo=${echo}"/>
> <arg line=" ${application.name}"/>
> </exec>
> </target>
>
> but the following command makes an error:
>
>
> <target name="start-db" description="starts the databse server."
> depends="check">
> <exec executable="${asadmin}" failonerror="true"
> dir="${glassfish.home}">
> <arg value="start-database"/>
> <arg line=" --echo=${echo}"/>
> <arg value="--dbhost=${db.host}"/>
> <arg value="--dbport=${db.port}"/>
> <arg value="--dbhome=${derby.home}"/>
> </exec>
> </target>
>
> this previous command generates this line:
>
> start-database --terse=false --dbhost localhost --dbport 3306 --echo=true --dbhome /Users/oliviersaint-eve/Downloads/glassfish/javadb
>
>
> the error (catched in derby.log) is: unable to listen on port 3306 on host localhost.
>
> do you know what's going wrong?
>
> lolveley.
> [Message sent by forum member 'lolveley' (lolveley)]
>
> http://forums.java.net/jive/thread.jspa?messageID=321984
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>