RE: [JBoss-user] could not be found: jar in .ear file

2003-09-23 Thread Danny . Yates
Title: Message



I 
don't think you need the "./" in the path. Just the JAR 
names.


-- 
Danny Yates


  
  -Original Message-From: Bill Milbratz 
  [mailto:[EMAIL PROTECTED] Sent: 22 September 2003 
  18:00To: '[EMAIL PROTECTED]'Subject: 
  [JBoss-user] "could not be found": jar in .ear file
  Hi, 
  How do you tell Jboss3 to refer to a jar within an ear file? 
  This works fine on Jboss2 and Weblogic 6 and 7. I've searched the 
  documentation and archives, but don't see an obvious way to get past this 
  problem, aside from copying the jars into the 'deploy' directory.
  (The section "Deployers and Classloaders" in the 3.2.1 
  documentation seems to point to an answer...but doesn't discuss how the jars 
  are loaded from the file system JBOSS_DIST/server/config/deploy 
  directory .)
  We're upgrading from jboss 2.4.6 to Jboss 3.2.1. Our ear file 
  contains several jars and a manifest that points to those .jars. The log has 
  several "could not be opened"
  Manifest entry (this has the required newline at the 
  end): Class-Path: ./activation.jar 
  ./commons-beanutils.jar 
  Server log: 2003-09-22 10:11:21,327 
  DEBUG [org.jboss.deployment.MainDeployer] new manifest entry for sdi at pe.ear 
  entry is activation.jar
  2003-09-22 10:11:21,327 WARN 
  [org.jboss.deployment.MainDeployer] The manifest entry in file:/C:/projects/devtools/jboss-3.2.1_tomcat-4.1.24/server/default/deploy/pe.ear 
  references URL file:/C:/projects/devtools/jboss-3.2.1_tomcat-4.1.24/server/default/deploy/activation.jar 
  which could not be opened, entry ignored
  thanks, 
  bill milbratz 




_ 

Notice to recipient: 

The information in this internet e-mail and any attachments is confidential and may be privileged. It is intended solely for the addressee. If you are not the intended addressee please notify the sender immediately by telephone. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. 


When addressed to external clients any opinions or advice contained in this internet e-mail are subject to the terms and conditions expressed in any applicable governing terms of business or client engagement letter issued by the pertinent Bank of America group entity. 


If this email originates from the U.K. please note that Bank of America, N.A., London Branch, Banc of America Securities Limited and Banc of America Futures Incorporated are regulated by the Financial Services Authority.

_ 




[JBoss-user] Exception Sorter Information

2003-09-23 Thread Ricardo Coutinho
Title: Exception Sorter Information





Hi All,

I have implemented an ExceptionSorter for my AS400 connection.

The reconnect works, eventually, but only after it fails one time to recreate the connection.

In other words, when the connection is lost, I get an error when reusing the connection. Then after another attempt it manages to reconnect again. Is this the normal behaviour?

Here is the configuration of my datasource
datasources
local-tx-datasource
jndi-nameODCDTA/jndi-name
connection-urljdbc:as400:IP-ADDRESS/ODCDTA;Libraries=ODCDTA/connection-url
driver-classcom.ibm.as400.access.AS400JDBCDriver/driver-class
idle-timeout-minutes5/idle-timeout-minutes
application-managed-security/
exception-sorter-class-namecom.odc.server.jboss.jdbc.AS400ExceptionSorter/exception-sorter-class-name
/local-tx-datasource
/datasources

and here is the content of the isExceptionFatal method of my exception sorter
public boolean isExceptionFatal(SQLException e)
{
boolean ret = false;

if(e != null  e.getSQLState() != null)
ret = (e.getSQLState().equals(08003) || e.getSQLState().equals(08S01) || e.getSQLState().equals(40003));

if(ret)
getLogger().debug(Connection closed by AS400. SQLState=( + e.getSQLState() + ). Forcing reconnect. Error recieved:\n + e.getMessage());

return ret;
}
Is the above implementation correct?

Ricardo 



__
 This email and any files transmitted with it are CONFIDENTIAL and intended
solely for the use of the individual or entity to which they are addressed.
 Any unauthorized copying, disclosure, or distribution of the material within
this email is strictly forbidden.
 Any views or opinions presented within this e-mail are solely those of the
author and do not necessarily represent those of Odyssey Asset Management
Systems SA unless otherwise specifically stated.
 An electronic message is not binding on its sender. Any message referring to
a binding engagement must be confirmed in writing and duly signed.
 If you have received this email in error, please notify the sender immediately
and delete the original.





RE: [JBoss-user] packaging

2003-09-23 Thread Stephane Nicoll

No,

Each and every ear file has a file called application.xml. This file contains
the modules to deploy

The order in which you specify the modules is the order in which they will be
deployed

Regards,

Stephane

-Original Message-
From:   [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent:   Tue 9/23/2003 14:10
To: jboss mailing list 
Cc: 
Subject:[JBoss-user] packaging
Hi all,

I have a sar file which depends on classes in my ejb jar file. 

I would like to package them both in a single ear file. But, I have read 
somewhere that the default deployment order is:
sar, jar, war

Is this true? Or can I modify this in the deployment descriptor?

Thanks,


Harm de Laat
Informatiefabriek



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



winmail.dat

[JBoss-user] [OT]pls help some advice...legacy code migration to JAVA

2003-09-23 Thread Butt, Dudley
Hi all,

I'm really sitting with a huge issue here. The managers here(who have minimal IT 
experience) have opted to do a code migration of their existing
legacy code written in PICK, a COBOL/QBASIC mix.
There's like hundreds of 100's of lines of code there, and a lot of business rules and 
logic that's been developed over the past 15 - 20 yrs.
We've located a company who has migrated a portion of the code to JAVA using a rule 
based translation engine, but its not optimal Java in the least.
They say they can make it better, if they build in better rules.

Has anyone had any experience with doing legacy code migration? Pls help, many thx...



NOTICE: 

This message contains privileged and confidential information intended 
only for the person or entity to which it is addressed. 
Any review, retransmission, dissemination, copy or other use of, or 
taking of any action in reliance upon this information by persons or 
entities other than the intended recipient, is prohibited. 

If you received this message in error, please notify the sender 
immediately by e-mail, facsimile or telephone and thereafter delete the 
material from any computer. 

The New Africa Capital Group, its subsidiaries or associates do not 
accept liability for any personal views expressed in this message.


---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] packaging

2003-09-23 Thread Bob Cotton
[EMAIL PROTECTED] writes:

 Hi all,

 I have a sar file which depends on classes in my ejb jar file. 

 I would like to package them both in a single ear file. But, I have read 
 somewhere that the default deployment order is:
 sar, jar, war

 Is this true? Or can I modify this in the deployment descriptor?

Another option is to put your common classes from the ejb jar file into a
common jar (in the ear) that both the sar and ejb jar depend on using

Class-Path: common-jar.jar

in MANIFEST.MF

 -Bob



-- 
SynXis Corporation  | [EMAIL PROTECTED]| no .sig today.
1610 Wynkoop, Suite 400 | Ph: (303)595-2511 | 
Denver, CO  80202   | Fax:(303)534-4257 | 



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Default time-out vale for Satefull session beans

2003-09-23 Thread Adrian Brock
On Tue, 2003-09-23 at 07:44, Muraly R wrote:
 Hi Gurus,
 The error I am facing on my web side is:
 ERROR 17/Jul/2003 15:07:36 [Thread-32] (MonWizardData.java:416):
 web.MonPolicyWizardServlet$1 - java.rmi.NoSuchObjectException: Could
 not activate;
 
 The problem is the web is having reference to a Statefull session
 bean, and if I leave the page for more than 30 mins without any action
 and continue to work, this exception is thrown on web side.
 
 What I think as the problem is with activating the Statefull session
 bean.
 
 My Queies:
 1. What is default time-out value for a Satefull session bean in
 JBoss?
 2. If it can be configured to my needs, where can I cahnge it(by
 default out application web timeout is 2 hrs.)?
 

You will find the default timeout in standardjboss.xml.
You can make your own configuration in jboss.xml

Regards,
Adrian

 Cheers
 Muraly
-- 
 
Adrian Brock
Director of Support
Back Office
JBoss Group, LLC 
 



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


RE: [JBoss-user] Jboss Problems

2003-09-23 Thread Stephane Nicoll

Yes, it is. There is only one log4j configuration available in JBoss as it is
a singleton (and thus global to the whole JVM that hosts JBoss).

This is a problem which is quite annoying, I don't know if there is a clear
solution to this

check $JBOSS_HOME/server/default/conf/log4j.xml and the Log4J MBean for more
details

Regards,

Stephane

-Original Message-
From:   Rich Reese [mailto:[EMAIL PROTECTED]
Sent:   Tue 9/23/2003 15:30
To: [EMAIL PROTECTED]
Cc: 
Subject:[JBoss-user] Jboss Problems
Hey All,

I have two WARs (A and B) deployed on the same JBOSS server and each of
them utilize log4j for logging. Each of these wars contains J.jar in the
WEB-INF/lib directory. Classes in J.jar utilize log4j. I assumed that
when These classes logged they would go into the separate log files for
war A and B. 

The problems apears that war A and B are initializing the same log4j
singletons and they are sharing configuraiton. When class j.class1
inside the J.jar jogs to its logger named j.class1, the messages are
always going into log file for the last war initialized regardless of
which war the message originated in.

I was assuming that the two wars would have separate log4j instances
and would not overwrite each other's configuration.  Is my assumption
wrong?

Thanks,
Rich


---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



winmail.dat

Re: [JBoss-user] Oracle connection getting closed

2003-09-23 Thread Adrian Brock
This has been fixed for 3.2.2
The connection close processing does not happen until
end of transaction.

You can turn it off by setting spec compliance to true
on the CachedConnectionManager in transaction-service.xml

Regards,
Adrian

On Tue, 2003-09-23 at 08:17, rajeshnn wrote:
 Hi
 I am trying to connect to connect to an Oracle DataBase from JBoss
 application server .
 I have a servlet and a stateful session bean. I am using Bean managed
 persistence.
 
 I am getting this error while running the application.
 
 
 The following code returns the connection object, and is set globally.
 
 // Session Bean.
 String m_strDefaultDataSource = java:comp/env/jdbc/OracleDS;
 Connection m_dbCon = null;
 public void getConnection()
 {
 
 try{
 InitialContext ic   = new
 InitialContext();
 DataSource m_dsCommmon  = ( DataSource )
 ic.lookup( m_strDefaultDataSource );
 m_dbCon =
 m_dsCommmon.getConnection( );
 }catch( Exception ex ){
 
 ex.printStackTrace();
 }
 }
 
 After bean creation in the servlet, i m getting the following
 error. The connection
 object is created, but it is closed when control is returned to the
 client.
 
 I cannot close ( as said in the error ) the connection as it is used
 for further transaction. 
 The connection is closed in the code after the completion of all the
 transactions for the particular 
 user/session.
 
 pls help
 
 
 INFO  [CachedConnectionManager] Successfully closed a connection for
 you.  Please close
  them yourself:
 [EMAIL PROTECTED]
 java.lang.Exception: Stack Trace
 at
 org.jboss.resource.connectionmanager.CachedConnectionManager.closeAll(CachedConnectionMan
 ager.java:376)
 at
 org.jboss.resource.connectionmanager.CachedConnectionManager.popMetaAwareObject(CachedCon
 nectionManager.java:199)
 at
 org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invokeHome(CachedConnect
 ionInterceptor.java:219)
 at
 org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:88)
 at
 org.jboss.ejb.plugins.AbstractTxInterceptorBMT.invokeNext(AbstractTxInterceptorBMT.java:1
 44)
 at
 org.jboss.ejb.plugins.TxInterceptorBMT.invokeHome(TxInterceptorBMT.java:56)
 at
 org.jboss.ejb.plugins.StatefulSessionInstanceInterceptor.invokeHome(StatefulSessionInstan
 
 
 Rajesh N Nair
 SunTec Business Solution,
 # 311, Nila ,Technopark, Trivandrum,
 Kerala, India. Pin:695581.
 Phone ( +91-471-2700984-95)
 
 
 
  
 
 
 __
 This electronic mail (including any attachment thereto) may be
 confidential and privileged and is intended only for the individual or
 entity named above. Any unauthorized use, printing, copying,
 disclosure or dissemination of this communication may be subject to
 legal restriction or sanction. Accordingly, if you are not the
 intended recipient, please notify the sender by replying to this email
 immediately and delete this email (and any attachment thereto) from
 your computer systemThank You
-- 
 
Adrian Brock
Director of Support
Back Office
JBoss Group, LLC 
 



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Exception Sorter Information

2003-09-23 Thread Adrian Brock
Can you allow me to include your sorter in the jboss distribution?

Regards,
Adrian

On Tue, 2003-09-23 at 10:30, Ricardo Coutinho wrote:
 Hi All,
 
 I have implemented an ExceptionSorter for my AS400 connection.
 
 The reconnect works, eventually, but only after it fails one time to
 recreate the connection.
 
 In other words, when the connection is lost, I get an error when
 reusing the connection. Then after another attempt it manages to
 reconnect again. Is this the normal behaviour?
 
 Here is the configuration of my datasource
 datasources
 local-tx-datasource
 jndi-nameODCDTA/jndi-name
 connection-urljdbc:as400:IP-ADDRESS/ODCDTA;Libraries=ODCDTA/connection-url
 driver-classcom.ibm.as400.access.AS400JDBCDriver/driver-class
 idle-timeout-minutes5/idle-timeout-minutes
 application-managed-security/
 exception-sorter-class-namecom.odc.server.jboss.jdbc.AS400ExceptionSorter/exception-sorter-class-name
 /local-tx-datasource
 /datasources
 
 and here is the content of the isExceptionFatal method of my exception
 sorter
 public boolean isExceptionFatal(SQLException e)
 {
 boolean ret = false;
 
 if(e != null  e.getSQLState() != null)
 ret = (e.getSQLState().equals(08003) ||
 e.getSQLState().equals(08S01) || e.getSQLState().equals(40003));
 
 if(ret)
 getLogger().debug(Connection closed by AS400. SQLState=( +
 e.getSQLState() + ). Forcing reconnect. Error recieved:\n +
 e.getMessage());
 
 return ret;
 }
 Is the above implementation correct?
 
 Ricardo
 
 
 __
  This email and any files transmitted with it are CONFIDENTIAL and
 intended
 solely for the use of the individual or entity to which they are
 addressed.
  Any unauthorized copying, disclosure, or distribution of the
 material within
 this email is strictly forbidden.
  Any views or opinions presented within this e-mail are solely those
 of the
 author and do not necessarily represent those of Odyssey Asset
 Management
 Systems SA unless otherwise specifically stated.
  An electronic message is not binding on its sender.  Any message
 referring to
 a binding engagement must be confirmed in writing and duly signed.
  If you have received this email in error, please notify the sender
 immediately
 and delete the original.
-- 
 
Adrian Brock
Director of Support
Back Office
JBoss Group, LLC 
 



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] error while trying to open a new connection

2003-09-23 Thread rajeshnn
Title: error while trying to open a new connection







Hi All

While trying to create a new connection before closing an existing connection

the following error occured. 

Can anyone pls help..



java.lang.IllegalStateException: Trying to return an unknown connection2! org.jboss.resource.adapter

[EMAIL PROTECTED]

 at org.jboss.resource.connectionmanager.CachedConnectionManager.unregisterConnection(CachedC

onnectionManager.java:275)

 at org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener.connec

tionClosed(TxConnectionManager.java:550)

 at org.jboss.resource.adapter.jdbc.BaseWrapperManagedConnection.closeHandle(BaseWrapperManag

edConnection.java:280)

 at org.jboss.resource.adapter.jdbc.WrappedConnection.close(WrappedConnection.java:127)

 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.resource.connectionmanager.CachedConnectionManager.closeAll(CachedConnectionMan


Rajesh N Nair

SunTec Business Solution,
# 311, Nila ,Technopark, Trivandrum,

Kerala, India. Pin:695581.

Phone ( +91-471-2700984-95)








This electronic mail (including any attachment thereto) may be confidential and privileged and is intended only for the individual or entity named above. Any unauthorized use, printing, copying, disclosure or dissemination of this communication may be subject to legal restriction or sanction. Accordingly, if you are not the intended recipient, please notify the sender by replying to this email immediately and delete this email (and any attachment thereto) from your computer systemThank You

RE: [JBoss-user] Exception Sorter Information

2003-09-23 Thread Ricardo Coutinho
Title: RE: [JBoss-user] Exception Sorter Information





No problem.


However I am not sure if it is functioning correctly. As I said I get an exception from the container on the first re-use of the connection after it was cut and after that it works okay.

For my client application this is obviously not ideal. The reconnect should be transparent to the client.


Any comments?


 Ricardo Coutinho
 Software Engineer
 
 Odyssey Asset Management Systems S.A.
Espace Kirchberg-Eolis 
 26-28, rue Edward Steichen
L-2540 Luxembourg-Kirchberg
 Direct Line:+352 42 60 80 4425
 fax: +352 42 91 92
 http://www.odyssey-group.com



-Original Message-
From: Adrian Brock [mailto:[EMAIL PROTECTED]]
Sent: 23 September 2003 16:33
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Exception Sorter Information



Can you allow me to include your sorter in the jboss distribution?


Regards,
Adrian


On Tue, 2003-09-23 at 10:30, Ricardo Coutinho wrote:
 Hi All,
 
 I have implemented an ExceptionSorter for my AS400 connection.
 
 The reconnect works, eventually, but only after it fails one time to
 recreate the connection.
 
 In other words, when the connection is lost, I get an error when
 reusing the connection. Then after another attempt it manages to
 reconnect again. Is this the normal behaviour?
 
 Here is the configuration of my datasource
 datasources
 local-tx-datasource
 jndi-nameODCDTA/jndi-name
 connection-urljdbc:as400:IP-ADDRESS/ODCDTA;Libraries=ODCDTA/connection-url
 driver-classcom.ibm.as400.access.AS400JDBCDriver/driver-class
 idle-timeout-minutes5/idle-timeout-minutes
 application-managed-security/
 exception-sorter-class-namecom.odc.server.jboss.jdbc.AS400ExceptionSorter/exception-sorter-class-name
 /local-tx-datasource
 /datasources
 
 and here is the content of the isExceptionFatal method of my exception
 sorter
 public boolean isExceptionFatal(SQLException e)
 {
 boolean ret = false;
 
 if(e != null  e.getSQLState() != null)
 ret = (e.getSQLState().equals(08003) ||
 e.getSQLState().equals(08S01) || e.getSQLState().equals(40003));
 
 if(ret)
 getLogger().debug(Connection closed by AS400. SQLState=( +
 e.getSQLState() + ). Forcing reconnect. Error recieved:\n +
 e.getMessage());
 
 return ret;
 }
 Is the above implementation correct?
 
 Ricardo
 
 
 __
  This email and any files transmitted with it are CONFIDENTIAL and
 intended
 solely for the use of the individual or entity to which they are
 addressed.
  Any unauthorized copying, disclosure, or distribution of the
 material within
 this email is strictly forbidden.
  Any views or opinions presented within this e-mail are solely those
 of the
 author and do not necessarily represent those of Odyssey Asset
 Management
 Systems SA unless otherwise specifically stated.
  An electronic message is not binding on its sender. Any message
 referring to
 a binding engagement must be confirmed in writing and duly signed.
  If you have received this email in error, please notify the sender
 immediately
 and delete the original.
-- 
 
Adrian Brock
Director of Support
Back Office
JBoss Group, LLC 
 




---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user
__
 This email and any files transmitted with it are CONFIDENTIAL and intended
solely for the use of the individual or entity to which they are addressed.
 Any unauthorized copying, disclosure, or distribution of the material within
this email is strictly forbidden.
 Any views or opinions presented within this e-mail are solely those of the
author and do not necessarily represent those of Odyssey Asset Management
Systems SA unless otherwise specifically stated.
 An electronic message is not binding on its sender. Any message referring to
a binding engagement must be confirmed in writing and duly signed.
 If you have received this email in error, please notify the sender immediately
and delete the original.





RE: [JBoss-user] Exception Sorter Information

2003-09-23 Thread Adrian Brock
On Tue, 2003-09-23 at 16:05, Ricardo Coutinho wrote:
 No problem.
 
 However I am not sure if it is functioning correctly. As I said I get
 an exception from the container on the first re-use of the connection
 after it was cut and after that it works okay.
 
 For my client application this is obviously not ideal. The reconnect
 should be transparent to the client.
 

The connection is not being reused, it is a different connection.

If you want transparency see my other comments about validity checking.
The sorter just handles destruction AFTER a failure.

Transparency is not possible in general. A connection can fail
halfway through a transaction. The only option is to catch the
rollback and retry.

Regards,
Adrian

 Any comments?
 
  Ricardo Coutinho
  Software Engineer
  
  Odyssey Asset Management Systems S.A.
 Espace Kirchberg-Eolis 
  26-28, rue Edward Steichen
 L-2540  Luxembourg-Kirchberg
  Direct Line:+352 42 60 80 4425
  fax: +352 42 91 92
  http://www.odyssey-group.com
 
 
 -Original Message-
 From: Adrian Brock [mailto:[EMAIL PROTECTED]
 Sent: 23 September 2003 16:33
 To: [EMAIL PROTECTED]
 Subject: Re: [JBoss-user] Exception Sorter Information
 
 
 Can you allow me to include your sorter in the jboss distribution?
 
 Regards,
 Adrian
 
 On Tue, 2003-09-23 at 10:30, Ricardo Coutinho wrote:
  Hi All,
  
  I have implemented an ExceptionSorter for my AS400 connection.
  
  The reconnect works, eventually, but only after it fails one time to
  recreate the connection.
  
  In other words, when the connection is lost, I get an error when
  reusing the connection. Then after another attempt it manages to
  reconnect again. Is this the normal behaviour?
  
  Here is the configuration of my datasource
  datasources
  local-tx-datasource
  jndi-nameODCDTA/jndi-name
 
 connection-urljdbc:as400:IP-ADDRESS/ODCDTA;Libraries=ODCDTA/connection-url
  driver-classcom.ibm.as400.access.AS400JDBCDriver/driver-class
  idle-timeout-minutes5/idle-timeout-minutes
  application-managed-security/
 
 exception-sorter-class-namecom.odc.server.jboss.jdbc.AS400ExceptionSorter/exception-sorter-class-name
  /local-tx-datasource
  /datasources
  
  and here is the content of the isExceptionFatal method of my
 exception
  sorter
  public boolean isExceptionFatal(SQLException e)
  {
  boolean ret = false;
  
  if(e != null  e.getSQLState() != null)
  ret = (e.getSQLState().equals(08003) ||
  e.getSQLState().equals(08S01) || e.getSQLState().equals(40003));
  
  if(ret)
  getLogger().debug(Connection closed by AS400. SQLState=( +
  e.getSQLState() + ). Forcing reconnect. Error recieved:\n +
  e.getMessage());
  
  return ret;
  }
  Is the above implementation correct?
  
  Ricardo
  
  
 
 __
   This email and any files transmitted with it are CONFIDENTIAL and
  intended
  solely for the use of the individual or entity to which they are
  addressed.
   Any unauthorized copying, disclosure, or distribution of the
  material within
  this email is strictly forbidden.
   Any views or opinions presented within this e-mail are solely
 those
  of the
  author and do not necessarily represent those of Odyssey Asset
  Management
  Systems SA unless otherwise specifically stated.
   An electronic message is not binding on its sender.  Any message
  referring to
  a binding engagement must be confirmed in writing and duly signed.
   If you have received this email in error, please notify the sender
  immediately
  and delete the original.
 -- 
  
 Adrian Brock
 Director of Support
 Back Office
 JBoss Group, LLC 
  
 
 
 
 ---
 This sf.net email is sponsored by:ThinkGeek
 Welcome to geek heaven.
 http://thinkgeek.com/sf
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user
 __
  This email and any files transmitted with it are CONFIDENTIAL and
 intended
 solely for the use of the individual or entity to which they are
 addressed.
  Any unauthorized copying, disclosure, or distribution of the
 material within
 this email is strictly forbidden.
  Any views or opinions presented within this e-mail are solely those
 of the
 author and do not necessarily represent those of Odyssey Asset
 Management
 Systems SA unless otherwise specifically stated.
  An electronic message is not binding on its sender.  Any message
 referring to
 a binding engagement must be confirmed in writing and duly signed.
  If you have received this email in error, please notify the sender
 immediately
 and delete the original.
-- 
 
Adrian Brock
Director of Support
Back Office
JBoss Group, LLC 
 




RE: [JBoss-user] Exception Sorter Information

2003-09-23 Thread Sacha Labourey
Title: Message



Adrian is the best AS400 programmer in UK, so don't worry 
;)

  
  -Original Message-From: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED] On Behalf Of Ricardo 
  CoutinhoSent: mardi, 23. septembre 2003 17:06To: 
  [EMAIL PROTECTED]Subject: RE: [JBoss-user] Exception 
  Sorter Information
  No problem. 
  However I am not sure if it is functioning correctly. As I 
  said I get an exception from the container on the first re-use of the 
  connection after it was cut and after that it works okay.
  For my client application this is obviously not ideal. The 
  reconnect should be transparent to the client. 
  Any comments? 
   Ricardo Coutinho  Software 
  Engineer  
    
  Odyssey Asset Management Systems S.A. Espace 
  Kirchberg-Eolis  26-28, rue Edward Steichen 
  L-2540 Luxembourg-Kirchberg  Direct Line:+352 42 60 80 4425  fax: 
  +352 42 91 92  http://www.odyssey-group.com 
  -Original Message- From: 
  Adrian Brock [mailto:[EMAIL PROTECTED]] Sent: 23 September 2003 16:33 To: 
  [EMAIL PROTECTED] Subject: Re: 
  [JBoss-user] Exception Sorter Information 
  Can you allow me to include your sorter in the jboss 
  distribution? 
  Regards, Adrian 
  On Tue, 2003-09-23 at 10:30, Ricardo Coutinho wrote: 
   Hi All,   I have implemented an ExceptionSorter for my AS400 
  connection.   The 
  reconnect works, eventually, but only after it fails one time to 
   recreate the connection.  
   In other words, when the connection is lost, I 
  get an error when  reusing the connection. Then 
  after another attempt it manages to  reconnect 
  again. Is this the normal behaviour?  
   Here is the configuration of my datasource 
   datasources  
  local-tx-datasource  
  jndi-nameODCDTA/jndi-name  
  connection-urljdbc:as400:IP-ADDRESS/ODCDTA;Libraries=ODCDTA/connection-url 
   
  driver-classcom.ibm.as400.access.AS400JDBCDriver/driver-class 
   
  idle-timeout-minutes5/idle-timeout-minutes  application-managed-security/  
  exception-sorter-class-namecom.odc.server.jboss.jdbc.AS400ExceptionSorter/exception-sorter-class-name 
   /local-tx-datasource  /datasources   and here is the content of the isExceptionFatal method of my 
  exception  sorter  
  public boolean isExceptionFatal(SQLException e)  
  {  boolean ret = false;   if(e != null  
  e.getSQLState() != null)  ret = 
  (e.getSQLState().equals("08003") ||  
  e.getSQLState().equals("08S01") || e.getSQLState().equals("40003")); 
if(ret)  getLogger().debug("Connection closed by AS400. SQLState=(" 
  +  e.getSQLState() + "). Forcing reconnect. Error 
  recieved:\n" +  e.getMessage());   return ret;  }  Is the above implementation 
  correct?   
  Ricardo   
   
  __ 
This email and any files transmitted with it are 
  CONFIDENTIAL and  intended  solely for the use of the individual or entity to which they 
  are  addressed.   Any 
  unauthorized copying, disclosure, or distribution of the  material within  this email is 
  strictly forbidden.   Any views or opinions 
  presented within this e-mail are solely those  of 
  the  author and do not necessarily represent those 
  of Odyssey Asset  Management  Systems SA unless otherwise specifically stated.   An electronic message is not binding on its sender. Any 
  message  referring to  
  a binding engagement must be confirmed in writing and duly signed. 
If you have received this email in error, please 
  notify the sender  immediately  and delete the original. -- 
   Adrian Brock Director of Support 
  Back Office JBoss Group, LLC 
   
  --- 
  This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user 
  __ 
   This 
  email and any files transmitted with it are CONFIDENTIAL and 
  intendedsolely for the use of the individual or entity to which they are 
  addressed.  
  Any unauthorized copying, disclosure, or distribution of 
  the material withinthis email is strictly forbidden.  Any views or 
  opinions presented within this e-mail are solely those of theauthor and do 
  not necessarily represent those of Odyssey Asset ManagementSystems SA 
  unless otherwise specifically stated.  An electronic message is not 
  binding on its sender. Any message referring toa binding engagement 
  must be confirmed in writing and duly signed.  If you have received this email 
  in error, please notify the sender immediatelyand delete the 
  original. 


Re: [JBoss-user] error while trying to open a new connection

2003-09-23 Thread Adrian Brock
You'll have to provide some more information.
It says you are closing a connection that it does not know about
were there previous errors?

There has been some cleanup of the error checking in the 3.2.2RC 
releases can you check if you still have the problem with 3.2.2RC4?

This actual error shouldn't cause any problems it is a sanity
check in the internal datastructure tidyup code. 
I would expect the connection has already 
been tidied up by a previous error?

Regards,
Adrian

On Tue, 2003-09-23 at 15:46, rajeshnn wrote:
 Hi All
 While trying to create a new connection before closing an existing
 connection
 the following error  occured. 
 Can anyone pls help..
 
 
 java.lang.IllegalStateException: Trying to return an unknown
 connection2! org.jboss.resource.adapter
 [EMAIL PROTECTED]
 at
 org.jboss.resource.connectionmanager.CachedConnectionManager.unregisterConnection(CachedC
 onnectionManager.java:275)
 at
 org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener.connec
 tionClosed(TxConnectionManager.java:550)
 at
 org.jboss.resource.adapter.jdbc.BaseWrapperManagedConnection.closeHandle(BaseWrapperManag
 edConnection.java:280)
 at
 org.jboss.resource.adapter.jdbc.WrappedConnection.close(WrappedConnection.java:127)
 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.resource.connectionmanager.CachedConnectionManager.closeAll(CachedConnectionMan
 
 Rajesh N Nair
 SunTec Business Solution,
 # 311, Nila ,Technopark, Trivandrum,
 Kerala, India. Pin:695581.
 Phone ( +91-471-2700984-95)
 
 
 
  
 
 
 __
 This electronic mail (including any attachment thereto) may be
 confidential and privileged and is intended only for the individual or
 entity named above. Any unauthorized use, printing, copying,
 disclosure or dissemination of this communication may be subject to
 legal restriction or sanction. Accordingly, if you are not the
 intended recipient, please notify the sender by replying to this email
 immediately and delete this email (and any attachment thereto) from
 your computer systemThank You
-- 
 
Adrian Brock
Director of Support
Back Office
JBoss Group, LLC 
 



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


RE: [JBoss-user] Exception Sorter Information

2003-09-23 Thread Adrian Brock
On Tue, 2003-09-23 at 17:18, Ricardo Coutinho wrote:
 Hi Adrian,
 
 It is likely there are other connections still in the pool that are
 also 
 invalid if the problem is due a temporary outage. 
 
 I understand the underlying connection being closed when I return
 true, it make sense. What I don't understand is why other connections
 in the pool don't re-request the underlying connection. Is this 'by
 design'?
 

Because JBoss does not know they are invalid. Only when they are
used will the problem be discovered. Hence the valid connection
checking:

 Regarding the check-valid-connection-sql tag. I assume I add that to
 the xxx-ds.xml file? If so then Jboss don't like it much when I added
 the following to the xml file: check-valid-connection-sqlselect
 piroot from odcdta/macpivo0 where
 piroot='xxxyyyzzz'/check-valid-connection-sql
 
 I get loads of the following:
 ..
 18:14:23,013 INFO  [TxConnectionManager$TxConnectionEventListener]
 Unregistered handle that was not registered! null for
 managedConnection:
 [EMAIL PROTECTED]
 

The SQL failed (3.2.2 dumps the SQLException so you can see why)

 18:13:22,107 WARN  [JBossManagedConnectionPool] Destroying connection
 that could not be successfully matched:
 [EMAIL PROTECTED]
 

The connection is destroyed because of the validity check failure.

 18:13:22,107 INFO  [JBossManagedConnectionPool] Exception destroying
 ManagedConnection
 ..
 
Regards,
Adrian

 I am using Jboss 3.2.1
 
 
 Ricardo
 
  Ricardo Coutinho
  Software Engineer
  
  Odyssey Asset Management Systems S.A.
 Espace Kirchberg-Eolis 
  26-28, rue Edward Steichen
 L-2540  Luxembourg-Kirchberg
  Direct Line:+352 42 60 80 4425
  fax: +352 42 91 92
  http://www.odyssey-group.com
 
 
 -Original Message-
 From: Adrian Brock [mailto:[EMAIL PROTECTED]
 Sent: 23 September 2003 16:26
 To: [EMAIL PROTECTED]
 Subject: Re: [JBoss-user] Exception Sorter Information
 
 
 The ExceptionSorter returning true causes the underlying connection
 to be closed, but only that connection.
 It is likely there are other connections still in the pool
 that are also invalid if the problem is due a temporary outage. 
 You won't find this out until you try to use them.
 
 You can supply a check-valid-connection-sql that jboss runs
 before handing out a connection from the pool.
 e.g. select 1 from a_fast_access_table
 
 3.2.2RC4 includes valid-connection-checker-class-name that can
 implement faster mechanisms than running sql statements.
 
 Regards,
 Adrian
 
 On Tue, 2003-09-23 at 10:30, Ricardo Coutinho wrote:
  Hi All,
  
  I have implemented an ExceptionSorter for my AS400 connection.
  
  The reconnect works, eventually, but only after it fails one time to
  recreate the connection.
  
  In other words, when the connection is lost, I get an error when
  reusing the connection. Then after another attempt it manages to
  reconnect again. Is this the normal behaviour?
  
  Here is the configuration of my datasource
  datasources
  local-tx-datasource
  jndi-nameODCDTA/jndi-name
 
 connection-urljdbc:as400:IP-ADDRESS/ODCDTA;Libraries=ODCDTA/connection-url
  driver-classcom.ibm.as400.access.AS400JDBCDriver/driver-class
  idle-timeout-minutes5/idle-timeout-minutes
  application-managed-security/
 
 exception-sorter-class-namecom.odc.server.jboss.jdbc.AS400ExceptionSorter/exception-sorter-class-name
  /local-tx-datasource
  /datasources
  
  and here is the content of the isExceptionFatal method of my
 exception
  sorter
  public boolean isExceptionFatal(SQLException e)
  {
  boolean ret = false;
  
  if(e != null  e.getSQLState() != null)
  ret = (e.getSQLState().equals(08003) ||
  e.getSQLState().equals(08S01) || e.getSQLState().equals(40003));
  
  if(ret)
  getLogger().debug(Connection closed by AS400. SQLState=( +
  e.getSQLState() + ). Forcing reconnect. Error recieved:\n +
  e.getMessage());
  
  return ret;
  }
  Is the above implementation correct?
  
  Ricardo
  
  
 
 __
   This email and any files transmitted with it are CONFIDENTIAL and
  intended
  solely for the use of the individual or entity to which they are
  addressed.
   Any unauthorized copying, disclosure, or distribution of the
  material within
  this email is strictly forbidden.
   Any views or opinions presented within this e-mail are solely
 those
  of the
  author and do not necessarily represent those of Odyssey Asset
  Management
  Systems SA unless otherwise specifically stated.
   An electronic message is not binding on its sender.  Any message
  referring to
  a binding engagement must be confirmed in writing and duly signed.
   If you have received this email in error, please notify the sender
  immediately
  and delete the original.
 -- 
  
 Adrian Brock
 Director of Support
 Back Office
 JBoss Group, LLC 
  
 
 
 
 

[JBoss-user] JBoss-net wsdl

2003-09-23 Thread Simone Milani
Hi,

I am trying to get the generated wsdl to use the host name instead of
localhost.
?xml version=1.0 encoding=UTF-8 ?
- wsdl:definitions
targetNamespace=http://localhost:8080/jboss-net/services/reportserver;
xmlns=http://schemas.xmlsoap.org/wsdl/;
xmlns:apachesoap=http://xml.apache.org/xml-soap;
xmlns:impl=http://localhost:8080/jboss-net/services/reportserver;
xmlns:intf=http://localhost:8080/jboss-net/services/reportserver;
xmlns:soapenc=http://schemas.xmlsoap.org/soap/encoding/;
xmlns:tns1=http://net.jboss.org/jmx;
xmlns:wsdl=http://schemas.xmlsoap.org/wsdl/;
xmlns:wsdlsoap=http://schemas.xmlsoap.org/wsdl/soap/;
xmlns:xsd=http://www.w3.org/2001/XMLSchema;
- wsdl:types

 Any pointer in the right direction?

Thanks

Simone


---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] How do you configure JBoss/Jetty for Dav/PROPFIND?

2003-09-23 Thread Jim Brownfield

I've been unable to get the TrivalDavFilter to work. I copied netboot.war to
the deploy directory, but the org.mortbay.http.handler.ResourceHandler class
rejects the PROPFIND with a 405 error before the filter ever gets a chance
to handle the request.

How is Jetty configured to allow this filter to do its work?

Thanks in advance. 

-- 
Jim Brownfield
[EMAIL PROTECTED]
Radical System Solutions, Inc. 



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] JBossQL - LIMIIT OFFSET

2003-09-23 Thread Stephane Nicoll
Hello list,

apparently LIMIT and OFFSET clauses in JBossQL only accepter parameters (?x)
and not fixed values. Can you confirm?

If not could you provide me an example where fixed values are used (Xdoclet
would be great)

Regards,

Stephane
winmail.dat

[JBoss-user] CMP, 3.2.2RC4, auto-increment

2003-09-23 Thread Dennis Gesker
Could someone post a simple (complete) CMP example using Xdoclet  
postgresql-fetch-seq where by the database auto-increments the PK? I've 
been struggleing with this for a few hours and can't seem to get my EJBs 
to behave properly using the correct combination of @ejb and @jboss tags.

JBoss 3.2.2RC4 from SF
Xdoclet 1.2b3
Ant 1.5.4


---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] specifying a variable in xdoclet

2003-09-23 Thread Joachim \(PROGS\)
Maybe you could consider first processing your source files with Velocity
and then calling Xdoclet.

Joachim

- Original Message -
From: Matthew Hixson [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, September 23, 2003 2:19 AM
Subject: [JBoss-user] specifying a variable in xdoclet


 I would like to be able to deploy my webapp in both Resin and JBoss.
 One problem I have is keeping finders in sync with both versions.
 Resin allows order by in its EJBQL while JBoss requires that the
 finders are specified in a JBoss specific deployment descriptor as
 JBossQL.  I'd like to do something like the following with xdoclet so
 that I can change the finder in one place and have it sent to both app
 servers' proper deployment descriptors.

   * $description = This finder finds some stuff.
   * $signature=java.util.Collection findStuff(java.lang.String value)
   * $query = select object(o) from foo o order by o.bar
   * @ejb.finder
   * signature=$signature
   * query=$query
   * @jboss.query
   * description=$description
   * signature=$signature
   * query=$query

   Thanks,
 -M@



 ---
 This sf.net email is sponsored by:ThinkGeek
 Welcome to geek heaven.
 http://thinkgeek.com/sf
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user






---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] CMP, 3.2.2RC4, auto-increment

2003-09-23 Thread Matthew Hixson
You'll want to put this at the top of your entity bean.

 * @jboss.entity-command
 * name=postgresql-fetch-seq
and then for your primary key getter:

/**
 * @ejb.interface-method
 * @ejb.pk-field
 * @jboss.persistence
 * auto-increment=true
 * @ejb.persistence
 * column-name=phone_id
 *
 * @return Integer
 */
  public abstract Integer getPhoneId();
 -M@

On Tuesday, September 23, 2003, at 04:09  PM, Dennis Gesker wrote:

Could someone post a simple (complete) CMP example using Xdoclet  
postgresql-fetch-seq where by the database auto-increments the PK? 
I've been struggleing with this for a few hours and can't seem to get 
my EJBs to behave properly using the correct combination of @ejb and 
@jboss tags.

JBoss 3.2.2RC4 from SF
Xdoclet 1.2b3
Ant 1.5.4


---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] JBossQL - LIMIIT OFFSET

2003-09-23 Thread Matthew Hixson
Hi Stephane, that is correct.  Hardcoded values are not allowed in 
LIMIT or OFFSET clauses up to and including 3.2.2RC3, as far as I know.
  -M@

On Tuesday, September 23, 2003, at 03:39  PM, Stephane Nicoll wrote:

Hello list,

apparently LIMIT and OFFSET clauses in JBossQL only accepter 
parameters (?x)
and not fixed values. Can you confirm?

If not could you provide me an example where fixed values are used 
(Xdoclet
would be great)

Regards,

Stephane
winmail.dat


---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user