[JBoss-user] UUID problem - cool link

2001-06-09 Thread Alexander Temerev

http://sourceforge.net/projects/ejbutils - solves all problems with unique
object ID generation


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Authentication problems in JBoss-2.2.2/Tomcat-3.2.2 (env not bound)

2001-06-09 Thread Michael P. McCutcheon

I'm also having problems getting JDBC authentication to work with the new
download.

Given the URL below, what method of authentication are we to use?

JDBC Authentication with Tomcat, or DatabaseServerLoginModule
authentication?

I'm a little confused...do the two cooperate or are they unrelated?

Mike

- Original Message -
From: "Scott M Stark" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, June 08, 2001 10:05 PM
Subject: Re: [JBoss-user] Authentication problems in
JBoss-2.2.2/Tomcat-3.2.2 (env not bound)


> The 2.2.2 bundle uses the JBoss security manager. You have to define the
> security-domain in a jboss-web.xml descriptor. See the JAAS tutorial:
> http://www.jboss.org/documentation/HTML/ch11s83.html
>
> - Original Message -
> From: "Greg Merrill" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, June 08, 2001 6:29 PM
> Subject: [JBoss-user] Authentication problems in JBoss-2.2.2/Tomcat-3.2.2
(env not bound)
>
>
> > I recently downloaded JBoss-2.2.2 w/bundled
> > Tomcat-3.2.1. I am running it on Win98.
> >
> > When I try to run the Tomcat sample jsp called
> > "security" (this sample performs some basic user
> > authentication) I get the following message in my
> > JBoss server window:
> >
> > [EmbeddedTomcatSX] Error during authenticate
> > [EmbeddedTomcatSX] javax.naming.NameNotFoundException:
> > env not bound
>
>
>
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] jBoss 2.0 Final: Has anybody the original zip-file??

2001-06-09 Thread Daniel Schaller

Hello,

for some tests I need the original zip-file of jBoss 2.0 FINAL.

Have anybody of you have that file? 
If you have it, please send it to me or send me a link where I can get it.
The link on jboss.org is dead!

Thank you a lot

so long...

Daniel Schaller



___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] jBoss 2.0 Final: Has anybody the original zip-file??

2001-06-09 Thread Sebastien Alborini

Hi, 

it is still in cvs:
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/jboss/binaries/

Sebastien

Daniel Schaller wrote:
> 
> Hello,
> 
> for some tests I need the original zip-file of jBoss 2.0 FINAL.
> 
> Have anybody of you have that file?
> If you have it, please send it to me or send me a link where I can get it.
> The link on jboss.org is dead!
> 
> Thank you a lot
> 
> so long...
> 
> Daniel Schaller
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user

___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] JBoss 2.2.2 / Jetty 3.1RC5 package available

2001-06-09 Thread Przemyslaw Sztoch

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED]]On Behalf Of Daren 
> R. Sefcik
> Sent: Thursday, June 07, 2001 6:58 PM
> To: jboss-user
> Subject: Re: [JBoss-user] JBoss 2.2.2 / Jetty 3.1RC5 package available
> 
> 
> On Wed, 6 Jun 2001, Sebastien Alborini wrote:
> I installed it (all default files) and just loading the
> default page I get:
> 
> [Jetty] null null null
> 
> java.lang.NullPointerException
> (..cut.)
> Daren

We have problem with JBoss 2.2.2 / Jetty 3.1RC5 and 3 x null, too.
I try JDK 1.3 and JDK 1.3.1.
My platform is Debian Linux 2.2.19 on Intel 2xPIII866.
Previous version of JBoss works perfectly! (for example JBoss 2.2.1)

---
Przemyslaw Sztoch, LTC Sp. z o.o.
psztoch/at/finn.pl, http://www.finn.pl, +48 (42) 684-98-91

___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] OutOfMemoryError

2001-06-09 Thread Lachezar Dobrev



   Well... Memory leak in JAVA??? 
Hopefully no, BUT!
   I have managed to get a memory leak 
in the JVM :)))
   Most of you know what a singletone 
means :) A class, that has a static member variable pointing to the one and only 
object of that class... Recently I got a class, that had a nonstatic pointer to 
itself (copy of the "this"). This way the GC could not free the resources, that 
were reserved for these classes. Don't know why, but that just may be a miss in 
the JVM. So whenever I created an instance of that class I got it FOR LIFE. 
Quite shortly the machine ran out of memory (it was a big damn 
class).
   So... The main (and the only I've 
seen) reason for memory leaks in Java are the self pointing 
objects:
 
   public class 
SelfPointer{
 
 SelfPointer  
MemoryLeaker;
 
 public void 
SelfPointerInit(){
   MemoryLeaker 
= this;
   // If you 
don't clean the MemoryLeaker to null,
   // than 
this class is not going to be GC-ed.
 }
   }
 
   However this depends on the JVM. 
Using the classic or Server JVM I think fixes the problem :)
 
   Lachezar
 
> > "AF" == Allen Fogleson 
<[EMAIL PROTECTED]> 
writes:> > AF> in the jvms just because a system has memory 
does not mean that> AF> the JVM will take it. Most jvm's start with 
some standard min and> AF> max stack size. and when that max stack 
size is reached you get> AF> the java.lang.OutOfMemoryError.  You 
can increase your stack size> AF> with the standard java -Xms1M 
-Xmx64M where 1 and 64 are the min> AF> and max stack sizes to use in 
mb (in this case).> > Thank you Al.> > What worries 
me is that there is very little activity on that box and> I wonder why it 
actually ran out of resources.  My main concern here> is that I may 
have done something which caused a leak in one of my> beans.> 
> -- >   Nicolai P Guba    http://www.gnu.org http://www.frontwire.com> 
    
mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]> 
    
GSM: +44 (0)7909 960 751   DDI: +44 (0)20 7368 9708> > 
___> JBoss-user mailing 
list> [EMAIL PROTECTED]> http://lists.sourceforge.net/lists/listinfo/jboss-user> 


Re: [JBoss-user] ./conf directory location

2001-06-09 Thread Lachezar Dobrev



   
I'm glad it work with you... However...
   Julian Gosnell is also right to want 
different configurations per-user.
   Currently I'm in no position to try 
anything under any Linux (damn WinDoze).
   But... I see, that there is a 
parameter to the JBoss, that points which configuration should it 
use...
 
   
   java -server $JAXP 
-classpath $JBOSS_CLASSPATH org.jboss.Main $@
   
 
   If there are no params JBoss uses 
conf default.
   My idea is:
   in the conf directory create a 
symbolic link for every user, that you wish to be able to run:
   /usr/local/JBoss/conf/user1 -> 
/home/user1/.jboss_conf

   /usr/local/JBoss/conf/user2 -> 
/home/user2/.jboss_conf

   /usr/local/JBoss/conf/user3 -> 
/home/user3/.jboss_conf
   /usr/local/JBoss/conf/root  
-> /tmp/some_dead_end_directory_with_no_read
 
   Then every user can configure JBoss 
in his .jboss_conf directory.
   Lastly one can create a copy of the 
RUN.SH script, that does something like this:
 

   
   java -server $JAXP 
-classpath $JBOSS_CLASSPATH org.jboss.Main $USER
   
 
 
   
   java -server $JAXP 
-classpath $JBOSS_CLASSPATH org.jboss.Main $USER_NAME
   
 
   If user1 runs this script it will run as follows:
 

   java -server $JAXP 
-classpath $JBOSS_CLASSPATH org.jboss.Main user1
 
   And will get the confs from the /home/user1/.jboss_conf 
directory as stated by the symbolic link.
 
   Twingling with the write permissions is also a good idea. Take 
in mind, the read and write permissions for the files in all the conf 
directories.
 
   I'm writing by memory. May have some mistakes.
 
   I also can't test this!!!
   Please... If you can test, than DO!
 
   This is NOT a secure script... A user can set his ENVIRONMENT 
$USER to root and run the script. Bear that in mind.
 
   Maybe this will work???
   Please notify me, if this method does the job.
 
   May the shade of the tree strengthen you all...
   Lachezar
 

  Thanks Lachezar,
   
  sometime the simplest things are the right 
  one...:-)
   
  Gianni
  


Re: [JBoss-user] OutOfMemoryError

2001-06-09 Thread Nicolai P Guba

> "DW" == David Ward <[EMAIL PROTECTED]> writes:

DW> FYI, tag pooling has been added in Tomcat 3.3, but disabled by
DW> default.  To enable it, add  to your
DW> app's  section in your $TOMCAT_HOME/conf/server.xml file.

Innteresting

DW> Sorry for the blabbing; thought it might be interesting.  David

You are excused .  Since we are already blabbing, you wouldn't
have an answer to my primary key problem with CMP Beans I posted
earlier on?

-- 
  Nicolai P Gubahttp://www.gnu.org http://www.frontwire.com
mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
GSM: +44 (0)7909 960 751   DDI: +44 (0)20 7368 9708

___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Communication link failure after 12 hours of inactivity

2001-06-09 Thread Nicolai P Guba

This is a regular thing with the mySQL connection pool.  Why?

Driver:  mm.mysql-2.0.4


[CAMS] Resource 'org.opentools.minerva.jdbc.xa.wrapper.XAResourceImpl@4a9a2d' enlisted 
for 'org.opentools.minerva.jdbc.xa.wrapper.XAConnectionImpl@38d6f7'.
[CAMS] Pool CAMS [1/1/20] gave out pooled object: 
org.opentools.minerva.jdbc.xa.wrapper.XAConnectionImpl@38d6f7
[Company] XAException: tx=XidImpl [FormatId=257, GlobalId=raphael.frontwire.com//0, 
BranchQual=] errorCode=XA_UNKNOWN(0)
[Company] javax.transaction.xa.XAException: Rollback failed: Communication link 
failure: java.io.IOException
[Company]   at 
org.opentools.minerva.jdbc.xa.wrapper.XAResourceImpl.rollback(XAResourceImpl.java:219)
[Company]   at org.jboss.tm.TxCapsule.rollbackResources(TxCapsule.java:1557)
[Company]   at org.jboss.tm.TxCapsule.rollback(TxCapsule.java:412)
[Company]   at org.jboss.tm.TransactionImpl.rollback(TransactionImpl.java:88)
[Company]   at 
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:307)
[Company]   at 
org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java:86)
[Company]   at 
org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:164)


 jboss.jcml
 jboss.conf
 ejb-jar.xml
 jaws.xml
 jboss.xml



-- 
  Nicolai P Gubahttp://www.gnu.org http://www.frontwire.com
mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
GSM: +44 (0)7909 960 751   DDI: +44 (0)20 7368 9708



[JBoss-user] Connection problem

2001-06-09 Thread Marcel Schepers

Hello,

What happens when a session bean uses a database
connection, it gets the connection from a connection pool, creates a
prepared statement, retrieves all kinds of things, closes the prepared
statement and returns. In other words, the session bean does not close
the connection. 

At the moment I am facing that situation. I have a collection of jsp
files, some regular Java beans acting as proxy for some ejb's. The
website starts well, but after a while I get the following error
message: '[NewsCollection] java.sql.SQLException: Communication link
failure: java.net.SocketException' (NewsCollection is a session bean
who uses a java.sql.Connection it gets from a
javax.sql.DataSource. NewsCollection is the one that does not close
the connection). I am pretty sure the errors are the result of never
ever closing a connection. A java.sql.Connection instance does not
close the connection when the local variable runs out of scope or does
it? At least not when the connection originates from a connection
pool. Am I right or am I missing something?

Have a nice weekend,
Marcel



___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Threads in jboss

2001-06-09 Thread Tbone

Hi, everbody

is there a way to program threads in jboss?

the problem is that i need to notify may clients ( users ) on an time based
approach ( 2 days )  when they forget fill in some data is there an way to
do this?

the only solution i have at the moment is with an servlet that loaded on
startup.
that starts an thread.
that checks the overdue dataforms in an registration system

any idea is welcome

greetz tbone



___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] example ant file for creating an EAR file

2001-06-09 Thread Marcel Schepers

Hello,

Besides the connection troubles mentioned in an earlier post I have
one other thing on my mind. While investigating the connection problem
I found out that I am not deploying my web application in a correct
manner. For the record, I am using JBoss with Tomcat embedded. The
deal seems to be to create one ear file and let JBoss/Tomcat sort it
out. The creation of one EAR file is very confusing for me. For
instance, do need to create at least two jar files? One containing
only EJB's and one containing the regular java classes who act as
proxy for the EJB's. And futhermore, I would like to automate the
creation of the .ear file using Ant. Has anyone done that? And if so,
could you give me some guidelines on how to setup the directory
structure? Perhaps some Ant example code?

Thanks,
Marcel


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Threads in jboss

2001-06-09 Thread Keerthi Panneer

you can have your clients subscribed to a TOPIC and have them notified via 
JMS


>From: "Tbone" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: <[EMAIL PROTECTED]>
>Subject: [JBoss-user] Threads in jboss
>Date: Sat, 9 Jun 2001 14:17:09 +0200
>
>Hi, everbody
>
>is there a way to program threads in jboss?
>
>the problem is that i need to notify may clients ( users ) on an time based
>approach ( 2 days )  when they forget fill in some data is there an way to
>do this?
>
>the only solution i have at the moment is with an servlet that loaded on
>startup.
>that starts an thread.
>that checks the overdue dataforms in an registration system
>
>any idea is welcome
>
>greetz tbone
>
>
>
>___
>JBoss-user mailing list
>[EMAIL PROTECTED]
>http://lists.sourceforge.net/lists/listinfo/jboss-user

_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] Threads in jboss

2001-06-09 Thread Sacha Labourey

Hello,

For this purpose you may implement a MBEAN. MBEANs are allowed to access
system resources, create threads, act as socket servers, ... and... use even
use EJB ;) !

Furthermore, if my memory serves, I think a timer MBEAN already exists in
the JBoss distribution.

Check the distribution or search the archive, I think people already spoke
about this timer MBEAN previously.

Cheers,



Sacha



> -Message d'origine-
> Hi, everbody
>
> is there a way to program threads in jboss?
>
> the problem is that i need to notify may clients ( users ) on an
> time based
> approach ( 2 days )  when they forget fill in some data is there an way to
> do this?
>
> the only solution i have at the moment is with an servlet that loaded on
> startup.
> that starts an thread.
> that checks the overdue dataforms in an registration system


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Connection problem

2001-06-09 Thread David Jencks

Hi,
You need to call close() on your connection when you are done with it.

non-managed --- (connection from Driver or something like
Borland/interbase/interclient non-pooled datasource) -- this closes the db
connection, frees resources.

managed ---(what you should be using with ejbs, for example connection from
a jbosspool datasource as the front end for a pool or a jca resource
adapter) -- this tells the container you are done working with the
connection, the underlying db connection can be returned to the pool for
reuse.


david jencks

On 2001.06.09 08:12:27 -0400 Marcel Schepers wrote:
> Hello,
> 
> What happens when a session bean uses a database
> connection, it gets the connection from a connection pool, creates a
> prepared statement, retrieves all kinds of things, closes the prepared
> statement and returns. In other words, the session bean does not close
> the connection. 
> 
> At the moment I am facing that situation. I have a collection of jsp
> files, some regular Java beans acting as proxy for some ejb's. The
> website starts well, but after a while I get the following error
> message: '[NewsCollection] java.sql.SQLException: Communication link
> failure: java.net.SocketException' (NewsCollection is a session bean
> who uses a java.sql.Connection it gets from a
> javax.sql.DataSource. NewsCollection is the one that does not close
> the connection). I am pretty sure the errors are the result of never
> ever closing a connection. A java.sql.Connection instance does not
> close the connection when the local variable runs out of scope or does
> it? At least not when the connection originates from a connection
> pool. Am I right or am I missing something?
> 
> Have a nice weekend,
> Marcel
> 
> 
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
> 


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] jBoss 2.0 Final: Has anybody the original zip-file??

2001-06-09 Thread Georg Rehfeld

Hi Daniel,

> for some tests I need the original zip-file of jBoss 2.0 FINAL.
>
> Have anybody of you have that file?
> If you have it, please send it to me or send me a link where I can get it.
> The link on jboss.org is dead!

I have it bundled with tomcat. But before sending 8.7 MB around
multiple times to you, shall I send it really?

regards
Georg
 ___   ___
| + | |__Georg Rehfeld  Woltmanstr. 12 20097 Hamburg
|_|_\ |___   [EMAIL PROTECTED]   +49 (40) 23 53 27 10



___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Threads in jboss

2001-06-09 Thread Tbone

Hi, again

I have found an section in the documentation.
but it is stil not very clear to me how this works.

see section : Timer Mbean
http://www.jboss.org/documentation/HTML/ch11s74.html

note for the writers of documentation :
please add the full package name to the examples

any help is welcome

greetz tbone

Software is like sex, it's better when it's free


- Original Message -
From: "Sacha Labourey" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, June 09, 2001 2:45 PM
Subject: RE: [JBoss-user] Threads in jboss


> Hello,
>
> For this purpose you may implement a MBEAN. MBEANs are allowed to access
> system resources, create threads, act as socket servers, ... and... use
even
> use EJB ;) !
>
> Furthermore, if my memory serves, I think a timer MBEAN already exists in
> the JBoss distribution.
>
> Check the distribution or search the archive, I think people already spoke
> about this timer MBEAN previously.
>
> Cheers,
>
>
>
> Sacha
>
>
>
> > -Message d'origine-
> > Hi, everbody
> >
> > is there a way to program threads in jboss?
> >
> > the problem is that i need to notify may clients ( users ) on an
> > time based
> > approach ( 2 days )  when they forget fill in some data is there an way
to
> > do this?
> >
> > the only solution i have at the moment is with an servlet that loaded on
> > startup.
> > that starts an thread.
> > that checks the overdue dataforms in an registration system
>
>
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
>


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Threads in jboss

2001-06-09 Thread Tbone

Hi,

Thanks for the tip, but the users wil be notified by e-mail.
maybe in the future where clients wil be gui the is an posibility for JMS
implemantation

greetz tbone

> you can have your clients subscribed to a TOPIC and have them notified via
> JMS


> >
> >Hi, everbody
> >
> >is there a way to program threads in jboss?
> >
> >the problem is that i need to notify may clients ( users ) on an time
based
> >approach ( 2 days )  when they forget fill in some data is there an way
to
> >do this?
> >
> >the only solution i have at the moment is with an servlet that loaded on
> >startup.
> >that starts an thread.
> >that checks the overdue dataforms in an registration system
> >
> >any idea is welcome
> >
> >greetz tbone
> >
> >
> >
> >___
> >JBoss-user mailing list
> >[EMAIL PROTECTED]
> >http://lists.sourceforge.net/lists/listinfo/jboss-user
>
> _
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
>
>
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
>


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] JBoss JMS starter info

2001-06-09 Thread Pawan Kumar Katharikuppam

Hi,
Can some one point me to info on how to get started with the JBossMQ?

Thanks in advance,
Pawan

___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Authentication problems in JBoss-2.2.2/Tomcat-3.2.2 (env not bound)

2001-06-09 Thread Scott M Stark

All of the standard tomcat authentication modules are unrelated to the
JBoss authentication that works with both ejbs and servlets. This means
using JAAS login modules to integrate with your security infrastructure.

- Original Message - 
From: "Michael P. McCutcheon" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, June 09, 2001 12:31 AM
Subject: Re: [JBoss-user] Authentication problems in JBoss-2.2.2/Tomcat-3.2.2 (env not 
bound)


> I'm also having problems getting JDBC authentication to work with the new
> download.
> 
> Given the URL below, what method of authentication are we to use?
> 
> JDBC Authentication with Tomcat, or DatabaseServerLoginModule
> authentication?
> 
> I'm a little confused...do the two cooperate or are they unrelated?
> 
> Mike
> 
> - Original Message -
> From: "Scott M Stark" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, June 08, 2001 10:05 PM
> Subject: Re: [JBoss-user] Authentication problems in
> JBoss-2.2.2/Tomcat-3.2.2 (env not bound)
> 
> 
> > The 2.2.2 bundle uses the JBoss security manager. You have to define the
> > security-domain in a jboss-web.xml descriptor. See the JAAS tutorial:
> > http://www.jboss.org/documentation/HTML/ch11s83.html
> >



___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Communication link failure after 12 hours of inactivity

2001-06-09 Thread danch

mySQL is set up to close connections from the server end after ~12 hours 
of inactivity? This is fairly common in databases.

A lot of connection pool implementations have settings for testing the 
status of connections. Perhaps that needs to go into JBossPool

Nicolai P Guba wrote:

> This is a regular thing with the mySQL connection pool.  Why?
> 
> Driver:  mm.mysql-2.0.4
> 
> 
> [CAMS] Resource 'org.opentools.minerva.jdbc.xa.wrapper.XAResourceImpl@4a9a2d' 
>enlisted for 'org.opentools.minerva.jdbc.xa.wrapper.XAConnectionImpl@38d6f7'.
> [CAMS] Pool CAMS [1/1/20] gave out pooled object: 
>org.opentools.minerva.jdbc.xa.wrapper.XAConnectionImpl@38d6f7
> [Company] XAException: tx=XidImpl [FormatId=257, GlobalId=raphael.frontwire.com//0, 
>BranchQual=] errorCode=XA_UNKNOWN(0)
> [Company] javax.transaction.xa.XAException: Rollback failed: Communication link 
>failure: java.io.IOException
> [Company] at 
>org.opentools.minerva.jdbc.xa.wrapper.XAResourceImpl.rollback(XAResourceImpl.java:219)
> [Company] at org.jboss.tm.TxCapsule.rollbackResources(TxCapsule.java:1557)
> [Company] at org.jboss.tm.TxCapsule.rollback(TxCapsule.java:412)
> [Company] at org.jboss.tm.TransactionImpl.rollback(TransactionImpl.java:88)
> [Company] at 
>org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:307)
> [Company] at 
>org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java:86)
> [Company] at 
>org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:164)
> 
>


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] :-| Security passthrough (not!)

2001-06-09 Thread Lewis Henderson

Here is the problem...

1) I have a 'LoadOnStartup' servlet that instantiates a singleton class in
it's init() method.
2) The singleton connects to a Statefull session bean using a user and
password passed from the servlet.
3) The singleton has a timer which calls the session bean every 10 seconds
4) The servlet is accessed from clients with their security ids to update
the singletons internal state

My problem is that the singleton looses its authentication after the first
timer event...


Any ideas how I could put all this together without loosing the
authentication?


Lewis


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Re: Primary Key Error? (was Re: OutOfMemoryError)

2001-06-09 Thread danch

Nicolai P Guba wrote:
 >
 > You are excused .  Since we are already blabbing, you wouldn't
 > have an answer to my primary key problem with CMP Beans I posted
 > earlier on?

What problem? I can't find your earlier post.



___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] RE: jboss wiki

2001-06-09 Thread Fred Loney

An excellent idea. If somebody installs MoinMoin on the jboss site, I would be willing 
to add a few initial pages modeled on standard wiki sites.

Here's a concrete example of where a wiki would have saved myself and others time: I 
attempted to disable an Mlet in jboss.conf by bracketing it with an XML comment. That 
didn't work. Numerous list searches yielded many hits but none pertaining to the 
problem. An oblique reference in the jboss manual hinted at a distinct jmx Mlet entry 
format but perusing the referenced jmx spec shed no light. By trail-and-error, I 
discovered that the jmx jboss.conf reader doesn't recognize XML comments, despite the 
XML-like format. After further list search, at least two jboss users discovered the 
same thing, also by trial-and-error. The discovery remains uncaptured in any useful 
format. It is one of numerous jboss nits that don't really belong in a user guide but 
are lost in the user list. A wiki would categorize and capture such items directly and 
dynamically.

Bruce.Durling wrote:
>How about a jboss wiki? I've had very good success with MoinMoin (a python
>based wiki clone at moin.sourceforge.net).
>
> I think jboss is moving fast enough that lots of documentation will be out
>of date by the time it ends up on the site.
>
>Whaddya think?

--
Fred Loney
Spirited Software, Inc.
[EMAIL PROTECTED]



___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Communication link failure after 12 hours of inactivity

2001-06-09 Thread Nicolai P Guba

> "d" == danch  <[EMAIL PROTECTED]> writes:

d> mySQL is set up to close connections from the server end after ~12
d> hours of inactivity? This is fairly common in databases.

d> A lot of connection pool implementations have settings for testing
d> the status of connections. Perhaps that needs to go into JBossPool

Thank you for pointing this out.  I would strongly lobby for adding
such functionality soon, since I imagine that this would be a
deal-breaker for a lot of people thinking of deploying jboss in a
production environment (like myself).

-- 
  Nicolai P Gubahttp://www.gnu.org http://www.frontwire.com
mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
GSM: +44 (0)7909 960 751   DDI: +44 (0)20 7368 9708

___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Re: Primary Key Error? (was Re: OutOfMemoryError)

2001-06-09 Thread Nicolai P Guba

> "d" == danch  <[EMAIL PROTECTED]> writes:

d> Nicolai P Guba wrote:
>> You are excused .  Since we are already blabbing, you
>> wouldn't have an answer to my primary key problem with CMP Beans I
>> posted earlier on?

d> What problem? I can't find your earlier post.

Here it is:


From: Nicolai P Guba <[EMAIL PROTECTED]>
Subject: [JBoss-user] CMP and mySQL relational mapping
To: [EMAIL PROTECTED]
Date: 08 Jun 2001 15:43:13 +0100
Reply-To: [EMAIL PROTECTED]

Simple question (I hope):

If I'd like to use CMP for a project.  mySQL supports auto-generating
the primary key for an inserted row (AUTO_INCREMENT).  Is this feature
supported by jboss?  

If not, what strategy would you recommend for handling primary keys
(never done it any other way but to rely upon the database to generate
the value).

-- 
  Nicolai P Gubahttp://www.gnu.org http://www.frontwire.com
mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
GSM: +44 (0)7909 960 751   DDI: +44 (0)20 7368 9708

___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Running JBoss with Tomcat4 Beta5 issue

2001-06-09 Thread Jm Seigneur

Hello,

I'm trying to run Tomcat4 with JBoss2.2.
Tomcat works fine alone but JBoss doesn't seem to find the web container of
my sample application.
The message is as below:

Unable to stop module contactapp.war: fatal error while calling
:service=EmbeddedTomcat: DefaultDomain:service=EmbeddedTomcat/n
[J2EE Deployer Default] Destroying application contactapp.war
[Auto deploy] Deployment
failed:file:/tmp/jm/JBoss-2.2.2/deploy/contactapp.war
[Auto deploy] org.jboss.deployment.J2eeDeploymentException: application
contains war files but no web container available

What could be the problem?

Thanks,

Jm


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Storing a objet reference as Primary key

2001-06-09 Thread Christoph Sturm

Hello jboss-users,

I want to store dependencies in my tables as primary keys instead of
serialized object references. I saw a lot of discussion about this in
older messages on this list, but I cant find dox anywhere how to
accomplish it. Can some1 point me to a howto?

-- 
Best regards,
 Christoph  mailto:[EMAIL PROTECTED]


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Oracle Autocommit?

2001-06-09 Thread Aakash Chopra

Hi all,

After hours of going through the JBoss-user Archives,
I'm still unclear as to exactly what is going on with
regard to JBoss's interaction with Oracle, Transactions,
and autocommit.

Here is my particular problem:

1. methodA1() in a Session Bean (SBeanA) is responsible
for creating a particular type of CMP Entity Bean
(EBeanZ).

2. EBeanZ and all member methods are Container Transaction Managed
set to: Required.

3. SBeanA and all member methods are Container Transaction Managed
set to: Required.

4. methodA1() in SBeanA calls methodA2() in the same bean (SBeanA).

5. methodA2() is responsible for creating another type of CMP
Entity Bean (EBeanY).

6. EBeanY and all member methods are Container Transaction Managed
set to: RequiresNew.

6.1. There is a 1 to many relationship between EBeanZ and EBeanY
respectively.

7. Everything works until I get to #5. That is, the following
message is generated in the log files upon attempting to
persist/create EBeanY instances (note the first line of output
is caused by a system.out in the ejbCreate method of EBeanY):

[EBeanY] ejbCreate: Attempting to create: SCULE for owner: 100160
[SBeanA] Transaction XidImpl [FormatId=257, GlobalId=buzzwin2//7,
BranchQual=] timed out. status=STATUS_ACTIVE
[SBeanA] Transaction XidImpl [FormatId=257, GlobalId=buzzwin2//8,
BranchQual=] timed out. status=STATUS_ACTIVE

That's it. No more info, although I still have to set db logging when I find
the correct property/flag.

Does anyone have any ideas about what is going on, and how I have to fix it.

If this has to do with autocommit, do I need to modify the jboss code to
setAutoCommit(false)?

Thanks in advance for any suggestions / help.

Buzz






___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] any consequences to use JDBC_ODBC bridge?

2001-06-09 Thread Craig Johannsen

Sun advises against using the JDBC-ODBC bridge
for production purposes.  Besides not being very
efficient, it is single-threaded.  But Microsoft
themselves have had problems getting their ODBC
driver to work in multi-threaded mode -- see the
knowledge base.  One supposed fix supplied by
Microsoft was to make the calls into the ODBC
driver synchronized.  Some possible alternatives
(no recommendation intended):
http://www.jboss.org/documentation/mssql.htm#INSTALL-DRIVER
http://www.weblogic.com/docs51/techstart/install_jmsq4.html
http://www.jturbo.com/products.html

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Lin
Khanmamedov
Sent: Friday, June 08, 2001 9:22 PM
To: [EMAIL PROTECTED]
Subject: [JBoss-user] any consequences to use JDBC_ODBC bridge?


Hi,

I am a beginner to JBoss. From the online doc, it is suggested not to use
JDBC-ODBC bridge. Does anyone know the reasons and possible consequences if
i use it? I try to use a MS SQL db with JDBC-ODBC bridge (that's the
required db and driver to use) Has anyone have such experience how to set it
up?

Any feedbacks are truly appreciated.

Thanks,
Lin



___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Threads in jboss

2001-06-09 Thread Dmitri Colebatch

Hi,

I'm not sure if this would work, as haven't done it myself, but will no
doubt have to do something similar myself soon so I'll take the
opportunity to suggest it and possibly get some feedback.  

Would it be possible to have a MDB that subscribes to the topic and then
sends the email?  Basically acting as a proxy for the client?

cheers
dim

> From: "Tbone" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Subject: Re: [JBoss-user] Threads in jboss
> Date: Sat, 9 Jun 2001 15:56:35 +0200
> Reply-To: [EMAIL PROTECTED]
> 
> Hi,
> 
> Thanks for the tip, but the users wil be notified by e-mail.
> maybe in the future where clients wil be gui the is an posibility for JMS
> implemantation
> 
> greetz tbone
> 
> > you can have your clients subscribed to a TOPIC and have them notified via
> > JMS
>

___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] JBoss-Tomcat 2.2.2 beta2 Released

2001-06-09 Thread Scott M Stark

Since users were reporting problems with dtd resolution I am releasing the
fixed JBoss/Tomcat bundle as a beta2 release to allow for further testing
before calling this a final release. There were no changes to the JBoss
portion of the release. The tomcat-service.jar has been updated to include
local resolution of the web.dtd and jboss-web.dtd 



___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Oracle Autocommit (more info)?

2001-06-09 Thread Aakash Chopra

Hi all,

In the first post, I forgot to add what versions of what I
am using:

jboss: JBoss-2.2.2_Tomcat-3.2.2
Oracle: 8.1.7 Thin drivers.
JDK: build 1.3.0_01

After hours of going through the JBoss-user Archives,
I'm still unclear as to exactly what is going on with
regard to JBoss's interaction with Oracle, Transactions,
and autocommit.

Here is my particular problem:

1. methodA1() in a Session Bean (SBeanA) is responsible
for creating a particular type of CMP Entity Bean
(EBeanZ).

2. EBeanZ and all member methods are Container Transaction Managed
set to: Required.

3. SBeanA and all member methods are Container Transaction Managed
set to: Required.

4. methodA1() in SBeanA calls methodA2() in the same bean (SBeanA).

5. methodA2() is responsible for creating another type of CMP
Entity Bean (EBeanY).

6. EBeanY and all member methods are Container Transaction Managed
set to: RequiresNew.

6.1. There is a 1 to many relationship between EBeanZ and EBeanY
respectively.

7. Everything works until I get to #5. That is, the following
message is generated in the log files upon attempting to
persist/create EBeanY instances (note the first line of output
is caused by a system.out in the ejbCreate method of EBeanY):

[EBeanY] ejbCreate: Attempting to create: SCULE for owner: 100160
[SBeanA] Transaction XidImpl [FormatId=257, GlobalId=buzzwin2//7,
BranchQual=] timed out. status=STATUS_ACTIVE
[SBeanA] Transaction XidImpl [FormatId=257, GlobalId=buzzwin2//8,
BranchQual=] timed out. status=STATUS_ACTIVE

That's it. No more info, although I still have to set db logging when I find
the correct property/flag.

Does anyone have any ideas about what is going on, and how I have to fix it.

If this has to do with autocommit, do I need to modify the jboss code to
setAutoCommit(false)?

Thanks in advance for any suggestions / help.

Buzz






___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Oracle Autocommit?

2001-06-09 Thread David Jencks

Hi,

I have no ideas if this is what is causing the problems you are
experiencing, however...
If I was designing the db for this, and if I understand you correctly, I
would have

tableZ for EbeanZ, with pk pkz

and 

tableY for EbeanY, with pk pky, and foreign key pkz from tableZ.

Now, in transaction 1 you insert a new record in tableZ, with a brand new
pk value.

Before committing, you start transaction 2 and try to add some records to
tableY, with the new pkz value you just got.  This value in tableZ is not
visible to transaction2, transaction 1 hasn't committed yet. So you would
get a fk violation.

Why does (6) need to be RequiresNew?

All this being said, it might be helpful to know which driver you are using
and the configuration files.

Autocommit is always already set to false.

David Jencks

 
On 2001.06.09 19:24:03 -0400 Aakash Chopra wrote:
> Hi all,
> 
> After hours of going through the JBoss-user Archives,
> I'm still unclear as to exactly what is going on with
> regard to JBoss's interaction with Oracle, Transactions,
> and autocommit.
> 
> Here is my particular problem:
> 
> 1. methodA1() in a Session Bean (SBeanA) is responsible
> for creating a particular type of CMP Entity Bean
> (EBeanZ).
> 
> 2. EBeanZ and all member methods are Container Transaction Managed
> set to: Required.
> 
> 3. SBeanA and all member methods are Container Transaction Managed
> set to: Required.
> 
> 4. methodA1() in SBeanA calls methodA2() in the same bean (SBeanA).
> 
> 5. methodA2() is responsible for creating another type of CMP
> Entity Bean (EBeanY).
> 
> 6. EBeanY and all member methods are Container Transaction Managed
> set to: RequiresNew.
> 
> 6.1. There is a 1 to many relationship between EBeanZ and EBeanY
> respectively.
> 
> 7. Everything works until I get to #5. That is, the following
> message is generated in the log files upon attempting to
> persist/create EBeanY instances (note the first line of output
> is caused by a system.out in the ejbCreate method of EBeanY):
> 
> [EBeanY] ejbCreate: Attempting to create: SCULE for owner: 100160
> [SBeanA] Transaction XidImpl [FormatId=257, GlobalId=buzzwin2//7,
> BranchQual=] timed out. status=STATUS_ACTIVE
> [SBeanA] Transaction XidImpl [FormatId=257, GlobalId=buzzwin2//8,
> BranchQual=] timed out. status=STATUS_ACTIVE
> 
> That's it. No more info, although I still have to set db logging when I
> find
> the correct property/flag.
> 
> Does anyone have any ideas about what is going on, and how I have to fix
> it.
> 
> If this has to do with autocommit, do I need to modify the jboss code to
> setAutoCommit(false)?
> 
> Thanks in advance for any suggestions / help.
> 
> Buzz
> 
> 
> 
> 
> 
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
> 


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Duplicate primary keys returned by findAll()! (CMP)

2001-06-09 Thread Lisa Stuart

Hi,

I am using JBoss 2.2.1 with CMP beans using hypersonic as the backend
(default config).
For three weeks, we have been running the same application that creates
9 products (once, after wiping the database and restarting jboss). The
primary key is Product.name (String). Yesterday, ProductHome.findAll()
started returning 14 products, some having duplicate primary keys.

This raised three questions.
1. Is there any known issue that would "create" entity beans WITHOUT
their home.create() being called (the duplicate products appear some
time after they are created).
2. How can findAll() return duplicate primary keys?  Shouldn't
hypersonic disallow this, or is this a jboss/jaws bug.
3. Is there any way to stop this behaviour, it seems pretty serious.

I have tested the duplicate primary keys to see if they are references
to the same objects (==), and they are not.

What the hell is going on? Any help would be greatly appreciated.

Thanks,
Lisa
--

[lisa@furby Tests]$ java TestProd
List of Primary Keys returned by ProductHome.findAll()
0:Basil
1:Alfalfa
2:Delivery
3:Delivery
4:Corriander
5:Licyourass
6:Licyourass
7:Tomatoes
8:Tomatoes
9:Mushies
10:Happles
11:Happles
12:Horanges
13:Horanges
--- TestProd.java ---
import java.util.Collection;
import java.util.Iterator;


public class TestProd {

public static void main (String[] args) throws Exception {

ProductHome ph = (ProductHome)Util.getHome("Product",
ProductHome.class);
Collection prods = ph.findAll();
Iterator i = prods.iterator();
int cnt = 0;
System.out.println("List of Primary Keys returned by
ProductHome.findAll()");
Product lp = null;
while (i.hasNext()){
Product p = (Product)i.next();
if ( p == lp ) System.out.println("NEXT PRODUCT is SAME
OBJECT AS LAST");
System.out.println(cnt + ":" + p.getPrimaryKey());
cnt++;
lp = p;
}
}
}
- snippet of ejb-jar.xml 
 
  Product
  ProductHome
  Product
  ProductBean
  Container
  java.lang.String
  False
  name
  desc
  unit
  unitCostPrice
  qtyOnHand
  minQty
  catPK
  name
  
ejb/Category
Entity
CategoryHome
Category
Category
  




___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Problems in working with another EJB jar file

2001-06-09 Thread Optima



Greetings all,
I tried to play with the 
TravelAgent example in Monson-Haefel¡¦s EJB book on JBoss 2.2.1 and Win2K.  It¡¦s a session bean calling another 
entity bean named Cabin, but not in the same .jar file.
I read the JBoss doc 
about this example by Sebastien Alborini, but got the error 
about unable to get the home interface of Cabin.  I¡¦m sure that the Cabin is working 
probably.

Here 
is the ejb-ref section in ejb-jar.xml for 
TravelAgent:


  ejb/CabinHome
  Entity
  com.titan.cabin.CabinHome
  com.titan.cabin.Cabin

Here is the jboss.xml for 
TravelAgent:


  

    

  
TravelAgentBean
  

    
ejb/CabinHome
    
CabinBean
  

    

  


Could anyone kindly advise 
what¡¦s wrong OR post the working code/configuration?
Thanks
 
Best Regards,
Zeon