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