Run "${J2EE_HOME}/bin/asadmin start-database" in a console and ensure
that the database starts. It will report what port it is using. Use that
port in other commands.
Sahoo
glassfish_at_javadesktop.org wrote:
> Thanks that was the initial problem.
> I have corrected the J2EE_HOME setting now.
> But I am getting problem with connection with the Derby database in buid.xml now.
>
> ============
> D:\ejb\books\glassfish>ant
> Buildfile: build.xml
>
> init:
> [echo] -----> Initializing project properties
>
> DropDerbyDataSource:
> [exec] Invalid user or password
> [exec] CLI137 Command delete-jdbc-resource failed.
> [exec] Invalid user or password
> [exec] CLI137 Command delete-jdbc-resource failed.
>
> CreateDataSourceDerby:
> [exec] Invalid user or password
> [exec] CLI137 Command create-jdbc-resource failed.
> [exec] Invalid user or password
> [exec] CLI137 Command create-jdbc-resource failed.
>
> DropJMSResource:
> [exec] Invalid user or password
> [exec] CLI137 Command delete-jms-resource failed.
> [exec] Invalid user or password
> [exec] CLI137 Command delete-jms-resource failed.
> [exec] Invalid user or password
> [exec] CLI137 Command delete-jms-resource failed.
>
> CreateJMSResource:
> [exec] Invalid user or password
> [exec] CLI137 Command create-jms-resource failed.
> [exec] Invalid user or password
> [exec] CLI137 Command create-jms-resource failed.
> [exec] AdminObjectResource already exists: cannot add duplicate
> [exec] CLI137 Command create-jms-resource failed.
>
> all:
>
> BUILD SUCCESSFUL
> Total time: 9 seconds
> =================
> It seems the userid/password are wrong.
>
> Also on going to netbeans and starting the JAVA DB I am seeing in output the following error:
> =======================
> Could not listen on port 1527 on host localhost.
> ==========================
>
> Please advice.
>
> Regards
> [Message sent by forum member 'pankajsac' (pankajsac)]
>
> http://forums.java.net/jive/thread.jspa?messageID=320549
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>