[JBoss-user] TxConnectionManager$LocalXAResource... : what does it means ?

2003-07-22 Thread Ionel Gardais
Hi,

I have the following warning whn I set up a relationship between two 
beans from differents datasource (both beans only have local interface) :

warning
08:31:02,067 WARN  [TxConnectionManager$LocalXAResource] Prepare called 
on a local tx. Use of local transactions on a jta transaction with more 
than one branch may result in inconsistent data in some cases of failure.
08:31:02,068 WARN  [TxConnectionManager$LocalXAResource] Prepare called 
on a local tx. Use of local transactions on a jta transaction with more 
than one branch may result in inconsistent data in some cases of failure.
/warning

Relationship is well established but I have this warning.
What does it mean ? Should I care to try to remove it or not ? If so, 
how to remove it ?

thank you,
ionel


---
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] JMS clustering

2003-07-22 Thread TStaniszewski
Does anybody know what means partial support for JMS and message driven
beans as stated in Clustering in JBoss?.  


---
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] Exception staring Persistence Manager for JBoss 3.2.1

2003-07-22 Thread Satish Kumar L V



Hi,

 I am deploying a session and 
MDB. While starting the persistence manager, JBoss throws the following 
exception...

org.jboss.mq.SpyJMSException: Could not resolve 
uncommited transactions. Message recovery may not be accurate; - nested 
throwable: (java.sql.SQLException: ORA-00942: table or view does not 
exist)at 
org.jboss.mq.pm.jdbc2.PersistenceManager.resolveAllUncommitedTXs(PersistenceManager.java:276)at 
org.jboss.mq.pm.jdbc2.PersistenceManager.startService(PersistenceManager.java:1299)at 
org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:192)at 
java.lang.reflect.Method.invoke(Native Method)at 
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)at 
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)at 
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:966)at 
$Proxy11.start(Unknown Source)at 
org.jboss.system.ServiceController.start(ServiceController.java:392).
.
.
.

What does this mean? Do I have to create the tables 
prior to deployment. I see the create statements for the tables in the 
jboss-mq-service.xml under the persistence manager. Can anybody explain 
this?
Satish Kumar


[JBoss-user] Steps to build JBoss for non Hypersonic

2003-07-22 Thread pradana
Hi,

Just in case if you haven't found yet how to build JBoss
for non Hypersonic SQL, here are the steps I did to build 
my JBoss for Oracle database :
1. download the source.
2. run %JBOSS_HOME%\build\build init or sh $JBOSS_HOME\build\build.sh init
   This will create a local.properties file under build subdir
3. add the following two lines in that file :
   default.type.mapping=Oracle8
   default.type.ds=oracle-ds.xml
4. in \build\build.xml file, replace the hsql-ds.xml with ${default.type.ds}

The steps above will deploy oracle-ds instead of hsql-ds, and will use
Oracle8 instead of Hypersonic SQL in your standardjbosscmp-jdbc.xml

The last think that you need to remember if to modify the PersistanceManager in
jbossmq-service.xml for the correct SQL statement.

Running the testsuite for non Hypersonic, it's a bit uneasy, because there are
still some HARD-CODED hsql and Hypersonic SQL.

Hope that help.

Benoit Aumars



---
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Exception staring Persistence Manager for JBoss3.2.1

2003-07-22 Thread Marek Lange
Satish Kumar L V wrote:
Hi,
 
I am deploying a session and MDB. While starting the persistence 
manager, JBoss throws the following exception...
 
org.jboss.mq.SpyJMSException: Could not resolve uncommited 
transactions.  Message recovery may not be accurate; - nested throwable: 
(java.sql.SQLException: ORA-00942: table or view does not exist 
What does this mean? Do I have to create the tables prior to deployment. 
I see the create statements for the tables in the jboss-mq-service.xml 
under the persistence manager. Can anybody explain this?
The tables for storing the JMS messages do not exist. There are created 
automatically during JBoss startup but perhaps your db user did not have 
enough rights to do this or the SQL did not match to your database. You 
can create these tables yourself with the sql persistence manager 
settings (CREATE_MESSAGE_TABLE and CREATE_TX_TABLE) in jbossmq-service.xml.

-marek



---
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] problems with mysql and transactions

2003-07-22 Thread Scheil, Sven
hi, 

i'm evaluating a change from cloudscape  to mysql for cmp.

we are using jboss3.0.6, mysql4.0.13 on w2k. all transactions of our app are
container manged.

there is a problem with an entity bean using the transaction setting
'requires new'. the application hangs up for several minutes and comes back
with a transaction timeout. when i'm changing the transaction setting to
'requires' the problem disappears.

--

2003-07-22 12:11:17,587 WARN  [org.jboss.tm.TxCapsule] (Thread-19:)
Transaction XidImpl [FormatId=257, GlobalId=sscheil//189, BranchQual=] timed
out. status=STATUS_ACTIVE
2003-07-22 12:11:23,826 WARN  [org.jboss.tm.TxCapsule] (Thread-20:)
Transaction XidImpl [FormatId=257, GlobalId=sscheil//190, BranchQual=] timed
out. status=STATUS_ACTIVE
2003-07-22 12:11:23,826 WARN  [org.jboss.ejb.BeanLock] (RMI TCP
Connection(9)-172.20.9.91:Sequence) wait() interrupted in txLock, possibly a
timeout
2003-07-22 12:11:23,826 ERROR [org.jboss.ejb.BeanLock] (RMI TCP
Connection(9)-172.20.9.91:Sequence) Thread[RMI TCP
Connection(9)-172.20.9.91,5,RMI Runtime]Saw rolled back
tx=TransactionImpl:XidImpl [FormatId=257, GlobalId=sscheil//190,
BranchQual=] waiting for txLock
2003-07-22 12:11:23,826 WARN  [org.jboss.tm.TxCapsule] (RMI TCP
Connection(9)-172.20.9.91:Sequence) Lock contention, tx=XidImpl
[FormatId=257, GlobalId=sscheil//190, BranchQual=]
2003-07-22 12:11:23,826 ERROR [org.jboss.ejb.plugins.LogInterceptor] (RMI
TCP Connection(9)-172.20.9.91:Sequence) RuntimeException:
java.lang.RuntimeException: Transaction marked for rollback, possibly a
timeout
at
org.jboss.ejb.plugins.lock.QueuedPessimisticEJBLock.waitForTx(QueuedPessimis
ticEJBLock.java:339)
at
org.jboss.ejb.plugins.lock.QueuedPessimisticEJBLock.doSchedule(QueuedPessimi
sticEJBLock.java:211)
at
org.jboss.ejb.plugins.lock.QueuedPessimisticEJBLock.schedule(QueuedPessimist
icEJBLock.java:159)

 snip -

all tables in mysql have the type InnoDB.

the entity bean is called sequence and is part of the unique key generation
pattern. the entity bean is called thru a stateless session bean called
sequenceService. The 'requiresNew' setting can not be changed for running
the app on production environment.

are there some hints on this or more general hints on jboss and mysql and
container managed transactions?

thanx sven


---
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Any update on 3.2.2RC2?

2003-07-22 Thread Scott M Stark
Today or tomorrow 3.2.2RC2 will be out.

--

Scott Stark
Chief Technology Officer
JBoss Group, LLC

Gavin Matthews wrote:

Hi,
 Is there any update on when JBoss 3.2.2RC2 will be available? (Is there any
page where I can track this - couldn't find anything on sourceforge or
jboss.org).
thanks,
gavin




---
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] Probs creating a finder

2003-07-22 Thread Ingo Bruell
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi,

i am using jboss-3.2.1 (jdk1.4.1_02) with xdoclet-1.2b3 (jdk1.4.2) under
Windows 2000.

I am creating a bean with the name 'Type'. For this bean i want to create
a finder called findByType.

- --- snip ---
   * @ejb:bean name=Type
   *   type=CMP
   *   jndi-name=ejb/Type
   *   view-type=local
   *   primkey-field=id
- --- snip ---

The Tags are looking good, i tink:

- --- snip ---
   * @ejb.finder signature=de.oblgmbh.wb.meta.interfaces.TypeLocal
findByType(String type)
   * query=SELECT OBJECT(o) FROM Type AS o WHERE o.type = ?1
   * role-name=Administrator,User
   * transaction-type=Supports
- --- snip ---

The generated Home interface looks good and the generated ejb-jar.xml looks
good,
too.

- --- snip ---
/*
 * Generated by XDoclet - Do not edit!
 */
package de.oblgmbh.wb.meta.interfaces;

/**
 * Local home interface for Type.
 * @see Type
 * @see de.oblgmbh.wb.meta.client.beans.TypeClient
 * @xdoclet-generated at 22.07.2003
 */
public interface TypeLocalHome
   extends javax.ejb.EJBLocalHome
{
   public static final String COMP_NAME=java:comp/env/ejb/TypeLocal;
   public static final String JNDI_NAME=TypeLocal;

   public de.oblgmbh.wb.meta.interfaces.TypeLocal
create(de.oblgmbh.wb.meta.interfaces.MandantLocal mand , java.lang.String type)
  throws javax.ejb.CreateException;

   public de.oblgmbh.wb.meta.interfaces.TypeLocal
create(de.oblgmbh.wb.meta.interfaces.TypeValue value)
  throws javax.ejb.CreateException;

   public java.util.Collection findAll()
  throws javax.ejb.FinderException;

   public de.oblgmbh.wb.meta.interfaces.TypeLocal findByType(String type)
  throws javax.ejb.FinderException;

   public de.oblgmbh.wb.meta.interfaces.TypeLocal
findByPrimaryKey(java.lang.Long pk)
  throws javax.ejb.FinderException;

}
- --- snip ---


- --- snip ---
  entity 
 description![CDATA[...]]/description

 ejb-nameType/ejb-name

 local-homede.oblgmbh.wb.meta.interfaces.TypeLocalHome/local-home
 localde.oblgmbh.wb.meta.interfaces.TypeLocal/local

 ejb-classde.oblgmbh.wb.meta.ejb.TypeCMP/ejb-class
 persistence-typeContainer/persistence-type
 prim-key-classjava.lang.Long/prim-key-class
 reentrantFalse/reentrant
 cmp-version2.x/cmp-version
 abstract-schema-nameType/abstract-schema-name
 cmp-field 
description![CDATA[id]]/description
field-nameid/field-name
 /cmp-field
 cmp-field 
description![CDATA[Type]]/description
field-nametype/field-name
 /cmp-field
 cmp-field 
description![CDATA[Text]]/description
field-nametext/field-name
 /cmp-field
 primkey-fieldid/primkey-field

 ejb-ref 
ejb-ref-nameejb/IDGenerator/ejb-ref-name
ejb-ref-typeSession/ejb-ref-type
homede.oblgmbh.wb.interfaces.IDGeneratorHome/home
remotede.oblgmbh.wb.interfaces.IDGenerator/remote
ejb-linkIDGenerator/ejb-link
 /ejb-ref

 security-role-ref
role-nameadmin/role-name
role-linkAdministrator/role-link
 /security-role-ref
 security-role-ref
role-nameuser/role-name
role-linkUser/role-link
 /security-role-ref

 query
query-method
   method-namefindByType/method-name
   method-params
  method-paramString/method-param
   /method-params
/query-method
ejb-ql![CDATA[SELECT OBJECT(o) FROM Type AS o WHERE o.type =
?1]]/ejb-ql
 /query
  !-- Write a file named ejb-finders-TypeBean.xml if you want to define extra
finders. --
  /entity
- --- snip ---

Are there any restrictions about the types ?


best regards

Ingo Bruell

- - ---
[EMAIL PROTECTED]
ICQ# 40377720
Oldenburg  PGP-Fingerprint: CB01 AE12 B359 87C4 BF1C  953C 8FE7 C648 169E E5FC
GermanyPGP-Public-Key available at pgpkeys.mit.edu

-BEGIN PGP SIGNATURE-
Version: PGPfreeware 6.5.8 for non-commercial use http://www.pgp.com

iQA/AwUBPx0uq4/nxkgWnuX8EQKSTgCg5eaudqAcgLB9t+pNtISJsCOU3SIAoIG3
98V6ewg0IPl/IrQZG5uEkEDD
=8CNo
-END PGP SIGNATURE-




---
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


AW: [JBoss-user] problems with mysql and transactions

2003-07-22 Thread Scheil, Sven
for more details on my problem i took a look at the call stack that leads to
the hang up:

a = stateless session bean
message = cmp entity bean

client - a.init() required - a.initMessage() required -
message.create() required - sequenceService.getNextSequenceNumber()
required - sequence.getValueAfterIncrementingBy RequiresNew

before a.initMessage() is called there are several other calls from a.init()
that create new entity beans. that means the transaction stretches about
several hundred insert statements.



-Ursprüngliche Nachricht-
Von: Scheil, Sven 
Gesendet: Dienstag, 22. Juli 2003 12:29
An: '[EMAIL PROTECTED]'
Betreff: [JBoss-user] problems with mysql and transactions


hi, 

i'm evaluating a change from cloudscape  to mysql for cmp.

we are using jboss3.0.6, mysql4.0.13 on w2k. all transactions of our app are
container manged.

there is a problem with an entity bean using the transaction setting
'requires new'. the application hangs up for several minutes and comes back
with a transaction timeout. when i'm changing the transaction setting to
'requires' the problem disappears.

--

2003-07-22 12:11:17,587 WARN  [org.jboss.tm.TxCapsule] (Thread-19:)
Transaction XidImpl [FormatId=257, GlobalId=sscheil//189, BranchQual=] timed
out. status=STATUS_ACTIVE
2003-07-22 12:11:23,826 WARN  [org.jboss.tm.TxCapsule] (Thread-20:)
Transaction XidImpl [FormatId=257, GlobalId=sscheil//190, BranchQual=] timed
out. status=STATUS_ACTIVE
2003-07-22 12:11:23,826 WARN  [org.jboss.ejb.BeanLock] (RMI TCP
Connection(9)-172.20.9.91:Sequence) wait() interrupted in txLock, possibly a
timeout
2003-07-22 12:11:23,826 ERROR [org.jboss.ejb.BeanLock] (RMI TCP
Connection(9)-172.20.9.91:Sequence) Thread[RMI TCP
Connection(9)-172.20.9.91,5,RMI Runtime]Saw rolled back
tx=TransactionImpl:XidImpl [FormatId=257, GlobalId=sscheil//190,
BranchQual=] waiting for txLock
2003-07-22 12:11:23,826 WARN  [org.jboss.tm.TxCapsule] (RMI TCP
Connection(9)-172.20.9.91:Sequence) Lock contention, tx=XidImpl
[FormatId=257, GlobalId=sscheil//190, BranchQual=]
2003-07-22 12:11:23,826 ERROR [org.jboss.ejb.plugins.LogInterceptor] (RMI
TCP Connection(9)-172.20.9.91:Sequence) RuntimeException:
java.lang.RuntimeException: Transaction marked for rollback, possibly a
timeout
at
org.jboss.ejb.plugins.lock.QueuedPessimisticEJBLock.waitForTx(QueuedPessimis
ticEJBLock.java:339)
at
org.jboss.ejb.plugins.lock.QueuedPessimisticEJBLock.doSchedule(QueuedPessimi
sticEJBLock.java:211)
at
org.jboss.ejb.plugins.lock.QueuedPessimisticEJBLock.schedule(QueuedPessimist
icEJBLock.java:159)

 snip -

all tables in mysql have the type InnoDB.

the entity bean is called sequence and is part of the unique key generation
pattern. the entity bean is called thru a stateless session bean called
sequenceService. The 'requiresNew' setting can not be changed for running
the app on production environment.

are there some hints on this or more general hints on jboss and mysql and
container managed transactions?

thanx sven


---
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


---
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


AW: [JBoss-user] Tx lock detection not possible even as i enabled EntityLockMonitor

2003-07-22 Thread Janardhan Burugupalli
Hi All,

I have problems regarding the Tx lock. My client hangs when performing a
specific command like loading data of a form the server. Its always in the
same place . So in dont get any error message , but to think that there is a
TX lock i dont get any information in the server.log.

I activated the metricsinterceptor and also the EntityLockMonitor as
specified in the documentation. But in any case i cant see the message or
info regarding some TX locks or some thing like that happened.

And one more thing is that i see a lot of debug output in the server.log
file specifying all the SQL commands with rrespective values inserted into
the table a sample i pasted down here. I want to turn this debug off. Can
any one please tell me were i can do this. I tried all means of
metricsenabled=false and also in the standardjaws.xml i turned debug to
false .

2003-07-22 14:57:11,824 DEBUG [org.jboss.ejb.plugins.jaws.jdbc.JDBCCommand]
Set parameter: idx=5, jdbcType=VARCHAR, value=


thanks
and regards
jani




---
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


AW: [JBoss-user] Probs creating a finder

2003-07-22 Thread Ingo Bruell
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

oops, i forgot to write my problem. If i deploy the application i got the
following log:

- --- snip ---
2003-07-22 15:14:22,188 DEBUG [org.jboss.ejb.EJBDeployer.verifier] Bean
checked: Mitarbeiter: Verified.
2003-07-22 15:14:22,298 DEBUG [org.jboss.ejb.EJBDeployer.verifier] Bean
checked: Leistung: Verified.
2003-07-22 15:14:22,438 WARN  [org.jboss.ejb.EJBDeployer.verifier] EJB spec
violation: 
Bean   : Type
Method : public abstract TypeLocal findByType(String) throws FinderException
Section: 10.5.6
Warning: Every finder method except findByPrimaryKey(key) must be associated
with a query element in the deployment descriptor.
- --- snip ---

but the query element is always there.

 i am using jboss-3.2.1 (jdk1.4.1_02) with xdoclet-1.2b3 (jdk1.4.2) under
 Windows 2000.
 
 I am creating a bean with the name 'Type'. For this bean i want to create
 a finder called findByType.
 
 --- snip ---
* @ejb:bean name=Type
*   type=CMP
*   jndi-name=ejb/Type
*   view-type=local
*   primkey-field=id
 --- snip ---
 
 The Tags are looking good, i tink:
 
 --- snip ---
* @ejb.finder signature=de.oblgmbh.wb.meta.interfaces.TypeLocal
 findByType(String type)
* query=SELECT OBJECT(o) FROM Type AS o WHERE o.type = ?1
* role-name=Administrator,User
* transaction-type=Supports
 --- snip ---
 
 The generated Home interface looks good and the generated ejb-jar.xml looks
 good,
 too.
 
 --- snip ---
 /*
  * Generated by XDoclet - Do not edit!
  */
 package de.oblgmbh.wb.meta.interfaces;
 
 /**
  * Local home interface for Type.
  * @see Type
  * @see de.oblgmbh.wb.meta.client.beans.TypeClient
  * @xdoclet-generated at 22.07.2003
  */
 public interface TypeLocalHome
extends javax.ejb.EJBLocalHome
 {
public static final String COMP_NAME=java:comp/env/ejb/TypeLocal;
public static final String JNDI_NAME=TypeLocal;
 
public de.oblgmbh.wb.meta.interfaces.TypeLocal
 create(de.oblgmbh.wb.meta.interfaces.MandantLocal mand , 
 java.lang.String type)
   throws javax.ejb.CreateException;
 
public de.oblgmbh.wb.meta.interfaces.TypeLocal
 create(de.oblgmbh.wb.meta.interfaces.TypeValue value)
   throws javax.ejb.CreateException;
 
public java.util.Collection findAll()
   throws javax.ejb.FinderException;
 
public de.oblgmbh.wb.meta.interfaces.TypeLocal findByType(String type)
   throws javax.ejb.FinderException;
 
public de.oblgmbh.wb.meta.interfaces.TypeLocal
 findByPrimaryKey(java.lang.Long pk)
   throws javax.ejb.FinderException;
 
 }
 --- snip ---
 
 
 --- snip ---
   entity 
  description![CDATA[...]]/description
 
  ejb-nameType/ejb-name
 
  local-homede.oblgmbh.wb.meta.interfaces.TypeLocalHome/local-home
  localde.oblgmbh.wb.meta.interfaces.TypeLocal/local
 
  ejb-classde.oblgmbh.wb.meta.ejb.TypeCMP/ejb-class
  persistence-typeContainer/persistence-type
  prim-key-classjava.lang.Long/prim-key-class
  reentrantFalse/reentrant
  cmp-version2.x/cmp-version
  abstract-schema-nameType/abstract-schema-name
  cmp-field 
 description![CDATA[id]]/description
 field-nameid/field-name
  /cmp-field
  cmp-field 
 description![CDATA[Type]]/description
 field-nametype/field-name
  /cmp-field
  cmp-field 
 description![CDATA[Text]]/description
 field-nametext/field-name
  /cmp-field
  primkey-fieldid/primkey-field
 
  ejb-ref 
 ejb-ref-nameejb/IDGenerator/ejb-ref-name
 ejb-ref-typeSession/ejb-ref-type
 homede.oblgmbh.wb.interfaces.IDGeneratorHome/home
 remotede.oblgmbh.wb.interfaces.IDGenerator/remote
 ejb-linkIDGenerator/ejb-link
  /ejb-ref
 
  security-role-ref
 role-nameadmin/role-name
 role-linkAdministrator/role-link
  /security-role-ref
  security-role-ref
 role-nameuser/role-name
 role-linkUser/role-link
  /security-role-ref
 
  query
 query-method
method-namefindByType/method-name
method-params
   method-paramString/method-param
/method-params
 /query-method
 ejb-ql![CDATA[SELECT OBJECT(o) FROM Type AS o WHERE o.type =
 ?1]]/ejb-ql
  /query
 !-- Write a file named ejb-finders-TypeBean.xml if you want 
 to define extra
 finders. --
   /entity
 --- snip ---
 
 Are there any restrictions about the types ?

best regards

Ingo Bruell

- - ---
[EMAIL PROTECTED]
ICQ# 40377720
Oldenburg  PGP-Fingerprint: CB01 AE12 B359 87C4 BF1C  953C 8FE7 C648 169E E5FC
GermanyPGP-Public-Key available at pgpkeys.mit.edu

-BEGIN PGP SIGNATURE-
Version: PGPfreeware 6.5.8 for 

Re: AW: [JBoss-user] Probs creating a finder

2003-07-22 Thread Marek Lange
Ingo Bruell wrote:
query
   query-method
  method-namefindByType/method-name
  method-params
 method-paramString/method-param
Perhaps you should write java.lang.String?

-marek



---
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


AW: [JBoss-user] metricsinterceptor problem

2003-07-22 Thread Janardhan Burugupalli
Hi,

I get the following warning if set the metricsinterceptor to true ..am i
missing something or is this the reason that Jboss 3.2.1 doesnt inform me of
a Tx lock if it happens.

Can any one please help me out. I cant even think of debugging without
knowing were and which bean w there is a Tx lock.


2003-07-22 15:24:45,089 WARN  [org.jboss.ejb.plugins.MetricsInterceptor]
javax.naming.NameNotFoundException: TopicConnectionFactory not bound


regards
jani



---
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


RE: [JBoss-user] Tx lock detection not possible even as i enabled EntityLockMonitor

2003-07-22 Thread Bill Burke
Does the TX eventually time out and give you a stack trace?  There is one
deadlock scenario that we don't detect
All this is in the same thread.

1. begin tx1
2. access entity bean  A (does lock for tx1
3. suspend tx1 (a RequiresNew or something similar)
4. begin tx2
5. access entity bean A

How to turn off debugging?  Go to server/default/conf/log4j.xml

In the FILE appender add a threshhold of WARN or INFO:

param name=Threshold value=INFO/

Bill


 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] Behalf Of Janardhan
 Burugupalli
 Sent: Tuesday, July 22, 2003 10:20 AM
 To: [EMAIL PROTECTED]
 Subject: AW: [JBoss-user] Tx lock detection not possible even as i
 enabled EntityLockMonitor


 Hi All,

 I have problems regarding the Tx lock. My client hangs when performing a
 specific command like loading data of a form the server. Its always in the
 same place . So in dont get any error message , but to think that
 there is a
 TX lock i dont get any information in the server.log.

 I activated the metricsinterceptor and also the EntityLockMonitor as
 specified in the documentation. But in any case i cant see the message or
 info regarding some TX locks or some thing like that happened.

 And one more thing is that i see a lot of debug output in the server.log
 file specifying all the SQL commands with rrespective values inserted into
 the table a sample i pasted down here. I want to turn this debug off. Can
 any one please tell me were i can do this. I tried all means of
 metricsenabled=false and also in the standardjaws.xml i turned debug to
 false .

 2003-07-22 14:57:11,824 DEBUG
 [org.jboss.ejb.plugins.jaws.jdbc.JDBCCommand]
 Set parameter: idx=5, jdbcType=VARCHAR, value=


 thanks
 and regards
 jani




 ---
 This SF.net email is sponsored by: VM Ware
 With VMware you can run multiple operating systems on a single machine.
 WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
 same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user




---
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] MDB and wrong xid

2003-07-22 Thread Satish Kumar L V



Hi,

I am trying to deploy and application with a single 
stateless and MDB. The transactional attribute for MDB is 
'NotSupported'.

The deployment goes fine. But at runtime I get the 
following error. The exception is given below ( sorry for the size :-) 
)



  20:37:03,301 INFO 
  [TxConnectionManager$TxConnectionEventListener] Unregistered handle that was 
  not registered! null for managedConnection: [EMAIL PROTECTED]20:37:03,301 
  INFO [JBossManagedConnectionPool] Exception destroying 
  ManagedConnectionorg.jboss.resource.JBossResourceException: SQLException; 
  - nested throwable: (java.sql.SQLException: Io exception: Connection reset by 
  peer: socket write error)
  at 
  org.jboss.resource.adapter.jdbc.BaseWrapperManagedConnection.checkException(BaseWrapperManagedConnection.java:445)at 
  org.jboss.resource.adapter.jdbc.BaseWrapperManagedConnection.destroy(BaseWrapperManagedConnection.java:229)at 
  org.jboss.resource.connectionmanager.InternalManagedConnectionPool.doDestroy(InternalManagedConnectionPool.java:374)at 
  org.jboss.resource.connectionmanager.InternalManagedConnectionPool.returnConnection(InternalManagedConnectionPool.java:250)at 
  org.jboss.resource.connectionmanager.JBossManagedConnectionPool$OnePool.returnConnection(JBossManagedConnectionPool.java:648)at 
  org.jboss.resource.connectionmanager.BaseConnectionManager2.returnManagedConnection(BaseConnectionManager2.java:451)at 
  org.jboss.resource.connectionmanager.BaseConnectionManager2$BaseConnectionEventListener.connectionErrorOccurred(BaseConnectionManager2.java:762)at 
  org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener.connectionErrorOccurred(TxConnectionManager.java:629)at 
  org.jboss.resource.adapter.jdbc.BaseWrapperManagedConnection.broadcastConnectionError(BaseWrapperManagedConnection.java:309)at 
  org.jboss.resource.adapter.jdbc.BaseWrapperManagedConnection.connectionError(BaseWrapperManagedConnection.java:294)at 
  org.jboss.resource.adapter.jdbc.WrappedConnection.checkException(WrappedConnection.java:819)at 
  org.jboss.resource.adapter.jdbc.WrappedStatement.checkException(WrappedStatement.java:767)at 
  org.jboss.resource.adapter.jdbc.WrappedStatement.close(WrappedStatement.java:56)at 
  org.jboss.mq.pm.jdbc2.PersistenceManager.add(PersistenceManager.java:730)at 
  org.jboss.mq.pm.jdbc2.PersistenceManager.add(PersistenceManager.java:670)at 
  org.jboss.mq.server.PersistentQueue.addMessage(PersistentQueue.java:39)at 
  org.jboss.mq.server.SelectorPersistentQueue.addMessage(SelectorPersistentQueue.java:69)at 
  org.jboss.mq.server.JMSTopic.addMessage(JMSTopic.java:283)at 
  org.jboss.mq.server.JMSDestinationManager.addMessage(JMSDestinationManager.java:404)at 
  org.jboss.mq.server.JMSDestinationManager.addMessage(JMSDestinationManager.java:384)at 
  org.jboss.mq.server.JMSServerInterceptorSupport.addMessage(JMSServerInterceptorSupport.java:135)at 
  org.jboss.mq.security.ServerSecurityInterceptor.addMessage(ServerSecurityInterceptor.java:162)at 
  org.jboss.mq.server.TracingInterceptor.addMessage(TracingInterceptor.java:234)at 
  org.jboss.mq.server.JMSServerInvoker.addMessage(JMSServerInvoker.java:137)at 
  org.jboss.mq.il.oil.OILServerILService$Client.run(OILServerILService.java:248)at 
  java.lang.Thread.run(Thread.java:479)+ nested throwable: 
  
  java.sql.SQLException: Io exception: Connection reset by peer: socket 
  write errorat 
  oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java)at 
  oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java)at 
  oracle.jdbc.driver.OracleConnection.close(OracleConnection.java)at 
  org.jboss.resource.adapter.jdbc.BaseWrapperManagedConnection.destroy(BaseWrapperManagedConnection.java:225)at 
  org.jboss.resource.connectionmanager.InternalManagedConnectionPool.doDestroy(InternalManagedConnectionPool.java:374)at 
  org.jboss.resource.connectionmanager.InternalManagedConnectionPool.returnConnection(InternalManagedConnectionPool.java:250)at 
  org.jboss.resource.connectionmanager.JBossManagedConnectionPool$OnePool.returnConnection(JBossManagedConnectionPool.java:648)at 
  org.jboss.resource.connectionmanager.BaseConnectionManager2.returnManagedConnection(BaseConnectionManager2.java:451)at 
  org.jboss.resource.connectionmanager.BaseConnectionManager2$BaseConnectionEventListener.connectionErrorOccurred(BaseConnectionManager2.java:762)at 
  org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener.connectionErrorOccurred(TxConnectionManager.java:629)at 
  org.jboss.resource.adapter.jdbc.BaseWrapperManagedConnection.broadcastConnectionError(BaseWrapperManagedConnection.java:309)at 
  org.jboss.resource.adapter.jdbc.BaseWrapperManagedConnection.connectionError(BaseWrapperManagedConnection.java:294)at 
  org.jboss.resource.adapter.jdbc.WrappedConnection.checkException(WrappedConnection.java:819)at 
  org.jboss.resource.adapter.jdbc.WrappedStatement.checkException(WrappedStatement.java:767)at 
  

RE: [JBoss-user] TxConnectionManager$LocalXAResource... : what does it means ?

2003-07-22 Thread Bill Burke
Do you have more than one datasource in your transaction?

JBoss simulates XA if you are not using XA drivers.  I think this is the
base of the warning.  Adrian would know more.

Bill

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] Behalf Of Ionel
 Gardais
 Sent: Tuesday, July 22, 2003 2:36 AM
 To: [EMAIL PROTECTED]
 Subject: [JBoss-user] TxConnectionManager$LocalXAResource... : what does
 it means ?


 Hi,

 I have the following warning whn I set up a relationship between two
 beans from differents datasource (both beans only have local interface) :

 warning
 08:31:02,067 WARN  [TxConnectionManager$LocalXAResource] Prepare called
 on a local tx. Use of local transactions on a jta transaction with more
 than one branch may result in inconsistent data in some cases of failure.
 08:31:02,068 WARN  [TxConnectionManager$LocalXAResource] Prepare called
 on a local tx. Use of local transactions on a jta transaction with more
 than one branch may result in inconsistent data in some cases of failure.
 /warning

 Relationship is well established but I have this warning.
 What does it mean ? Should I care to try to remove it or not ? If so,
 how to remove it ?


 thank you,
 ionel



 ---
 This SF.net email is sponsored by: VM Ware
 With VMware you can run multiple operating systems on a single machine.
 WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
 same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user




---
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] Transaction timed out?

2003-07-22 Thread Magesh Prabhu
Hi Guys,

I'm developing a middleware using Jboss3.2.1 and Quartz scheduler.
Things work fine under normal load. But under heavy load, dead lock happens and when I 
try to shutdown after deadlock occounrance, it does not shutdown properly. I have to 
kill the process explicitly. I see the following message on my console and in the 
server.log saying :

WARN  [TransactionImpl] Transaction TransactionImpl:XidImpl [FormatId=257, 
GlobalId=scarpc1878//2383, BranchQual=] timed out. status=STATUS_ACTIVE

After this warning, nothing moves. Not even exception is thrown. Please advice me why 
this deadlock is happening and way to get around it.

Environment Jboss 3.2.1, Oracle 8.1.6
Running on CommitOption 'B' and TRANSACTION_READ_COMMITTED

Thanks in advance,
Magesh



**
This email and its attachments are intended for the above 
named only and may be confidential.  If they have come to 
you in error, you must take no action based on them, nor 
must you copy or show them to anyone; please reply to this 
email and highlight the error.
Security Warning: Please note that this email has been 
created in the knowledge that the internet email is not a 
100% secure communications medium.  We advise that you 
understand and observe this lack of security when emailing us.
Viruses:  Although we have taken steps to ensure that this 
email and attachments are free from any virus, we advise 
that in keeping with good computing practice the recipient 
should ensure they are actually virus free.
If you have received this email in error please notify:
[EMAIL PROTECTED]
**



---
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] Managed Connection Pool running out of connections

2003-07-22 Thread Andrew May
Our production application has on several times run out of connections from a pool and 
we've had to restart the server to reset the pool.

We have a pool of 100 Oracle connections used for BMP entity beans and calls to the 
database from Session beans via Data Access Objects:

  local-tx-datasource
jndi-namejdbc.oraclePool/jndi-name
connection-urljdbc:oracle:thin:@machine:1521:schema/connection-url
driver-classoracle.jdbc.driver.OracleDriver/driver-class
user-nameusername/user-name
passwordpassword/password
min-pool-size10/min-pool-size
max-pool-size100/max-pool-size
blocking-timeout-millis5000/blocking-timeout-millis
idle-timeout-minutes15/idle-timeout-minutes
exception-sorter-class-nameorg.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter/exception-sorter-class-name
  /local-tx-datasource
We're typically only using between 0 to 20 connections in use at any given time (I'm using 
EJTools Swing JMX browser to graph the ConnectionCount and AvailableConnectionCount at 10 
second intervals), although I suspect there are peaks  30 at times.

After a while, and usually when the system is under load we start seeing bunches of 
connections becoming permenantly unavailable - i.e the AvailableConnectionCount will go 
from having 80-100 connections available to having 60-80 connections available. This means 
that the ConnectionCount will go up accordingly. Eventually this happens several times and 
then there are no available connections. When this has happened I've tried flushing the 
pool and even stopping and starting it, but this doesn't help.

It's always a bunch of connections that become unavailable at the same time. From the 
Oracle side of things the connections are still open but not being used (by looking at 
when a statement was last executed), and there are no uncommited transactions.

I've done thread dumps and there's nothing obvious there. So I suspect that for some 
reason the connections are not getting properly returned to the pool, or the pool is not 
recognising that the connections are free to be used.

Looking in our application logs for this afternoon when the server last lost a bunch of 
connections I can see quite a few stack traces like this (sorry for the long stack trace):

javax.transaction.TransactionRolledbackException: null; CausedByException is:
ISISDatabaseConnection: Unable to create connection to ISIS Database.; nested 
exception is:
javax.ejb.EJBException: null; CausedByException is:
ISISDatabaseConnection: Unable to create connection to ISIS Database.
at 
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:214)
at 
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:243)
at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:104)
at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:117)
at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191)
at 
org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122)
at 
org.jboss.ejb.StatelessSessionContainer.internalInvoke(StatelessSessionContainer.java:322)
at org.jboss.ejb.Container.invoke(Container.java:674)
at sun.reflect.GeneratedMethodAccessor40.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at 
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:101)
at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:83)
at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:46)
at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:45)
at 
org.jboss.proxy.ejb.StatelessSessionInterceptor.invoke(StatelessSessionInterceptor.java:100)
at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:85)
at $Proxy165.getIssue(Unknown Source)
at 
com.ingenta.search.ejb.ResultsBrandingBean.annotateArticle(ResultsBrandingBean.java:141)
at 
com.ingenta.search.ejb.ResultsBrandingBean.annotateArticleList(ResultsBrandingBean.java:197)
at sun.reflect.GeneratedMethodAccessor129.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at 
org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:629)
at 
org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:186)
at 

AW: [JBoss-user] Tx lock detection not possible even as i enabled EntityLockMonitor

2003-07-22 Thread Janardhan Burugupalli
Thanks Bill,

But if i set the threshold to INFO or WARN i will surely miss the other
important debug statements.

I only meant to say that can i turn off the debug stmts only related to the
Table updates or inserts done when we modify any EJB.

And coming to the TX problem i tried the QuedPessimistciTXlock mechanism and
the client hanged as i expalined before
and i changed the policy to
locking-policyorg.jboss.ejb.plugins.lock.NoLock/locking-policy
in the  Standard CMP EntityBean configuration against the doc specification
that i shuld use this NoLock only incase of IPT. And i am also using Commit
option A. The settings looks as follows.. for me the work is done .. but is
it right thing or what i really dont know. Beacause inspite of using NoLock
every TX executes correctly and all the data is also saved in the tables. By
the way i am using ejb-jar_1_1 setting all method TX attributes in the
ejb-jar.xml


  container-configuration
 container-nameStandard CMP EntityBean/container-name
 call-loggingfalse/call-logging

invoker-proxy-binding-nameentity-rmi-invoker/invoker-proxy-binding-name
 sync-on-commit-onlyfalse/sync-on-commit-only
 container-interceptors

interceptororg.jboss.ejb.plugins.ProxyFactoryFinderInterceptor/intercepto
r
interceptororg.jboss.ejb.plugins.LogInterceptor/interceptor

interceptororg.jboss.ejb.plugins.SecurityInterceptor/interceptor

interceptororg.jboss.ejb.plugins.TxInterceptorCMT/interceptor
interceptor
metricsEnabled=trueorg.jboss.ejb.plugins.MetricsInterceptor/interceptor

interceptororg.jboss.ejb.plugins.EntityCreationInterceptor/interceptor

interceptororg.jboss.ejb.plugins.EntityLockInterceptor/interceptor

interceptororg.jboss.ejb.plugins.EntityInstanceInterceptor/interceptor

interceptororg.jboss.ejb.plugins.EntityReentranceInterceptor/interceptor

interceptororg.jboss.resource.connectionmanager.CachedConnectionIntercepto
r/interceptor

interceptororg.jboss.ejb.plugins.EntitySynchronizationInterceptor/interce
ptor
 /container-interceptors

instance-poolorg.jboss.ejb.plugins.EntityInstancePool/instance-pool

instance-cacheorg.jboss.ejb.plugins.EntityInstanceCache/instance-cache

persistence-managerorg.jboss.ejb.plugins.jaws.JAWSPersistenceManager/pers
istence-manager
 locking-policyorg.jboss.ejb.plugins.lock.NoLock/locking-policy
 container-cache-conf

cache-policyorg.jboss.ejb.plugins.LRUEnterpriseContextCachePolicy/cache-p
olicy
cache-policy-conf
   min-capacity50/min-capacity
   max-capacity100/max-capacity
   overager-period300/overager-period
   max-bean-age600/max-bean-age
   resizer-period400/resizer-period
   max-cache-miss-period60/max-cache-miss-period
   min-cache-miss-period1/min-cache-miss-period
   cache-load-factor0.75/cache-load-factor
/cache-policy-conf
 /container-cache-conf
 container-pool-conf
MaximumSize100/MaximumSize
MinimumSize10/MinimumSize
 /container-pool-conf
 commit-optionA/commit-option
  /container-configuration


-Ursprungliche Nachricht-
Von: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Auftrag von Bill Burke
Gesendet: Dienstag, 22. Juli 2003 16:14
An: [EMAIL PROTECTED]
Betreff: RE: [JBoss-user] Tx lock detection not possible even as i
enabled EntityLockMonitor


Does the TX eventually time out and give you a stack trace?  There is one
deadlock scenario that we don't detect
All this is in the same thread.

1. begin tx1
2. access entity bean  A (does lock for tx1
3. suspend tx1 (a RequiresNew or something similar)
4. begin tx2
5. access entity bean A

How to turn off debugging?  Go to server/default/conf/log4j.xml

In the FILE appender add a threshhold of WARN or INFO:

param name=Threshold value=INFO/

Bill


 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] Behalf Of Janardhan
 Burugupalli
 Sent: Tuesday, July 22, 2003 10:20 AM
 To: [EMAIL PROTECTED]
 Subject: AW: [JBoss-user] Tx lock detection not possible even as i
 enabled EntityLockMonitor


 Hi All,

 I have problems regarding the Tx lock. My client hangs when performing a
 specific command like loading data of a form the server. Its always in the
 same place . So in dont get any error message , but to think that
 there is a
 TX lock i dont get any information in the server.log.

 I activated the metricsinterceptor and also the EntityLockMonitor as
 specified in the documentation. But in any case i cant see the message or
 info regarding some TX locks or some thing like that happened.

 And one more thing is that i see a lot of debug output in the server.log
 file specifying all the SQL commands with rrespective values inserted into
 the table a sample i pasted down here. I want to turn this debug off. Can
 any one please tell me were i can do this. I tried all means of
 

RE: [JBoss-user] JBoss doc

2003-07-22 Thread Rupp, Heiko
Hi,

 Are they much better than this one QuickStart-30x.pdf ? A rhetorical
 question, I assume. The QS is, as frequently mentioned on the 
 forums, a rat hole.

Could you elaborate?

-- 
Heiko W. Rupp   EMail: [EMAIL PROTECTED]
Senior Consultant   Telefon: +49 711 222 992 - 900
Cellent AG Finance SolutionsTelefax: +49 711 222 992 - 999
Calwer Str. 33  D-70173 Stuttgart


---
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


RE: [JBoss-user] Tx lock detection not possible even as i enabled EntityLockMonitor

2003-07-22 Thread Bill Burke
Well, if you have concurrency at all you will get dirty reads.  You will
have inconsistent behavior and may corrupt your data.

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] Behalf Of Janardhan
 Burugupalli
 Sent: Tuesday, July 22, 2003 12:10 PM
 To: [EMAIL PROTECTED]
 Subject: AW: [JBoss-user] Tx lock detection not possible even as i
 enabled EntityLockMonitor


 Thanks Bill,

 But if i set the threshold to INFO or WARN i will surely miss the other
 important debug statements.

 I only meant to say that can i turn off the debug stmts only
 related to the
 Table updates or inserts done when we modify any EJB.

 And coming to the TX problem i tried the QuedPessimistciTXlock
 mechanism and
 the client hanged as i expalined before
 and i changed the policy to
 locking-policyorg.jboss.ejb.plugins.lock.NoLock/locking-policy
 in the  Standard CMP EntityBean configuration against the doc
 specification
 that i shuld use this NoLock only incase of IPT. And i am also
 using Commit
 option A. The settings looks as follows.. for me the work is done
 .. but is
 it right thing or what i really dont know. Beacause inspite of
 using NoLock
 every TX executes correctly and all the data is also saved in the
 tables. By
 the way i am using ejb-jar_1_1 setting all method TX attributes in the
 ejb-jar.xml


   container-configuration
  container-nameStandard CMP EntityBean/container-name
  call-loggingfalse/call-logging

 invoker-proxy-binding-nameentity-rmi-invoker/invoker-proxy-bind
 ing-name
  sync-on-commit-onlyfalse/sync-on-commit-only
  container-interceptors

 interceptororg.jboss.ejb.plugins.ProxyFactoryFinderInterceptor/
 intercepto
 r

 interceptororg.jboss.ejb.plugins.LogInterceptor/interceptor

 interceptororg.jboss.ejb.plugins.SecurityInterceptor/interceptor

 interceptororg.jboss.ejb.plugins.TxInterceptorCMT/interceptor
 interceptor
 metricsEnabled=trueorg.jboss.ejb.plugins.MetricsInterceptor/in
 terceptor

 interceptororg.jboss.ejb.plugins.EntityCreationInterceptor/interceptor

 interceptororg.jboss.ejb.plugins.EntityLockInterceptor/interceptor

 interceptororg.jboss.ejb.plugins.EntityInstanceInterceptor/interceptor

 interceptororg.jboss.ejb.plugins.EntityReentranceInterceptor/in
 terceptor

 interceptororg.jboss.resource.connectionmanager.CachedConnection
 Intercepto
 r/interceptor

 interceptororg.jboss.ejb.plugins.EntitySynchronizationIntercepto
 r/interce
 ptor
  /container-interceptors

 instance-poolorg.jboss.ejb.plugins.EntityInstancePool/instance-pool

 instance-cacheorg.jboss.ejb.plugins.EntityInstanceCache/instance-cache

 persistence-managerorg.jboss.ejb.plugins.jaws.JAWSPersistenceMan
 ager/pers
 istence-manager
locking-policyorg.jboss.ejb.plugins.lock.NoLock/locking-policy
  container-cache-conf

 cache-policyorg.jboss.ejb.plugins.LRUEnterpriseContextCachePolic
 y/cache-p
 olicy
 cache-policy-conf
min-capacity50/min-capacity
max-capacity100/max-capacity
overager-period300/overager-period
max-bean-age600/max-bean-age
resizer-period400/resizer-period
max-cache-miss-period60/max-cache-miss-period
min-cache-miss-period1/min-cache-miss-period
cache-load-factor0.75/cache-load-factor
 /cache-policy-conf
  /container-cache-conf
  container-pool-conf
 MaximumSize100/MaximumSize
   MinimumSize10/MinimumSize
  /container-pool-conf
  commit-optionA/commit-option
   /container-configuration


 -Ursprungliche Nachricht-
 Von: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] Auftrag von Bill Burke
 Gesendet: Dienstag, 22. Juli 2003 16:14
 An: [EMAIL PROTECTED]
 Betreff: RE: [JBoss-user] Tx lock detection not possible even as i
 enabled EntityLockMonitor


 Does the TX eventually time out and give you a stack trace?  There is one
 deadlock scenario that we don't detect
 All this is in the same thread.

 1. begin tx1
 2. access entity bean  A (does lock for tx1
 3. suspend tx1 (a RequiresNew or something similar)
 4. begin tx2
 5. access entity bean A

 How to turn off debugging?  Go to server/default/conf/log4j.xml

 In the FILE appender add a threshhold of WARN or INFO:

 param name=Threshold value=INFO/

 Bill


  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] Behalf Of Janardhan
  Burugupalli
  Sent: Tuesday, July 22, 2003 10:20 AM
  To: [EMAIL PROTECTED]
  Subject: AW: [JBoss-user] Tx lock detection not possible even as i
  enabled EntityLockMonitor
 
 
  Hi All,
 
  I have problems regarding the Tx lock. My client hangs when performing a
  specific command like loading data of a form the server. Its
 always in the
  same place . So in dont get any error message , but to think that
  there is a
  TX lock i dont get any information in the server.log.
 
  I 

RE: [JBoss-user] JBoss doc

2003-07-22 Thread Steven Harris
I can't recall all of the problems I had, but I definitely found it to be
overly complex for a quick start - things like starting by using xdoclet. I
had used JBoss 2.4, and the Quick Start for that was pretty good, so I
thought why not use the 3.0 one to see what has changed. It may be a
brilliant piece of work, but I found it hard to understand and difficult to
ge the examples working, which is not what I would expect in a quick start
guide. The forums confirmed that other people ahd similar experience. On the
other hand, the AD Guide is very clear, and the examples are very useful.
It is well worth the nominal price. The simplest thing would be for you to
download Qick Start and try it. If it works for you, fine.

-Original Message-
From: Rupp, Heiko [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 22, 2003 1:42 PM
To: [EMAIL PROTECTED]
Subject: RE: [JBoss-user] JBoss doc


Hi,

 Are they much better than this one QuickStart-30x.pdf ? A rhetorical
 question, I assume. The QS is, as frequently mentioned on the 
 forums, a rat hole.

Could you elaborate?

-- 
Heiko W. Rupp   EMail: [EMAIL PROTECTED]
Senior Consultant   Telefon: +49 711 222 992 - 900
Cellent AG Finance SolutionsTelefax: +49 711 222 992 - 999
Calwer Str. 33  D-70173 Stuttgart


---
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


---
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] DeploymentException: Couldn't create entity command

2003-07-22 Thread Martin J. LaJeunesse



I haven't had much 
luck getting past this error. I've been migrating from 3.0.6 to3.2.1, 
using DB2. I'm getting this error on both a Win box and Linux. Follows the 
db2-ds.xml and the stack trace. Any and all hints are 
appreciated.

datasources 
local-tx-datasource 
jndi-nameDB2DBA/jndi-name 
connection-urljdbc:db2:SCIFDB2T/connection-url 
driver-classCOM.ibm.db2.jdbc.app.DB2Driver/driver-class 
user-nameuser/user-name 
passwordpassword/password 
min-pool-size0/min-pool-size 
/local-tx-datasource

/datasources

2003-07-22 13:40:39,749 INFO 
[org.jboss.ejb.EjbModule] Creating2003-07-22 13:40:39,759 INFO 
[org.jboss.ejb.EjbModule] Deploying TradingAccount2003-07-22 13:40:39,769 
INFO [org.jboss.ejb.EntityContainer] Creating2003-07-22 13:40:39,779 
INFO [org.jboss.ejb.plugins.EntityInstancePool] Creating2003-07-22 
13:40:39,779 INFO [org.jboss.ejb.plugins.EntityInstancePool] 
Created2003-07-22 13:40:39,779 INFO 
[com.mkeym.customsec.ejb.TradingAccountSecurityProxy] Security Proxy 
Initialising for com.mkeym.customsec.interfaces.TradingAccount2003-07-22 
13:40:39,779 INFO [org.jboss.ejb.plugins.SecurityProxyInterceptor] 
Initialized [EMAIL PROTECTED]2003-07-22 
13:40:39,779 INFO [org.jboss.ejb.EntityContainer] Created2003-07-22 
13:40:39,779 INFO [org.jboss.ejb.EjbModule] Created2003-07-22 
13:40:39,779 INFO [org.jboss.ejb.EjbModule] Starting2003-07-22 
13:40:39,779 INFO [org.jboss.ejb.EntityContainer] Starting2003-07-22 
13:40:40,009 ERROR [org.jboss.ejb.EntityContainer] Starting 
failedorg.jboss.deployment.DeploymentException: Couldn't create entity 
command: ; - nested throwable: (java.lang.NullPointerException)at 
org.jboss.ejb.plugins.cmp.jdbc.JDBCCommandFactory.createCreateEntityCommand(JDBCCommandFactory.java:137)at 
org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.startStoreManager(JDBCStoreManager.java:481)at 
org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.start(JDBCStoreManager.java:410)at 
org.jboss.ejb.plugins.CMPPersistenceManager.start(CMPPersistenceManager.java:170)at 
org.jboss.ejb.EntityContainer.startService(EntityContainer.java:339)at 
org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:192)at 
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)at 
java.lang.reflect.Method.invoke(Method.java:324)at 
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)at 
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)at 
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:966)at 
$Proxy11.start(Unknown Source)at 
org.jboss.system.ServiceController.start(ServiceController.java:392)at 
sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)at 
java.lang.reflect.Method.invoke(Method.java:324)at 
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)at 
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)at 
org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)at 
$Proxy40.start(Unknown Source)at 
org.jboss.ejb.EjbModule.startService(EjbModule.java:329)at 
org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:192)at 
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)at 
java.lang.reflect.Method.invoke(Method.java:324)at 
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)at 
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)at 
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:966)at 
$Proxy11.start(Unknown Source)at 
org.jboss.system.ServiceController.start(ServiceController.java:392)at 
sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)at 
java.lang.reflect.Method.invoke(Method.java:324)at 
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)at 
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)at 
org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)at 
$Proxy19.start(Unknown Source)at 
org.jboss.ejb.EJBDeployer.start(EJBDeployer.java:540)at 
org.jboss.deployment.MainDeployer.start(MainDeployer.java:832)at 
org.jboss.deployment.MainDeployer.start(MainDeployer.java:824)at 
org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:640)at 
org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:613)at 
sun.reflect.GeneratedMethodAccessor34.invoke(Unknown Source)at 

RE: [JBoss-user] DeploymentException: Couldn't create entitycomm and

2003-07-22 Thread Gavin Matthews



Martin,
I just hit something similiar - in my case my entity create command 
wasn't on the classpath. Check you classpath to make sure the create commands 
are on it. Note there were some changes to the unified classpath, in 3.0 we had 
an incorrect manifest classpath but our app still worked fine, however 3.2 was 
more strict and required the manifest classpath to be specified 
correctly.

Hope it helps.
gavin

  -Original 
  Message-From: Martin J. LaJeunesse 
  [mailto:[EMAIL PROTECTED]Sent: Tuesday, July 22, 2003 1:52 
  PMTo: [EMAIL PROTECTED]Subject: 
  [JBoss-user] DeploymentException: Couldn't create entity 
  command
  I haven't had much 
  luck getting past this error. I've been migrating from 3.0.6 to3.2.1, 
  using DB2. I'm getting this error on both a Win box and Linux. Follows the 
  db2-ds.xml and the stack trace. Any and all hints are 
  appreciated.
  
  datasources 
  local-tx-datasource 
  jndi-nameDB2DBA/jndi-name 
  connection-urljdbc:db2:SCIFDB2T/connection-url 
  driver-classCOM.ibm.db2.jdbc.app.DB2Driver/driver-class 
  user-nameuser/user-name 
  passwordpassword/password 
  min-pool-size0/min-pool-size 
  /local-tx-datasource
  
  /datasources
  
  2003-07-22 13:40:39,749 INFO 
  [org.jboss.ejb.EjbModule] Creating2003-07-22 13:40:39,759 INFO 
  [org.jboss.ejb.EjbModule] Deploying TradingAccount2003-07-22 13:40:39,769 
  INFO [org.jboss.ejb.EntityContainer] Creating2003-07-22 13:40:39,779 
  INFO [org.jboss.ejb.plugins.EntityInstancePool] Creating2003-07-22 
  13:40:39,779 INFO [org.jboss.ejb.plugins.EntityInstancePool] 
  Created2003-07-22 13:40:39,779 INFO 
  [com.mkeym.customsec.ejb.TradingAccountSecurityProxy] Security Proxy 
  Initialising for com.mkeym.customsec.interfaces.TradingAccount2003-07-22 
  13:40:39,779 INFO [org.jboss.ejb.plugins.SecurityProxyInterceptor] 
  Initialized [EMAIL PROTECTED]2003-07-22 
  13:40:39,779 INFO [org.jboss.ejb.EntityContainer] Created2003-07-22 
  13:40:39,779 INFO [org.jboss.ejb.EjbModule] Created2003-07-22 
  13:40:39,779 INFO [org.jboss.ejb.EjbModule] Starting2003-07-22 
  13:40:39,779 INFO [org.jboss.ejb.EntityContainer] Starting2003-07-22 
  13:40:40,009 ERROR [org.jboss.ejb.EntityContainer] Starting 
  failedorg.jboss.deployment.DeploymentException: Couldn't create entity 
  command: ; - nested throwable: (java.lang.NullPointerException)at 
  org.jboss.ejb.plugins.cmp.jdbc.JDBCCommandFactory.createCreateEntityCommand(JDBCCommandFactory.java:137)at 
  org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.startStoreManager(JDBCStoreManager.java:481)at 
  org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.start(JDBCStoreManager.java:410)at 
  org.jboss.ejb.plugins.CMPPersistenceManager.start(CMPPersistenceManager.java:170)at 
  org.jboss.ejb.EntityContainer.startService(EntityContainer.java:339)at 
  org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:192)at 
  sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at 
  sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)at 
  sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)at 
  java.lang.reflect.Method.invoke(Method.java:324)at 
  org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)at 
  org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)at 
  org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:966)at 
  $Proxy11.start(Unknown Source)at 
  org.jboss.system.ServiceController.start(ServiceController.java:392)at 
  sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)at 
  sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)at 
  java.lang.reflect.Method.invoke(Method.java:324)at 
  org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)at 
  org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)at 
  org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)at 
  $Proxy40.start(Unknown Source)at 
  org.jboss.ejb.EjbModule.startService(EjbModule.java:329)at 
  org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:192)at 
  sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at 
  sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)at 
  sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)at 
  java.lang.reflect.Method.invoke(Method.java:324)at 
  org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)at 
  org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)at 
  org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:966)at 
  $Proxy11.start(Unknown Source)at 
  org.jboss.system.ServiceController.start(ServiceController.java:392)at 
  sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)at 
  sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)at 
  

[JBoss-user] Database JNDI Name Not Found

2003-07-22 Thread Rod Macpherson
Title: Message



On3.0.7my oracle-service.xml file specifies OracleDSX as the 
JNDI name and everything runs fine. Switched to 3.2 and it cannot find JNDI name 
"java:/OracleDSX". I tried putting in thejava:/ prefix for grins but it 
fails. Something change in 3.2?

TIA, 


Rod


RE: [JBoss-user] Database JNDI Name Not Found

2003-07-22 Thread Rod Macpherson
Almost forgot. Here is the actual error I get inn 3.2:

16:42:33,546 ERROR [EntityContainer] Starting failed
org.jboss.deployment.DeploymentException: Error: can't find data source:
java:/OracleDSX; - nested throwable: (javax.naming.Name
NotFoundException: OracleDSX not bound)
at
org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCEntityBridge.init(JDBCEntity
Bridge.java:115)
at
org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.initStoreManager(JDBCSto
reManager.java:438)
at
org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.start(JDBCStoreManager.j
ava:372)
at
org.jboss.ejb.plugins.CMPPersistenceManager.start(CMPPersistenceManager.
java:170)
at
org.jboss.ejb.EntityContainer.startService(EntityContainer.java:339)
...


-Original Message-
From: Guy Rouillier [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 22, 2003 3:44 PM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Database JNDI Name Not Found


Rod Macpherson wrote:

 On 3.0.7 my oracle-service.xml file specifies OracleDSX as the JNDI 
 name
 and everything runs fine. Switched to 3.2 and it cannot find JNDI name

 java:/OracleDSX. I tried putting in the java:/ prefix for grins but
it 
 fails. Something change in 3.2?
  
 TIA,
  
 Rod

What is the exact error you are getting?  Is it comp not bound?  I got

this for two reasons:

(1) forgot to add classes12.jar to the classpath (doh!)
(2) jndi.properties for the ejb must now contain this:
java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces

Notice the new org.jboss.naming: on the front.

-- 
Guy Rouillier



---
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


---
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Database JNDI Name Not Found

2003-07-22 Thread Scott M Stark
I would say your ds is not deploying due to changes in service names on which 
the ds depends. Post your oracle-service.xml or switch to the oracle-ds.xml 
format which removes the need to know JBoss internal services. See the
docs/examples/jca/oracle-ds.xml for an example.

--

Scott Stark
Chief Technology Officer
JBoss Group, LLC

Rod Macpherson wrote:
Almost forgot. Here is the actual error I get inn 3.2:

16:42:33,546 ERROR [EntityContainer] Starting failed
org.jboss.deployment.DeploymentException: Error: can't find data source:
java:/OracleDSX; - nested throwable: (javax.naming.Name
NotFoundException: OracleDSX not bound)
at
org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCEntityBridge.init(JDBCEntity
Bridge.java:115)
at
org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.initStoreManager(JDBCSto
reManager.java:438)
at
org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.start(JDBCStoreManager.j
ava:372)
at
org.jboss.ejb.plugins.CMPPersistenceManager.start(CMPPersistenceManager.
java:170)
at
org.jboss.ejb.EntityContainer.startService(EntityContainer.java:339)
...


---
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


RE: [JBoss-user] Database JNDI Name Not Found

2003-07-22 Thread Rod Macpherson
Had the jar so must be an incompatibility with the JNDI properties as
you suggest. Here is what we have now:

properties.put(java.naming.factory.initial,
org.jnp.interfaces.NamingContextFactory);
properties.put(java.naming.provider.url, localhost:1099);
properties.put(java.naming.factory.url.pkgs,
org.jboss.naming);

How does item number (2) in your solution list blend with the above?

Thx,

Rod



-Original Message-
From: Guy Rouillier [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 22, 2003 3:44 PM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Database JNDI Name Not Found


Rod Macpherson wrote:

 On 3.0.7 my oracle-service.xml file specifies OracleDSX as the JNDI 
 name
 and everything runs fine. Switched to 3.2 and it cannot find JNDI name

 java:/OracleDSX. I tried putting in the java:/ prefix for grins but
it 
 fails. Something change in 3.2?
  
 TIA,
  
 Rod

What is the exact error you are getting?  Is it comp not bound?  I got

this for two reasons:

(1) forgot to add classes12.jar to the classpath (doh!)
(2) jndi.properties for the ejb must now contain this:
java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces

Notice the new org.jboss.naming: on the front.

-- 
Guy Rouillier



---
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


---
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Managed Connection Pool running out of connections

2003-07-22 Thread Scott M Stark
What is the real problem occuring here at BrowseUtilities.java:214, an 
SQLException or what?

Caused by: javax.ejb.EJBException: null; CausedByException is:
ISISDatabaseConnection: Unable to create connection to ISIS Database.
at 
com.ingenta.content.BrowseUtilities.getConnection(BrowseUtilities.java:214)
at 
com.ingenta.content.ejb.BrowseControllerBean.getIssue(BrowseControllerBean.java:542)

--

Scott Stark
Chief Technology Officer
JBoss Group, LLC

Andrew May wrote:

Our production application has on several times run out of connections 
from a pool and we've had to restart the server to reset the pool.

We have a pool of 100 Oracle connections used for BMP entity beans and 
calls to the database from Session beans via Data Access Objects:

  local-tx-datasource
jndi-namejdbc.oraclePool/jndi-name
connection-urljdbc:oracle:thin:@machine:1521:schema/connection-url
driver-classoracle.jdbc.driver.OracleDriver/driver-class
user-nameusername/user-name
passwordpassword/password
min-pool-size10/min-pool-size
max-pool-size100/max-pool-size
blocking-timeout-millis5000/blocking-timeout-millis
idle-timeout-minutes15/idle-timeout-minutes
exception-sorter-class-nameorg.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter/exception-sorter-class-name 

  /local-tx-datasource

We're typically only using between 0 to 20 connections in use at any 
given time (I'm using EJTools Swing JMX browser to graph the 
ConnectionCount and AvailableConnectionCount at 10 second intervals), 
although I suspect there are peaks  30 at times.


---
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Tx lock detection not possible even as i enabledEntityLockMonitor

2003-07-22 Thread Scott M Stark
To turn off debugging for a particular category, set its priority
to the level at which msgs should be logged in the conf/log4j.xml:
   category name=org.jboss.ejb.plugins.jaws.jdbc
  priority value=INFO/
   /category
--

Scott Stark
Chief Technology Officer
JBoss Group, LLC

Bill Burke wrote:
Does the TX eventually time out and give you a stack trace?  There is one
deadlock scenario that we don't detect
All this is in the same thread.
1. begin tx1
2. access entity bean  A (does lock for tx1
3. suspend tx1 (a RequiresNew or something similar)
4. begin tx2
5. access entity bean A
How to turn off debugging?  Go to server/default/conf/log4j.xml

In the FILE appender add a threshhold of WARN or INFO:

param name=Threshold value=INFO/

Bill





---
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Database JNDI Name Not Found

2003-07-22 Thread Guy Rouillier
Rod Macpherson wrote:

On 3.0.7 my oracle-service.xml file specifies OracleDSX as the JNDI name 
and everything runs fine. Switched to 3.2 and it cannot find JNDI name 
java:/OracleDSX. I tried putting in the java:/ prefix for grins but it 
fails. Something change in 3.2?
 
TIA,
 
Rod
What is the exact error you are getting?  Is it comp not bound?  I got 
this for two reasons:

(1) forgot to add classes12.jar to the classpath (doh!)
(2) jndi.properties for the ejb must now contain this:
java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
Notice the new org.jboss.naming: on the front.

--
Guy Rouillier


---
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Probs creating a finder

2003-07-22 Thread Scott M Stark
This is not a valid query method due to the fact that there is no type String.
Its java.lang.String.
query-method
   method-namefindByType/method-name
   method-params
  method-paramString/method-param
   /method-params
/query-method
Ingo Bruell wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hi,

i am using jboss-3.2.1 (jdk1.4.1_02) with xdoclet-1.2b3 (jdk1.4.2) under
Windows 2000.
I am creating a bean with the name 'Type'. For this bean i want to create
a finder called findByType.


--

Scott Stark
Chief Technology Officer
JBoss Group, LLC



---
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: AW: [JBoss-user] problems with mysql and transactions

2003-07-22 Thread Scott M Stark
Remove the INFO threshold on the server.log to see if there is any additional 
information about the cause of the tx timeout. What jdbc driver version is being 
used here? If you have an example that reproduces this create a bug report on 
sourceforge with it as an attachment.

--

Scott Stark
Chief Technology Officer
JBoss Group, LLC

Scheil, Sven wrote:

for more details on my problem i took a look at the call stack that leads to
the hang up:
a = stateless session bean
message = cmp entity bean
client - a.init() required - a.initMessage() required -
message.create() required - sequenceService.getNextSequenceNumber()
required - sequence.getValueAfterIncrementingBy RequiresNew
before a.initMessage() is called there are several other calls from a.init()
that create new entity beans. that means the transaction stretches about
several hundred insert statements.


-Ursprüngliche Nachricht-
Von: Scheil, Sven 
Gesendet: Dienstag, 22. Juli 2003 12:29
An: '[EMAIL PROTECTED]'
Betreff: [JBoss-user] problems with mysql and transactions

hi, 

i'm evaluating a change from cloudscape  to mysql for cmp.

we are using jboss3.0.6, mysql4.0.13 on w2k. all transactions of our app are
container manged.
there is a problem with an entity bean using the transaction setting
'requires new'. the application hangs up for several minutes and comes back
with a transaction timeout. when i'm changing the transaction setting to
'requires' the problem disappears.
--

2003-07-22 12:11:17,587 WARN  [org.jboss.tm.TxCapsule] (Thread-19:)
Transaction XidImpl [FormatId=257, GlobalId=sscheil//189, BranchQual=] timed
out. status=STATUS_ACTIVE
2003-07-22 12:11:23,826 WARN  [org.jboss.tm.TxCapsule] (Thread-20:)
Transaction XidImpl [FormatId=257, GlobalId=sscheil//190, BranchQual=] timed
out. status=STATUS_ACTIVE
2003-07-22 12:11:23,826 WARN  [org.jboss.ejb.BeanLock] (RMI TCP
Connection(9)-172.20.9.91:Sequence) wait() interrupted in txLock, possibly a
timeout
2003-07-22 12:11:23,826 ERROR [org.jboss.ejb.BeanLock] (RMI TCP
Connection(9)-172.20.9.91:Sequence) Thread[RMI TCP
Connection(9)-172.20.9.91,5,RMI Runtime]Saw rolled back
tx=TransactionImpl:XidImpl [FormatId=257, GlobalId=sscheil//190,
BranchQual=] waiting for txLock
2003-07-22 12:11:23,826 WARN  [org.jboss.tm.TxCapsule] (RMI TCP
Connection(9)-172.20.9.91:Sequence) Lock contention, tx=XidImpl
[FormatId=257, GlobalId=sscheil//190, BranchQual=]
2003-07-22 12:11:23,826 ERROR [org.jboss.ejb.plugins.LogInterceptor] (RMI
TCP Connection(9)-172.20.9.91:Sequence) RuntimeException:
java.lang.RuntimeException: Transaction marked for rollback, possibly a
timeout
at
org.jboss.ejb.plugins.lock.QueuedPessimisticEJBLock.waitForTx(QueuedPessimis
ticEJBLock.java:339)
at
org.jboss.ejb.plugins.lock.QueuedPessimisticEJBLock.doSchedule(QueuedPessimi
sticEJBLock.java:211)
at
org.jboss.ejb.plugins.lock.QueuedPessimisticEJBLock.schedule(QueuedPessimist
icEJBLock.java:159)

 snip -
all tables in mysql have the type InnoDB.

the entity bean is called sequence and is part of the unique key generation
pattern. the entity bean is called thru a stateless session bean called
sequenceService. The 'requiresNew' setting can not be changed for running
the app on production environment.
are there some hints on this or more general hints on jboss and mysql and
container managed transactions?
thanx sven



---
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Database JNDI Name Not Found

2003-07-22 Thread Guy Rouillier
Rod Macpherson wrote:
Had the jar so must be an incompatibility with the JNDI properties as
you suggest. Here is what we have now:
properties.put(java.naming.factory.initial,
org.jnp.interfaces.NamingContextFactory);
properties.put(java.naming.provider.url, localhost:1099);
properties.put(java.naming.factory.url.pkgs,
org.jboss.naming);
How does item number (2) in your solution list blend with the above?
properties.put(java.naming.factory.url.pkgs,
org.jboss.naming:org.jnp.interfaces);
But always follow Scott's advice before looking at mine gr.  BTW, what 
does your lookup look like?

Thx,

Rod



-Original Message-
From: Guy Rouillier [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 22, 2003 3:44 PM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Database JNDI Name Not Found

Rod Macpherson wrote:


On 3.0.7 my oracle-service.xml file specifies OracleDSX as the JNDI 
name
and everything runs fine. Switched to 3.2 and it cannot find JNDI name


java:/OracleDSX. I tried putting in the java:/ prefix for grins but
it 

fails. Something change in 3.2?

TIA,

Rod


What is the exact error you are getting?  Is it comp not bound?  I got

this for two reasons:

(1) forgot to add classes12.jar to the classpath (doh!)
(2) jndi.properties for the ejb must now contain this:
java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
Notice the new org.jboss.naming: on the front.



--
Guy Rouillier


---
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] new mail ut1gpnPU

2003-07-22 Thread cousin
http://www.mail15.com.  
 :
1)   15 ;
2)   ;
3) (POP,IMAP,SMTP);
4)   ;
5);
6);
7)   .

   ,  mailto:[EMAIL PROTECTED]

*

 We are glad to invite you at new free mail service http://www.mail15.com. The 
advantages of this service are:
 1) mailbox, up to 15 Mb;
 2) absolute privacy and high reliability;
 3) ability to use mail clients (POP3, IMAP4, SMTP);
 4) access from anywhere, anytime;
 5) flexible light-weight web interface without advertising banners;
 6) antivirus and antispam control;
 7) fast mail transfer;
 8) high speed network channel;
 9) flexible light-weight web interface;
 10) wide spread ability of mail filtering and forwarding mail;
 11) clock around support;

 If you wish to be removed:
mailto:[EMAIL PROTECTED]

tq6AA4J0DJ



---
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] OutOfMemoryError and CACHE ERROR

2003-07-22 Thread manish sharan
Hi All,

My application is getting the following unexected errors (listed below). I 
am running Jboss 3.0.7 + jdk1.4+ RH Linux + Sapdb 7.4. I have 1gb ram AND 
1gb swapspace. I am starting jvm with option: -server -Xincgc -Xms512m 
-Xmx512m. Furthernore I have reduced HighMemoryMark and maxMemoryMark in 
jbossmq-service.xml to 16 and 32 respectively.

q1: Please tell me how to avoid getting outofmemry error. I get this for 
only high voue of messages, which is normal for my application, -- after 
about 20,000 messages.  I dont see this when the number of messages is lower 
that 1000. In any case shouldn't JVM  be using the swapspace  if it runs out 
of RAM ?

q2: What is CACHE ERROR ? Why am I getting it ?  How to avoid it ?



( I get the  java.lang.OutOfMemoryError errors in several places in my log 
file.)

2003-07-22 22:13:55,149 ERROR 
[org.jboss.ejb.plugins.jms.JMSContainerInvoker] Exception in JMSCI message 
listener
javax.ejb.EJBException: Unexpected Error
java.lang.OutOfMemoryError

	at 
org.jboss.ejb.plugins.LogInterceptor.handleException(LogInterceptor.java:383)
	at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:212)
	at 
org.jboss.ejb.MessageDrivenContainer.invoke(MessageDrivenContainer.java:302)
	at 
org.jboss.ejb.plugins.jms.JMSContainerInvoker.invoke(JMSContainerInvoker.java:971)
	at 
org.jboss.ejb.plugins.jms.JMSContainerInvoker$MessageListenerImpl.onMessage(JMSContainerInvoker.java:1047)
	at org.jboss.jms.asf.StdServerSession.onMessage(StdServerSession.java:243)
	at 
org.jboss.mq.SpyMessageConsumer.sessionConsumerProcessMessage(SpyMessageConsumer.java:637)
	at org.jboss.mq.SpyMessageConsumer.addMessage(SpyMessageConsumer.java:443)
	at org.jboss.mq.SpySession.run(SpySession.java:297)
	at org.jboss.jms.asf.StdServerSession.run(StdServerSession.java:178)
	at 
EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:727)
	at java.lang.Thread.run(Thread.java:534)
2003-07-22 22:13:55,268 ERROR 
[com.transethnic.messagedriven.TimerHandlerMDB] Failed to send timercommaned 
to MAILSENDER queue name :queue/mailpendingEventQueue

After getting some outofmemory errors , I begin to get this errors as well :

javax.jms.JMSException: CACHE ERROR: soft reference to unstored message 989 
msg=13 soft NOT_STORED PERSISTENT queue=QUEUE.dispatchQueue priority=4 
hashCode=30792896
	at org.jboss.mq.server.MessageReference.makeSoft(MessageReference.java:224)
	at 
org.jboss.mq.server.MessageCache.validateSoftReferenceDepth(MessageCache.java:344)
	at org.jboss.mq.server.MessageCache.addInternal(MessageCache.java:123)
	at org.jboss.mq.server.MessageCache.add(MessageCache.java:92)
	at org.jboss.mq.server.JMSQueue.addMessage(JMSQueue.java:123)
	at 
org.jboss.mq.server.JMSDestinationManager.addMessage(JMSDestinationManager.java:398)
	at 
org.jboss.mq.server.JMSDestinationManager.addMessage(JMSDestinationManager.java:376)
	at 
org.jboss.mq.server.JMSServerInterceptorSupport.addMessage(JMSServerInterceptorSupport.java:135)
	at 
org.jboss.mq.security.ServerSecurityInterceptor.addMessage(ServerSecurityInterceptor.java:162)
	at 
org.jboss.mq.server.TracingInterceptor.addMessage(TracingInterceptor.java:233)
	at 
org.jboss.mq.server.JMSServerInvoker.addMessage(JMSServerInvoker.java:137)
	at org.jboss.mq.il.jvm.JVMServerIL.addMessage(JVMServerIL.java:137)
	at org.jboss.mq.Connection.sendToServer(Connection.java:1233)
	at org.jboss.mq.SpySession.sendMessage(SpySession.java:695)
	at org.jboss.mq.SpyQueueSender.internalSend(SpyQueueSender.java:118)
	at org.jboss.mq.SpyQueueSender.send(SpyQueueSender.java:84)
	at com.transethnic.framework.utils.JMSClient.sendHashtable(Unknown Source)
	at com.transethnic.messagedriven.TimerHandlerMDB.processTimerTask(Unknown 
Source)
	at com.transethnic.messagedriven.TimerHandlerMDB.processTimers(Unknown 
Source)
	at com.transethnic.messagedriven.TimerHandlerMDB.onMessage(Unknown Source)
	at sun.reflect.GeneratedMethodAccessor29.invoke(Unknown Source)
	at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:324)
	at 
org.jboss.ejb.MessageDrivenContainer$ContainerInterceptor.invoke(MessageDrivenContainer.java:391)
	at 
org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:186)
	at 
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:107)
	at 
org.jboss.ejb.plugins.AbstractTxInterceptorBMT.invokeNext(AbstractTxInterceptorBMT.java:144)
	at 
org.jboss.ejb.plugins.MessageDrivenTxInterceptorBMT.invoke(MessageDrivenTxInterceptorBMT.java:33)
	at 
org.jboss.ejb.plugins.MessageDrivenInstanceInterceptor.invoke(MessageDrivenInstanceInterceptor.java:88)
	at 
org.jboss.ejb.plugins.RunAsSecurityInterceptor.invoke(RunAsSecurityInterceptor.java:100)
	at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:208)
	at 
org.jboss.ejb.MessageDrivenContainer.invoke(MessageDrivenContainer.java:302)
	at