users@glassfish.java.net

Re: Problem EJB Timer Service: A lock could not be obtained within the time

From: <glassfish_at_javadesktop.org>
Date: Sun, 07 Dec 2008 22:57:48 PST

Hi

I am studyig ejb3 in action, but getting a few problems.
I have downloaded the source code of the book and unzipped it in D:\ejb\books\glassfish.
I have the Java System Application Server 9.1_01 (glassfish) installed.

But I am getting following error on executing ant in glassfish directory of source code:
================
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] CLI137 Command create-jdbc-resource failed.
     [exec] Invalid user or password

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] Command create-jms-resource executed successfully.

all:
============

It seems the password is wrong.

In the build.xml used for deploying the code the relevant settings are:
In the build.xml the settings are:
=======
<property name="system.password" value="tesco123" />

<property name="db.username" value="ab" />
<property name="db.password" value="ab" />
<property name="db.host" value="localhost" />
<property name="db.port" value="1527" />
<property name="db.name" value="XE" />

<property name="jdbc.url" value="jdbc:oracle:thin:@localhost:1527:XE" />
=======

Also in NetBeans ID the output on connecting to Derby is:
Could not listen on port 1527 on host localhost.


How can I fix this problem? Please advice.
[Message sent by forum member 'pankajsac' (pankajsac)]

http://forums.java.net/jive/thread.jspa?messageID=320555