Re[2]: [JBoss-user] Jboss 3.0 remote deploy

2002-05-28 Thread Alex Loubyansky

Hello conrad,

I remember one post with problem when deploying remotely big
applications, if I remember it correctly. The problem was that, the
deployer tried to deploy the application while it wasn't downloaded
completely, thus the app couldn't be deployed. Not sure whether it's
fixed.

Wednesday, May 29, 2002, 5:43:07 AM, you wrote:

GR> By remote deploy, I'm assuming you mean that you compile and jar an EJB on
GR> one box and want to run it on another, correct?   All you need to do is get
GR> it from one place to the other.  We use pscp for that.  Of course, this
GR> requires that the two boxes maintain time synchronization, so that the
GR> destination box see the new jar as later than the one it already has.

GR> - Original Message -
GR> From: "conrad" <[EMAIL PROTECTED]>
GR> To: <[EMAIL PROTECTED]>
GR> Sent: Tuesday, May 28, 2002 9:18 AM
GR> Subject: [JBoss-user] Jboss 3.0 remote deploy


>> Hi
>>
>> I'm new here ... Good afternoon :-)
>>
>> I'd like to ask about remote deploying enterprise application on JBoss,
>> without telnet/ssh access. Is it possible, and if it is how can I do it
>> or where can I find some documentation about it?
>>
>> Thanks in advance.
>>
>> --
>> Best Regards
>> Conrad
>>
>> [EMAIL PROTECTED]
>>
>>
>> ___
>>
>> Don't miss the 2002 Sprint PCS Application Developer's Conference
>> August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
>>
>> ___
>> JBoss-user mailing list
>> [EMAIL PROTECTED]
>> https://lists.sourceforge.net/lists/listinfo/jboss-user
>>
>>



GR> ___

GR> Don't miss the 2002 Sprint PCS Application Developer's Conference
GR> August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

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

-- 
Best regards,
 Alex Loubyansky



___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

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



[JBoss-user] WinCvs write access to JBoss in SourceForge

2002-05-28 Thread Guy Rouillier

I am supposedly set up for developer access to the JBoss project in
SourceForge.  Using my SourceForge userid as described on the Developer page
on the JBoss site, I am able to check out a module in WinCvs.  However, when
I try to commit a change, it tells me

cvs [server aborted]: "commit" requires write access to the repository

I read on the JBoss developer that I need to be using SSH1.  How do I go
about getting SSH1, and has anyone successfully used it with WinCvs?  Do I
just tell WinCvs to use SSH Server for authentication instead of password?
I tried this and it didn't get me any further.  BTW, I would have done a
search of the forums but they are still down.  All help is appreciated.



___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

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



Re: [JBoss-user] Jboss 3.0 remote deploy

2002-05-28 Thread Guy Rouillier

By remote deploy, I'm assuming you mean that you compile and jar an EJB on
one box and want to run it on another, correct?   All you need to do is get
it from one place to the other.  We use pscp for that.  Of course, this
requires that the two boxes maintain time synchronization, so that the
destination box see the new jar as later than the one it already has.

- Original Message -
From: "conrad" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, May 28, 2002 9:18 AM
Subject: [JBoss-user] Jboss 3.0 remote deploy


> Hi
>
> I'm new here ... Good afternoon :-)
>
> I'd like to ask about remote deploying enterprise application on JBoss,
> without telnet/ssh access. Is it possible, and if it is how can I do it
> or where can I find some documentation about it?
>
> Thanks in advance.
>
> --
> Best Regards
> Conrad
>
> [EMAIL PROTECTED]
>
>
> ___
>
> Don't miss the 2002 Sprint PCS Application Developer's Conference
> August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
>
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
>
>



___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

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



[JBoss-user] CMP M-N relationship

2002-05-28 Thread Boris Tamarkin
Title: CMP M-N relationship





I am using JBoss 3.0 RC2 and MySQL .
True Unidirect m-n cmr doesn't work properly.
Entry in mapping (helper) table not added.


Bean A
abstract Collection getBs();
abstract void setBs(Collection);


Bean B


ejb-jar.xml
--
 
 A-B
 
 
    A-has-B
    Many
    
   A
    
    
   bs
   java.util.Collection
    
 
 
    B-in-A
    Many
    
   B
    
 
  



jbosscmp-jdbc.xml
--
    
  A-B
  
    A_B_MAP
  false
  false
  true
  
  
  A-has-B
  true
  
 
   AId
   AID
 
  
  
  
  B-in-A
  true
  
 
   BId
   BID
 
  
  
    
-


When in code I call a.setBs(bs) no exception throwed.
bs.size()>1
However A_B_MAP table is not changed (none entry added)


Question if true m-n relationship with CMP2 works in JBoss?
Or I have to use fake one (creating two 1-n)


Thanks
Boris





[JBoss-user] Jboss 3.0 and JAWS ResultSet Column Order

2002-05-28 Thread Bruce Robbins

I'm using Jboss 3.0 RC3 with Microsoft's JDBC driver and ran into the
problem described in bug #517062 "JAWS ResultSet Column Order". When I
try to load an entity that has an image column, the driver complains:

java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for
JDBC]ResultSet can not re-read row data for column 1.

When I switch to the Sprinta2000 JDBC driver, the problem goes away.

There is a patch for this problem (patch # 520200). Would this patch be
applied to Jboss 3.0 as well?

___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

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



Re: [JBoss-user] Problems starting JBoss

2002-05-28 Thread Scott M Stark

The log shows that hypersonic has started. Can you generate a thread dump
of the vm via crtl-\ or SIGQUIT to see where the startup is getting hung?


Scott Stark
Chief Technology Officer
JBoss Group, LLC

- Original Message -
From: "Johnson, Lance" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, May 28, 2002 1:54 PM
Subject: RE: [JBoss-user] Problems starting JBoss


> I have just upgraded our jboss to 2.4.4 to resolve our startup problems,
but
> it is still happening.  I still do not know what is going on with
Hypersonic
> and why it won't start on our box.  I have tried setting the
> log4j.appender.Console.Threshold to TRACE in the log4j property file but
it
> is not giving me that much more information.  Is there another logging
> setting I could set to get more info as to why DefaultDS (hypersonic) is
not
> starting?
>
> Here is the last couple of lines of our log file:
>
> [INFO,JdbcProvider] Started
> [INFO,HypersonicDatabase] Starting
> [INFO,Default] Server 1.6 is running
> [INFO,Default] Press [Ctrl]+[C] to abort
> [INFO,HypersonicDatabase] Database started
> [INFO,HypersonicDatabase] Started
> [INFO,DefaultDS] Starting
> [INFO,DefaultDS] XA Connection pool DefaultDS bound to java:/DefaultDS
>
> I have also attached our server.log file (I hope it makes it).  If anyone
> has any ideas as to what could cause this please respond.
>
> Lance
>
> > I am having problems starting up JBoss.  We had it running fine and
> > something has happened because now it seems to stop initialization at
the
> > Hypersonic component.  Here is the last couple lines of our server.log
> file.
> >
> > All Rights Reserved.
> > [InstantDB] Started
> > [DefaultDS] Starting
> > [DefaultDS] XA Connection pool DefaultDS bound to java:/DefaultDS
> > [Hypersonic] Server 1.4 is running
> > [Hypersonic] Press [Ctrl]+[C] to abort
> >
> > At this point it just sits there and does not complete the startup.  We
> are
> > running jboss 2.2.2 with java 1.3 on a HP-UX 11 platform.  Does anyone
> know
> > what might cause hypersonic to stall like this?
> >
> > Lance
>
>


___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

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



Re: [JBoss-user] custom login modules - UsernamePassword login module subclass

2002-05-28 Thread Dmitri Colebatch

I've figured out the problem here - Base64Encoder is in jbosssx.jar when it should be 
in jboss-jaas.jar.

Adding this:



to the list of excludes for jbosssx.jar, and adding the corresponding include to 
jboss-jaas.jar, fixes the problem.

I've submitted this as a bug too: 
http://sourceforge.net/tracker/index.php?func=detail&aid=561737&group_id=22866&atid=376685

cheers
dim

- Original Message -
From: "Dmitri Colebatch" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, May 28, 2002 5:29 PM
Subject: Re: [JBoss-user] custom login modules - UsernamePassword login module subclass


> btw - got the same error without using ProxyLoginModule and putting my login module 
>in the classpath.
>
> cheers
> dim
>
> - Original Message -
> From: "Dmitri Colebatch" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, May 28, 2002 5:00 PM
> Subject: [JBoss-user] custom login modules - UsernamePassword login module subclass
>
>
> > hey list,
> >
> > I'm wondering if anyone has subclassed this successfully in JBoss 2.4.4?  I'm 
>trying to get my head around what exactly is
> involved,
> > and having issues because the 
>org.jboss.security.auth.spi.UsernamePasswordLoginModule (in lib/jboss-jaas.jar) uses
> > org.jboss.security.Base64Encoder (in lib/ext/jbosssx.jar).
> >
> > I'm using the ProxyLoginModule so I dont have to change the classpath, but I find 
>that I then get NoClassDefFoundErrors (see end
> of
> > email), which I read to be due to the difference between system classpath, and the 
>current thread's classpath.
> >
> > I'm going to see if putting my module in the system classpath makes a difference, 
>but would still be interested to hear more on
> > this.
> >
> > cheers
> > dim
> >
> > stack trace -
> >
> > javax.security.auth.login.LoginException: java.lang.NoClassDefFoundError: 
>org/jboss/security/Base64Encoder
> > at org.jboss.security.Util.encodeBase64(Util.java:264)
> > at 
>org.jboss.security.auth.spi.UsernamePasswordLoginModule.createPasswordHash(UsernamePasswordLoginModule.java:270)
> > at 
>org.jboss.security.auth.spi.UsernamePasswordLoginModule.login(UsernamePasswordLoginModule.java:143)
> > at 
>org.jboss.security.auth.spi.ProxyLoginModule.login(ProxyLoginModule.java:89)
> > at java.lang.reflect.Method.invoke(Native Method)
> > at javax.security.auth.login.LoginContext.invoke(LoginContext.java:595)
> > at javax.security.auth.login.LoginContext.access$000(LoginContext.java:125)
> > at javax.security.auth.login.LoginContext$3.run(LoginContext.java:531)
> > at java.security.AccessController.doPrivileged(Native Method)
> > at 
>javax.security.auth.login.LoginContext.invokeModule(LoginContext.java:528)
> > at javax.security.auth.login.LoginContext.login(LoginContext.java:449)
> > at 
>org.jboss.security.plugins.JaasSecurityManager.defaultLogin(JaasSecurityManager.java:394)
> > at 
>org.jboss.security.plugins.JaasSecurityManager.authenticate(JaasSecurityManager.java:361)
> > at 
>org.jboss.security.plugins.JaasSecurityManager.isValid(JaasSecurityManager.java:217)
> > at 
>org.jboss.web.catalina.security.JBossSecurityMgrRealm.authenticate(JBossSecurityMgrRealm.java:253)
> > at 
>org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthenticator.java:263)
> > at 
>org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:462)
> > at 
>org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
> > at 
>org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
> > at 
>org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
> > at 
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> > at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> > at 
>org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
> > at 
>org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
> > at 
>org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
> > at 
>org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
> > at 
>org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
> > at 
>org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
> > at 
>org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
> > at 
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> > at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> > at 
>org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
> > at 
>org.apache.catalina.core.StandardPipeline.invokeNext(Standar

RE: [JBoss-user] INSERTING AN ALREADY EXISTING BEAN

2002-05-28 Thread Eric Kaplan

We're calling remove on the bean itself.  As for the hashCode and equals, I
thought that might be part of the problem, but they seem to be ok.
Although, I modified hashCode() in my primary key to print something out
when called and we don't see any printouts strangely enough...

still looking

thanks

eric

>  -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]] 
> Sent: Tuesday, May 28, 2002 6:57 PM
> To:   [EMAIL PROTECTED]
> Subject:  RE: [JBoss-user] INSERTING AN ALREADY EXISTING BEAN
> 
> I can't remember, but I think there was a bug fixed in 2.4.6 regarding
> home.remove.
> 
> I've also debugged problems from people where they have implemented their
> primary key's wrong.  Are you sure you have implemented hashCode and
> equals correctly on your PrimaryKey class?
> 
>-Original Message-
>   From:   [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]] 
>   Sent:   Tuesday, May 28, 2002 6:32 PM
>   To: Jboss-User
>   Subject:[JBoss-user] INSERTING AN ALREADY EXISTING BEAN
> 
>   We've been working with jboss for a while and have a simple app that
> allows users to update prices in a database.
>   One of the fields they can update is part of the primary key, so the
> session bean that handles this first deletes the old
>   bean(s) and adds the new ones.  On the first change, everything is
> ok...  It removes two beans, then adds two back, shown
>   below by the first four lines.
>   However, when we hit save again to make another change, it seemingly
> removes the correct two beans, but fails adding
>   the new one with the error: INSERTING AN ALREADY EXISTING BEAN.
>   I would expect to get this if I try and create a bean and the
> container has a cached instance of a bean with the same key.
>   But we've scoured the code and have assured ourselves that this is
> not the case.  Before we bang our heads against the
>   wall with this one, is there a known problem along these lines in
> jboss 2.4.3?
> 
>   Any clues would be helpful.
> 
>   Thanks
> 
>   Eric
> 
>   [Default] Deleting issueId: id: 8168priceDate: 05/15/2002source: OF
>   [Default] Deleting issueId: id: 8168priceDate: 05/15/2002source: SB
>   [Default] inserting issueId: id: 8168priceDate: 05/15/2002source: SB
>   [Default] inserting issueId: id: 8168priceDate: 05/15/2002source: OF
> 
>   [Default] Deleting issueId: id: 8168priceDate: 05/15/2002source: OF
>   [Default] Deleting issueId: id: 8168priceDate: 05/15/2002source: SB
>   [Default] inserting issueId: id: 8168priceDate: 05/15/2002source: SB
>   [Default] found key issueId: id: 8168priceDate: 05/15/2002source: SB
> while tryin
>   g to insert
>   [ejb/IssuePrice] TRANSACTION ROLLBACK EXCEPTION:INSERTING AN ALREADY
> EXISTING BE
>   AN, ID = issueId: id: 8168priceDate: 05/15/2002source: SB; nested
> exception is:
> 
>   java.lang.IllegalStateException: INSERTING AN ALREADY
> EXISTING BEAN, ID
>   = issueId: id: 8168priceDate: 05/15/2002source: SB
>   [ejb/IssuePrice] java.lang.IllegalStateException: INSERTING AN
> ALREADY EXISTING
>   BEAN, ID = issueId: id: 8168priceDate: 05/15/2002source: SB
>   [ejb/IssuePrice]at
> org.jboss.ejb.plugins.AbstractInstanceCache.insert(Ab
>   stractInstanceCache.java:247)
>   [ejb/IssuePrice]at
> org.jboss.ejb.plugins.EntityInstanceInterceptor.invok
>   eHome(EntityInstanceInterceptor.java:171)
>   [ejb/IssuePrice]at
> org.jboss.ejb.plugins.EntityLockInterceptor.invokeHom
>   e(EntityLockInterceptor.java:108)
>   [ejb/IssuePrice]at
> org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxI
>   nterceptorCMT.java:135)
>   [ejb/IssuePrice]at
> org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransac
>   tions(TxInterceptorCMT.java:481)
>   [ejb/IssuePrice]at
> org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxI
>   nterceptorCMT.java:86)
>   [ejb/IssuePrice]at
> org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(
>   SecurityInterceptor.java:103)
>   [ejb/IssuePrice]at
> org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogIn
>   terceptor.java:106)
>   [ejb/IssuePrice]at
> org.jboss.ejb.EntityContainer.invokeHome(EntityContai
>   ner.java:420)
>   [ejb/IssuePrice]at
> org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoke
>   r.invokeHome(JRMPContainerInvoker.java:441)
>   [ejb/IssuePrice]at
> org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invok
>   eHome(HomeProxy.java:237)
>   [ejb/IssuePrice]at
> org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invok
>   e(HomeProxy.java:182)
>   [ejb/IssuePrice]at $Proxy158.create(Unknown Source)
>   [ejb/IssuePrice]at
> com.abp.ejb.conditionalpricingprocessor.ConditionalPr
>   
> icingProcessorBean.addNewPrice(Co

Re: [JBoss-user] INSERTING AN ALREADY EXISTING BEAN

2002-05-28 Thread Scott M Stark

There are known problems with xdoclet generating invalid hashCode
methods in primary keys. Validate that your keys are correctly
implementing hashCode and equals and that they serialize and
unserialize correctly.


Scott Stark
Chief Technology Officer
JBoss Group, LLC

- Original Message -
From: "Eric Kaplan" <[EMAIL PROTECTED]>
To: "Jboss-User" <[EMAIL PROTECTED]>
Sent: Tuesday, May 28, 2002 3:31 PM
Subject: [JBoss-user] INSERTING AN ALREADY EXISTING BEAN


> We've been working with jboss for a while and have a simple app that
allows
> users to update prices in a database.
> One of the fields they can update is part of the primary key, so the
session
> bean that handles this first deletes the old
> bean(s) and adds the new ones.  On the first change, everything is ok...
It
> removes two beans, then adds two back, shown
> below by the first four lines.
> However, when we hit save again to make another change, it seemingly
removes
> the correct two beans, but fails adding
> the new one with the error: INSERTING AN ALREADY EXISTING BEAN.
> I would expect to get this if I try and create a bean and the container
has
> a cached instance of a bean with the same key.
> But we've scoured the code and have assured ourselves that this is not the
> case.  Before we bang our heads against the
> wall with this one, is there a known problem along these lines in jboss
> 2.4.3?
>
> Any clues would be helpful.
>
> Thanks
>
> Eric
>
> [Default] Deleting issueId: id: 8168priceDate: 05/15/2002source: OF
> [Default] Deleting issueId: id: 8168priceDate: 05/15/2002source: SB
> [Default] inserting issueId: id: 8168priceDate: 05/15/2002source: SB
> [Default] inserting issueId: id: 8168priceDate: 05/15/2002source: OF
>
> [Default] Deleting issueId: id: 8168priceDate: 05/15/2002source: OF
> [Default] Deleting issueId: id: 8168priceDate: 05/15/2002source: SB
> [Default] inserting issueId: id: 8168priceDate: 05/15/2002source: SB
> [Default] found key issueId: id: 8168priceDate: 05/15/2002source: SB while
> tryin
> g to insert
> [ejb/IssuePrice] TRANSACTION ROLLBACK EXCEPTION:INSERTING AN ALREADY
> EXISTING BE
> AN, ID = issueId: id: 8168priceDate: 05/15/2002source: SB; nested
exception
> is:
>
> java.lang.IllegalStateException: INSERTING AN ALREADY EXISTING
BEAN,
> ID
> = issueId: id: 8168priceDate: 05/15/2002source: SB
> [ejb/IssuePrice] java.lang.IllegalStateException: INSERTING AN ALREADY
> EXISTING
> BEAN, ID = issueId: id: 8168priceDate: 05/15/2002source: SB
> [ejb/IssuePrice]at
> org.jboss.ejb.plugins.AbstractInstanceCache.insert(Ab
> stractInstanceCache.java:247)
> [ejb/IssuePrice]at
> org.jboss.ejb.plugins.EntityInstanceInterceptor.invok
> eHome(EntityInstanceInterceptor.java:171)
> [ejb/IssuePrice]at
> org.jboss.ejb.plugins.EntityLockInterceptor.invokeHom
> e(EntityLockInterceptor.java:108)
> [ejb/IssuePrice]at
> org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxI
> nterceptorCMT.java:135)
> [ejb/IssuePrice]at
> org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransac
> tions(TxInterceptorCMT.java:481)
> [ejb/IssuePrice]at
> org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxI
> nterceptorCMT.java:86)



___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

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



RE: [JBoss-user] INSERTING AN ALREADY EXISTING BEAN

2002-05-28 Thread Bill Burke

I can't remember, but I think there was a bug fixed in 2.4.6 regarding
home.remove.

I've also debugged problems from people where they have implemented their
primary key's wrong.  Are you sure you have implemented hashCode and equals
correctly on your PrimaryKey class?

>  -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]] 
> Sent: Tuesday, May 28, 2002 6:32 PM
> To:   Jboss-User
> Subject:  [JBoss-user] INSERTING AN ALREADY EXISTING BEAN
> 
> We've been working with jboss for a while and have a simple app that
> allows users to update prices in a database.
> One of the fields they can update is part of the primary key, so the
> session bean that handles this first deletes the old
> bean(s) and adds the new ones.  On the first change, everything is ok...
> It removes two beans, then adds two back, shown
> below by the first four lines.
> However, when we hit save again to make another change, it seemingly
> removes the correct two beans, but fails adding
> the new one with the error: INSERTING AN ALREADY EXISTING BEAN.
> I would expect to get this if I try and create a bean and the container
> has a cached instance of a bean with the same key.
> But we've scoured the code and have assured ourselves that this is not the
> case.  Before we bang our heads against the
> wall with this one, is there a known problem along these lines in jboss
> 2.4.3?
> 
> Any clues would be helpful.
> 
> Thanks
> 
> Eric
> 
> [Default] Deleting issueId: id: 8168priceDate: 05/15/2002source: OF
> [Default] Deleting issueId: id: 8168priceDate: 05/15/2002source: SB
> [Default] inserting issueId: id: 8168priceDate: 05/15/2002source: SB
> [Default] inserting issueId: id: 8168priceDate: 05/15/2002source: OF
> 
> [Default] Deleting issueId: id: 8168priceDate: 05/15/2002source: OF
> [Default] Deleting issueId: id: 8168priceDate: 05/15/2002source: SB
> [Default] inserting issueId: id: 8168priceDate: 05/15/2002source: SB
> [Default] found key issueId: id: 8168priceDate: 05/15/2002source: SB while
> tryin
> g to insert
> [ejb/IssuePrice] TRANSACTION ROLLBACK EXCEPTION:INSERTING AN ALREADY
> EXISTING BE
> AN, ID = issueId: id: 8168priceDate: 05/15/2002source: SB; nested
> exception is:
> 
> java.lang.IllegalStateException: INSERTING AN ALREADY EXISTING
> BEAN, ID
> = issueId: id: 8168priceDate: 05/15/2002source: SB
> [ejb/IssuePrice] java.lang.IllegalStateException: INSERTING AN ALREADY
> EXISTING
> BEAN, ID = issueId: id: 8168priceDate: 05/15/2002source: SB
> [ejb/IssuePrice]at
> org.jboss.ejb.plugins.AbstractInstanceCache.insert(Ab
> stractInstanceCache.java:247)
> [ejb/IssuePrice]at
> org.jboss.ejb.plugins.EntityInstanceInterceptor.invok
> eHome(EntityInstanceInterceptor.java:171)
> [ejb/IssuePrice]at
> org.jboss.ejb.plugins.EntityLockInterceptor.invokeHom
> e(EntityLockInterceptor.java:108)
> [ejb/IssuePrice]at
> org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxI
> nterceptorCMT.java:135)
> [ejb/IssuePrice]at
> org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransac
> tions(TxInterceptorCMT.java:481)
> [ejb/IssuePrice]at
> org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxI
> nterceptorCMT.java:86)
> [ejb/IssuePrice]at
> org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(
> SecurityInterceptor.java:103)
> [ejb/IssuePrice]at
> org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogIn
> terceptor.java:106)
> [ejb/IssuePrice]at
> org.jboss.ejb.EntityContainer.invokeHome(EntityContai
> ner.java:420)
> [ejb/IssuePrice]at
> org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoke
> r.invokeHome(JRMPContainerInvoker.java:441)
> [ejb/IssuePrice]at
> org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invok
> eHome(HomeProxy.java:237)
> [ejb/IssuePrice]at
> org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invok
> e(HomeProxy.java:182)
> [ejb/IssuePrice]at $Proxy158.create(Unknown Source)
> [ejb/IssuePrice]at
> com.abp.ejb.conditionalpricingprocessor.ConditionalPr
> icingProcessorBean.addNewPrice(ConditionalPricingProcessorBean.java:230)
> [ejb/IssuePrice]at
> com.abp.ejb.conditionalpricingprocessor.ConditionalPr
> icingProcessorBean.updatePriceRecord(ConditionalPricingProcessorBean.java:
> 210)
> [ejb/IssuePrice]at java.lang.reflect.Method.invoke(Native Method)
> [ejb/IssuePrice]at
> org.jboss.ejb.StatelessSessionContainer$ContainerInte
> rceptor.invoke(StatelessSessionContainer.java:543)
> [ejb/IssuePrice]at
> org.jboss.ejb.plugins.StatelessSessionInstanceInterce
> ptor.invoke(StatelessSessionInstanceInterceptor.java:87)
> [ejb/IssuePrice]at
> org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxI
> nterceptorCMT.java:133)
> [ejb/IssuePrice]at
> org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransac
> tions(TxInterceptorCMT.java:307)
> [ejb/IssuePrice]at
> org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInter
> ceptorCMT.java:99)
> [ejb

[JBoss-user] INSERTING AN ALREADY EXISTING BEAN

2002-05-28 Thread Eric Kaplan

We've been working with jboss for a while and have a simple app that allows
users to update prices in a database.
One of the fields they can update is part of the primary key, so the session
bean that handles this first deletes the old
bean(s) and adds the new ones.  On the first change, everything is ok...  It
removes two beans, then adds two back, shown
below by the first four lines.
However, when we hit save again to make another change, it seemingly removes
the correct two beans, but fails adding
the new one with the error: INSERTING AN ALREADY EXISTING BEAN.
I would expect to get this if I try and create a bean and the container has
a cached instance of a bean with the same key.
But we've scoured the code and have assured ourselves that this is not the
case.  Before we bang our heads against the
wall with this one, is there a known problem along these lines in jboss
2.4.3?

Any clues would be helpful.

Thanks

Eric

[Default] Deleting issueId: id: 8168priceDate: 05/15/2002source: OF
[Default] Deleting issueId: id: 8168priceDate: 05/15/2002source: SB
[Default] inserting issueId: id: 8168priceDate: 05/15/2002source: SB
[Default] inserting issueId: id: 8168priceDate: 05/15/2002source: OF

[Default] Deleting issueId: id: 8168priceDate: 05/15/2002source: OF
[Default] Deleting issueId: id: 8168priceDate: 05/15/2002source: SB
[Default] inserting issueId: id: 8168priceDate: 05/15/2002source: SB
[Default] found key issueId: id: 8168priceDate: 05/15/2002source: SB while
tryin
g to insert
[ejb/IssuePrice] TRANSACTION ROLLBACK EXCEPTION:INSERTING AN ALREADY
EXISTING BE
AN, ID = issueId: id: 8168priceDate: 05/15/2002source: SB; nested exception
is:

java.lang.IllegalStateException: INSERTING AN ALREADY EXISTING BEAN,
ID
= issueId: id: 8168priceDate: 05/15/2002source: SB
[ejb/IssuePrice] java.lang.IllegalStateException: INSERTING AN ALREADY
EXISTING
BEAN, ID = issueId: id: 8168priceDate: 05/15/2002source: SB
[ejb/IssuePrice]at
org.jboss.ejb.plugins.AbstractInstanceCache.insert(Ab
stractInstanceCache.java:247)
[ejb/IssuePrice]at
org.jboss.ejb.plugins.EntityInstanceInterceptor.invok
eHome(EntityInstanceInterceptor.java:171)
[ejb/IssuePrice]at
org.jboss.ejb.plugins.EntityLockInterceptor.invokeHom
e(EntityLockInterceptor.java:108)
[ejb/IssuePrice]at
org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxI
nterceptorCMT.java:135)
[ejb/IssuePrice]at
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransac
tions(TxInterceptorCMT.java:481)
[ejb/IssuePrice]at
org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxI
nterceptorCMT.java:86)
[ejb/IssuePrice]at
org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(
SecurityInterceptor.java:103)
[ejb/IssuePrice]at
org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogIn
terceptor.java:106)
[ejb/IssuePrice]at
org.jboss.ejb.EntityContainer.invokeHome(EntityContai
ner.java:420)
[ejb/IssuePrice]at
org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoke
r.invokeHome(JRMPContainerInvoker.java:441)
[ejb/IssuePrice]at
org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invok
eHome(HomeProxy.java:237)
[ejb/IssuePrice]at
org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invok
e(HomeProxy.java:182)
[ejb/IssuePrice]at $Proxy158.create(Unknown Source)
[ejb/IssuePrice]at
com.abp.ejb.conditionalpricingprocessor.ConditionalPr
icingProcessorBean.addNewPrice(ConditionalPricingProcessorBean.java:230)
[ejb/IssuePrice]at
com.abp.ejb.conditionalpricingprocessor.ConditionalPr
icingProcessorBean.updatePriceRecord(ConditionalPricingProcessorBean.java:21
0)
[ejb/IssuePrice]at java.lang.reflect.Method.invoke(Native Method)
[ejb/IssuePrice]at
org.jboss.ejb.StatelessSessionContainer$ContainerInte
rceptor.invoke(StatelessSessionContainer.java:543)
[ejb/IssuePrice]at
org.jboss.ejb.plugins.StatelessSessionInstanceInterce
ptor.invoke(StatelessSessionInstanceInterceptor.java:87)
[ejb/IssuePrice]at
org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxI
nterceptorCMT.java:133)
[ejb/IssuePrice]at
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransac
tions(TxInterceptorCMT.java:307)
[ejb/IssuePrice]at
org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInter
ceptorCMT.java:99)
[ejb/IssuePrice]at
org.jboss.ejb.plugins.SecurityInterceptor.invoke(Secu
rityInterceptor.java:128)
[ejb/IssuePrice]at
org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterc
eptor.java:195)
[ejb/IssuePrice]at
org.jboss.ejb.StatelessSessionContainer.invoke(Statel
essSessionContainer.java:286)
[ejb/IssuePrice]at
org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoke
r.invoke(JRMPContainerInvoker.java:395)
[ejb/IssuePrice]at java.lang.reflect.Method.invoke(Native Method)
[ejb/IssuePrice]at
sun.rmi.server.UnicastServerRef.dispatch(UnicastServe
rRef.java:241)
[ejb/IssuePrice]at
sun.rmi.transport.Transport$1.run(Transport.java:152)

[ejb/IssuePrice] 

[JBoss-user] Passivate Exception

2002-05-28 Thread Rajnish Goyal



Hi all,
 
I am running Jboss-3.0.0RC3 on solaris 7.0. I am 
getting the following exception while jboss is passivating the session 
bean. All the  variable is seriazable or instance of LocalObject or 
RemoteObject. Somebody could suggest me the reason for this exception or why it 
is throwing exception with "Invalid Remote" object.
 
2002-05-28 21:03:58,902 
ERROR[org.jboss.logging.Log4jService$ThrowableListenerLoggingAdapter] 
unhandled throwablejava.rmi.ServerException: Could not passivate; nested 
exception is:     
java.rmi.MarshalException: Invalid remote objectjava.rmi.MarshalException: 
Invalid remote object    at 
java.rmi.server.RemoteObject.writeObject(RemoteObject.java:153)    
at java.lang.reflect.Method.invoke(Native 
Method)    
atjava.io.ObjectOutputStream.invokeObjectWriter(ObjectOutputStream.java:1864)    
atjava.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:1210)    
atjava.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:366)    
atorg.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.writeExternal(JRMPInvokerProxy.java:149)    
atjava.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:1180)    
atjava.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:366)    
atjava.io.ObjectOutputStream.outputClassFields(ObjectOutputStream.java:1827)    
atjava.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStream.java:480)    
atjava.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:1214)    
atjava.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:366)    
atjava.io.ObjectOutputStream.outputClassFields(ObjectOutputStream.java:1827)    
atjava.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStream.java:480)    
atjava.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:1214)    
atjava.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:366)    
atjava.io.ObjectOutputStream.outputClassFields(ObjectOutputStream.java:1827)    
atjava.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStream.java:480)    
atjava.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:1214)    
atjava.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:366)    
atorg.jboss.ejb.plugins.StatefulSessionFilePersistenceManager.passivateSession(StatefulSessionFilePersistenceManager.java:288)    
atorg.jboss.ejb.plugins.StatefulSessionInstanceCache.passivate(StatefulSessionInstanceCache.java:78)    
atorg.jboss.ejb.plugins.AbstractInstanceCache$1.execute(AbstractInstanceCache.java:615)    
at 
org.jboss.util.WorkerQueue$QueueLoop.run(WorkerQueue.java:206)    
at java.lang.Thread.run(Thread.java:484)2002-05-28 21:04:41,617 
DEBUG[org.jboss.ejb.plugins.LRUEnterpriseContextCachePolicy] Scheduling for 
passivation overaged bean ClientSession with id = 1022605157639 - 
Cachesize = 12002-05-28 21:04:41,617 
DEBUG[org.jboss.ejb.plugins.LRUEnterpriseContextCachePolicy] Aging out from 
cache bean ClientSessionwith id = 1022605157639; cache size = 1
 
Thanks
Rajnish


[JBoss-user] JMS ClassCastException error

2002-05-28 Thread Maarten Dirkse

Hi,
I have a problem connecting to the TopicConnectionFactory and a JMS topic 
on my jboss server from a servlet that is running under tomcat.
The code is as follows:

1 InitialContext ictx = new InitialContext();   
2 TopicConnectionFactory topicFactory = (TopicConnectionFactory)

PortableRemoteObject.narrow(ictx.lookup("TopicConnectionFactory"), 
TopicConnectionFactory.class);
3 TopicConnection topicConnection = topicFactory.createTopicConnection();
4 TopicSession topicSession = 
topicConnection.createTopicSession(false,Session.AUTO_ACKNOWLEDGE);
5 Topic topicFactory = (Topic) 
PortableRemoteObject.narrow(ictx.lookup("topic/seres"), Topic.class);
6 TopicPublisher topicPublisher = topicSession.createPublisher(topic);
7 TopicSubscriber topicSubscriber = topicSession.createSubscriber(topic);
8 topicSubscriber.setMessageListener(this);
9 topicConnection.start();

The problem occurs at line 2, when I try to cast the result of the context 
lookup to a TopicConnectionFactory and I get a ClassCastException error 
from the system (with a null message) that looks like this:
javax.servlet.ServletException: Servlet.init() for servlet gateway threw 
exception
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:871)
at 
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3267)
at org.apache.catalina.core.StandardContext.reload(StandardContext.java:2480)
at 
org.apache.catalina.loader.WebappContextNotifier.run(WebappLoader.java:1315)
at java.lang.Thread.run(Thread.java:536)
- Root Cause -
java.lang.ClassCastException: org.jboss.mq.SpyConnectionFactory
at ctux.lookingglass.servlets.GatewayServlet.init(GatewayServlet.java:88)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:852)
at 
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3267)
at org.apache.catalina.core.StandardContext.reload(StandardContext.java:2480)
at 
org.apache.catalina.loader.WebappContextNotifier.run(WebappLoader.java:1315)
at java.lang.Thread.run(Thread.java:536)

The strange thing is that the code runs just fine when I use it in a test 
app, but stops working once I use it in a servlet.  Both the test app and 
the servlet are running under the same jvm as Jboss itself, so that can't 
be the problem, and I've also included all of the jboss-client libs in the 
tomcat path.  I've tried using the object as a SpyConnectionFactory, but 
then line 3 doesn't execute anymore.  I have a feeling it might be a 
conflicting library problem or something like that, as the code works fine 
in a non-tomcat environment.  I'm using Jboss 2.44, Tomcat 4.0.3 and Java 
SE 1.4.
Any help would be *greatly* appreciated.
Thanks in advance,
Maarten.
PS. Using JBoss with an integrated tomcat is not an option since they need 
to reside on different machines.


___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

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



RE: [JBoss-user] Problems starting JBoss

2002-05-28 Thread Bill Burke

Lance,

The JDBC driver name has changed I think from 2.2.2 and 2.4.x.

Also the connection string as well.  Again, recheck your ported jboss.jcml
file with the default one that comes with 2.4.4

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Johnson,
> Lance
> Sent: Tuesday, May 28, 2002 5:45 PM
> To: [EMAIL PROTECTED]
> Cc: 'Sacha Labourey'
> Subject: RE: [JBoss-user] Problems starting JBoss
>
>
> My JBOSS_HOME/db/hypersonic directory is there.  I even tried removing the
> files that are under it and recreate a blank directory with the same
> results.  Still can't get it to start.
>
> Lance
>
> -Original Message-
> From: Sacha Labourey [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 28, 2002 4:14 PM
> To: [EMAIL PROTECTED]
> Cc: Johnson, Lance
> Subject: RE: [JBoss-user] Problems starting JBoss
>
>
> Hello,
>
> Can you check that the JBOSS_HOME/db/hypersonic directory exists? If it
> doesn't, create it and restart.
>
> Cheers,
>
>
>   Sacha
>
> > -Message d'origine-
> > De : [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]]De la part de Johnson,
> > Lance
> > Envoyé : mardi, 28 mai 2002 22:54
> > À : '[EMAIL PROTECTED]'
> > Objet : RE: [JBoss-user] Problems starting JBoss
> >
> >
> > I have just upgraded our jboss to 2.4.4 to resolve our startup
> > problems, but
> > it is still happening.  I still do not know what is going on with
> > Hypersonic
> > and why it won't start on our box.  I have tried setting the
> > log4j.appender.Console.Threshold to TRACE in the log4j property
> > file but it
> > is not giving me that much more information.  Is there another logging
> > setting I could set to get more info as to why DefaultDS
> > (hypersonic) is not
> > starting?
>
>
> ___
>
> Don't miss the 2002 Sprint PCS Application Developer's Conference
> August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
>
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user


___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

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



RE: [JBoss-user] Problems starting JBoss

2002-05-28 Thread Johnson, Lance

My JBOSS_HOME/db/hypersonic directory is there.  I even tried removing the
files that are under it and recreate a blank directory with the same
results.  Still can't get it to start.

Lance

-Original Message-
From: Sacha Labourey [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 28, 2002 4:14 PM
To: [EMAIL PROTECTED]
Cc: Johnson, Lance
Subject: RE: [JBoss-user] Problems starting JBoss


Hello,

Can you check that the JBOSS_HOME/db/hypersonic directory exists? If it
doesn't, create it and restart.

Cheers,


Sacha

> -Message d'origine-
> De : [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]De la part de Johnson,
> Lance
> Envoyé : mardi, 28 mai 2002 22:54
> À : '[EMAIL PROTECTED]'
> Objet : RE: [JBoss-user] Problems starting JBoss
>
>
> I have just upgraded our jboss to 2.4.4 to resolve our startup
> problems, but
> it is still happening.  I still do not know what is going on with
> Hypersonic
> and why it won't start on our box.  I have tried setting the
> log4j.appender.Console.Threshold to TRACE in the log4j property
> file but it
> is not giving me that much more information.  Is there another logging
> setting I could set to get more info as to why DefaultDS
> (hypersonic) is not
> starting?


___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

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



RE: [JBoss-user] Problems starting JBoss

2002-05-28 Thread Johnson, Lance

I have just upgraded our jboss to 2.4.4 to resolve our startup problems, but
it is still happening.  I still do not know what is going on with Hypersonic
and why it won't start on our box.  I have tried setting the
log4j.appender.Console.Threshold to TRACE in the log4j property file but it
is not giving me that much more information.  Is there another logging
setting I could set to get more info as to why DefaultDS (hypersonic) is not
starting?

Here is the last couple of lines of our log file:

[INFO,JdbcProvider] Started
[INFO,HypersonicDatabase] Starting
[INFO,Default] Server 1.6 is running
[INFO,Default] Press [Ctrl]+[C] to abort
[INFO,HypersonicDatabase] Database started
[INFO,HypersonicDatabase] Started
[INFO,DefaultDS] Starting
[INFO,DefaultDS] XA Connection pool DefaultDS bound to java:/DefaultDS

I have also attached our server.log file (I hope it makes it).  If anyone
has any ideas as to what could cause this please respond.

Lance

> I am having problems starting up JBoss.  We had it running fine and
> something has happened because now it seems to stop initialization at the
> Hypersonic component.  Here is the last couple lines of our server.log
file.
>
> All Rights Reserved.
> [InstantDB] Started
> [DefaultDS] Starting
> [DefaultDS] XA Connection pool DefaultDS bound to java:/DefaultDS
> [Hypersonic] Server 1.4 is running
> [Hypersonic] Press [Ctrl]+[C] to abort
>
> At this point it just sits there and does not complete the startup.  We
are
> running jboss 2.2.2 with java 1.3 on a HP-UX 11 platform.  Does anyone
know
> what might cause hypersonic to stall like this?
>
> Lance




server.log
Description: Binary data


Re: [JBoss-user] Branch_3_0 - ear deployment - classloader order

2002-05-28 Thread David Jencks

Is cadex-test.jar an ejb jar listed in application.xml?  Is it getting
deployed properly?  If it is not an ejb-jar I think it needs to be
referenced in somethings manifest classpath to be deployed.

My understanding of the jetty classloading behavior matches your
expectations.

david jencks

On 2002.05.28 14:07:32 -0400 Dave Smith wrote:
> I am using the latest CVS Branch_3_0. I am deploying an ear file 
> (cactus tests). My format looks like ..
> 
>0 Tue May 28 14:02:52 EDT 2002 META-INF/
> 45 Tue May 28 14:02:52 EDT 2002 META-INF/MANIFEST.MF
> 172149 Tue May 28 14:02:52 EDT 2002 cadexTest.war
>  42770 Tue May 28 13:58:10 EDT 2002 cadex-test.jar
>274 Thu Jan 24 16:22:42 EST 2002 META-INF/application.xml
> 
> 
> The war file
> 
> 0 Tue May 28 14:02:52 EDT 2002 META-INF/
> 45 Tue May 28 14:02:52 EDT 2002 META-INF/MANIFEST.MF
>  0 Tue May 28 14:02:52 EDT 2002 WEB-INF/
>164 Fri Jan 25 10:14:28 EST 2002 WEB-INF/jboss-web.xml
>  0 Tue May 28 14:02:52 EDT 2002 WEB-INF/lib/
> 117522 Thu Jan 03 16:12:36 EST 2002 WEB-INF/lib/junit.jar
>  71832 Tue Feb 26 17:58:12 EST 2002 WEB-INF/lib/cactus.jar
>   1964 Wed May 22 15:55:18 EDT 2002 WEB-INF/lib/candata_test_util.jar
>506 Thu Jan 24 15:21:14 EST 2002 WEB-INF/web.xml
> 
> Now when I go to run the test the war file does not see classes in
> cadexTest.jar. If I stick cadexTest.jar in the war then on redeploy the
> class changes are not shown. I thought the default jetty settings were
> to use the jboss classloader, so when the war is running and it can not
> find the class in the war it should then look in the jar in the ear.
> 
> The problem is as I add change my test cases I would like to be able to
> re-deploy them without shutting down the container.
> 
> 
> 
> 
> 
> 
> ___
> 
> Don't miss the 2002 Sprint PCS Application Developer's Conference
> August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 
> 

___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

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



Re: [JBoss-user] classpath

2002-05-28 Thread David Jencks

I don't think this would affect the class visibility problem, however I
think you need to rename oracle-service.xml to jboss-service.xml when you
include it in mysar.sar/META-INF/ rather than as a standalone file.

david jencks

On 2002.05.28 13:13:03 -0400 áÎÄÒÅÊ ïÎÉÝÕË wrote:
> Hello!
> 
>   Can anyone please point me, how can I place my JARs within EAR
> application to be able to use defined there classes wintin
> EnterpriseBean?
>   Now I have 2 archives:
>   - EAR with beans and webbapp;
>   - SAR with oracle-servise.xml and my utility classes;
> 
>   Howewer, in deployment time everithing is ok. No one exception,
> and I can see in logs that my SAR is deployed.
>   But in runtime, when I try to call one of method of my bean, when
> I use my utility classes, I got Exception NoCassDefFoundError.
> 
>   May be I need to define this in descriptor? Or to place this
> archive somehow special?
> 
> Best regards,
>   Andrey Onistchuk.
> 
> ___
> 
> Don't miss the 2002 Sprint PCS Application Developer's Conference
> August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 
> 

___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

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



RE: [JBoss-user] VOTE FOR JBOSS

2002-05-28 Thread Bill Burke

It's pretty sad.  I looked at the votes in all the catagories.  IBM is
definately voting as a company.  Every IBM product has ~ 3000 votes.  Sad,
very sad.

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Torsten
> Schlumm
> Sent: Monday, May 27, 2002 12:43 PM
> To: [EMAIL PROTECTED]
> Subject: RE: [JBoss-user] VOTE FOR JBOSS
>
>
> On Sun, 2002-05-26 at 16:01, Bill Burke wrote:
> > Come On people!  Vote!  Vote twice!  It's ridiculous that
> Borland has more
> > votes than us.
> >
>
> Done,
>
> ... 3 times actually. (need a new mouse soon)
> BTW is it just me or are the lists in some of the categories
> completely ridiculous. Looks to me that if they had
> a 'Best Kitchen Tool' category they would put Oracle, Borland
> and Co even into this one.
>
> Cheers,
> Torsten
>
>
>
> ___
>
> Don't miss the 2002 Sprint PCS Application Developer's Conference
> August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
>
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user


___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

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



Re: [JBoss-user] best way to access db

2002-05-28 Thread Burkhard Vogel

Hi,
the key part you should have a look at is the jboss-pool. It provides
connection pooling of database connections, which are costy to instanciate
at first, the reuse and the caching of stored procedures makes (at least
where I use this) my applications significantly faster. If you need MANY
connections use a huge connection pool (and see that your db supports it),
which will eat up memory as wild (especially with oracle) but will boost
your speed. In terms of database performance I had good results using M$ SQL
Server (yuck) but their JDBC-Driver is crap! Try another commercial one like
sprinta.
hth
Burkhard
- Original Message -
From: "Stefan Groschupf" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, May 24, 2002 4:50 PM
Subject: [JBoss-user] best way to access db


> Hi,
> I'm sorry for may be a out topic question, but I need some hints to start
my
> research work..
> Me and some guys planning to write a cluster able open source application
> (no ejb project) and want use the wonderful :) JBoss OS as backend.
> We want write some Mbeans to implement our application logic. Our
> application produce much data base traffic (data mining).
> So now I'm think about the best way to communicate with a data store.
>
> For us it's very important to have a fast db access. So I try to learn
more
> about a  direct JDBC connection, using entry beans or access  the object >
> relational mapper?
> Of curse jdbc must be the fastest way, I can imagine that it can be very
> useful to store and load a DOM Object of my data to the database.
> But may be on the other hand,  its very easy to use the ejbs in a cluster
> environment.
>
> Can someone give me any hints what's the most interesting technique for my
> problem?
>
> Thanks
> Stefan
>
>
>
>
> ___
>
> Don't miss the 2002 Sprint PCS Application Developer's Conference
> August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
>
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
>


___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

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



[JBoss-user] How to recovery a client from a server crash ?

2002-05-28 Thread Davide De Benedictis


Hi,

I'm trying to find a way to recovery a remote client standalone application from 
a shutdown  or a crash of my JBoss server.

My Client successfully lookup for an EJB on JBoss and start to call remote 
methods through a classic lookup method:

InitialContext iniCtx = new InitialContext();
Object tmp = iniCtx.lookup("susa_edi_gw/GatewayEDISUSA");
GatewayEDISUSAHome home = (GatewayEDISUSAHome) PortableRemoteObject.narrow(tmp, 
GatewayEDISUSAHome.class);
return home.create();


At one point I shutdown JBoss. The next remote call get an exception (of 
course)... Then I startup JBoss again.
There is no way to successfully lookup and instantiate a remote Object.
Actually I can look up objects but I get a ClassCastException when I call the:

Object obj = javax.rmi.PortableRemoteObject.narrow(remoteObject, classType);

I tried nearly everything: closing initialContext and initializing everything 
again... nothing !!!

PLEASE Help 

Should I restart all the remote clients when my server goes down and start up 
again ?

Davide De benedictis





___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

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



Re: [JBoss-user] Do I Not Understand ScopedClassLoadingRepositories for EARs?

2002-05-28 Thread Hunter Hillegas

Okay... If the test case that Marius submitted doesn't shed any light on the
problem, I will compile one as well...

Hunter

> From: "Scott M Stark" <[EMAIL PROTECTED]>
> Organization: JBoss Group
> Reply-To: [EMAIL PROTECTED]
> Date: Sun, 26 May 2002 13:17:07 -0700
> To: <[EMAIL PROTECTED]>
> Subject: Re: [JBoss-user] Do I Not Understand Scoped ClassLoadingRepositories
> for EARs?
> 
> No, create two ears that demonstrate the problem when deployed
> against a standard JBoss distribution.
> 
> 
> Scott Stark
> Chief Technology Officer
> JBoss Group, LLC
> 
> - Original Message -
> From: "Hunter Hillegas" <[EMAIL PROTECTED]>
> To: "JBoss User" <[EMAIL PROTECTED]>
> Sent: Sunday, May 26, 2002 12:41 PM
> Subject: Re: [JBoss-user] Do I Not Understand Scoped
> ClassLoadingRepositories for EARs?
> 
> 
>> Sorry, I should have phrased my question differently.
>> 
>> Do you mean I need to write a Junit test? I have never done anything like
>> that... I poked around on the developer site and didn't find a HOWTO or
> any
>> kind of instructions.
>> 
>> Is there any other place I should be looking for that info?
>> 
>> Hunter
>> 
> 
> 
> 
> ___
> 
> Don't miss the 2002 Sprint PCS Application Developer's Conference
> August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user


___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

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



Re: [JBoss-user] Do I Not Understand ScopedClassLoadingRepositories for EARs?

2002-05-28 Thread Marius Kotsbak

I have done that and subtited them as bug #561546. I hope someone can
solve these problems soon (before RC4/final).

There should also be better doc on what to include in the jboss-app.xml
also. I can't even find a dtd! Maybe it requires a heading with dtd-ref,
but I don't know what to specify.

Marius K
boostcom
 


On søn, 2002-05-26 at 22:17, Scott M Stark wrote:
> No, create two ears that demonstrate the problem when deployed
> against a standard JBoss distribution.
> 
> 
> Scott Stark
> Chief Technology Officer
> JBoss Group, LLC
> 
> - Original Message -
> From: "Hunter Hillegas" <[EMAIL PROTECTED]>
> To: "JBoss User" <[EMAIL PROTECTED]>
> Sent: Sunday, May 26, 2002 12:41 PM
> Subject: Re: [JBoss-user] Do I Not Understand Scoped
> ClassLoadingRepositories for EARs?
> 
> 
> > Sorry, I should have phrased my question differently.
> >
> > Do you mean I need to write a Junit test? I have never done anything like
> > that... I poked around on the developer site and didn't find a HOWTO or
> any
> > kind of instructions.
> >
> > Is there any other place I should be looking for that info?
> >
> > Hunter
> >
> 
> 
> 
> ___
> 
> Don't miss the 2002 Sprint PCS Application Developer's Conference
> August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user



___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

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



Re: [JBoss-user] Forums Up?

2002-05-28 Thread Alex Loubyansky

Hello John,

you are not alone

Tuesday, May 28, 2002, 8:08:12 PM, you wrote:

JC> Can anyone get to the forums?  I haven't been able to access them since
JC> yesterday, just wondering if it is my connection?

JC> Thanks,

JC> John
JC> --
JC> John Childress
JC> http://www.johnchildress.com

JC> ___

JC> Don't miss the 2002 Sprint PCS Application Developer's Conference
JC> August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

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

-- 
Best regards,
 Alex Loubyansky



___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

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



RE: [JBoss-user] LdapLoginModule null password

2002-05-28 Thread Sonnek, Ryan

First of all, thank you so much for your help.  We found that the problem
was with the configuration of openLDAP allowing anonymous binding.  The
wierd thing is that we're using an LDAP module for Apache for a similar
purpose, and Apache did not have any of these quirks.  

Thank you again for your time, and patience!!!
Ryan Sonnek

-Original Message-
From: Scott M Stark [mailto:[EMAIL PROTECTED]]
Sent: Saturday, May 25, 2002 12:14 AM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] LdapLoginModule null password


I added a testcase of sending a null password to the LdapLoginModule
and it correctly fails to authenticate the user. Have you tried a simple
JNDI test against your server to make sure it it not allowing this? If it
does not create a simple war or ear the demonstrates the problem
and post it as a bug to sourceforge.


Scott Stark
Chief Technology Officer
JBoss Group, LLC

- Original Message -
From: "Sonnek, Ryan" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, May 24, 2002 11:17 AM
Subject: RE: [JBoss-user] LdapLoginModule null password


> thanks for the reply, but taking out the principal and credentials from
the
> auth.conf file didn't change the outcome.  when I hit a protected url, I'm
> prompted for the username and password, and if I input my username with a
> null password, it still let's me in.
>
> checking the jboss logs, i get this information when i first hit the url :
> [DEBUG,LdapLoginModule] Bad password for username=null
> which seems to mean that first it tries to access the resource as an
> anonymous user, then if that fails, i'm prompted with the dialog box.
>
> using the jboss 2.4.4 documentation, page 261 says that the
> java.naming.security.principal and java.naming.security.credentials
> properties are allowed for authenticating the caller to the service.  i
> thought this was required if you're not allowing anonymous queries and
> needed to bind as a user in order to authenticate with the desired
username.
>
>
> any other ideas on why this could be happening?
>
> -Original Message-
> From: Scott M Stark [mailto:[EMAIL PROTECTED]]
> Sent: Friday, May 24, 2002 11:58 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [JBoss-user] LdapLoginModule null password
>
>
> Because you are supplying the credentials to use in the configuration.
> Neither
> > java.naming.security.principal="cn=admin,dc=mybpc,dc=net"
> > java.naming.security.credentials="xx"
>
> should be in the configuration. These are generated based on the caller
> principal and credentials, but if you sepecify them and then do not
provide
> this info you have defined a default login for everyone. Where in the docs
> does it say to include these?
>
> 
> Scott Stark
> Chief Technology Officer
> JBoss Group, LLC
> 
> ___
>
> Don't miss the 2002 Sprint PCS Application Developer's Conference
> August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
>
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
>
> ___
>
> Don't miss the 2002 Sprint PCS Application Developer's Conference
> August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
>
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
>


___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

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

___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

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



Re: [JBoss-user] Which App Server is running ?

2002-05-28 Thread Andreas Maschke

We had the same problem and found no solution. Only Servlet- and JDBC-API
contains methods to retrieve
vendor and version information. But in EJB there seems to be nothing like
this.
Our workaround is to check for vendor-specific classes. So we know at least
the vendor and in many cases the major version.

- Original Message -
From: "sal Wheelar" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, May 28, 2002 4:28 PM
Subject: [JBoss-user] Which App Server is running ?


> We are supporting multiple application servers and
> various versions of them.
>
> Is there any way to find out from enterprise java bean
> that what current application is running and it's
> Version Number.
>
> Thanks.
>
> __
> Do You Yahoo!?
> Yahoo! - Official partner of 2002 FIFA World Cup
> http://fifaworldcup.yahoo.com
>
> ___
>
> Don't miss the 2002 Sprint PCS Application Developer's Conference
> August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
>
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
>


___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

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



Re: [JBoss-user] Forums Up?

2002-05-28 Thread Dain Sundstrom

Jason is working on it; mySQL is having issues.

-dain

John Childress wrote:

> Can anyone get to the forums?  I haven't been able to access them since
> yesterday, just wondering if it is my connection?
> 
> Thanks,
> 
> John
> --
> John Childress
> http://www.johnchildress.com
> 
> ___
> 
> Don't miss the 2002 Sprint PCS Application Developer's Conference
> August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 



___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

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



Re: [JBoss-user] no reuse of pooled XAConnections

2002-05-28 Thread David Ward

I don't know the in's and out's of the container (as far as who calls 
what on who when) - but from an application developer/assembler 
standpoint, since you have a trans-attribute of Required, the 
UserTransaction associated with the current thread of execution will get 
committed (if no problems - otherwise rolled back).  So, all tx-aware 
resources (like your DB connection) used within the boundaries of the 
UserTransaction will get committed.

In short, since you specified Required, you do not have to call commit() 
yourself, much less know on who needs it.  You just need to make sure 
you call close on the Connection wrapper.

BTW, just use the java.sql.Connection interface for "tempConnetion" - 
don't use XAClientConnection.

David

--

[EMAIL PROTECTED] wrote:
> When I close the XAClientConnection like this
> 
> tempDS = (DataSource)tempIC.lookup(tempLookup);
> tempConnection = tempDS.getConnection();
> //do stuff on connection
> ...
> tempConnection.close()
> 
> 
> Then the container commit() on what? On the wrapped connection?
> 
> In my ejb-jar.xml I have some lines
> 
>  
>   
>MyBean
>Remote
>*
>   
>   Required
>  
> 
> 
> Thanks,
> Stephan
> 
> 
> 
> 
> David Ward <[EMAIL PROTECTED]> am 28.05.2002 18:27:09
> 
> Bitte antworten an [EMAIL PROTECTED]
> 
> 
> 
>   An:Stephan Frind/Duesseldorf/Gebit
> 
>   Kopie  [EMAIL PROTECTED]   
>   : 
> 
> 
> 
>   Thema  Re: [JBoss-user] no reuse of pooled
>   :  XAConnections  
> 
> 
> 
> 
> 
> 
> 
> The Connection you get from a javax.sql.DataSource is actually a facade
> to a real DB Connection (what you're thinking about).  Calling close()
> on the facade you get doesn't actually close the DB Connection, it just
> returns it to the pool.  If you don't return it using close() in a
> finally block you will quickly run out of database resources.  This
> behavior is standard and expected.
> David
> --
> [EMAIL PROTECTED] wrote:
> 
>>What I am doing is to lookup a datasource in my session bean via jndi.
>>Because I do NOT create it and I don't know what should happen after me
>>(for instance commit() should be done by the container) I can't close the
>>connection.
>>Of course I close my statements, resultsets, etc.
>>
>>Again I thought the container creates, commits and closes connections.
> 
> BTW
> 
>>I have done it on Websphere too and I have the impression it works there
>>that way. Therefor I think I have configured something wrong.
>>
>>Regards,
>>Stephan
>>
>>
>>
>>
>>"Sacha Labourey" <[EMAIL PROTECTED]> am 28.05.2002
> 
> 16:08:47
> 
>>Bitte antworten an [EMAIL PROTECTED]
>>
>>
>>
>>  An:[EMAIL PROTECTED]
>>
>>  Kopie  (Blindkopie: Stephan Frind/Duesseldorf/Gebit)
>>  :
>>
>>
>>
>>  Thema  RE: [JBoss-user] no reuse of pooled
>>  :  XAConnections
>>
>>
>>
>>
>>
>>
>>
>>you need to close your connection (and any other resources such as
>>preparedstatements, resultset, etc.) in the finally clause of your try:
>>try
>>{
>> con = ds.getConnection();
>> ps = con.create...
>>}
>>catch (WhateverException we)
>>{
>> bla;
>>}
>>finally
>>{
>> try { ps.close (); } catch (Exception ignored) {}
>> try { con.close (); } catch (Exception ignored) {}
>> ...
>>}
>>
>>
>>>-Message d'origine-
>>>De : [EMAIL PROTECTED]
>>>[mailto:[EMAIL PROTECTED]]De la part de
>>>[EMAIL PROTECTED]
>>>Envoye : mardi, 28 mai 2002 16:03
>>>A : [EMAIL PROTECTED]
>>>Objet : [JBoss-user] no reuse of pooled XAConnections
>>>
>>>
>>>Hello folks,
>>>
>>>I have a stateless session bean with transaction set to required. I am
>>>using JBoss2.4.5.
>>>I fetch a connection
>>>tempDS = (DataSource)tempIC.lookup(tempLookup);
>>>if (tempDS != null) {
>>>try {
>>> tempConnection = tempDS.getConnection();
>>>} catch (SQLException se) {
>>> ...
>>>}
>>>}
>>>and work on it. When the invocation on my session bean ends I expect that
>>>my connection is released and can be reused. But instead after a
>>>while I am
>>>getting
>>>java.sql.SQLException: ORA-00020: maximum number of processes (150)
>>>exceeded
>>>at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:168)
>>>at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:208)
>>>at oracle.jdbc.ttc7.O3log.receive1st(O3log.java:428)
>>>at oracle.jdbc.ttc7.T

Re: [JBoss-user] no reuse of pooled XAConnections

2002-05-28 Thread David Ward

Sorry - in re-reading what I sent I gave you some misleading info.  The 
"UserTransaction" is something that can be looked up via jndi from some 
sort of controller (usually a servlet) who can begin, commit or rollback 
a section of work, and that tx will get re-used by any EJB within that 
thread with a trans-attribute of Required or Supports.

Now, if you don't already have a TX in process when your "MyBean" runs, 
your "Required" attribute will prompt the server to start one for you at 
that point, otherwise it will just reuse what's already started. 
("RequiresNew" will always start a new one.)

No matter what though, a tx-aware DB Connection used within your 
"Required" tx EJB will get committed or rolled back automatically, so 
that part of my last email was right.

Sorry for any confusion.  I'm just in the habit of starting tx's myself 
from my servlet controllers.

David

--


David Ward wrote:
> I don't know the in's and out's of the container (as far as who calls 
> what on who when) - but from an application developer/assembler 
> standpoint, since you have a trans-attribute of Required, the 
> UserTransaction associated with the current thread of execution will get 
> committed (if no problems - otherwise rolled back).  So, all tx-aware 
> resources (like your DB connection) used within the boundaries of the 
> UserTransaction will get committed.
> 
> In short, since you specified Required, you do not have to call commit() 
> yourself, much less know on who needs it.  You just need to make sure 
> you call close on the Connection wrapper.
> 
> BTW, just use the java.sql.Connection interface for "tempConnetion" - 
> don't use XAClientConnection.
> 
> David
> 
> -- 
> 
> [EMAIL PROTECTED] wrote:
> 
>> When I close the XAClientConnection like this
>>
>> tempDS = (DataSource)tempIC.lookup(tempLookup);
>> tempConnection = tempDS.getConnection();
>> //do stuff on connection
>> ...
>> tempConnection.close()
>>
>>
>> Then the container commit() on what? On the wrapped connection?
>>
>> In my ejb-jar.xml I have some lines
>> 
>>  
>>   
>>MyBean
>>Remote
>>*
>>   
>>   Required
>>  
>> 
>>
>> Thanks,
>> Stephan
>>
>>
>>
>>
>> David Ward <[EMAIL PROTECTED]> am 28.05.2002 18:27:09
>>
>> Bitte antworten an [EMAIL PROTECTED]
>> 
>> 
>>   
>> An:Stephan Frind/Duesseldorf/Gebit
>>   
>> Kopie  [EMAIL PROTECTED] 
>> : 
>> 
>> 
>>   
>> Thema  Re: [JBoss-user] no reuse of pooled  :  
>> XAConnections  
>>
>>
>>
>>
>>
>>
>> The Connection you get from a javax.sql.DataSource is actually a facade
>> to a real DB Connection (what you're thinking about).  Calling close()
>> on the facade you get doesn't actually close the DB Connection, it just
>> returns it to the pool.  If you don't return it using close() in a
>> finally block you will quickly run out of database resources.  This
>> behavior is standard and expected.
>> David
>> -- 
>> [EMAIL PROTECTED] wrote:
>>
>>> What I am doing is to lookup a datasource in my session bean via jndi.
>>> Because I do NOT create it and I don't know what should happen after me
>>> (for instance commit() should be done by the container) I can't close 
>>> the
>>> connection.
>>> Of course I close my statements, resultsets, etc.
>>>
>>> Again I thought the container creates, commits and closes connections.
>>
>>
>> BTW
>>
>>> I have done it on Websphere too and I have the impression it works there
>>> that way. Therefor I think I have configured something wrong.
>>>
>>> Regards,
>>> Stephan
>>>
>>>
>>>
>>>
>>> "Sacha Labourey" <[EMAIL PROTECTED]> am 28.05.2002
>>
>>
>> 16:08:47
>>
>>> Bitte antworten an [EMAIL PROTECTED]
>>>
>>>
>>>
>>>  An:[EMAIL PROTECTED]
>>>
>>>  Kopie  (Blindkopie: Stephan Frind/Duesseldorf/Gebit)
>>>  :
>>>
>>>
>>>
>>>  Thema  RE: [JBoss-user] no reuse of pooled
>>>  :  XAConnections
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> you need to close your connection (and any other resources such as
>>> preparedstatements, resultset, etc.) in the finally clause of your try:
>>> try
>>> {
>>> con = ds.getConnection();
>>> ps = con.create...
>>> }
>>> catch (WhateverException we)
>>> {
>>> bla;
>>> }
>>> finally
>>> {
>>> try { ps.close (); } catch (Exception ignored) {}
>>> try { con.close (); } catch (Exception ignored) {}
>>>

RE: [JBoss-user] classpath

2002-05-28 Thread JD Brennan
Title: RE: [JBoss-user] classpath





You can put the .sar in your EJB .jar file to give your beans access to it.
Not sure about other stuff in the .ear - I'm assuming you have an EJB .jar
in the .ear


JD


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 28, 2002 10:13 AM
To: [EMAIL PROTECTED]
Subject: [JBoss-user] classpath



Hello!


    Can anyone please point me, how can I place my JARs within EAR application to be able to use defined there classes wintin EnterpriseBean?

    Now I have 2 archives:
        - EAR with beans and webbapp;
        - SAR with oracle-servise.xml and my utility classes;


    Howewer, in deployment time everithing is ok. No one exception, and I can see in logs that my SAR is deployed.
    But in runtime, when I try to call one of method of my bean, when I use my utility classes, I got Exception NoCassDefFoundError.

    May be I need to define this in descriptor? Or to place this archive somehow special?


Best regards,
    Andrey Onistchuk.


___


Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm


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





[JBoss-user] Branch_3_0 - ear deployment - classloader order

2002-05-28 Thread Dave Smith

I am using the latest CVS Branch_3_0. I am deploying an ear file 
(cactus tests). My format looks like ..

   0 Tue May 28 14:02:52 EDT 2002 META-INF/
45 Tue May 28 14:02:52 EDT 2002 META-INF/MANIFEST.MF
172149 Tue May 28 14:02:52 EDT 2002 cadexTest.war
 42770 Tue May 28 13:58:10 EDT 2002 cadex-test.jar
   274 Thu Jan 24 16:22:42 EST 2002 META-INF/application.xml


The war file

0 Tue May 28 14:02:52 EDT 2002 META-INF/
45 Tue May 28 14:02:52 EDT 2002 META-INF/MANIFEST.MF
 0 Tue May 28 14:02:52 EDT 2002 WEB-INF/
   164 Fri Jan 25 10:14:28 EST 2002 WEB-INF/jboss-web.xml
 0 Tue May 28 14:02:52 EDT 2002 WEB-INF/lib/
117522 Thu Jan 03 16:12:36 EST 2002 WEB-INF/lib/junit.jar
 71832 Tue Feb 26 17:58:12 EST 2002 WEB-INF/lib/cactus.jar
  1964 Wed May 22 15:55:18 EDT 2002 WEB-INF/lib/candata_test_util.jar
   506 Thu Jan 24 15:21:14 EST 2002 WEB-INF/web.xml

Now when I go to run the test the war file does not see classes in
cadexTest.jar. If I stick cadexTest.jar in the war then on redeploy the
class changes are not shown. I thought the default jetty settings were
to use the jboss classloader, so when the war is running and it can not
find the class in the war it should then look in the jar in the ear.

The problem is as I add change my test cases I would like to be able to
re-deploy them without shutting down the container.






___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

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



[JBoss-user] classpath

2002-05-28 Thread Андрей Онищук

Hello!

Can anyone please point me, how can I place my JARs within EAR application to 
be able to use defined there classes wintin EnterpriseBean?
Now I have 2 archives:
- EAR with beans and webbapp;
- SAR with oracle-servise.xml and my utility classes;

Howewer, in deployment time everithing is ok. No one exception, and I can see 
in logs that my SAR is deployed.
But in runtime, when I try to call one of method of my bean, when I use my 
utility classes, I got Exception NoCassDefFoundError.

May be I need to define this in descriptor? Or to place this archive somehow 
special?

Best regards,
Andrey Onistchuk.

___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

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



Re: [JBoss-user] [HELP] 3.0 RC1 & PostgreSQL

2002-05-28 Thread Javier A. Soltero

Thanks David. Everythings cooking now. :)

I've just started working with JBoss (we're using it to develop our next 
generation applications) and so far it looks really good. I appreciate 
your help and I look forward to contributing to the project!

-javier

David Jencks wrote:
> On 2002.05.28 11:58:43 -0400 Javier A. Soltero wrote:
> 
>>I'll do that right away. Thanks.
>>
>>Is there a reason why the jboss.org website only lists RC1 to download? 
> 
> 
> Mostly that I haven't made the time to update it.  I think it needs to
> point only to the sourceforge project download page, I can't keep up with
> the versions, and I don't see anyone else doing so either.
> 
> david jencks
> 
> 
> 
>>It seems inconsistent from what is found via the sourceforge project web 
>>page.
>>
>>-javier
>>
>>David Jencks wrote:
>>
>>>Please start by upgrading to jboss 3 rc3 or cvs.  The db configuration
>>
>>has
>>
>>>changed very significantly from earlier versions and I cannot support
>>>earlier versions any longer.
>>>
>>>david jencks
>>>
>>>On 2002.05.28 10:58:55 -0400 Javier A. Soltero wrote:
>>>
>>>
Hi all,

I've been trying to set up a postgreSQL service and have had no luck so
>>>
far. I have downloaded the postgres-service.xml file from CVS and 
applied it to RC1. The postgres driver's jar is in jboss/lib and I have
>>>
made the necessary changes to the xml file to match my setting. It
>>>
>>seems 
>>
like the datasource name never gets bound to JNDI. Below is the output 
>>>
from the service's startup:
>>>
07:53:15,087 INFO  [MainDeployer] Starting deployment of package: 
file:/home/javier/dev/jboss-3.0RC1/server/default/deploy/postgres-service.xml
07:53:15,873 WARN  [ServiceController] 
jboss.jca:service=LocalTxDS,name=PostgresDS does not implement any 
Service methods
07:53:15,875 INFO  [JBossManagedConnectionPool] Creating
07:53:15,876 INFO  [JBossManagedConnectionPool] Created
07:53:15,879 INFO  [JBossManagedConnectionPool] Starting
07:53:15,880 INFO  [JBossManagedConnectionPool] Started
07:53:15,881 INFO  [MainDeployer] Successfully completed deployment of 
package: 
file:/home/javier/dev/jboss-3.0RC1/server/default/deploy/postgres-service.xml

I have also added a section to login-config.xml to match what is in the
>>>
service.xml file as described in the comments. I have attached my 
postgres-service.xml file below. Any help is appreciated.

thanks,

-javier




  
  
  
  
  



  >>>code="org.jboss.resource.connectionmanager.LocalTxConnectionManager" 
name="jboss.jca:service=LocalTxCM,name=PostgresDS">



>>



  
  >>
name="jboss.jca:service=LocalTxDS,name=PostgresDS">

PostgresDS

  
>>>type="java.lang.String">jdbc:postgresql://localhost:1522/spider
>>>type="java.lang.String">org.postgresql.Driver

>>>type="java.lang.String">javier
>>>type="java.lang.String">
  





>>>optional-attribute-name="OldRarDeployment">jboss.jca:service=RARDeployment,name=JBoss

LocalTransaction JDBC Wrapper


  



  
  >>>code="org.jboss.resource.connectionmanager.JBossManagedConnectionPool" 
name="jboss.jca:service=LocalTxPool,name=PostgresDS">

10
30
5000
15

ByContainer
  


>>>optional-attribute-name="CachedConnectionManager">jboss.jca:service=CachedConnectionManager



>>>name="TransactionManager">java:/TransactionManager

jboss.jca:service=RARDeployer


  





___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

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


>>>
>>>
>>>___
>>>
>>>Don't miss the 2002 Sprint PCS Application Developer's Conference
>>>August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
>>>
>>>___
>>>JBoss-user mailing list
>>>[EMAIL PROTECTED]
>>>https://lists.sourceforge.net/lists/listinfo/jboss-user
>>>
>>
>>
>>
>>___
>>
>>Don't miss the 2002 Sprint PCS Application Developer's Conference
>>August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
>>
>>

Re: Re[8]: [JBoss-user] [HELP] Is there someone to help me?

2002-05-28 Thread wonder sonic

Okay:
-1- I've checked out the last version in the CVS
repository (jboss-all)
-2- .../jboss-all/build/build.bat rebuild the new
release
-3- and now? What should I do? take all the tree under
the output directory and paste it in my RC1
directory ?!? (And what about catalina?)

why, why so much questions... ;)

tia,
wonder sonic

 --- Wim Praet <[EMAIL PROTECTED]> a écrit : > Ah!
try using RC2 or RC3.
> I know someone who also got this "proxy"
> ClassCastException problem, and it
> dissapeared in RC2. So please, deploy and check your
> code with RC2  or RC3
> (attention: the -service.xml file for your
> database might have changed
> so you need to update that too).
> 
> succes!
> wim.
> 
> 
> - Original Message -
> From: "wonder sonic" <[EMAIL PROTECTED]>
> To: "Wim Praet" <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Sent: Tuesday, May 28, 2002 6:00 PM
> Subject: Re: Re[8]: [JBoss-user] [HELP] Is there
> someone to help me?
> 
> 
> > I'm using RC1 (jboss-3.0.0RC1_tomcat-4.0.3).
> > Beans used: UserSession, User, Sequence and
> > SequenceSession. In the web application: only
> > UserSession.
> >
> > ejb-jar.xml:
> > ...
> > 
> > 
> >  SequenceSession
> > 
> org.myrpg.atlas.ejb.SequenceSessionHome
> > 
> org.myrpg.atlas.ejb.SequenceSession
> >
> >
>
org.myrpg.atlas.ejb.SequenceSessionLocalHome
> >
> >
>
org.myrpg.atlas.ejb.SequenceSessionLocal
> >
> >
>
org.myrpg.atlas.ejb.SequenceSessionBean
> >  Stateless
> >  Container
> >  
> >   Number of retries (default:
> > 5).
> >   retryCount
> >  
> java.lang.Integer
> >   5
> >  
> >  
> >   Increment number (default:
> > 10).
> >   blockSize
> >  
> java.lang.Integer
> >   10
> >  
> > 
> >
> > 
> > 
> >  UserSession
> >  org.myrpg.atlas.ejb.UserSessionHome
> >  org.myrpg.atlas.ejb.UserSession
> >
> >
>
org.myrpg.atlas.ejb.UserSessionBean
> >  Stateless
> >  Container
> > 
> >
> > 
> > 
> > 
> >  User
> >  org.myrpg.atlas.ejb.UserHome
> >  org.myrpg.atlas.ejb.User
> >
> >
>
org.myrpg.atlas.ejb.UserLocalHome
> >  org.myrpg.atlas.ejb.UserLocal
> > 
> org.myrpg.atlas.ejb.UserBean
> >  Container
> > 
> java.lang.Integer
> >  False
> >  2.x
> > 
>
UserBean
> > 
> pk
> >
> >
>
firstName
> >
> >
>
lastName
> > 
>
eMail
> > 
> age
> >
> >
>
question
> >
> >
>
answer
> > 
>
login
> >
> >
>
password
> > 
> role
> >
> >
>
status
> >  pk
> > 
> >
> > 
> > 
> >  Sequence
> >  org.myrpg.atlas.ejb.SequenceHome
> >  org.myrpg.atlas.ejb.Sequence
> >
> >
>
org.myrpg.atlas.ejb.SequenceLocalHome
> >  org.myrpg.atlas.ejb.SequenceLocal
> >
> >
>
org.myrpg.atlas.ejb.SequenceBean
> >  Container
> >  java.lang.String
> >  False
> >  2.x
> >
> >
>
SequenceBean
> > 
>
index
> > 
> name
> >  name
> > 
> >
> > ...
> > 
> > 
> >
> > 
> >  
> >   
> >SequenceSession
> >*
> >   
> >   Required
> >  
> >
> > 
> >  
> >   
> >Sequence
> >
> >
>
getValueAfterIncrementingBy
> >   
> >   RequiresNew
> >   
> > 
> >
> > 
> >
>
===
> > jboss-web.xml:
> 
=== message truncated === 

___
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com

___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

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



[JBoss-user] Forums Up?

2002-05-28 Thread John Childress

Can anyone get to the forums?  I haven't been able to access them since
yesterday, just wondering if it is my connection?

Thanks,

John
--
John Childress
http://www.johnchildress.com

___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

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



Re: Re: [JBoss-user] no reuse of pooled XAConnections

2002-05-28 Thread Stephan . Frind

When I close the XAClientConnection like this

tempDS = (DataSource)tempIC.lookup(tempLookup);
tempConnection = tempDS.getConnection();
//do stuff on connection
...
tempConnection.close()


Then the container commit() on what? On the wrapped connection?

In my ejb-jar.xml I have some lines

 
  
   MyBean
   Remote
   *
  
  Required
 


Thanks,
Stephan




David Ward <[EMAIL PROTECTED]> am 28.05.2002 18:27:09

Bitte antworten an [EMAIL PROTECTED]



  An:Stephan Frind/Duesseldorf/Gebit

  Kopie  [EMAIL PROTECTED]   
  : 



  Thema  Re: [JBoss-user] no reuse of pooled
  :  XAConnections  







The Connection you get from a javax.sql.DataSource is actually a facade
to a real DB Connection (what you're thinking about).  Calling close()
on the facade you get doesn't actually close the DB Connection, it just
returns it to the pool.  If you don't return it using close() in a
finally block you will quickly run out of database resources.  This
behavior is standard and expected.
David
--
[EMAIL PROTECTED] wrote:
> What I am doing is to lookup a datasource in my session bean via jndi.
> Because I do NOT create it and I don't know what should happen after me
> (for instance commit() should be done by the container) I can't close the
> connection.
> Of course I close my statements, resultsets, etc.
>
> Again I thought the container creates, commits and closes connections.
BTW
> I have done it on Websphere too and I have the impression it works there
> that way. Therefor I think I have configured something wrong.
>
> Regards,
> Stephan
>
>
>
>
> "Sacha Labourey" <[EMAIL PROTECTED]> am 28.05.2002
16:08:47
>
> Bitte antworten an [EMAIL PROTECTED]
>
>
>
>   An:[EMAIL PROTECTED]
>
>   Kopie  (Blindkopie: Stephan Frind/Duesseldorf/Gebit)
>   :
>
>
>
>   Thema  RE: [JBoss-user] no reuse of pooled
>   :  XAConnections
>
>
>
>
>
>
>
> you need to close your connection (and any other resources such as
> preparedstatements, resultset, etc.) in the finally clause of your try:
> try
> {
>  con = ds.getConnection();
>  ps = con.create...
> }
> catch (WhateverException we)
> {
>  bla;
> }
> finally
> {
>  try { ps.close (); } catch (Exception ignored) {}
>  try { con.close (); } catch (Exception ignored) {}
>  ...
> }
>
>>-Message d'origine-
>>De : [EMAIL PROTECTED]
>>[mailto:[EMAIL PROTECTED]]De la part de
>>[EMAIL PROTECTED]
>>Envoye : mardi, 28 mai 2002 16:03
>>A : [EMAIL PROTECTED]
>>Objet : [JBoss-user] no reuse of pooled XAConnections
>>
>>
>>Hello folks,
>>
>>I have a stateless session bean with transaction set to required. I am
>>using JBoss2.4.5.
>>I fetch a connection
>>tempDS = (DataSource)tempIC.lookup(tempLookup);
>>if (tempDS != null) {
>> try {
>>  tempConnection = tempDS.getConnection();
>> } catch (SQLException se) {
>>  ...
>> }
>>}
>>and work on it. When the invocation on my session bean ends I expect that
>>my connection is released and can be reused. But instead after a
>>while I am
>>getting
>>java.sql.SQLException: ORA-00020: maximum number of processes (150)
>>exceeded
>> at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:168)
>> at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:208)
>> at oracle.jdbc.ttc7.O3log.receive1st(O3log.java:428)
>> at oracle.jdbc.ttc7.TTC7Protocol.logon(TTC7Protocol.java:248)
>> at
>>oracle.jdbc.driver.OracleConnection.(OracleConnection.java:246)
>> at
>>oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver
>>.java:365
>>)
>> at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:260)
>> at java.sql.DriverManager.getConnection(DriverManager.java:517)
>> at java.sql.DriverManager.getConnection(DriverManager.java:177)
>> at
>>org.jboss.pool.jdbc.xa.wrapper.XADataSourceImpl.getXAConnection(XA
>>DataSourc
>>eImpl.java:176)
>> at
>>org.jboss.pool.jdbc.xa.XAConnectionFactory.createObject(XAConnecti
>>onFactory
>>.java:282)
>> at org.jboss.pool.ObjectPool.createNewObject(ObjectPool.java:1004)
>> at org.jboss.pool.ObjectPool.getObject(ObjectPool.java:663)
>> at
>>org.jboss.pool.jdbc.xa.XAPoolDataSource.getConnection(XAPoolDataSo
>>urce.java
>>:215)
>>
>>Could you point me into the right direction? Could you give me a hint
>
> wha

Re: RE: [JBoss-user] no reuse of pooled XAConnections

2002-05-28 Thread David Jencks

Close your connections when you are done with them.  This simply returns
them to the pool.  In most versions of jboss (except recent jboss 3
versions) the containers' commit won't work properly unless you have closed
the connection first.

david jencks

On 2002.05.28 12:01:02 -0400 [EMAIL PROTECTED] wrote:
> What I am doing is to lookup a datasource in my session bean via jndi.
> Because I do NOT create it and I don't know what should happen after me
> (for instance commit() should be done by the container) I can't close the
> connection.
> Of course I close my statements, resultsets, etc.
> 
> Again I thought the container creates, commits and closes connections.
> BTW
> I have done it on Websphere too and I have the impression it works there
> that way. Therefor I think I have configured something wrong.
> 
> Regards,
> Stephan
> 
> 
> 
> 
> "Sacha Labourey" <[EMAIL PROTECTED]> am 28.05.2002
> 16:08:47
> 
> Bitte antworten an [EMAIL PROTECTED]
> 
> 
> 
>   An:[EMAIL PROTECTED]   
> 
>   Kopie  (Blindkopie: Stephan Frind/Duesseldorf/Gebit)  
>   : 
> 
> 
> 
>   Thema  RE: [JBoss-user] no reuse of pooled
>   :  XAConnections  
> 
> 
> 
> 
> 
> 
> 
> you need to close your connection (and any other resources such as
> preparedstatements, resultset, etc.) in the finally clause of your try:
> try
> {
>  con = ds.getConnection();
>  ps = con.create...
> }
> catch (WhateverException we)
> {
>  bla;
> }
> finally
> {
>  try { ps.close (); } catch (Exception ignored) {}
>  try { con.close (); } catch (Exception ignored) {}
>  ...
> }
> > -Message d'origine-
> > De : [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]]De la part de
> > [EMAIL PROTECTED]
> > Envoye : mardi, 28 mai 2002 16:03
> > A : [EMAIL PROTECTED]
> > Objet : [JBoss-user] no reuse of pooled XAConnections
> >
> >
> > Hello folks,
> >
> > I have a stateless session bean with transaction set to required. I am
> > using JBoss2.4.5.
> > I fetch a connection
> > tempDS = (DataSource)tempIC.lookup(tempLookup);
> > if (tempDS != null) {
> >  try {
> >   tempConnection = tempDS.getConnection();
> >  } catch (SQLException se) {
> >   ...
> >  }
> > }
> > and work on it. When the invocation on my session bean ends I expect
> that
> > my connection is released and can be reused. But instead after a
> > while I am
> > getting
> > java.sql.SQLException: ORA-00020: maximum number of processes (150)
> > exceeded
> >  at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:168)
> >  at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:208)
> >  at oracle.jdbc.ttc7.O3log.receive1st(O3log.java:428)
> >  at oracle.jdbc.ttc7.TTC7Protocol.logon(TTC7Protocol.java:248)
> >  at
> > oracle.jdbc.driver.OracleConnection.(OracleConnection.java:246)
> >  at
> > oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver
> > .java:365
> > )
> >  at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:260)
> >  at java.sql.DriverManager.getConnection(DriverManager.java:517)
> >  at java.sql.DriverManager.getConnection(DriverManager.java:177)
> >  at
> > org.jboss.pool.jdbc.xa.wrapper.XADataSourceImpl.getXAConnection(XA
> > DataSourc
> > eImpl.java:176)
> >  at
> > org.jboss.pool.jdbc.xa.XAConnectionFactory.createObject(XAConnecti
> > onFactory
> > .java:282)
> >  at org.jboss.pool.ObjectPool.createNewObject(ObjectPool.java:1004)
> >  at org.jboss.pool.ObjectPool.getObject(ObjectPool.java:663)
> >  at
> > org.jboss.pool.jdbc.xa.XAPoolDataSource.getConnection(XAPoolDataSo
> > urce.java
> > :215)
> >
> > Could you point me into the right direction? Could you give me a hint
> what
> > I may have missconfigured or where in the code the connection is put
> back
> > to the pool?
> >
> > Thanks a lot in advance,
> > Stephan
> >
> >
> >
> > ___
> >
> > Don't miss the 2002 Sprint PCS Application Developer's Conference
> > August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
> >
> > ___
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/jboss-user
> >
> 
> ___
> Don't miss the 2002 Sprint PCS Application Developer's Conference
> 

Re: [JBoss-user] [HELP] 3.0 RC1 & PostgreSQL

2002-05-28 Thread David Jencks

On 2002.05.28 11:58:43 -0400 Javier A. Soltero wrote:
> I'll do that right away. Thanks.
> 
> Is there a reason why the jboss.org website only lists RC1 to download? 

Mostly that I haven't made the time to update it.  I think it needs to
point only to the sourceforge project download page, I can't keep up with
the versions, and I don't see anyone else doing so either.

david jencks


> It seems inconsistent from what is found via the sourceforge project web 
> page.
> 
> -javier
> 
> David Jencks wrote:
> > Please start by upgrading to jboss 3 rc3 or cvs.  The db configuration
> has
> > changed very significantly from earlier versions and I cannot support
> > earlier versions any longer.
> > 
> > david jencks
> > 
> > On 2002.05.28 10:58:55 -0400 Javier A. Soltero wrote:
> > 
> >>Hi all,
> >>
> >>I've been trying to set up a postgreSQL service and have had no luck so
> 
> >>far. I have downloaded the postgres-service.xml file from CVS and 
> >>applied it to RC1. The postgres driver's jar is in jboss/lib and I have
> 
> >>made the necessary changes to the xml file to match my setting. It
> seems 
> >>like the datasource name never gets bound to JNDI. Below is the output 
> >>from the service's startup:
> >>
> >>07:53:15,087 INFO  [MainDeployer] Starting deployment of package: 
> >>file:/home/javier/dev/jboss-3.0RC1/server/default/deploy/postgres-service.xml
> >>07:53:15,873 WARN  [ServiceController] 
> >>jboss.jca:service=LocalTxDS,name=PostgresDS does not implement any 
> >>Service methods
> >>07:53:15,875 INFO  [JBossManagedConnectionPool] Creating
> >>07:53:15,876 INFO  [JBossManagedConnectionPool] Created
> >>07:53:15,879 INFO  [JBossManagedConnectionPool] Starting
> >>07:53:15,880 INFO  [JBossManagedConnectionPool] Started
> >>07:53:15,881 INFO  [MainDeployer] Successfully completed deployment of 
> >>package: 
> >>file:/home/javier/dev/jboss-3.0RC1/server/default/deploy/postgres-service.xml
> >>
> >>I have also added a section to login-config.xml to match what is in the
> 
> >>service.xml file as described in the comments. I have attached my 
> >>postgres-service.xml file below. Any help is appreciated.
> >>
> >>thanks,
> >>
> >>-javier
> >>
> >>
> >>
> >>
> >>   
> >>   
> >>   
> >>   
> >>   
> >>
> >>
> >>
> >>>>code="org.jboss.resource.connectionmanager.LocalTxConnectionManager" 
> >>name="jboss.jca:service=LocalTxCM,name=PostgresDS">
> >> 
> >> 
> >> 
> >> 
> >>
> >> 
> >>   
> >>
> >>name="jboss.jca:service=LocalTxDS,name=PostgresDS">
> >>
> >> PostgresDS
> >> 
> >>   
> >>  >>type="java.lang.String">jdbc:postgresql://localhost:1522/spider
> >>  >>type="java.lang.String">org.postgresql.Driver
> >> 
> >>  >>type="java.lang.String">javier
> >>  >>type="java.lang.String">
> >>   
> >>
> >> 
> >>
> >>
> >> 
> >>  
>>>optional-attribute-name="OldRarDeployment">jboss.jca:service=RARDeployment,name=JBoss
> >>
> >>LocalTransaction JDBC Wrapper
> >>
> >> 
> >>   
> >> 
> >>
> >> 
> >>   
> >>>>code="org.jboss.resource.connectionmanager.JBossManagedConnectionPool" 
> >>name="jboss.jca:service=LocalTxPool,name=PostgresDS">
> >>
> >> 10
> >> 30
> >> 5000
> >> 15
> >> 
> >> ByContainer
> >>   
> >>
> >> 
> >>  
>>>optional-attribute-name="CachedConnectionManager">jboss.jca:service=CachedConnectionManager
> >>
> >>
> >>
> >>  >>name="TransactionManager">java:/TransactionManager
> >> 
> >> jboss.jca:service=RARDeployer
> >>
> >>
> >>   
> >>
> >>
> >>
> >>
> >>
> >>___
> >>
> >>Don't miss the 2002 Sprint PCS Application Developer's Conference
> >>August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
> >>
> >>___
> >>JBoss-user mailing list
> >>[EMAIL PROTECTED]
> >>https://lists.sourceforge.net/lists/listinfo/jboss-user
> >>
> >>
> > 
> > 
> > ___
> > 
> > Don't miss the 2002 Sprint PCS Application Developer's Conference
> > August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
> > 
> > ___
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/jboss-user
> > 
> 
> 
> 
> ___
> 
> Don't miss the 2002 Sprint PCS Application Developer's Conference
> August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 
> 

___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-2

Re: [JBoss-user] no reuse of pooled XAConnections

2002-05-28 Thread David Ward

The Connection you get from a javax.sql.DataSource is actually a facade 
to a real DB Connection (what you're thinking about).  Calling close() 
on the facade you get doesn't actually close the DB Connection, it just 
returns it to the pool.  If you don't return it using close() in a 
finally block you will quickly run out of database resources.  This 
behavior is standard and expected.

David

--

[EMAIL PROTECTED] wrote:
> What I am doing is to lookup a datasource in my session bean via jndi.
> Because I do NOT create it and I don't know what should happen after me
> (for instance commit() should be done by the container) I can't close the
> connection.
> Of course I close my statements, resultsets, etc.
> 
> Again I thought the container creates, commits and closes connections. BTW
> I have done it on Websphere too and I have the impression it works there
> that way. Therefor I think I have configured something wrong.
> 
> Regards,
> Stephan
> 
> 
> 
> 
> "Sacha Labourey" <[EMAIL PROTECTED]> am 28.05.2002 16:08:47
> 
> Bitte antworten an [EMAIL PROTECTED]
> 
> 
> 
>   An:[EMAIL PROTECTED]   
> 
>   Kopie  (Blindkopie: Stephan Frind/Duesseldorf/Gebit)  
>   : 
> 
> 
> 
>   Thema  RE: [JBoss-user] no reuse of pooled
>   :  XAConnections  
> 
> 
> 
> 
> 
> 
> 
> you need to close your connection (and any other resources such as
> preparedstatements, resultset, etc.) in the finally clause of your try:
> try
> {
>  con = ds.getConnection();
>  ps = con.create...
> }
> catch (WhateverException we)
> {
>  bla;
> }
> finally
> {
>  try { ps.close (); } catch (Exception ignored) {}
>  try { con.close (); } catch (Exception ignored) {}
>  ...
> }
> 
>>-Message d'origine-
>>De : [EMAIL PROTECTED]
>>[mailto:[EMAIL PROTECTED]]De la part de
>>[EMAIL PROTECTED]
>>Envoye : mardi, 28 mai 2002 16:03
>>A : [EMAIL PROTECTED]
>>Objet : [JBoss-user] no reuse of pooled XAConnections
>>
>>
>>Hello folks,
>>
>>I have a stateless session bean with transaction set to required. I am
>>using JBoss2.4.5.
>>I fetch a connection
>>tempDS = (DataSource)tempIC.lookup(tempLookup);
>>if (tempDS != null) {
>> try {
>>  tempConnection = tempDS.getConnection();
>> } catch (SQLException se) {
>>  ...
>> }
>>}
>>and work on it. When the invocation on my session bean ends I expect that
>>my connection is released and can be reused. But instead after a
>>while I am
>>getting
>>java.sql.SQLException: ORA-00020: maximum number of processes (150)
>>exceeded
>> at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:168)
>> at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:208)
>> at oracle.jdbc.ttc7.O3log.receive1st(O3log.java:428)
>> at oracle.jdbc.ttc7.TTC7Protocol.logon(TTC7Protocol.java:248)
>> at
>>oracle.jdbc.driver.OracleConnection.(OracleConnection.java:246)
>> at
>>oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver
>>.java:365
>>)
>> at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:260)
>> at java.sql.DriverManager.getConnection(DriverManager.java:517)
>> at java.sql.DriverManager.getConnection(DriverManager.java:177)
>> at
>>org.jboss.pool.jdbc.xa.wrapper.XADataSourceImpl.getXAConnection(XA
>>DataSourc
>>eImpl.java:176)
>> at
>>org.jboss.pool.jdbc.xa.XAConnectionFactory.createObject(XAConnecti
>>onFactory
>>.java:282)
>> at org.jboss.pool.ObjectPool.createNewObject(ObjectPool.java:1004)
>> at org.jboss.pool.ObjectPool.getObject(ObjectPool.java:663)
>> at
>>org.jboss.pool.jdbc.xa.XAPoolDataSource.getConnection(XAPoolDataSo
>>urce.java
>>:215)
>>
>>Could you point me into the right direction? Could you give me a hint
> 
> what
> 
>>I may have missconfigured or where in the code the connection is put back
>>to the pool?
>>
>>Thanks a lot in advance,
>>Stephan
>>
>>
>>
>>___
>>
>>Don't miss the 2002 Sprint PCS Application Developer's Conference
>>August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
>>
>>___
>>JBoss-user mailing list
>>[EMAIL PROTECTED]
>>https://lists.sourceforge.net/lists/listinfo/jboss-user
>>
> 
> 
> ___
> Don't miss the 2002 Sprint PCS Application Developer's Conference
> August 25-28 in 

Re: [JBoss-user] [HELP] 3.0 RC1 & PostgreSQL

2002-05-28 Thread Javier A. Soltero

I'll do that right away. Thanks.

Is there a reason why the jboss.org website only lists RC1 to download? 
It seems inconsistent from what is found via the sourceforge project web 
page.

-javier

David Jencks wrote:
> Please start by upgrading to jboss 3 rc3 or cvs.  The db configuration has
> changed very significantly from earlier versions and I cannot support
> earlier versions any longer.
> 
> david jencks
> 
> On 2002.05.28 10:58:55 -0400 Javier A. Soltero wrote:
> 
>>Hi all,
>>
>>I've been trying to set up a postgreSQL service and have had no luck so 
>>far. I have downloaded the postgres-service.xml file from CVS and 
>>applied it to RC1. The postgres driver's jar is in jboss/lib and I have 
>>made the necessary changes to the xml file to match my setting. It seems 
>>like the datasource name never gets bound to JNDI. Below is the output 
>>from the service's startup:
>>
>>07:53:15,087 INFO  [MainDeployer] Starting deployment of package: 
>>file:/home/javier/dev/jboss-3.0RC1/server/default/deploy/postgres-service.xml
>>07:53:15,873 WARN  [ServiceController] 
>>jboss.jca:service=LocalTxDS,name=PostgresDS does not implement any 
>>Service methods
>>07:53:15,875 INFO  [JBossManagedConnectionPool] Creating
>>07:53:15,876 INFO  [JBossManagedConnectionPool] Created
>>07:53:15,879 INFO  [JBossManagedConnectionPool] Starting
>>07:53:15,880 INFO  [JBossManagedConnectionPool] Started
>>07:53:15,881 INFO  [MainDeployer] Successfully completed deployment of 
>>package: 
>>file:/home/javier/dev/jboss-3.0RC1/server/default/deploy/postgres-service.xml
>>
>>I have also added a section to login-config.xml to match what is in the 
>>service.xml file as described in the comments. I have attached my 
>>postgres-service.xml file below. Any help is appreciated.
>>
>>thanks,
>>
>>-javier
>>
>>
>>
>>
>>   
>>   
>>   
>>   
>>   
>>
>>
>>
>>   >code="org.jboss.resource.connectionmanager.LocalTxConnectionManager" 
>>name="jboss.jca:service=LocalTxCM,name=PostgresDS">
>> 
>> 
>> 
>> 
>>
>> 
>>   
>>   >name="jboss.jca:service=LocalTxDS,name=PostgresDS">
>>
>> PostgresDS
>> 
>>   
>> >type="java.lang.String">jdbc:postgresql://localhost:1522/spider
>> >type="java.lang.String">org.postgresql.Driver
>> 
>> >type="java.lang.String">javier
>> >type="java.lang.String">
>>   
>>
>> 
>>
>>
>> 
>> >optional-attribute-name="OldRarDeployment">jboss.jca:service=RARDeployment,name=JBoss
>>
>>LocalTransaction JDBC Wrapper
>>
>> 
>>   
>> 
>>
>> 
>>   
>>   >code="org.jboss.resource.connectionmanager.JBossManagedConnectionPool" 
>>name="jboss.jca:service=LocalTxPool,name=PostgresDS">
>>
>> 10
>> 30
>> 5000
>> 15
>> 
>> ByContainer
>>   
>>
>> 
>> >optional-attribute-name="CachedConnectionManager">jboss.jca:service=CachedConnectionManager
>>
>>
>>
>> >name="TransactionManager">java:/TransactionManager
>> 
>> jboss.jca:service=RARDeployer
>>
>>
>>   
>>
>>
>>
>>
>>
>>___
>>
>>Don't miss the 2002 Sprint PCS Application Developer's Conference
>>August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
>>
>>___
>>JBoss-user mailing list
>>[EMAIL PROTECTED]
>>https://lists.sourceforge.net/lists/listinfo/jboss-user
>>
>>
> 
> 
> ___
> 
> Don't miss the 2002 Sprint PCS Application Developer's Conference
> August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 



___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

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



Re: [JBoss-user] [HELP] 3.0 RC1 & PostgreSQL

2002-05-28 Thread David Jencks

Please start by upgrading to jboss 3 rc3 or cvs.  The db configuration has
changed very significantly from earlier versions and I cannot support
earlier versions any longer.

david jencks

On 2002.05.28 10:58:55 -0400 Javier A. Soltero wrote:
> 
> Hi all,
> 
> I've been trying to set up a postgreSQL service and have had no luck so 
> far. I have downloaded the postgres-service.xml file from CVS and 
> applied it to RC1. The postgres driver's jar is in jboss/lib and I have 
> made the necessary changes to the xml file to match my setting. It seems 
> like the datasource name never gets bound to JNDI. Below is the output 
> from the service's startup:
> 
> 07:53:15,087 INFO  [MainDeployer] Starting deployment of package: 
> file:/home/javier/dev/jboss-3.0RC1/server/default/deploy/postgres-service.xml
> 07:53:15,873 WARN  [ServiceController] 
> jboss.jca:service=LocalTxDS,name=PostgresDS does not implement any 
> Service methods
> 07:53:15,875 INFO  [JBossManagedConnectionPool] Creating
> 07:53:15,876 INFO  [JBossManagedConnectionPool] Created
> 07:53:15,879 INFO  [JBossManagedConnectionPool] Starting
> 07:53:15,880 INFO  [JBossManagedConnectionPool] Started
> 07:53:15,881 INFO  [MainDeployer] Successfully completed deployment of 
> package: 
> file:/home/javier/dev/jboss-3.0RC1/server/default/deploy/postgres-service.xml
> 
> I have also added a section to login-config.xml to match what is in the 
> service.xml file as described in the comments. I have attached my 
> postgres-service.xml file below. Any help is appreciated.
> 
> thanks,
> 
> -javier
> 
> 
> 
> 
>
>
>
>
>
> 
> 
> 
> code="org.jboss.resource.connectionmanager.LocalTxConnectionManager" 
> name="jboss.jca:service=LocalTxCM,name=PostgresDS">
>  
>  
>  
>  
> 
>  
>
> name="jboss.jca:service=LocalTxDS,name=PostgresDS">
> 
>  PostgresDS
>  
>
>   type="java.lang.String">jdbc:postgresql://localhost:1522/spider
>   type="java.lang.String">org.postgresql.Driver
>  
>   type="java.lang.String">javier
>   type="java.lang.String">
>
> 
>  
> 
> 
>  
>   optional-attribute-name="OldRarDeployment">jboss.jca:service=RARDeployment,name=JBoss
> 
> LocalTransaction JDBC Wrapper
> 
>  
>
>  
> 
>  
>
> code="org.jboss.resource.connectionmanager.JBossManagedConnectionPool" 
> name="jboss.jca:service=LocalTxPool,name=PostgresDS">
> 
>  10
>  30
>  5000
>  15
>  
>  ByContainer
>
> 
>  
>   
>optional-attribute-name="CachedConnectionManager">jboss.jca:service=CachedConnectionManager
> 
> 
> 
>   name="TransactionManager">java:/TransactionManager
>  
>  jboss.jca:service=RARDeployer
> 
> 
>
> 
> 
> 
> 
> 
> ___
> 
> Don't miss the 2002 Sprint PCS Application Developer's Conference
> August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 
> 

___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

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



Re: Re[8]: [JBoss-user] [HELP] Is there someone to help me?

2002-05-28 Thread wonder sonic

I'm using RC1 (jboss-3.0.0RC1_tomcat-4.0.3).
Beans used: UserSession, User, Sequence and
SequenceSession. In the web application: only
UserSession.

ejb-jar.xml:
...


 SequenceSession
 org.myrpg.atlas.ejb.SequenceSessionHome
 org.myrpg.atlas.ejb.SequenceSession

org.myrpg.atlas.ejb.SequenceSessionLocalHome

org.myrpg.atlas.ejb.SequenceSessionLocal

org.myrpg.atlas.ejb.SequenceSessionBean
 Stateless
 Container
 
  Number of retries (default:
5).
  retryCount
  java.lang.Integer
  5
 
 
  Increment number (default:
10).
  blockSize
  java.lang.Integer
  10
 




 UserSession
 org.myrpg.atlas.ejb.UserSessionHome
 org.myrpg.atlas.ejb.UserSession

org.myrpg.atlas.ejb.UserSessionBean
 Stateless
 Container





 User
 org.myrpg.atlas.ejb.UserHome
 org.myrpg.atlas.ejb.User

org.myrpg.atlas.ejb.UserLocalHome
 org.myrpg.atlas.ejb.UserLocal
 org.myrpg.atlas.ejb.UserBean
 Container
 java.lang.Integer
 False
 2.x
 UserBean
 pk

firstName

lastName
 eMail
 age

question

answer
 login

password
 role

status
 pk




 Sequence
 org.myrpg.atlas.ejb.SequenceHome
 org.myrpg.atlas.ejb.Sequence

org.myrpg.atlas.ejb.SequenceLocalHome
 org.myrpg.atlas.ejb.SequenceLocal

org.myrpg.atlas.ejb.SequenceBean
 Container
 java.lang.String
 False
 2.x

SequenceBean
 index
 name
 name


...




 
  
   SequenceSession
   *
  
  Required
 


 
  
   Sequence
  
getValueAfterIncrementingBy
  
  RequiresNew
  



===
jboss-web.xml:







ejb/UserSession
myrpg-atlas/UserSession



===
jboss.xml:



false





SequenceSession
myrpg-atlas/SequenceSession




UserSession
myrpg-atlas/UserSession





User
myrpg-atlas/User




Sequence
myrpg-atlas/Sequence





===
web.xml:

http://java.sun.com/dtd/web-app_2_3.dtd";>




Atlas
   
org.myrpg.atlas.Atlas



Atlas
/atlas



  index.jsp






ejb/UserSession
Session
   
org.myrpg.atlas.ejb.UserSessionHome
   
org.myrpg.atlas.ejb.UserSession


===
What are my mistakes???

Thanks in advance !
Wonder Sonic

 --- Wim Praet <[EMAIL PROTECTED]> a écrit : > which
version are u using? RC1, 2, 3?
> are both beans bound in jndi, under that name?
> 
> 
> - Original Message -
> From: "wonder sonic" <[EMAIL PROTECTED]>
> To: "Wim Praet" <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Sent: Tuesday, May 28, 2002 5:06 PM
> Subject: Re: Re[8]: [JBoss-user] [HELP] Is there
> someone to help me?
> 
> 
> > Theorically, I'm using an embedded Tomcat and I'm
> > aware
> > of the local/remote interface problems.
> > But it seems I don't use it properly :(
> > I have no working example.
> > Now my code is as follow:
> >
> > public void setSessionContext(
> > SessionContext
> sessionContext
> > )
> > {
> > try
> > {
> > Context namingContext = new
> >javax.naming.InitialContext();
> >
> > sequenceSessionLocal = (
> > (SequenceSessionLocalHome)
> >   namingContext.lookup(
> >"myrpg-atlas/SequenceSession" )
> > ).create();
> >
> > userLocalHome = (UserLocalHome)
> > namingContext.lookup(
> "myrpg-atlas/User"
> > );
> > }
> > catch( CreateException ce )
> > {
> > throw new EJBException( ce );
> > }
> > catch( NamingException ne )
> > {
> > throw new EJBException( ne );
> > }
> > }
> >
> > But I encounter the exception:
> > java.rmi.ServerException: $Proxy42; nested
> exception
> > is:
> > java.lang.ClassCastException: $Proxy42
> > at
> >
>
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor
> .java:119)
> > ...
> > Caused by: java.lang.ClassCastException: $Proxy42
> > at
> >
>
org.myrpg.atlas.ejb.UserSessionBean.setSessionContext(UserSessionBean.java:7
> 2)
> > at
> >
>
org.jboss.ejb.StatelessSessionEnterpriseContext.(StatelessSessionEnterpriseC
> ontext.java:47)
> > at
> >
>
org.jboss.ejb.plugins.StatelessSessionInstancePool.create(StatelessSessionIn
> stancePool.java:61)
> > at
> >
>
org.jboss.ejb.plugins.AbstractInstancePool.get(AbstractInstancePool.java:208
> )
> > at
> >
>
org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSe
> ssionInstanceInterceptor.java:63)
> > at
> >
>
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor
> .ja

Re: RE: [JBoss-user] no reuse of pooled XAConnections

2002-05-28 Thread Stephan . Frind

What I am doing is to lookup a datasource in my session bean via jndi.
Because I do NOT create it and I don't know what should happen after me
(for instance commit() should be done by the container) I can't close the
connection.
Of course I close my statements, resultsets, etc.

Again I thought the container creates, commits and closes connections. BTW
I have done it on Websphere too and I have the impression it works there
that way. Therefor I think I have configured something wrong.

Regards,
Stephan




"Sacha Labourey" <[EMAIL PROTECTED]> am 28.05.2002 16:08:47

Bitte antworten an [EMAIL PROTECTED]



  An:[EMAIL PROTECTED]   

  Kopie  (Blindkopie: Stephan Frind/Duesseldorf/Gebit)  
  : 



  Thema  RE: [JBoss-user] no reuse of pooled
  :  XAConnections  







you need to close your connection (and any other resources such as
preparedstatements, resultset, etc.) in the finally clause of your try:
try
{
 con = ds.getConnection();
 ps = con.create...
}
catch (WhateverException we)
{
 bla;
}
finally
{
 try { ps.close (); } catch (Exception ignored) {}
 try { con.close (); } catch (Exception ignored) {}
 ...
}
> -Message d'origine-
> De : [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]De la part de
> [EMAIL PROTECTED]
> Envoye : mardi, 28 mai 2002 16:03
> A : [EMAIL PROTECTED]
> Objet : [JBoss-user] no reuse of pooled XAConnections
>
>
> Hello folks,
>
> I have a stateless session bean with transaction set to required. I am
> using JBoss2.4.5.
> I fetch a connection
> tempDS = (DataSource)tempIC.lookup(tempLookup);
> if (tempDS != null) {
>  try {
>   tempConnection = tempDS.getConnection();
>  } catch (SQLException se) {
>   ...
>  }
> }
> and work on it. When the invocation on my session bean ends I expect that
> my connection is released and can be reused. But instead after a
> while I am
> getting
> java.sql.SQLException: ORA-00020: maximum number of processes (150)
> exceeded
>  at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:168)
>  at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:208)
>  at oracle.jdbc.ttc7.O3log.receive1st(O3log.java:428)
>  at oracle.jdbc.ttc7.TTC7Protocol.logon(TTC7Protocol.java:248)
>  at
> oracle.jdbc.driver.OracleConnection.(OracleConnection.java:246)
>  at
> oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver
> .java:365
> )
>  at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:260)
>  at java.sql.DriverManager.getConnection(DriverManager.java:517)
>  at java.sql.DriverManager.getConnection(DriverManager.java:177)
>  at
> org.jboss.pool.jdbc.xa.wrapper.XADataSourceImpl.getXAConnection(XA
> DataSourc
> eImpl.java:176)
>  at
> org.jboss.pool.jdbc.xa.XAConnectionFactory.createObject(XAConnecti
> onFactory
> .java:282)
>  at org.jboss.pool.ObjectPool.createNewObject(ObjectPool.java:1004)
>  at org.jboss.pool.ObjectPool.getObject(ObjectPool.java:663)
>  at
> org.jboss.pool.jdbc.xa.XAPoolDataSource.getConnection(XAPoolDataSo
> urce.java
> :215)
>
> Could you point me into the right direction? Could you give me a hint
what
> I may have missconfigured or where in the code the connection is put back
> to the pool?
>
> Thanks a lot in advance,
> Stephan
>
>
>
> ___
>
> Don't miss the 2002 Sprint PCS Application Developer's Conference
> August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
>
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
>

___
Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user




___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

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



Re: [JBoss-user] Possible 2.4.6 entity remove problem (classloader issue?)

2002-05-28 Thread Scott M Stark

2.4.5+ switched to have Tomcat use the parent delegation class loading
model by default. Use the Java2ClassLoadingCompliance attribute set
to false to restore the servlet 2.3 class loading model. Post a bug
to sourceforge with the testcase that causes this behavior.


Scott Stark
Chief Technology Officer
JBoss Group, LLC

- Original Message -
From: "David Hamilton" <[EMAIL PROTECTED]>
To: "JBoss User" <[EMAIL PROTECTED]>
Sent: Tuesday, May 28, 2002 7:14 AM
Subject: [JBoss-user] Possible 2.4.6 entity remove problem (classloader
issue?)


> Hi all,
>
> We have a problem with JBoss 2.4.6 with Tomcat 4.0.3.  In our Cactus
> unit-test suites, tests of the EJB Remove method have started failing.
>  Further investigation indicate that this is the same regardless of
> whether the remove is called on the Home or the Remote interface.  We
> are running the integrated JBoss-Tomcat configuration.
>
> We are getting a ClassCastException casting our primary key to the
> correct type from the EntityContext.  The debugger shows that the
> returned key object is of the correct class, indicating that there is
> some classloader issue involved.  The following log traces confirm this...
>
> // successful ejbLoad for business method, listing classloader class and
> system identity hashcode
> [14:50:42,962,EjbCompoundUserBean] EJB Classloader Identity =
> org.jboss.web.WebClassLoader - 4977982
> [14:50:42,962,EjbCompoundUserBean] PK  Classloader Identity =
> org.jboss.web.WebClassLoader - 4977982
>
> // trace for ejbLoad prior to remove being called, again listing
> classloader class and system identity hashcode
> [14:50:46,118,EjbCompoundUserBean] EJB Classloader Identity =
> org.jboss.web.WebClassLoader - 4977982
> [14:50:46,118,EjbCompoundUserBean] PK  Classloader Identity =
> org.apache.catalina.loader.WebappClassLoader - 10714218
>
> Note that the PK we are being given by the EntityContext is indeed using
> a different classloader instance (and indeed class...) from that of the
EJB.
>
> The other point to note is that the EJB being removed is one that has
> just been newly created.
>
> We have not seen this behaviour with 2.4.4.  Any thoughts would be
> appreciated.
>
> Thanks in advance
> David
>
>
>
>
>
> ___
>
> Don't miss the 2002 Sprint PCS Application Developer's Conference
> August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
>
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
>


___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

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



[JBoss-user] [HELP] 3.0 RC1 & PostgreSQL

2002-05-28 Thread Javier A. Soltero


Hi all,

I've been trying to set up a postgreSQL service and have had no luck so 
far. I have downloaded the postgres-service.xml file from CVS and 
applied it to RC1. The postgres driver's jar is in jboss/lib and I have 
made the necessary changes to the xml file to match my setting. It seems 
like the datasource name never gets bound to JNDI. Below is the output 
from the service's startup:

07:53:15,087 INFO  [MainDeployer] Starting deployment of package: 
file:/home/javier/dev/jboss-3.0RC1/server/default/deploy/postgres-service.xml
07:53:15,873 WARN  [ServiceController] 
jboss.jca:service=LocalTxDS,name=PostgresDS does not implement any 
Service methods
07:53:15,875 INFO  [JBossManagedConnectionPool] Creating
07:53:15,876 INFO  [JBossManagedConnectionPool] Created
07:53:15,879 INFO  [JBossManagedConnectionPool] Starting
07:53:15,880 INFO  [JBossManagedConnectionPool] Started
07:53:15,881 INFO  [MainDeployer] Successfully completed deployment of 
package: 
file:/home/javier/dev/jboss-3.0RC1/server/default/deploy/postgres-service.xml

I have also added a section to login-config.xml to match what is in the 
service.xml file as described in the comments. I have attached my 
postgres-service.xml file below. Any help is appreciated.

thanks,

-javier




   
   
   
   
   



   
 
 
 
 

 
   
   

 PostgresDS
 
   
 jdbc:postgresql://localhost:1522/spider
 org.postgresql.Driver
 
 javier
 
   

 


 
 jboss.jca:service=RARDeployment,name=JBoss 
LocalTransaction JDBC Wrapper

 
   
 

 
   
   

 10
 30
 5000
 15
 
 ByContainer
   

 
 jboss.jca:service=CachedConnectionManager



 java:/TransactionManager
 
 jboss.jca:service=RARDeployer


   





___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

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



Re: Re[8]: [JBoss-user] [HELP] Is there someone to help me?

2002-05-28 Thread wonder sonic

Theorically, I'm using an embedded Tomcat and I'm
aware
of the local/remote interface problems.
But it seems I don't use it properly :(
I have no working example.
Now my code is as follow:

public void setSessionContext( 
SessionContext sessionContext
)
{
try
{
Context namingContext = new
   javax.naming.InitialContext();

sequenceSessionLocal = (
(SequenceSessionLocalHome)
  namingContext.lookup( 
   "myrpg-atlas/SequenceSession" ) 
).create();

userLocalHome = (UserLocalHome)
namingContext.lookup( "myrpg-atlas/User"
);
}
catch( CreateException ce )
{
throw new EJBException( ce );
}
catch( NamingException ne )
{
throw new EJBException( ne );
}
}

But I encounter the exception:
java.rmi.ServerException: $Proxy42; nested exception
is: 
java.lang.ClassCastException: $Proxy42
at
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:119)
...
Caused by: java.lang.ClassCastException: $Proxy42
at
org.myrpg.atlas.ejb.UserSessionBean.setSessionContext(UserSessionBean.java:72)
at
org.jboss.ejb.StatelessSessionEnterpriseContext.(StatelessSessionEnterpriseContext.java:47)
at
org.jboss.ejb.plugins.StatelessSessionInstancePool.create(StatelessSessionInstancePool.java:61)
at
org.jboss.ejb.plugins.AbstractInstancePool.get(AbstractInstancePool.java:208)
at
org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:63)
at
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:96)

any clue?

tia,
wondersonic

 --- Wim Praet <[EMAIL PROTECTED]> a écrit : > If
you are using embedded tomcat, you should not set
> context like
> 
> 
>   Properties props =
> (Properties)System.getProperties().clone();
>   props.setProperty(
> "java.naming.factory.initial",
> "org.jnp.interfaces.NamingContextFactory" );
>   props.setProperty(
> "java.naming.provider.url","jnp://localhost:1099" );
>   props.setProperty(
>
"java.naming.factory.url.pkgs","org.jboss.naming:org.jnp.interfaces"
> );
> 
>   Context namingContext = new
> javax.naming.InitialContext( props );
> 
> but just create a new context with no params, since
> tomcat then uses the
> same jndi context as jboss. Also: you can only use
> local interfaces in
> embedded tomcat, external tomcat will serialize
> everything and hence ressort
> to remote interfaces (so if you are indeed using an
> external tomcat, you
> can't even lookup those local homes).
> 
> And in jboss 3.x indeed the client interfaces may be
> ommitted from the
> webapp lib dir, due to the change in classloading
> (als Alex reminded me).
> 
> kind regards,
> Wim.
> 
> 
> - Original Message -
> From: "wonder sonic" <[EMAIL PROTECTED]>
> To: "Wim Praet" <[EMAIL PROTECTED]>
> Sent: Tuesday, May 28, 2002 3:52 PM
> Subject: Re: Re[8]: [JBoss-user] [HELP] Is there
> someone to help me?
> 
> 
> > Well, you've missed no mail but the last one (with
> a
> > 50ko .doc file), I'm sending it to you, it resumes
> > my tests ;)
> >
> >
> >  --- Wim Praet <[EMAIL PROTECTED]> a écrit : >
> Hello
> > both of you,
> > > I was reading this discussion on JBoss-user but
> I
> > > have the idea not every
> > > mail is on it, since there is missing content
> after
> > > " ws> ...
> > > setSessionContext of my ... " ?
> > >
> > > What is the new error you get when removing the
> > > client interfaces from the
> > > webapp lib dir? And do you or do you _not_ need
> to
> > > add those client
> > > interfaces to the webapp? (I thought the webapp
> > > needed them always in the
> > > lib but as I can read from this discussion it is
> not
> > > necessary?!)
> > >
> > >
> > > > ws> Well, I'm sorry of this but I have to tell
> you
> > > that
> > > > ws> once I removed the myrpg-atlasclient.jar
> file
> > > where
> > > > ws> stands the UserSession and UserSessionHome
> > > files, an
> > > > ws> other error occured IN the
> setSessionContext
> > > of my
> > > > UserSession bean =>> the JNDI lookup worked!
> > > >
> > > > ws> Is it a bug or what???
> > > > ws> I'm using the JBoss 3.0 RC1 + Tomcat 4.0.3
> > > version,
> > > >
> > > > What the error is?
> > > >
> > > > ws> wondersonic
> > >
> >
> >
>
___
> > Do You Yahoo!? -- Une adresse @yahoo.fr gratuite
> et en français !
> > Yahoo! Mail : http://fr.mail.yahoo.com
>  

___
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com

___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

_

Re: Re[12]: [JBoss-user] [HELP] Is there someone to help me?

2002-05-28 Thread wonder sonic

Final word,
I've downloaded the servlet 2.3 spec and it says:
(SRV 9.5/9.5.1, page 61)
...
The contents of the WEB-INF directory are:

• The /WEB-INF/web.xml deployment descriptor.
• The /WEB-INF/classes/ directory for servlet and
utility classes. The classes
in this directory must be available to the application
class loader.
• The /WEB-INF/lib/*.jar area for Java ARchive files.
These files contain
servlets, beans, and other utility classes useful to
the web application. The web
application class loader must be able to load classes
from any of these archive
files.
The web application classloader must load classes from
the WEB-INF/ classes
directory first, and then from library JARs in the
WEB-INF/lib directory.
...
So the library JARs is the directory /WEB-INF/lib
...
and in SRV 9.5.7, page 63:
...
SRV.9.7.2 Web Application Classloader

The classloader that a container uses to load a
servlet in a WAR must allow the
developer to load any resources contained in library
JARs within the WAR
following normal J2SE semantics using getResource. It
must not allow the WAR to
override J2SE or Java servlet API classes. It is
further recommended that the loader
not allow servlets in the WAR access to the web
container’s implementation classes.
It is recommended also that the application class
loader be implemented so
that classes and resources packaged within the WAR are
loaded in preference to
classes and resources residing in container-wide
library JARs.
...
So according to that, I understand why my .jar file
is loaded.

Thank you!
Wonder Sonic

 --- Alex Loubyansky <[EMAIL PROTECTED]> a écrit : >
Hello wonder,
> 
> But they get in the classpath. Not sure what the
> spec says about it.
> It may just say nothing, not sure...
> If it's not a bug it could be considered as a
> request feature.
> But, logically, if you put some jar in a web-app
> module, I'd think you
> will use it in your app. So, it could be considered
> as a right
> behaviour too.
> 
> Tuesday, May 28, 2002, 4:55:50 PM, you wrote:
> 
> ws> Hmmm, the interfaces are not in a 'lib'
> directory but
> ws> in a 'data' directory... what should I do? :(
> 
> ws>  --- Alex Loubyansky <[EMAIL PROTECTED]> a
> écrit : >
> ws> Hello Wim,
> >> 
> >> In JBoss3.x branch you shouldn't have bean's
> >> interfaces in webapp lib
> >> due to change in class loading model.
> >> 
> >> Tuesday, May 28, 2002, 4:46:14 PM, you wrote:
> >> 
> >> WP> Hello both of you,
> >> WP> I was reading this discussion on JBoss-user
> but
> >> I have the idea not every
> >> WP> mail is on it, since there is missing content
> >> after " ws> ...
> >> WP> setSessionContext of my ... " ?
> >> 
> >> WP> What is the new error you get when removing
> the
> >> client interfaces from the
> >> WP> webapp lib dir? And do you or do you _not_
> need
> >> to add those client
> >> WP> interfaces to the webapp? (I thought the
> webapp
> >> needed them always in the
> >> WP> lib but as I can read from this discussion it
> is
> >> not necessary?!)
> >> 
> >> 
> >> >> ws> Well, I'm sorry of this but I have to tell
> >> you that
> >> >> ws> once I removed the myrpg-atlasclient.jar
> file
> >> where
> >> >> ws> stands the UserSession and UserSessionHome
> >> files, an
> >> >> ws> other error occured IN the
> setSessionContext
> >> of my
> >> >> UserSession bean =>> the JNDI lookup worked!
> >> >>
> >> >> ws> Is it a bug or what???
> >> >> ws> I'm using the JBoss 3.0 RC1 + Tomcat 4.0.3
> >> version,
> >> >>
> >> >> What the error is?
> >> >>
> >> >> ws> wondersonic
> >> 
> >> -- 
> >> Best regards,
> >>  Alex Loubyansky
> >> 
> >>  
> 
> ws>
>
___
> ws> Do You Yahoo!? -- Une adresse @yahoo.fr gratuite
> et en français !
> ws> Yahoo! Mail : http://fr.mail.yahoo.com
> 
> -- 
> Best regards,
>  Alex Loubyansky
> 
>  

___
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com

___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

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



Re: [JBoss-user] VOTE FOR JBOSS

2002-05-28 Thread Daniel CAUNE




Marc (Jean-Claude?)



I'd really appreciate that your change your behaviour and that you ban your favorite french word "putain" from this mailing-list.  I try to convince my CTO to use JBoss instead of Weblogic on our platforms, but your behaviour (of a 6 years old little boy) in this mailing-list doesn't help me in my quest: how can a manager trust a product if he doesn't trust the leader of this product?


> Ok I want us to be #1 there and we will not stop until we are #1 there,
I just don't care that people think we have the best EJB server in the world. The most important is to do our job, whatever the "jetset" communauty thinks about us.



"C'est à leur humilité que l'on reconnait la valeur réelle des gens."





Daniel







Le ven 24/05/2002 à 16:10, marc fleury a écrit :

GADDAMIT,

these pools are ridiculous, it is just the company voting for it, and
comatose products like oracle has got the full company behind it,

so here is our call, if you are on our lists and you haven't voted for us
yet, please please go and vote, I did this morning :)I hadn't before.

Ok I want us to be #1 there and we will not stop until we are #1 there,
clear?

http://www.sys-con.com/java/readerschoice2002/nominationform.cfm

go

marcf

x
Marc Fleury, Ph.D
President
JBoss Group, LLC
x



___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

___
JBoss-user mailing list
[EMAIL PROTECTED]

https://lists.sourceforge.net/lists/listinfo/jboss-user







Re: [JBoss-user] What's in the Flashline CMP/CMR Documentation?

2002-05-28 Thread Stefan Arentz


On Tuesday, May 28, 2002, at 04:13  PM, Dain Sundstrom wrote:

> You need to relax.
>
> The subscription includes the exact same version the that is available 
> for sale individually.  The new JBossCMP doc for JBoss 3.0 final will 
> be available in a few days.

Ahh that's pretty good news Dain. I know that everybody is working very 
hard on this release. Which is all of course very much appreciated!

Actually, I am quite relaxed, but the (lack of) documentation has been 
my only frustration. With the forums down on www.jboss.org/forums, it's 
sometimes very difficult to find answers to simple things.

Anyway. Thanks for your reply. I will definately buy the docs when the 
announcement is posted.

Regards,

  Stefan


___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

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



[JBoss-user] Which App Server is running ?

2002-05-28 Thread sal Wheelar

We are supporting multiple application servers and
various versions of them.

Is there any way to find out from enterprise java bean
that what current application is running and it's
Version Number.

Thanks.

__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

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



Re: [JBoss-user] newbie question about CMR and permissions

2002-05-28 Thread Dain Sundstrom

This is a bug. Can you post a bug report at source forge?

Thanks,

-dain

[EMAIL PROTECTED] wrote:

> 
> To the Jboss-User list
> 
> I am trying to use CMR in Jboss 3.0RC2 and RC3 with Xdoclet generated 
> CMPs and Stateless session beans - and it works fine  when I have no 
> security domain, and run my web application without authentication and 
> the such. But when I add authentication to my webapp (form based, 
> restricted access to a subpart of the webapp) -- I suddenly cannot 
> access the getters that model the relation ships.
> 
> If for example a Category can have many Subcategories, then called: 
> category.getSubcategories (), gives me an error saying that I have not 
> set any permissions on the "getRelatedID()" method (or maybe it was 
> "getRelatedIds()") -- I have no knowledge of this method - maybe it's in 
> the generated proxy classes? -- using Xdoclet I have specified 
> "unchecked="true"" on Bean level as well as on method level.
> 
> I have no idea whether this is a J2EE question, whether it is a JBOSS 
> question - but I would like to know if there is any special settings for 
> CMR concerning permissions and security and whether anyone has any 
> experience with it?!
> 
> If it's just me being stupid - pls. tell me so 
> 
> 
> 
> Jakob Dalsgaard
> Udvikler
> e-mail:   [EMAIL PROTECTED]
> Vesterbrogade 149
> 1620 København V
> Tlf.:   70 25 80 30
> Fax.: 70 25 80 31
> 



___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

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



Re: [JBoss-user] no reuse of pooled XAConnections

2002-05-28 Thread detlef schulze

Do you always close your Connection (tempConnection.close())?

If you do so, you should re-configure your Oracle DB for a higher number of
processes. If not, well, close your connections after you are done them to
make a reuse possible.



> Hello folks,
>
> I have a stateless session bean with transaction set to required. I am
> using JBoss2.4.5.
> I fetch a connection
> tempDS = (DataSource)tempIC.lookup(tempLookup);
> if (tempDS != null) {
>  try {
>   tempConnection = tempDS.getConnection();
>  } catch (SQLException se) {
>   ...
>  }
> }
> and work on it. When the invocation on my session bean ends I expect that
> my connection is released and can be reused. But instead after a while I
am
> getting



___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

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



Re: [JBoss-user] What's in the Flashline CMP/CMR Documentation?

2002-05-28 Thread Dain Sundstrom

You need to relax.

The subscription includes the exact same version the that is available 
for sale individually.  The new JBossCMP doc for JBoss 3.0 final will be 
available in a few days.

-dain

Stefan Arentz wrote:

> Unfortunately I don't have received an answer yet.
> 
> I have no problem with supporting the project by buying the 
> documentation, but before I do that I would like to know *what* I am 
> buying.
> 
>  Stefan
> 
> On Sunday, May 26, 2002, at 07:10  PM, Stefan Arentz wrote:
> 
>> Howdy.
>>
>> I bought the JBoss book (2.4.x) and the JBoss CMP/CMR docs from the 
>> Flashline store. The CMP docs that I have are in HTML format and from 
>> December/2001.
>>
>> I see that there is a package called 'JBoss 6-month documentation 
>> subscription' now, that includes the CMP/CMR documentation in PDF format.
>>
>> My question is; is this PDF a newer version than the one from 
>> December/2001? Does it cover RC3? Is it any good?
>>
>> Anyone?
>>
>>  Stefan
> 
> 
> 
> ___
> 
> Don't miss the 2002 Sprint PCS Application Developer's Conference
> August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user



___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

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



RE: [JBoss-user] no reuse of pooled XAConnections

2002-05-28 Thread Sacha Labourey

you need to close your connection (and any other resources such as
preparedstatements, resultset, etc.) in the finally clause of your try:

try
{
con = ds.getConnection();
ps = con.create...
}
catch (WhateverException we)
{
bla;
}
finally
{
try { ps.close (); } catch (Exception ignored) {}
try { con.close (); } catch (Exception ignored) {}
...
}

> -Message d'origine-
> De : [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]De la part de
> [EMAIL PROTECTED]
> Envoye : mardi, 28 mai 2002 16:03
> A : [EMAIL PROTECTED]
> Objet : [JBoss-user] no reuse of pooled XAConnections
>
>
> Hello folks,
>
> I have a stateless session bean with transaction set to required. I am
> using JBoss2.4.5.
> I fetch a connection
> tempDS = (DataSource)tempIC.lookup(tempLookup);
> if (tempDS != null) {
>  try {
>   tempConnection = tempDS.getConnection();
>  } catch (SQLException se) {
>   ...
>  }
> }
> and work on it. When the invocation on my session bean ends I expect that
> my connection is released and can be reused. But instead after a
> while I am
> getting
> java.sql.SQLException: ORA-00020: maximum number of processes (150)
> exceeded
>  at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:168)
>  at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:208)
>  at oracle.jdbc.ttc7.O3log.receive1st(O3log.java:428)
>  at oracle.jdbc.ttc7.TTC7Protocol.logon(TTC7Protocol.java:248)
>  at
> oracle.jdbc.driver.OracleConnection.(OracleConnection.java:246)
>  at
> oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver
> .java:365
> )
>  at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:260)
>  at java.sql.DriverManager.getConnection(DriverManager.java:517)
>  at java.sql.DriverManager.getConnection(DriverManager.java:177)
>  at
> org.jboss.pool.jdbc.xa.wrapper.XADataSourceImpl.getXAConnection(XA
> DataSourc
> eImpl.java:176)
>  at
> org.jboss.pool.jdbc.xa.XAConnectionFactory.createObject(XAConnecti
> onFactory
> .java:282)
>  at org.jboss.pool.ObjectPool.createNewObject(ObjectPool.java:1004)
>  at org.jboss.pool.ObjectPool.getObject(ObjectPool.java:663)
>  at
> org.jboss.pool.jdbc.xa.XAPoolDataSource.getConnection(XAPoolDataSo
> urce.java
> :215)
>
> Could you point me into the right direction? Could you give me a hint what
> I may have missconfigured or where in the code the connection is put back
> to the pool?
>
> Thanks a lot in advance,
> Stephan
>
>
>
> ___
>
> Don't miss the 2002 Sprint PCS Application Developer's Conference
> August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
>
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
>


___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

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



Re: [JBoss-user] no reuse of pooled XAConnections

2002-05-28 Thread Alex Loubyansky

Hello Stephan,

tempConnection.close() returns it to the pool.

Tuesday, May 28, 2002, 5:03:04 PM, you wrote:

SFgd> Hello folks,

SFgd> I have a stateless session bean with transaction set to required. I am
SFgd> using JBoss2.4.5.
SFgd> I fetch a connection
SFgd> tempDS = (DataSource)tempIC.lookup(tempLookup);
SFgd> if (tempDS != null) {
SFgd>  try {
SFgd>   tempConnection = tempDS.getConnection();
SFgd>  } catch (SQLException se) {
SFgd>   ...
SFgd>  }
SFgd> }
SFgd> and work on it. When the invocation on my session bean ends I expect that
SFgd> my connection is released and can be reused. But instead after a while I am
SFgd> getting
SFgd> java.sql.SQLException: ORA-00020: maximum number of processes (150)
SFgd> exceeded
SFgd>  at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:168)
SFgd>  at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:208)
SFgd>  at oracle.jdbc.ttc7.O3log.receive1st(O3log.java:428)
SFgd>  at oracle.jdbc.ttc7.TTC7Protocol.logon(TTC7Protocol.java:248)
SFgd>  at
SFgd> oracle.jdbc.driver.OracleConnection.(OracleConnection.java:246)
SFgd>  at
SFgd> oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:365
SFgd> )
SFgd>  at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:260)
SFgd>  at java.sql.DriverManager.getConnection(DriverManager.java:517)
SFgd>  at java.sql.DriverManager.getConnection(DriverManager.java:177)
SFgd>  at
SFgd> org.jboss.pool.jdbc.xa.wrapper.XADataSourceImpl.getXAConnection(XADataSourc
SFgd> eImpl.java:176)
SFgd>  at
SFgd> org.jboss.pool.jdbc.xa.XAConnectionFactory.createObject(XAConnectionFactory
SFgd> .java:282)
SFgd>  at org.jboss.pool.ObjectPool.createNewObject(ObjectPool.java:1004)
SFgd>  at org.jboss.pool.ObjectPool.getObject(ObjectPool.java:663)
SFgd>  at
SFgd> org.jboss.pool.jdbc.xa.XAPoolDataSource.getConnection(XAPoolDataSource.java
SFgd> :215)

SFgd> Could you point me into the right direction? Could you give me a hint what
SFgd> I may have missconfigured or where in the code the connection is put back
SFgd> to the pool?

SFgd> Thanks a lot in advance,
SFgd> Stephan



SFgd> ___

SFgd> Don't miss the 2002 Sprint PCS Application Developer's Conference
SFgd> August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

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


-- 
Best regards,
 Alex Loubyansky



___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

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



[JBoss-user] Possible 2.4.6 entity remove problem (classloader issue?)

2002-05-28 Thread David Hamilton

Hi all,

We have a problem with JBoss 2.4.6 with Tomcat 4.0.3.  In our Cactus 
unit-test suites, tests of the EJB Remove method have started failing. 
 Further investigation indicate that this is the same regardless of 
whether the remove is called on the Home or the Remote interface.  We 
are running the integrated JBoss-Tomcat configuration.

We are getting a ClassCastException casting our primary key to the 
correct type from the EntityContext.  The debugger shows that the 
returned key object is of the correct class, indicating that there is 
some classloader issue involved.  The following log traces confirm this...

// successful ejbLoad for business method, listing classloader class and 
system identity hashcode
[14:50:42,962,EjbCompoundUserBean] EJB Classloader Identity = 
org.jboss.web.WebClassLoader - 4977982
[14:50:42,962,EjbCompoundUserBean] PK  Classloader Identity = 
org.jboss.web.WebClassLoader - 4977982

// trace for ejbLoad prior to remove being called, again listing 
classloader class and system identity hashcode
[14:50:46,118,EjbCompoundUserBean] EJB Classloader Identity = 
org.jboss.web.WebClassLoader - 4977982
[14:50:46,118,EjbCompoundUserBean] PK  Classloader Identity = 
org.apache.catalina.loader.WebappClassLoader - 10714218

Note that the PK we are being given by the EntityContext is indeed using 
a different classloader instance (and indeed class...) from that of the EJB.

The other point to note is that the EJB being removed is one that has 
just been newly created.

We have not seen this behaviour with 2.4.4.  Any thoughts would be 
appreciated.

Thanks in advance
David





___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

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



[JBoss-user] no reuse of pooled XAConnections

2002-05-28 Thread Stephan . Frind

Hello folks,

I have a stateless session bean with transaction set to required. I am
using JBoss2.4.5.
I fetch a connection
tempDS = (DataSource)tempIC.lookup(tempLookup);
if (tempDS != null) {
 try {
  tempConnection = tempDS.getConnection();
 } catch (SQLException se) {
  ...
 }
}
and work on it. When the invocation on my session bean ends I expect that
my connection is released and can be reused. But instead after a while I am
getting
java.sql.SQLException: ORA-00020: maximum number of processes (150)
exceeded
 at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:168)
 at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:208)
 at oracle.jdbc.ttc7.O3log.receive1st(O3log.java:428)
 at oracle.jdbc.ttc7.TTC7Protocol.logon(TTC7Protocol.java:248)
 at
oracle.jdbc.driver.OracleConnection.(OracleConnection.java:246)
 at
oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:365
)
 at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:260)
 at java.sql.DriverManager.getConnection(DriverManager.java:517)
 at java.sql.DriverManager.getConnection(DriverManager.java:177)
 at
org.jboss.pool.jdbc.xa.wrapper.XADataSourceImpl.getXAConnection(XADataSourc
eImpl.java:176)
 at
org.jboss.pool.jdbc.xa.XAConnectionFactory.createObject(XAConnectionFactory
.java:282)
 at org.jboss.pool.ObjectPool.createNewObject(ObjectPool.java:1004)
 at org.jboss.pool.ObjectPool.getObject(ObjectPool.java:663)
 at
org.jboss.pool.jdbc.xa.XAPoolDataSource.getConnection(XAPoolDataSource.java
:215)

Could you point me into the right direction? Could you give me a hint what
I may have missconfigured or where in the code the connection is put back
to the pool?

Thanks a lot in advance,
Stephan



___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

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



Re: [JBoss-user] newbie question about CMR and permissions

2002-05-28 Thread Alex Loubyansky

Hello jakob,

I'll help you :) I have Categories and Subcategories in it generated
with xdoclet with relationships :)

I really had a problem with relationships first during first setup.
Though specifying 'unchecked' worked for me always.

My problem was in not specifying full names for parameter types.
I.e. first I had:
public void createCategory(CategoryData categoryData)

Xdoclet generates permission specifying all method parameter types as
they appear in method declarations. So, that was a wrong declaration.
The right one is as follows (full class name):
public void 
createCategory(com.imedia.tracker.components.category.interfaces.CategoryData 
categoryData)

That solved my problem.

Tuesday, May 28, 2002, 4:33:29 PM, you wrote:

jdnd> To the Jboss-User list

jdnd> I am trying to use CMR in Jboss 3.0RC2 and RC3 with Xdoclet generated CMPs 
jdnd> and Stateless session beans - and it works fine  when I have no security 
jdnd> domain, and run my web application without authentication and the such. 
jdnd> But when I add authentication to my webapp (form based, restricted access 
jdnd> to a subpart of the webapp) -- I suddenly cannot access the getters that 
jdnd> model the relation ships.

jdnd> If for example a Category can have many Subcategories, then called: 
jdnd> category.getSubcategories (), gives me an error saying that I have not set 
jdnd> any permissions on the "getRelatedID()" method (or maybe it was 
jdnd> "getRelatedIds()") -- I have no knowledge of this method - maybe it's in 
jdnd> the generated proxy classes? -- using Xdoclet I have specified 
jdnd> "unchecked="true"" on Bean level as well as on method level.

jdnd> I have no idea whether this is a J2EE question, whether it is a JBOSS 
jdnd> question - but I would like to know if there is any special settings for 
jdnd> CMR concerning permissions and security and whether anyone has any 
jdnd> experience with it?!

jdnd> If it's just me being stupid - pls. tell me so 



jdnd> Jakob Dalsgaard
jdnd> Udvikler
jdnd> e-mail:   [EMAIL PROTECTED]
jdnd> Vesterbrogade 149
jdnd> 1620 København V
jdnd> Tlf.:   70 25 80 30
jdnd> Fax.: 70 25 80 31

-- 
Best regards,
 Alex Loubyansky



___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

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



[JBoss-user] newbie question about CMR and permissions

2002-05-28 Thread jakob . dalsgaard

To the Jboss-User list

I am trying to use CMR in Jboss 3.0RC2 and RC3 with Xdoclet generated CMPs and Stateless session beans - and it works fine  when I have no security domain, and run my web application without authentication and the such. But when I add authentication to my webapp (form based, restricted access to a subpart of the webapp) -- I suddenly cannot access the getters that model the relation ships.

If for example a Category can have many Subcategories, then called: category.getSubcategories (), gives me an error saying that I have not set any permissions on the "getRelatedID()" method (or maybe it was "getRelatedIds()") -- I have no knowledge of this method - maybe it's in the generated proxy classes? -- using Xdoclet I have specified "unchecked="true"" on Bean level as well as on method level.

I have no idea whether this is a J2EE question, whether it is a JBOSS question - but I would like to know if there is any special settings for CMR concerning permissions and security and whether anyone has any experience with it?!

If it's just me being stupid - pls. tell me so 



Jakob Dalsgaard
Udvikler
e-mail:   [EMAIL PROTECTED]
Vesterbrogade 149
1620 København V
Tlf.:   70 25 80 30
Fax.: 70 25 80 31



[JBoss-user] ERROR [org.jboss.ejb.plugins.AbstractInstanceCache] Activation failure

2002-05-28 Thread Stephen Coy

Hi,

When I run the test suite on reasonably recent CVS checkout of 
Branch_3_0 (builds an RC4) I see a few instances of stateful session 
bean activation failures like the log extract shown below. As far as I 
can tell, this bean was never passivated, yet for some reason JBoss is 
trying to activate it.

I am also seeing similar behaviour in some of my own code. It always 
occurs in the context of some kind of failure when one of the bean 
methods is invoked - I expect to see an exception thrown. Instead, I get 
this mysterious activation attempt on the bean that has never been 
passivated.

This does not look quite right does it?

2002-05-28 23:11:22,124 DEBUG 
[org.jboss.test.testbean.bean.StatefulSessionBean] 
StatefulSessionBean.setSessionContext(org.jboss.ejb.StatefulSessionEnterpriseContext$StatefulSessionContextImpl@
75b454) called
2002-05-28 23:11:22,125 DEBUG 
[org.jboss.test.testbean.bean.StatefulSessionBean] 
StatefulSessionBean.ejbCreate(marc3) called
2002-05-28 23:11:22,134 DEBUG 
[org.jboss.test.testbean.bean.StatefulSessionBean] 
StatefulSessionBean.callBusinessMethodA() called
2002-05-28 23:11:22,166 DEBUG 
[org.jboss.test.testbean.bean.StatefulSessionBean] 
StatefulSessionBean.setSessionContext(org.jboss.ejb.StatefulSessionEnterpriseContext$StatefulSessionContextImpl@
394c2d) called
2002-05-28 23:11:22,175 DEBUG 
[org.jboss.test.testbean.bean.StatefulSessionBean] 
StatefulSessionBean.ejbRemove() called
2002-05-28 23:11:22,181 DEBUG 
[org.jboss.test.testbean.bean.StatefulSessionBean] 
StatefulSessionBean.setSessionContext(org.jboss.ejb.StatefulSessionEnterpriseContext$StatefulSessionContextImpl@
15f19a) called
2002-05-28 23:11:22,182 DEBUG 
[org.jboss.ejb.plugins.StatefulSessionFilePersistenceManager] Attempting 
to activate; ctx=org.jboss.ejb.StatefulSessionEnterpriseContext@28d7de
2002-05-28 23:11:22,182 ERROR 
[org.jboss.ejb.plugins.AbstractInstanceCache] Activation failure
java.rmi.ServerException: Could not activate; nested exception is:
java.io.FileNotFoundException: /Users/steve/EnterpriseJava/jboss-
all/build/output/jboss-3.0.0RC4/server/default/db/sessions/nextgen.StatefulSession/
1022589642358.ser (No such file or directory)
java.io.FileNotFoundException: /Users/steve/EnterpriseJava/jboss-
all/build/output/jboss-3.0.0RC4/server/default/db/sessions/nextgen.StatefulSession/
1022589642358.ser (No such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.(FileInputStream.java:64)
at java.io.FileInputStream.(FileInputStream.java:95)
at 
org.jboss.ejb.plugins.StatefulSessionFilePersistenceManager.activateSession(
StatefulSessionFilePersistenceManager.java:222)
at 
org.jboss.ejb.plugins.StatefulSessionInstanceCache.activate
(StatefulSessionInstanceCache.java:83)
at 
org.jboss.ejb.plugins.AbstractInstanceCache.get(AbstractInstanceCache.java:
177)
at 
org.jboss.ejb.plugins.StatefulSessionInstanceInterceptor.invoke
(StatefulSessionInstanceInterceptor.java:212)
at 
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext
(AbstractTxInterceptor.java:96)
at 
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions
(TxInterceptorCMT.java:167)
at 
org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:61)
at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:166)
at 
org.jboss.ejb.StatefulSessionContainer.invoke(StatefulSessionContainer.java:
380)
at org.jboss.ejb.Container.invoke(Container.java:705)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491)
at 
org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:362)
at java.lang.reflect.Method.invoke(Native Method)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:241)
at sun.rmi.transport.Transport$1.run(Transport.java:152)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:148)
at 
sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:465)
at 
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:
706)
at java.lang.Thread.run(Thread.java:496)


___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

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



[JBoss-user] Jboss 3.0 remote deploy

2002-05-28 Thread conrad

Hi

I'm new here ... Good afternoon :-)

I'd like to ask about remote deploying enterprise application on JBoss, 
without telnet/ssh access. Is it possible, and if it is how can I do it 
or where can I find some documentation about it?

Thanks in advance.

--
Best Regards
Conrad

[EMAIL PROTECTED]


___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

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



Re: [JBoss-user] Open Source Causes Head Explosions ? [was Is there someone to help me?]

2002-05-28 Thread wonder sonic

Hemm ^_^; I keep my head, I think the explosion
will not happen, perhaps is it a question of classpath
managment :(

 --- Nicholas <[EMAIL PROTECTED]> a écrit : > Ah
shoot, wonder. Now you've done it. I can see
> Microsoft making political hay from this. 
> 
> "Microsoft: The solution for kind-hearted CIOs who
> do
> not want to explode their developer's heads"
> 
> Please post the non-explosive build ASAP.
> 
> //Nicholas
> 
> --- wonder sonic <[EMAIL PROTECTED]> wrote:
> > Well it seems so, but I guess I'm really confused
> > by all these deployment descriptors ejb-ref
> > ejb-local-ref, ejb-link and so on...
> > 
> > Why can't we have only one two files (ejb-jar.xml
> > and web.xml)??? :)
> > 
> > Regards,
> > Sonic
> > 
> > note: I'm french and the little amount of doc in
> >   english isn't really clear for me... Is
> there
> >   a document that explains line by line all
> > these
> >   XML tags? And that covers every aspect of an
> > EAR?
> >   If you know one please tell me, my head is
> > going
> >   to explode ;)
> > 
> > 
> >  --- Marius Kotsbak <[EMAIL PROTECTED]> a écrit :
> >
> > The jndi-name UserSession is not found. Check with
> > > localhost:8082
> > > (jndiview) what name it is bound to. It has to
> be
> > > the same that you are
> > > using in your webapp.
> > > 
> > > On Tue, 2002-05-28 at 14:01, wonder sonic wrote:
> > > > Hello everybody,
> > > > I've got one error using Session beans
> > > (UserSession)
> > > > from a JSP and I've got the following error:
> > > > 
> > > > ...
> > > > javax.servlet.ServletException: UserSession
> not
> > > bound
> > > > ...
> > > > 
> > > > Can someone tell me what can cause this error?
> > > > 
> > > > thanks in advance,
> > > > Wondersonic
> > > > 
> > > > 
> > > > 
> > > >
> > >
> >
>
___
> > > > Do You Yahoo!? -- Une adresse @yahoo.fr
> gratuite
> > > et en français !
> > > > Yahoo! Mail : http://fr.mail.yahoo.com
> > > > 
> > > >
> > >
> >
>
___
> > > > 
> > > > Don't miss the 2002 Sprint PCS Application
> > > Developer's Conference
> > > > August 25-28 in Las Vegas --
> > > http://devcon.sprintpcs.com/adp/index.cfm
> > > > 
> > > >
> ___
> > > > JBoss-user mailing list
> > > > [EMAIL PROTECTED]
> > > >
> > >
> >
>
https://lists.sourceforge.net/lists/listinfo/jboss-user
> > > 
> > > 
> > > 
> > >
> >
>
___
> > > 
> > > Don't miss the 2002 Sprint PCS Application
> > > Developer's Conference
> > > August 25-28 in Las Vegas --
> > > http://devcon.sprintpcs.com/adp/index.cfm
> > > 
> > > ___
> > > JBoss-user mailing list
> > > [EMAIL PROTECTED]
> > >
> >
>
https://lists.sourceforge.net/lists/listinfo/jboss-user
> > 
> > 
> >
>
___
> > Do You Yahoo!? -- Une adresse @yahoo.fr gratuite
> et
> > en français !
> > Yahoo! Mail : http://fr.mail.yahoo.com
> > 
> >
>
___
> > 
> > Don't miss the 2002 Sprint PCS Application
> > Developer's Conference
> > August 25-28 in Las Vegas --
> > http://devcon.sprintpcs.com/adp/index.cfm
> > 
> > ___
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> >
>
https://lists.sourceforge.net/lists/listinfo/jboss-user
> 
> 
> =
> Nicholas Whitehead
> Home: (973) 377 9335
> Cell: (201) 615 2716
> Work: (212) 622 5639
> [EMAIL PROTECTED]
> 
> __
> Do You Yahoo!?
> Yahoo! - Official partner of 2002 FIFA World Cup
> http://fifaworldcup.yahoo.com
> 
>
___
> 
> Don't miss the 2002 Sprint PCS Application
> Developer's Conference
> August 25-28 in Las Vegas --
> http://devcon.sprintpcs.com/adp/index.cfm
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
>
https://lists.sourceforge.net/lists/listinfo/jboss-user 

___
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com

___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

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



Re[8]: [JBoss-user] [HELP] Is there someone to help me?

2002-05-28 Thread Alex Loubyansky

Hello wonder,

Tuesday, May 28, 2002, 4:09:33 PM, you wrote:

ws> Well, I'm sorry of this but I have to tell you that
ws> once I removed the myrpg-atlasclient.jar file where
ws> stands the UserSession and UserSessionHome files, an
ws> other error occured IN the setSessionContext of my
UserSession bean =>> the JNDI lookup worked!

ws> Is it a bug or what???
ws> I'm using the JBoss 3.0 RC1 + Tomcat 4.0.3 version,

What the error is?

ws> wondersonic


ws>  --- Alex Loubyansky <[EMAIL PROTECTED]> a écrit : >
ws> Hello wonder,
>> 
>> Tuesday, May 28, 2002, 3:50:13 PM, you wrote:
>> 
>> ws> In fact these files are not in the classpath so
>> it
>> ws> should not create problems (I need them to be
>> ws> downloaded by my SWING client). But in the
>> 
>> ws> "myrpg-atlas-client.jar"
>> 
>> ws> there are the interfaces (UserSession and
>> ws> UserSessionHome) I use, do you think these can
>> produce
>> ws> problems???
>> 
>> Actually, I haven't tried such a packaging and not
>> sure whether these
>> classes get in the web-app's classpath. Maybe
>> someone who tried that
>> will answer you. But you could try to remove it and
>> see yourself. By
>> the way, let me know the results, please :)
>> 
>> ws> Wondersonic
>> 
>> ws>  --- Alex Loubyansky <[EMAIL PROTECTED]> a
>> écrit : >
>> ws> Hello wonder,
>> >> 
>> >> I'd remove these from the war:
>> >>jaas.jar
>> >>jboss-client.jar
>> >>jboss-j2ee.jar
>> >>jbosssx-client.jar
>> >>jnp-client.jar
>> >> 
>> >> 
>> >> Tuesday, May 28, 2002, 3:41:04 PM, you wrote:
>> >> 
>> >> ws> Hmmm, here is my war tree:
>> >> ws> / (root)
>> >> ws> |   administratorLogin.jsp
>> >> ws> |   atlas.jsp
>> >> ws> |   checkAdministratorLogin.jsp
>> >> ws> |   index.jsp
>> >> ws> |   register.jsp
>> >> ws> |   user_registration.jsp
>> >> ws> |
>> >> ws> +---css
>> >> ws> |   general.css
>> >> ws> |
>> >> ws> +---data
>> >> ws> |   data.jar
>> >> ws> |   hicare-kernel.jar
>> >> ws> |   hicare-version.jar
>> >> ws> |   jaas.jar
>> >> ws> |   jboss-client.jar
>> >> ws> |   jboss-j2ee.jar
>> >> ws> |   jbosssx-client.jar
>> >> ws> |   jnp-client.jar
>> >> ws> |   myrpg-atlas-client.jar
>> >> ws> |
>> >> ws> +---download_hicare
>> >> ws> |   hicare.jar
>> >> ws> |
>> >> ws> +---images
>> >> ws> |   banner.jpg
>> >> ws> |   myrpgbiglogo.jpg
>> >> ws> |
>> >> ws> +---META-INF
>> >> ws> |   MANIFEST.MF
>> >> ws> |
>> >> ws> +---static
>> >> ws> |   bottom.html
>> >> ws> |   howto.html
>> >> ws> |   intro.html
>> >> ws> |   menu.html
>> >> ws> |   top.html
>> >> ws> |
>> >> ws> +---WEB-INF
>> >> ws> |   jboss-web.xml
>> >> ws> |   web.xml
>> >> ws> |
>> >> ws> +---classes
>> >> ws> +---org
>> >> ws> +---myrpg
>> >> ws> +---atlas
>> >> ws> Atlas.class
>> >> 
>> >> ws> And the my EJBs interfaces are located in a
>> jar
>> >> file
>> >> ws> in
>> >> ws> the ear file.
>> >> 
>> >> ws> strange isn't it?
>> >> ws> I think I'm making something wrong but I
>> can't
>> >> find
>> >> ws> it... :(
>> >> 
>> >> ws> thanks for your quick answer :)
>> >> ws> wonder Sonic
>> >> 
>> >> ws>  --- Alex Loubyansky <[EMAIL PROTECTED]> a
>> >> écrit : >
>> >> ws> Hello wonder,
>> >> >> 
>> >> >> Tuesday, May 28, 2002, 3:27:50 PM, you wrote:
>> >> >> 
>> >> >> ws> Well,
>> >> >> ws> here are my results for localhost:8082
>> >> >> 
>> >> >> ws> MBean View [JMX RI/1.0] 
>> >> >> 
>> >> >> ws> MBean Name:
>> >> >> ws>
>> >> >>
>> >> ws>
>> >>
>> ws>
>>
ws> jboss.j2ee:service=EJB,jndiName=myrpg-atlas/UserSession
>> >> >> 
>> >> >> ws> MBean Java Class:
>> >> >> ws> org.jboss.ejb.StatelessSessionContainer 
>> >> >> ws> ...
>> >> >> 
>> >> >> ws> I change my code from:
>> >> >> ws> serSession = (
>> >> >> ws>
>> >> >>
>> >> ws>
>> >>
>> ws>
>>
ws> (org.myrpg.atlas.ejb.UserSessionHome)jndiContext.lookup(
>> >> >> ws> "UserSession" ) ).create();
>> >> >> 
>> >> >> ws> to:
>> >> >> ws> serSession = (
>> >> >> ws>
>> >> >>
>> >> ws>
>> >>
>> ws>
>>
ws> (org.myrpg.atlas.ejb.UserSessionHome)jndiContext.lookup(
>> >> >> ws> "myrpg-atlas/UserSession" ) ).create();
>> >> >> 
>> >> >> ws> then I've got a strange exception:
>> >> >> ws> java.lang.ClassCastException: $Proxy44
>> >> >> ws> at
>> >> >> ws>
>> >> >>
>> >> ws>
>> >>
>> ws>
>>
ws> org.apache.jsp.register$jsp._jspService(register$jsp.java:219)
>> >> >> 
>> >> >> Do you place interfaces for UserSession in the
>> >> war
>> >> >> lib directory? If
>> >> >> so, remove them from the war.
>> >> >> 
>> >> >> ws> What does it mean??? :)
>> >> >> 
>> >> >> ws> Wnder Sonic (with a headache)
>> >> >> 
>> >> >> 
>> >> >> ws>  --- Alex Loubyansky <[EMAIL PROTECTED]>
>> a
>> >> >> écrit : >
>> >> >> ws> Hello wonder,
>> >> >> >> 
>> >> >> >> Possible variants:
>> >> >> >> 1. the bean wasn't bound to JNDI;
>> >> >> >> 2. you look it up with a wrong name;
>> >> >> >> 
>> >> >> >> Can you see it bound 

Re: [JBoss-user] [HELP] Is there someone to help me?

2002-05-28 Thread David Ward

As far as ejb-jar.xml, web.xml, etc. (the standard descriptors), you 
really should read the Sun specs.  It's a lot of reading but, in my 
opinion, necessary.

You can learn about the jboss xml files either off the jboss web site 
HTML docs, or you can buy better documentation from flashline (it's good 
and cheap).  With very basic apps, you supposedly don't need any jboss 
descriptors - but in my experience I've always used them.

Finally, I suggest you use xdoclet: 
http://sourceforge.net/projects/xdoclet/ . I've recently made the 
conversion and it's great.  Basically, it generates all those xml files 
for you, as well as EJB interfaces, data objects, util classes, etc - 
all from your main XXXBean.java files.  Still, you need to have a good 
understanding of the the xml descriptor elements and how to use them 
first...

David

--

wonder sonic wrote:
> Well it seems so, but I guess I'm really confused
> by all these deployment descriptors ejb-ref
> ejb-local-ref, ejb-link and so on...
> 
> Why can't we have only one two files (ejb-jar.xml
> and web.xml)??? :)
> 
> Regards,
> Sonic
> 
> note: I'm french and the little amount of doc in
>   english isn't really clear for me... Is there
>   a document that explains line by line all these
>   XML tags? And that covers every aspect of an
> EAR?
>   If you know one please tell me, my head is going
>   to explode ;)
> 
> 
>  --- Marius Kotsbak <[EMAIL PROTECTED]> a écrit : >
> The jndi-name UserSession is not found. Check with
> 
>>localhost:8082
>>(jndiview) what name it is bound to. It has to be
>>the same that you are
>>using in your webapp.
>>
>>On Tue, 2002-05-28 at 14:01, wonder sonic wrote:
>>
>>>Hello everybody,
>>>I've got one error using Session beans
>>
>>(UserSession)
>>
>>>from a JSP and I've got the following error:
>>>
>>>...
>>>javax.servlet.ServletException: UserSession not
>>
>>bound
>>
>>>...
>>>
>>>Can someone tell me what can cause this error?
>>>
>>>thanks in advance,
>>>Wondersonic
>>>
>>>
>>>
>>>
>>
> ___
> 
>>>Do You Yahoo!? -- Une adresse @yahoo.fr gratuite
>>
>>et en français !
>>
>>>Yahoo! Mail : http://fr.mail.yahoo.com
>>>
>>>
>>
> ___
> 
>>>Don't miss the 2002 Sprint PCS Application
>>
>>Developer's Conference
>>
>>>August 25-28 in Las Vegas --
>>
>>http://devcon.sprintpcs.com/adp/index.cfm
>>
>>>___
>>>JBoss-user mailing list
>>>[EMAIL PROTECTED]
>>>
>>
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 
>>
>>
>>
> ___
> 
>>Don't miss the 2002 Sprint PCS Application
>>Developer's Conference
>>August 25-28 in Las Vegas --
>>http://devcon.sprintpcs.com/adp/index.cfm
>>
>>___
>>JBoss-user mailing list
>>[EMAIL PROTECTED]
>>
> 
> https://lists.sourceforge.net/lists/listinfo/jboss-user 
> 
> ___
> Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
> Yahoo! Mail : http://fr.mail.yahoo.com
> 
> ___
> 
> Don't miss the 2002 Sprint PCS Application Developer's Conference
> August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user



-- 

-
David Ward
[EMAIL PROTECTED]
http://www.dotech.com


___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

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



Re: [JBoss-user] What's in the Flashline CMP/CMR Documentation?

2002-05-28 Thread Justin Casp

Sorry, forgot to answer your question.  The version that I have from a few 
weeks ago is the Nov 2001 revision.
The examples in this version seemed to work well with the latest Jboss, except 
for a few of the XML tags in the jbosscmp-jdbc dtd are different.
I think I recall Dain saying he has a new revision on the way.


> Unfortunately I don't have received an answer yet.
>
> I have no problem with supporting the project by buying the
> documentation, but before I do that I would like to know *what* I am
> buying.
>
>   Stefan
>
> On Sunday, May 26, 2002, at 07:10  PM, Stefan Arentz wrote:
> > Howdy.
> >
> > I bought the JBoss book (2.4.x) and the JBoss CMP/CMR docs from the
> > Flashline store. The CMP docs that I have are in HTML format and from
> > December/2001.
> >
> > I see that there is a package called 'JBoss 6-month documentation
> > subscription' now, that includes the CMP/CMR documentation in PDF
> > format.
> >
> > My question is; is this PDF a newer version than the one from
> > December/2001? Does it cover RC3? Is it any good?
> >
> > Anyone?
> >
> >  Stefan
>
> ___
>
> Don't miss the 2002 Sprint PCS Application Developer's Conference
> August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
>
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user


___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

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



Re[6]: [JBoss-user] [HELP] Is there someone to help me?

2002-05-28 Thread Alex Loubyansky

Hello wonder,

not yet :) the time haven't come yet. try to remove the jar with
bean's interfaces first.

Tuesday, May 28, 2002, 3:58:53 PM, you wrote:

ws> Hemm, may I send you my deployment descriptors?
ws> Perhaps you could see the problems... :)
ws> But I don't want to bother you!

ws> Regards,
ws> wonder sonic

ws>  --- Alex Loubyansky <[EMAIL PROTECTED]> a écrit : >
ws> Hello wonder,
>> 
>> I'd remove these from the war:
>>jaas.jar
>>jboss-client.jar
>>jboss-j2ee.jar
>>jbosssx-client.jar
>>jnp-client.jar
>> 
>> 
>> Tuesday, May 28, 2002, 3:41:04 PM, you wrote:
ws> === message truncated === 

ws> ___
ws> Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
ws> Yahoo! Mail : http://fr.mail.yahoo.com

ws> ___

ws> Don't miss the 2002 Sprint PCS Application Developer's Conference
ws> August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

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

-- 
Best regards,
 Alex Loubyansky



___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

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



Re: Re[4]: [JBoss-user] [HELP] Is there someone to help me?

2002-05-28 Thread wonder sonic

Hemm, may I send you my deployment descriptors?
Perhaps you could see the problems... :)
But I don't want to bother you!

Regards,
wonder sonic

 --- Alex Loubyansky <[EMAIL PROTECTED]> a écrit : >
Hello wonder,
> 
> I'd remove these from the war:
>jaas.jar
>jboss-client.jar
>jboss-j2ee.jar
>jbosssx-client.jar
>jnp-client.jar
> 
> 
> Tuesday, May 28, 2002, 3:41:04 PM, you wrote:
=== message truncated === 

___
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com

___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

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



Re[6]: [JBoss-user] [HELP] Is there someone to help me?

2002-05-28 Thread Alex Loubyansky

Hello wonder,

Tuesday, May 28, 2002, 3:50:13 PM, you wrote:

ws> In fact these files are not in the classpath so it
ws> should not create problems (I need them to be
ws> downloaded by my SWING client). But in the

ws> "myrpg-atlas-client.jar"

ws> there are the interfaces (UserSession and
ws> UserSessionHome) I use, do you think these can produce
ws> problems???

Actually, I haven't tried such a packaging and not sure whether these
classes get in the web-app's classpath. Maybe someone who tried that
will answer you. But you could try to remove it and see yourself. By
the way, let me know the results, please :)

ws> Wondersonic

ws>  --- Alex Loubyansky <[EMAIL PROTECTED]> a écrit : >
ws> Hello wonder,
>> 
>> I'd remove these from the war:
>>jaas.jar
>>jboss-client.jar
>>jboss-j2ee.jar
>>jbosssx-client.jar
>>jnp-client.jar
>> 
>> 
>> Tuesday, May 28, 2002, 3:41:04 PM, you wrote:
>> 
>> ws> Hmmm, here is my war tree:
>> ws> / (root)
>> ws> |   administratorLogin.jsp
>> ws> |   atlas.jsp
>> ws> |   checkAdministratorLogin.jsp
>> ws> |   index.jsp
>> ws> |   register.jsp
>> ws> |   user_registration.jsp
>> ws> |
>> ws> +---css
>> ws> |   general.css
>> ws> |
>> ws> +---data
>> ws> |   data.jar
>> ws> |   hicare-kernel.jar
>> ws> |   hicare-version.jar
>> ws> |   jaas.jar
>> ws> |   jboss-client.jar
>> ws> |   jboss-j2ee.jar
>> ws> |   jbosssx-client.jar
>> ws> |   jnp-client.jar
>> ws> |   myrpg-atlas-client.jar
>> ws> |
>> ws> +---download_hicare
>> ws> |   hicare.jar
>> ws> |
>> ws> +---images
>> ws> |   banner.jpg
>> ws> |   myrpgbiglogo.jpg
>> ws> |
>> ws> +---META-INF
>> ws> |   MANIFEST.MF
>> ws> |
>> ws> +---static
>> ws> |   bottom.html
>> ws> |   howto.html
>> ws> |   intro.html
>> ws> |   menu.html
>> ws> |   top.html
>> ws> |
>> ws> +---WEB-INF
>> ws> |   jboss-web.xml
>> ws> |   web.xml
>> ws> |
>> ws> +---classes
>> ws> +---org
>> ws> +---myrpg
>> ws> +---atlas
>> ws> Atlas.class
>> 
>> ws> And the my EJBs interfaces are located in a jar
>> file
>> ws> in
>> ws> the ear file.
>> 
>> ws> strange isn't it?
>> ws> I think I'm making something wrong but I can't
>> find
>> ws> it... :(
>> 
>> ws> thanks for your quick answer :)
>> ws> wonder Sonic
>> 
>> ws>  --- Alex Loubyansky <[EMAIL PROTECTED]> a
>> écrit : >
>> ws> Hello wonder,
>> >> 
>> >> Tuesday, May 28, 2002, 3:27:50 PM, you wrote:
>> >> 
>> >> ws> Well,
>> >> ws> here are my results for localhost:8082
>> >> 
>> >> ws> MBean View [JMX RI/1.0] 
>> >> 
>> >> ws> MBean Name:
>> >> ws>
>> >>
>> ws>
>>
ws> jboss.j2ee:service=EJB,jndiName=myrpg-atlas/UserSession
>> >> 
>> >> ws> MBean Java Class:
>> >> ws> org.jboss.ejb.StatelessSessionContainer 
>> >> ws> ...
>> >> 
>> >> ws> I change my code from:
>> >> ws> serSession = (
>> >> ws>
>> >>
>> ws>
>>
ws> (org.myrpg.atlas.ejb.UserSessionHome)jndiContext.lookup(
>> >> ws> "UserSession" ) ).create();
>> >> 
>> >> ws> to:
>> >> ws> serSession = (
>> >> ws>
>> >>
>> ws>
>>
ws> (org.myrpg.atlas.ejb.UserSessionHome)jndiContext.lookup(
>> >> ws> "myrpg-atlas/UserSession" ) ).create();
>> >> 
>> >> ws> then I've got a strange exception:
>> >> ws> java.lang.ClassCastException: $Proxy44
>> >> ws> at
>> >> ws>
>> >>
>> ws>
>>
ws> org.apache.jsp.register$jsp._jspService(register$jsp.java:219)
>> >> 
>> >> Do you place interfaces for UserSession in the
>> war
>> >> lib directory? If
>> >> so, remove them from the war.
>> >> 
>> >> ws> What does it mean??? :)
>> >> 
>> >> ws> Wnder Sonic (with a headache)
>> >> 
>> >> 
>> >> ws>  --- Alex Loubyansky <[EMAIL PROTECTED]> a
>> >> écrit : >
>> >> ws> Hello wonder,
>> >> >> 
>> >> >> Possible variants:
>> >> >> 1. the bean wasn't bound to JNDI;
>> >> >> 2. you look it up with a wrong name;
>> >> >> 
>> >> >> Can you see it bound in JNDI View?
>> >> (localhost:8082)
>> >> >> 
>> >> >> alex
>> >> >> 
>> >> >> Tuesday, May 28, 2002, 3:01:13 PM, you wrote:
>> >> >> 
>> >> >> ws> Hello everybody,
>> >> >> ws> I've got one error using Session beans
>> >> >> (UserSession)
>> >> >> ws> from a JSP and I've got the following
>> error:
>> >> >> 
>> >> >> ws> ...
>> >> >> ws> javax.servlet.ServletException:
>> UserSession
>> >> not
>> >> >> bound
>> >> >> ws> ...
>> >> >> 
>> >> >> ws> Can someone tell me what can cause this
>> >> error?
>> >> >> 
>> >> >> ws> thanks in advance,
>> >> >> ws> Wondersonic
>> >> >> 
>> >> >> 
>> >> >> 
>> >> >> ws>
>> >> >>
>> >> ws>
>> >>
>> ws>
>>
ws> ___
>> >> >> ws> Do You Yahoo!? -- Une adresse @yahoo.fr
>> >> gratuite
>> >> >> et en français !
>> >> >> ws> Yahoo! Mail : http://fr.mail.yahoo.com
>> >> >> 
>> >> >> ws>
>> >> >>
>> >> ws>
>> >>
>> ws>
>>
ws> ___
>> >> >> 
>> >> >> ws> Don't miss the 2002 Sprint PCS Application
>> >> >>

[JBoss-user] Open Source Causes Head Explosions ? [was Is there someone to help me?]

2002-05-28 Thread Nicholas

Ah shoot, wonder. Now you've done it. I can see
Microsoft making political hay from this. 

"Microsoft: The solution for kind-hearted CIOs who do
not want to explode their developer's heads"

Please post the non-explosive build ASAP.

//Nicholas

--- wonder sonic <[EMAIL PROTECTED]> wrote:
> Well it seems so, but I guess I'm really confused
> by all these deployment descriptors ejb-ref
> ejb-local-ref, ejb-link and so on...
> 
> Why can't we have only one two files (ejb-jar.xml
> and web.xml)??? :)
> 
> Regards,
> Sonic
> 
> note: I'm french and the little amount of doc in
>   english isn't really clear for me... Is there
>   a document that explains line by line all
> these
>   XML tags? And that covers every aspect of an
> EAR?
>   If you know one please tell me, my head is
> going
>   to explode ;)
> 
> 
>  --- Marius Kotsbak <[EMAIL PROTECTED]> a écrit : >
> The jndi-name UserSession is not found. Check with
> > localhost:8082
> > (jndiview) what name it is bound to. It has to be
> > the same that you are
> > using in your webapp.
> > 
> > On Tue, 2002-05-28 at 14:01, wonder sonic wrote:
> > > Hello everybody,
> > > I've got one error using Session beans
> > (UserSession)
> > > from a JSP and I've got the following error:
> > > 
> > > ...
> > > javax.servlet.ServletException: UserSession not
> > bound
> > > ...
> > > 
> > > Can someone tell me what can cause this error?
> > > 
> > > thanks in advance,
> > > Wondersonic
> > > 
> > > 
> > > 
> > >
> >
>
___
> > > Do You Yahoo!? -- Une adresse @yahoo.fr gratuite
> > et en français !
> > > Yahoo! Mail : http://fr.mail.yahoo.com
> > > 
> > >
> >
>
___
> > > 
> > > Don't miss the 2002 Sprint PCS Application
> > Developer's Conference
> > > August 25-28 in Las Vegas --
> > http://devcon.sprintpcs.com/adp/index.cfm
> > > 
> > > ___
> > > JBoss-user mailing list
> > > [EMAIL PROTECTED]
> > >
> >
>
https://lists.sourceforge.net/lists/listinfo/jboss-user
> > 
> > 
> > 
> >
>
___
> > 
> > Don't miss the 2002 Sprint PCS Application
> > Developer's Conference
> > August 25-28 in Las Vegas --
> > http://devcon.sprintpcs.com/adp/index.cfm
> > 
> > ___
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> >
>
https://lists.sourceforge.net/lists/listinfo/jboss-user
> 
> 
>
___
> Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et
> en français !
> Yahoo! Mail : http://fr.mail.yahoo.com
> 
>
___
> 
> Don't miss the 2002 Sprint PCS Application
> Developer's Conference
> August 25-28 in Las Vegas --
> http://devcon.sprintpcs.com/adp/index.cfm
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
>
https://lists.sourceforge.net/lists/listinfo/jboss-user


=
Nicholas Whitehead
Home: (973) 377 9335
Cell: (201) 615 2716
Work: (212) 622 5639
[EMAIL PROTECTED]

__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

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



Re: [JBoss-user] What's in the Flashline CMP/CMR Documentation?

2002-05-28 Thread Justin Casp

I found the Jboss CMP doc pretty useful.  It answered many of my questions, 
and is at least worth the $10.  THe examples are useful and easy to follow.
Justin

> Unfortunately I don't have received an answer yet.
>
> I have no problem with supporting the project by buying the
> documentation, but before I do that I would like to know *what* I am
> buying.
>
>   Stefan
>
> On Sunday, May 26, 2002, at 07:10  PM, Stefan Arentz wrote:
> > Howdy.
> >
> > I bought the JBoss book (2.4.x) and the JBoss CMP/CMR docs from the
> > Flashline store. The CMP docs that I have are in HTML format and from
> > December/2001.
> >
> > I see that there is a package called 'JBoss 6-month documentation
> > subscription' now, that includes the CMP/CMR documentation in PDF
> > format.
> >
> > My question is; is this PDF a newer version than the one from
> > December/2001? Does it cover RC3? Is it any good?
> >
> > Anyone?
> >
> >  Stefan
>
> ___
>
> Don't miss the 2002 Sprint PCS Application Developer's Conference
> August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
>
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user


___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

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



Re[4]: [JBoss-user] [HELP] Is there someone to help me?

2002-05-28 Thread Alex Loubyansky

Hello wonder,

I'd remove these from the war:
   jaas.jar
   jboss-client.jar
   jboss-j2ee.jar
   jbosssx-client.jar
   jnp-client.jar


Tuesday, May 28, 2002, 3:41:04 PM, you wrote:

ws> Hmmm, here is my war tree:
ws> / (root)
ws> |   administratorLogin.jsp
ws> |   atlas.jsp
ws> |   checkAdministratorLogin.jsp
ws> |   index.jsp
ws> |   register.jsp
ws> |   user_registration.jsp
ws> |
ws> +---css
ws> |   general.css
ws> |
ws> +---data
ws> |   data.jar
ws> |   hicare-kernel.jar
ws> |   hicare-version.jar
ws> |   jaas.jar
ws> |   jboss-client.jar
ws> |   jboss-j2ee.jar
ws> |   jbosssx-client.jar
ws> |   jnp-client.jar
ws> |   myrpg-atlas-client.jar
ws> |
ws> +---download_hicare
ws> |   hicare.jar
ws> |
ws> +---images
ws> |   banner.jpg
ws> |   myrpgbiglogo.jpg
ws> |
ws> +---META-INF
ws> |   MANIFEST.MF
ws> |
ws> +---static
ws> |   bottom.html
ws> |   howto.html
ws> |   intro.html
ws> |   menu.html
ws> |   top.html
ws> |
ws> +---WEB-INF
ws> |   jboss-web.xml
ws> |   web.xml
ws> |
ws> +---classes
ws> +---org
ws> +---myrpg
ws> +---atlas
ws> Atlas.class

ws> And the my EJBs interfaces are located in a jar file
ws> in
ws> the ear file.

ws> strange isn't it?
ws> I think I'm making something wrong but I can't find
ws> it... :(

ws> thanks for your quick answer :)
ws> wonder Sonic

ws>  --- Alex Loubyansky <[EMAIL PROTECTED]> a écrit : >
ws> Hello wonder,
>> 
>> Tuesday, May 28, 2002, 3:27:50 PM, you wrote:
>> 
>> ws> Well,
>> ws> here are my results for localhost:8082
>> 
>> ws> MBean View [JMX RI/1.0] 
>> 
>> ws> MBean Name:
>> ws>
>>
ws> jboss.j2ee:service=EJB,jndiName=myrpg-atlas/UserSession
>> 
>> ws> MBean Java Class:
>> ws> org.jboss.ejb.StatelessSessionContainer 
>> ws> ...
>> 
>> ws> I change my code from:
>> ws> serSession = (
>> ws>
>>
ws> (org.myrpg.atlas.ejb.UserSessionHome)jndiContext.lookup(
>> ws> "UserSession" ) ).create();
>> 
>> ws> to:
>> ws> serSession = (
>> ws>
>>
ws> (org.myrpg.atlas.ejb.UserSessionHome)jndiContext.lookup(
>> ws> "myrpg-atlas/UserSession" ) ).create();
>> 
>> ws> then I've got a strange exception:
>> ws> java.lang.ClassCastException: $Proxy44
>> ws> at
>> ws>
>>
ws> org.apache.jsp.register$jsp._jspService(register$jsp.java:219)
>> 
>> Do you place interfaces for UserSession in the war
>> lib directory? If
>> so, remove them from the war.
>> 
>> ws> What does it mean??? :)
>> 
>> ws> Wnder Sonic (with a headache)
>> 
>> 
>> ws>  --- Alex Loubyansky <[EMAIL PROTECTED]> a
>> écrit : >
>> ws> Hello wonder,
>> >> 
>> >> Possible variants:
>> >> 1. the bean wasn't bound to JNDI;
>> >> 2. you look it up with a wrong name;
>> >> 
>> >> Can you see it bound in JNDI View?
>> (localhost:8082)
>> >> 
>> >> alex
>> >> 
>> >> Tuesday, May 28, 2002, 3:01:13 PM, you wrote:
>> >> 
>> >> ws> Hello everybody,
>> >> ws> I've got one error using Session beans
>> >> (UserSession)
>> >> ws> from a JSP and I've got the following error:
>> >> 
>> >> ws> ...
>> >> ws> javax.servlet.ServletException: UserSession
>> not
>> >> bound
>> >> ws> ...
>> >> 
>> >> ws> Can someone tell me what can cause this
>> error?
>> >> 
>> >> ws> thanks in advance,
>> >> ws> Wondersonic
>> >> 
>> >> 
>> >> 
>> >> ws>
>> >>
>> ws>
>>
ws> ___
>> >> ws> Do You Yahoo!? -- Une adresse @yahoo.fr
>> gratuite
>> >> et en français !
>> >> ws> Yahoo! Mail : http://fr.mail.yahoo.com
>> >> 
>> >> ws>
>> >>
>> ws>
>>
ws> ___
>> >> 
>> >> ws> Don't miss the 2002 Sprint PCS Application
>> >> Developer's Conference
>> >> ws> August 25-28 in Las Vegas --
>> >> http://devcon.sprintpcs.com/adp/index.cfm
>> >> 
>> >> ws>
>> ___
>> >> ws> JBoss-user mailing list
>> >> ws> [EMAIL PROTECTED]
>> >> ws>
>> >>
>> ws>
>>
ws> https://lists.sourceforge.net/lists/listinfo/jboss-user
>> >> 
>> >> -- 
>> >> Best regards,
>> >>  Alex Loubyansky
>> >> 
>> >>  
>> 
>> ws>
>>
ws> ___
>> ws> Do You Yahoo!? -- Une adresse @yahoo.fr gratuite
>> et en français !
>> ws> Yahoo! Mail : http://fr.mail.yahoo.com
>> 
>> -- 
>> Best regards,
>>  Alex Loubyansky
>> 
>>  

ws> ___
ws> Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
ws> Yahoo! Mail : http://fr.mail.yahoo.com

-- 
Best regards,
 Alex Loubyansky



___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

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



Re[2]: [JBoss-user] [HELP] Is there someone to help me?

2002-05-28 Thread Alex Loubyansky

Hello wonder,

Tuesday, May 28, 2002, 3:34:50 PM, you wrote:

ws> Well it seems so, but I guess I'm really confused
ws> by all these deployment descriptors ejb-ref
ws> ejb-local-ref, ejb-link and so on...

ws> Why can't we have only one two files (ejb-jar.xml
ws> and web.xml)??? :)

Indeed, standard files only should suffice in JBoss for simple apps.

ws> Regards,
ws> Sonic

ws> note: I'm french and the little amount of doc in
ws>   english isn't really clear for me... Is there
ws>   a document that explains line by line all these
ws>   XML tags? And that covers every aspect of an
ws> EAR?
ws>   If you know one please tell me, my head is going
ws>   to explode ;)

The strongest survive :) Java doesn't know your ethnicity and so :)

ws>  --- Marius Kotsbak <[EMAIL PROTECTED]> a écrit : >
ws> The jndi-name UserSession is not found. Check with
>> localhost:8082
>> (jndiview) what name it is bound to. It has to be
>> the same that you are
>> using in your webapp.
>> 
>> On Tue, 2002-05-28 at 14:01, wonder sonic wrote:
>> > Hello everybody,
>> > I've got one error using Session beans
>> (UserSession)
>> > from a JSP and I've got the following error:
>> > 
>> > ...
>> > javax.servlet.ServletException: UserSession not
>> bound
>> > ...
>> > 
>> > Can someone tell me what can cause this error?
>> > 
>> > thanks in advance,
>> > Wondersonic
>> > 
>> > 
>> > 
>> >
>>
ws> ___
>> > Do You Yahoo!? -- Une adresse @yahoo.fr gratuite
>> et en français !
>> > Yahoo! Mail : http://fr.mail.yahoo.com
>> > 
>> >
>>
ws> ___
>> > 
>> > Don't miss the 2002 Sprint PCS Application
>> Developer's Conference
>> > August 25-28 in Las Vegas --
>> http://devcon.sprintpcs.com/adp/index.cfm
>> > 
>> > ___
>> > JBoss-user mailing list
>> > [EMAIL PROTECTED]
>> >
>>
ws> https://lists.sourceforge.net/lists/listinfo/jboss-user
>> 
>> 
>> 
>>
ws> ___
>> 
>> Don't miss the 2002 Sprint PCS Application
>> Developer's Conference
>> August 25-28 in Las Vegas --
>> http://devcon.sprintpcs.com/adp/index.cfm
>> 
>> ___
>> JBoss-user mailing list
>> [EMAIL PROTECTED]
>>
ws> https://lists.sourceforge.net/lists/listinfo/jboss-user 

ws> ___
ws> Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
ws> Yahoo! Mail : http://fr.mail.yahoo.com

ws> ___

ws> Don't miss the 2002 Sprint PCS Application Developer's Conference
ws> August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

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

-- 
Best regards,
 Alex Loubyansky



___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

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



Re[2]: [JBoss-user] [HELP] Is there someone to help me?

2002-05-28 Thread Alex Loubyansky

Hello wonder,

Tuesday, May 28, 2002, 3:27:50 PM, you wrote:

ws> Well,
ws> here are my results for localhost:8082

ws> MBean View [JMX RI/1.0] 

ws> MBean Name:
ws> jboss.j2ee:service=EJB,jndiName=myrpg-atlas/UserSession

ws> MBean Java Class:
ws> org.jboss.ejb.StatelessSessionContainer 
ws> ...

ws> I change my code from:
ws> serSession = (
ws> (org.myrpg.atlas.ejb.UserSessionHome)jndiContext.lookup(
ws> "UserSession" ) ).create();

ws> to:
ws> serSession = (
ws> (org.myrpg.atlas.ejb.UserSessionHome)jndiContext.lookup(
ws> "myrpg-atlas/UserSession" ) ).create();

ws> then I've got a strange exception:
ws> java.lang.ClassCastException: $Proxy44
ws> at
ws> org.apache.jsp.register$jsp._jspService(register$jsp.java:219)

Do you place interfaces for UserSession in the war lib directory? If
so, remove them from the war.

ws> What does it mean??? :)

ws> Wnder Sonic (with a headache)


ws>  --- Alex Loubyansky <[EMAIL PROTECTED]> a écrit : >
ws> Hello wonder,
>> 
>> Possible variants:
>> 1. the bean wasn't bound to JNDI;
>> 2. you look it up with a wrong name;
>> 
>> Can you see it bound in JNDI View? (localhost:8082)
>> 
>> alex
>> 
>> Tuesday, May 28, 2002, 3:01:13 PM, you wrote:
>> 
>> ws> Hello everybody,
>> ws> I've got one error using Session beans
>> (UserSession)
>> ws> from a JSP and I've got the following error:
>> 
>> ws> ...
>> ws> javax.servlet.ServletException: UserSession not
>> bound
>> ws> ...
>> 
>> ws> Can someone tell me what can cause this error?
>> 
>> ws> thanks in advance,
>> ws> Wondersonic
>> 
>> 
>> 
>> ws>
>>
ws> ___
>> ws> Do You Yahoo!? -- Une adresse @yahoo.fr gratuite
>> et en français !
>> ws> Yahoo! Mail : http://fr.mail.yahoo.com
>> 
>> ws>
>>
ws> ___
>> 
>> ws> Don't miss the 2002 Sprint PCS Application
>> Developer's Conference
>> ws> August 25-28 in Las Vegas --
>> http://devcon.sprintpcs.com/adp/index.cfm
>> 
>> ws> ___
>> ws> JBoss-user mailing list
>> ws> [EMAIL PROTECTED]
>> ws>
>>
ws> https://lists.sourceforge.net/lists/listinfo/jboss-user
>> 
>> -- 
>> Best regards,
>>  Alex Loubyansky
>> 
>>  

ws> ___
ws> Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
ws> Yahoo! Mail : http://fr.mail.yahoo.com

-- 
Best regards,
 Alex Loubyansky



___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

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



Re: [JBoss-user] [HELP] Is there someone to help me?

2002-05-28 Thread wonder sonic

Well it seems so, but I guess I'm really confused
by all these deployment descriptors ejb-ref
ejb-local-ref, ejb-link and so on...

Why can't we have only one two files (ejb-jar.xml
and web.xml)??? :)

Regards,
Sonic

note: I'm french and the little amount of doc in
  english isn't really clear for me... Is there
  a document that explains line by line all these
  XML tags? And that covers every aspect of an
EAR?
  If you know one please tell me, my head is going
  to explode ;)


 --- Marius Kotsbak <[EMAIL PROTECTED]> a écrit : >
The jndi-name UserSession is not found. Check with
> localhost:8082
> (jndiview) what name it is bound to. It has to be
> the same that you are
> using in your webapp.
> 
> On Tue, 2002-05-28 at 14:01, wonder sonic wrote:
> > Hello everybody,
> > I've got one error using Session beans
> (UserSession)
> > from a JSP and I've got the following error:
> > 
> > ...
> > javax.servlet.ServletException: UserSession not
> bound
> > ...
> > 
> > Can someone tell me what can cause this error?
> > 
> > thanks in advance,
> > Wondersonic
> > 
> > 
> > 
> >
>
___
> > Do You Yahoo!? -- Une adresse @yahoo.fr gratuite
> et en français !
> > Yahoo! Mail : http://fr.mail.yahoo.com
> > 
> >
>
___
> > 
> > Don't miss the 2002 Sprint PCS Application
> Developer's Conference
> > August 25-28 in Las Vegas --
> http://devcon.sprintpcs.com/adp/index.cfm
> > 
> > ___
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> >
>
https://lists.sourceforge.net/lists/listinfo/jboss-user
> 
> 
> 
>
___
> 
> Don't miss the 2002 Sprint PCS Application
> Developer's Conference
> August 25-28 in Las Vegas --
> http://devcon.sprintpcs.com/adp/index.cfm
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
>
https://lists.sourceforge.net/lists/listinfo/jboss-user 

___
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com

___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

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



Re: [JBoss-user] [HELP] Is there someone to help me?

2002-05-28 Thread Alex Loubyansky

Hello wonder,

Possible variants:
1. the bean wasn't bound to JNDI;
2. you look it up with a wrong name;

Can you see it bound in JNDI View? (localhost:8082)

alex

Tuesday, May 28, 2002, 3:01:13 PM, you wrote:

ws> Hello everybody,
ws> I've got one error using Session beans (UserSession)
ws> from a JSP and I've got the following error:

ws> ...
ws> javax.servlet.ServletException: UserSession not bound
ws> ...

ws> Can someone tell me what can cause this error?

ws> thanks in advance,
ws> Wondersonic



ws> ___
ws> Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
ws> Yahoo! Mail : http://fr.mail.yahoo.com

ws> ___

ws> Don't miss the 2002 Sprint PCS Application Developer's Conference
ws> August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

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

-- 
Best regards,
 Alex Loubyansky



___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

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



Re: [JBoss-user] [HELP] Is there someone to help me?

2002-05-28 Thread Marius Kotsbak

The jndi-name UserSession is not found. Check with localhost:8082
(jndiview) what name it is bound to. It has to be the same that you are
using in your webapp.

On Tue, 2002-05-28 at 14:01, wonder sonic wrote:
> Hello everybody,
> I've got one error using Session beans (UserSession)
> from a JSP and I've got the following error:
> 
> ...
> javax.servlet.ServletException: UserSession not bound
> ...
> 
> Can someone tell me what can cause this error?
> 
> thanks in advance,
> Wondersonic
> 
> 
> 
> ___
> Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
> Yahoo! Mail : http://fr.mail.yahoo.com
> 
> ___
> 
> Don't miss the 2002 Sprint PCS Application Developer's Conference
> August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user



___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

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



[JBoss-user] [HELP] Is there someone to help me?

2002-05-28 Thread wonder sonic

Hello everybody,
I've got one error using Session beans (UserSession)
from a JSP and I've got the following error:

...
javax.servlet.ServletException: UserSession not bound
...

Can someone tell me what can cause this error?

thanks in advance,
Wondersonic



___
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com

___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

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



Re: [JBoss-user] What's in the Flashline CMP/CMR Documentation?

2002-05-28 Thread Stefan Arentz

Unfortunately I don't have received an answer yet.

I have no problem with supporting the project by buying the 
documentation, but before I do that I would like to know *what* I am 
buying.

  Stefan

On Sunday, May 26, 2002, at 07:10  PM, Stefan Arentz wrote:

> Howdy.
>
> I bought the JBoss book (2.4.x) and the JBoss CMP/CMR docs from the 
> Flashline store. The CMP docs that I have are in HTML format and from 
> December/2001.
>
> I see that there is a package called 'JBoss 6-month documentation 
> subscription' now, that includes the CMP/CMR documentation in PDF 
> format.
>
> My question is; is this PDF a newer version than the one from 
> December/2001? Does it cover RC3? Is it any good?
>
> Anyone?
>
>  Stefan


___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

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



Re: [JBoss-user] Trouble hot re-deploying

2002-05-28 Thread Simon Stewart

On Tue, May 28, 2002 at 10:46:14AM +1000, Dmitri Colebatch wrote:
> > I use a method that takes a JNDI name and returns an EJBLocalHome
> > object, which is then cast to the appropriate type. Although the
> > returned object has the same class name as before the redeployment,
> > I'm getting ClassCastExceptions.
> 
> where is the class that this method is in?  Is in in your directory structure, or 
>the lib dir?

It's located in my ejb.jar file in the correct location. I'm hanging
on until RC4 before gettin too worried about this, because Scott
reports that it's a "known issue" and has been fixed.

Cheers,

Simon

-- 
"I have a hobby...I have the world's largest collection of sea
shells. I keep it scattered on beaches all over the world. Maybe
you've seen some of it..."
 Steven Wright

___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

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



Re: [JBoss-user] Trouble hot re-deploying

2002-05-28 Thread Simon Stewart

I've got other projects on the go that don't involve JBoss, so I'll
wait until the final release (candidate, surely?) and retest.

As an aside, I'm constantly impressed with the speed with which the
JBoss developers find and fix problems. When the online docs are
relevant to version 3 (or the book, for that matter) I'll be making a
contribution. 

On Mon, May 27, 2002 at 11:39:24PM -0700, Scott M Stark wrote:
> This is a bug in the deployment of ejbs from a fixed url. This is
> fixed in the 3.0 branch so either get the latest code or wait for
> the final release due out this week.

Regards,

Simon

-- 
As usual, this being a 1.3.x release, I haven't even compiled this
kernel yet.  So if it works, you should be doubly impressed.
(Linus Torvalds, announcing kernel 1.3.3 on the linux-kernel mailing list.)

___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

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



Re: [JBoss-user] where is the doc?

2002-05-28 Thread wonder sonic

Hemm,
Does someone know where is the template
.ant.properties file?
see Chapter.3.SampleProject.doc
page 4, line 8.

Thanks in advance
Wonder Sonic

 --- Markus Garscha <[EMAIL PROTECTED]>
a écrit : > and then go to manual/src/guide
> .)
> 
> markus
> 
> 
> * Ricardo Argüello <[EMAIL PROTECTED]> [2002-05-27
> 22:48]:
> > Check out the "manual" module from CVS.
> > 
> > Ricardo Argüello
> > 
> > 
> > > -Original Message-
> > > From: Ray Tayek [mailto:[EMAIL PROTECTED]]
> > > Sent: Sunday, May 26, 2002 1:56 AM
> > > To: [EMAIL PROTECTED]
> > > Subject: [JBoss-user] where is the doc?
> > > 
> > > 
> > > hi, just downloaded jboss. can't seem to find
> any doc. where 
> > > does it live?
> > > 
> > > thanks
> > > ---
> > > 
> > > ray tayek http://home.attbi.com/~rtayek/
> > > actively seeking telecommuting work
> > > vice chair orange county java users group
> http://www.ocjug.org/ 
> > > mailto:[EMAIL PROTECTED]
> > > hate spam? http://samspade.org/ssw/
> > > 
> > > 
> > >
>
___
> > > 
> > > Don't miss the 2002 Sprint PCS Application
> Developer's Conference
> > > August 25-28 in Las Vegas --
> http://devcon.sprintpcs.com/adp/index.cfm
> > > 
> > > ___
> > > JBoss-user mailing list
> > > [EMAIL PROTECTED]
> > >
>
https://lists.sourceforge.net/lists/listinfo/jboss-user
> > > 
> > 
> >
>
___
> > 
> > Don't miss the 2002 Sprint PCS Application
> Developer's Conference
> > August 25-28 in Las Vegas --
> http://devcon.sprintpcs.com/adp/index.cfm
> > 
> > ___
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> >
>
https://lists.sourceforge.net/lists/listinfo/jboss-user
> > 
> > 
> > 
> >
>
___
> > 
> > Don't miss the 2002 Sprint PCS Application
> Developer's Conference
> > August 25-28 in Las Vegas --
> http://devcon.sprintpcs.com/adp/index.cfm
> > 
> > ___
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> >
>
https://lists.sourceforge.net/lists/listinfo/jboss-user
> 
> -- 
>
---
>  Markus Garschaemail:
> [EMAIL PROTECTED] 
>  Patrichsiedlung 32  fon: +49
> 9142 962749
>  91757 Treuchtlingen fax: +49 89
> 244356966 
>  Germany   pgp-keyid:
> 0xEE18AF3B  
>
---
> 
> 

> ATTACHMENT part 2 application/pgp-signature 
 

___
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com

___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

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



Re: [JBoss-user] custom login modules - UsernamePassword login module subclass

2002-05-28 Thread Dmitri Colebatch

btw - got the same error without using ProxyLoginModule and putting my login module in 
the classpath.

cheers
dim

- Original Message -
From: "Dmitri Colebatch" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, May 28, 2002 5:00 PM
Subject: [JBoss-user] custom login modules - UsernamePassword login module subclass


> hey list,
>
> I'm wondering if anyone has subclassed this successfully in JBoss 2.4.4?  I'm trying 
>to get my head around what exactly is
involved,
> and having issues because the 
>org.jboss.security.auth.spi.UsernamePasswordLoginModule (in lib/jboss-jaas.jar) uses
> org.jboss.security.Base64Encoder (in lib/ext/jbosssx.jar).
>
> I'm using the ProxyLoginModule so I dont have to change the classpath, but I find 
>that I then get NoClassDefFoundErrors (see end
of
> email), which I read to be due to the difference between system classpath, and the 
>current thread's classpath.
>
> I'm going to see if putting my module in the system classpath makes a difference, 
>but would still be interested to hear more on
> this.
>
> cheers
> dim
>
> stack trace -
>
> javax.security.auth.login.LoginException: java.lang.NoClassDefFoundError: 
>org/jboss/security/Base64Encoder
> at org.jboss.security.Util.encodeBase64(Util.java:264)
> at 
>org.jboss.security.auth.spi.UsernamePasswordLoginModule.createPasswordHash(UsernamePasswordLoginModule.java:270)
> at 
>org.jboss.security.auth.spi.UsernamePasswordLoginModule.login(UsernamePasswordLoginModule.java:143)
> at 
>org.jboss.security.auth.spi.ProxyLoginModule.login(ProxyLoginModule.java:89)
> at java.lang.reflect.Method.invoke(Native Method)
> at javax.security.auth.login.LoginContext.invoke(LoginContext.java:595)
> at javax.security.auth.login.LoginContext.access$000(LoginContext.java:125)
> at javax.security.auth.login.LoginContext$3.run(LoginContext.java:531)
> at java.security.AccessController.doPrivileged(Native Method)
> at javax.security.auth.login.LoginContext.invokeModule(LoginContext.java:528)
> at javax.security.auth.login.LoginContext.login(LoginContext.java:449)
> at 
>org.jboss.security.plugins.JaasSecurityManager.defaultLogin(JaasSecurityManager.java:394)
> at 
>org.jboss.security.plugins.JaasSecurityManager.authenticate(JaasSecurityManager.java:361)
> at 
>org.jboss.security.plugins.JaasSecurityManager.isValid(JaasSecurityManager.java:217)
> at 
>org.jboss.web.catalina.security.JBossSecurityMgrRealm.authenticate(JBossSecurityMgrRealm.java:253)
> at 
>org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthenticator.java:263)
> at 
>org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:462)
> at 
>org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
> at 
>org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
> at 
>org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
> at 
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
> at 
>org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
> at 
>org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
> at 
>org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
> at 
>org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
> at 
>org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
> at 
>org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
> at 
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> at 
>org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
> at 
>org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
> at 
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> at 
>org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1012)
> at 
>org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107)
> at java.lang.Thread.run(Thread.java:484)
>
>
>
> ___
>
> Don't miss the 2002 Sprint PCS Application Developer's Conference
> August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
>
> ___
> JBoss-user mailing list
> [EMAIL PR