[JBoss-user] Please Help

2003-07-24 Thread Peter Luttrell
Does anyone know how to fix this

11:09:35,453 WARN  [TransactionImpl] XAException: 
tx=TransactionImpl:XidImpl [FormatId=257, GlobalId=IS756//117, BranchQ
ual=] errorCode=XAER_PROTO
javax.transaction.xa.XAException
  at 
oracle.jdbc.xa.OracleXAResource.disallowLocalTxnMode(OracleXAResource.java:1047) 

  at 
oracle.jdbc.xa.client.OracleXAResource.start(OracleXAResource.java:153)
  at 
org.jboss.resource.adapter.jdbc.xa.XAManagedConnection.start(XAManagedConnection.java:133) 

  at 
org.jboss.tm.TransactionImpl.startResource(TransactionImpl.java:1137)
  at 
org.jboss.tm.TransactionImpl.enlistResource(TransactionImpl.java:624)
  at 
org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener.enlist(TxConnectionManager 

.java:460)
  at 
org.jboss.resource.connectionmanager.TxConnectionManager.managedConnectionReconnected(TxConnectionManager.jav 

a:358)
  at 
org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:49 

0)
  at 
org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseCon 

nectionManager2.java:798)
  at 
org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:102)

I know it has something to do with the XA datasource.
I'm using JBoss3.2.1 and Oracle 9.2.0.3 thin drivers talking to oracle 
8.1.7.4 server.
I'm using the sample oracle xa datassource file and i've turned padding 
on in the transaction service.

thanks.
.peter


--
CONFIDENTIALITY NOTICE: This e-mail message, including any attachments,is for the sole 
use of the intended recipient(s), even if addressed incorrectly, and may contain 
confidential and privileged information.  Any unauthorized review, use, disclosure or 
distribution is prohibited.  If you are not the intended recipient, please contact the 
sender by reply e-mail and destroy or delete all copies of the original message and 
all attachments, including deletion from the trash or equivalent folder.  Thank you.


RE: [JBoss-user] please help with sar

2003-03-17 Thread Keysers, Wonne
Add a /META-INF/jboss-app.xml to your .ear
describing your service.
 
Rgds
Wonne Keysers

-Original Message- 
From: kiuma [mailto:[EMAIL PROTECTED] 
Sent: Mon 3/17/2003 17:34 
To: [EMAIL PROTECTED] 
Cc: 
Subject: [JBoss-user] please help with sar



Hi all,
I currently have an ear (say test.ear archive (ejb-test.jar + test.war)
and since I'm trying to eval hibernate I need a hib-test.sar.
Now I'm trying to put hib-test.sar it inside test.ear, but inspecting
jndi-view service no hibernate service is started. If I put hib-test.sar
directly in the deploy dir the service fails because it depends from
postgres-service.xml.
Please what shoul I do?

kiuma



---
This SF.net email is sponsored by:Crypto Challenge is now open!
Get cracking and register here for some mind boggling fun and
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


<>

RE: [JBoss-user] please help with sar

2003-03-17 Thread JD Brennan
Title: RE: [JBoss-user] please help with sar





I think you have to modify the META-INF/application.xml
in the .ear to reference the .sar.


You can also put the .sar inside the .jar inside the .ear
and it will get deployed.  (That's what we do.)


JD


-Original Message-
From: kiuma [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 17, 2003 8:34 AM
To: [EMAIL PROTECTED]
Subject: [JBoss-user] please help with sar



Hi all,
I currently have an ear (say test.ear archive (ejb-test.jar + test.war) 
and since I'm trying to eval hibernate I need a hib-test.sar.
Now I'm trying to put hib-test.sar it inside test.ear, but inspecting 
jndi-view service no hibernate service is started. If I put hib-test.sar 
directly in the deploy dir the service fails because it depends from 
postgres-service.xml.
Please what shoul I do?


kiuma




---
This SF.net email is sponsored by:Crypto Challenge is now open! 
Get cracking and register here for some mind boggling fun and 
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user





[JBoss-user] please help with sar

2003-03-17 Thread kiuma
Hi all,
I currently have an ear (say test.ear archive (ejb-test.jar + test.war) 
and since I'm trying to eval hibernate I need a hib-test.sar.
Now I'm trying to put hib-test.sar it inside test.ear, but inspecting 
jndi-view service no hibernate service is started. If I put hib-test.sar 
directly in the deploy dir the service fails because it depends from 
postgres-service.xml.
Please what shoul I do?

kiuma



---
This SF.net email is sponsored by:Crypto Challenge is now open! 
Get cracking and register here for some mind boggling fun and 
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Please help with Jboss Transaction XidImpl timed out

2003-03-05 Thread David Jencks
Try the current 2.4 version.  2.4.3 pooling could time out connection
requests under heavy load while serving other requests.

david jencks

On 2003.03.05 01:36 Dhiraj Peechara wrote:
> Hello ,
> 
>  We are using Jboss 2.4.3, Tomcat 3.2.3, jdk 1.3, postgres 7.2.1
> running on Red Hat Linux 7.2
> 
> The Jboss server stops responding occassionally(1 to 2 times in a week).
> The
> jboss fails to get a connection object giving following errors. 
> 
> 
> 
> Transaction XidImpl [FormatId=257, GlobalId=xx1.dummyhost.com//3142,
> BranchQual=] timed out. status=STATUS_ACTIVE
> 
>  
> OR 
> 
> 
> java.lang.NullPointerException
> [Default] at
> org.jboss.pool.jdbc.xa.XAPoolDataSource.getConnection(XAPoolDataSource.java:
> 178)
> [Default] 
> [Default] at
> com.davs.lsw.ejb.generic.GenericBean.updateUsersTable(GenericBean.java:514)
> [Default] 
> [Default] at java.lang.reflect.Method.invoke(Native Method)
> [Default] 
> [Default] at
> org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(Stateles
> sSessionContainer.java:543)
> [Default] 
> [Default] at
> org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSe
> ssionInstanceInterceptor.java:87)
> [Default] 
> [Default] at
> org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxInterceptorCMT.java:133)
> [Default] 
> [Default] at
> org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.
> java:307)
> [Default] 
> [Default] at
> org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:99)
> [Default] 
> [Default] at
> org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:12
> 8)
> [Default] 
> [Default] at
> org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:195)
> [Default] 
> [Default] at
> org.jboss.ejb.StatelessSessionContainer.invoke(StatelessSessionContainer.jav
> a:286)
> [Default] 
> [Default] at
> org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(JRMPContainerI
> nvoker.java:395)
> [Default] 
> [Default] at java.lang.reflect.Method.invoke(Native Method)
> [Default] 
> [Default] at
> sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:236)
> [Default] 
> [Default] at sun.rmi.transport.Transport$1.run(Transport.java:147)
> [Default] 
> [Default] at java.security.AccessController.doPrivileged(Native
> Method)
> [Default] 
> [Default] at
> sun.rmi.transport.Transport.serviceCall(Transport.java:143)
> [Default] 
> [Default] at
> sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
> [Default] 
> [Default] at
> sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:7
> 01)
> [Default] 
> [Default] at java.lang.Thread.run(Thread.java:479)
> 
>  
>   
>   My Jboss.jcml configration includes
> 
> 
>  name="DefaultDomain:service=XADataSource,name=DefaultDS">
>  name="DataSourceClass">org.jboss.pool.jdbc.xa.wrapper.XADataSourceImpl ibute>
> DefaultDS
> jdbc:postgresql://xx.yy.zz.pp:5432/testdb
> username
> passwd
> 120
> 10
> false
> false
> false
> true
> 12
> 180
> false
> false
> 1.0
> 0
> 
> 
> 
> Hope this information will help. Waiting for a responce.
> 
> Thanks in advance
> 
> 
> 
> 


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


[JBoss-user] Please help with Jboss Transaction XidImpl timed out

2003-03-04 Thread Dhiraj Peechara
Hello ,

 We are using Jboss 2.4.3, Tomcat 3.2.3, jdk 1.3, postgres 7.2.1
running on Red Hat Linux 7.2

The Jboss server stops responding occassionally(1 to 2 times in a week). The
jboss fails to get a connection object giving following errors. 



Transaction XidImpl [FormatId=257, GlobalId=xx1.dummyhost.com//3142,
BranchQual=] timed out. status=STATUS_ACTIVE

 
OR 


java.lang.NullPointerException
[Default]   at
org.jboss.pool.jdbc.xa.XAPoolDataSource.getConnection(XAPoolDataSource.java:
178)
[Default] 
[Default]   at
com.davs.lsw.ejb.generic.GenericBean.updateUsersTable(GenericBean.java:514)
[Default] 
[Default]   at java.lang.reflect.Method.invoke(Native Method)
[Default] 
[Default]   at
org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(Stateles
sSessionContainer.java:543)
[Default] 
[Default]   at
org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSe
ssionInstanceInterceptor.java:87)
[Default] 
[Default]   at
org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxInterceptorCMT.java:133)
[Default] 
[Default]   at
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.
java:307)
[Default] 
[Default]   at
org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:99)
[Default] 
[Default]   at
org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:12
8)
[Default] 
[Default]   at
org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:195)
[Default] 
[Default]   at
org.jboss.ejb.StatelessSessionContainer.invoke(StatelessSessionContainer.jav
a:286)
[Default] 
[Default]   at
org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(JRMPContainerI
nvoker.java:395)
[Default] 
[Default]   at java.lang.reflect.Method.invoke(Native Method)
[Default] 
[Default]   at
sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:236)
[Default] 
[Default]   at sun.rmi.transport.Transport$1.run(Transport.java:147)
[Default] 
[Default]   at java.security.AccessController.doPrivileged(Native
Method)
[Default] 
[Default]   at
sun.rmi.transport.Transport.serviceCall(Transport.java:143)
[Default] 
[Default]   at
sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
[Default] 
[Default]   at
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:7
01)
[Default] 
[Default]   at java.lang.Thread.run(Thread.java:479)

 
  
  My Jboss.jcml configration includes



org.jboss.pool.jdbc.xa.wrapper.XADataSourceImpl
DefaultDS
jdbc:postgresql://xx.yy.zz.pp:5432/testdb
username
passwd
120
10
false
false
false
true
12
180
false
false
1.0
0



Hope this information will help. Waiting for a responce.

Thanks in advance



<>

[JBoss-user] Please help list-admin: I keep getting the e-mails twice

2003-02-12 Thread Randahl Fink Isaksen








I have no clue what is wrong, but I keep getting each
of the e-mails from this list twice. I tried unsubscribing – no effect.

 

I would like to receive each e-mail only once.

 

 

Randahl

 








[JBoss-user] Please Help Me

2002-12-24 Thread Dhiraj Ramakrishnan
Hi all ,
I really hope i will get a reply this time i have been struggling with this
for quite some time


My application uses a JTree to help ease the navigation through the whole
application.

The problem i am facing is that , it is authenticating the users present in
the LDAP Server. But when it is trying to
initialize the applet it is asking once again for the username and password
(saying enter the network password!).   There even if i give junk values
it accepts ... even if i don't give any values it makes no difference. I
have to click
on that login pop up at least 10 times , then it allows me to enter the
application, else the left side JTree Appletdoesn't show up at all.

Because of this my application is not getting authenticated. It is saying
the principal is null ... see the Exception,

java.lang.SecurityException: Authentication exception, principal=
at
org.jboss.ejb.plugins.SecurityInterceptor.checkSecurityAssociation(SecurityI
nterceptor.java:173)
  at
org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.jav
a:94)
at
org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:129)
  at
org.jboss.ejb.StatelessSessionContainer.invokeHome(StatelessSessionContainer
.java:300)
at org.jboss.ejb.Container.invoke(Container.java:730)
  at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
at
org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:98)
at
org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:102)
at
org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:77
)
at
org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:80)
at
org.jboss.proxy.ejb.HomeInterceptor.invoke(HomeInterceptor.java:198)
at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:76)


One possible explanation that i got is that it is trying to get all the
jars needed by the applet from the server ,
hence is trying to authenticate each time. Is there any way to avoid this??

Why is it trying to authenticate the applet in the first place.Since i have
already defined all the permissions for the applet in the Policy file.

I hope i have been clear in explaining my problem to you. Please let me
know
If there is some other configuration i need to do.

Wish You a Merry Chirstmas

Thank You
Dhiraj Ramakrishnan



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



Re: [JBoss-user] Please Help: JBoss - How to start a user service ????

2002-12-19 Thread David Jencks
did you try just deploying the datasource configuration? I believe that
when you request the first connection it will create a Driver instance.

If that doesn't work for some reason, you will have to wriate a small mbean
implementing a 

void start() throws Exception

method in which you instantiate the Driver object.

david jencks

On 2002.12.18 17:24:41 -0500 "Sasidharan, Manoj" wrote:
> Hello All,
> 
> I want to start CloudScape from within JBoss. CloudScape can be started
> by
> instantiating an object of its Driver class.
> 
> Hence I tried to put the logic in a startcs-service.xml:
> 
> 
>  name="user:service=Cscapeserver">
> 
> 
> 
> 
> This somehow does not work. Please help. When I deploy the file,
> following
> error is displayed on console:
> 
> 11:23:48,404 INFO [MainDeployer] Starting deployment of package:
> file:/Q:/jboss
> -3.2.0beta2/server/default/deploy/cscape-service.xml
> 11:23:48,529 INFO [SARDeployer] looking for nested deployments in :
> file:/Q:/jb
> oss-3.2.0beta2/server/default/deploy/cscape-service.xml
> 11:23:48,654 INFO [SARDeployer] Remove MBean, name:
> user:service=Cscapeserver
> 11:23:48,654 ERROR [MainDeployer] could not create deployment:
> file:/Q:/jboss-3.
> 2.0beta2/server/default/deploy/cscape-service.xml
> org.jboss.deployment.DeploymentException: create operation failed for
> package fi
> le:/Q:/jboss-3.2.0beta2/server/default/deploy/cscape-service.xml; -
> nested
> throw
> able: (javax.management.InstanceNotFoundException:
> user:service=Cscapeserver
> is
> not registered.)
> at org.jboss.deployment.SARDeployer.create(SARDeployer.java:283)
> at org.jboss.deployment.MainDeployer.create(MainDeployer.java:770)
> at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:629)
> at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:594)
> at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> sorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:324)
> at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
> nDispatcher.java:284)
> at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
> at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
> at $Proxy7.deploy(Unknown Source)
> at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymen
> tScanner.java:400)
> at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentS
> canner.java:524)
> at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
> doScan(AbstractDeploymentScanner.java:195)
> at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
> loop(AbstractDeploymentScanner.java:206)
> at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
> run(AbstractDeploymentScanner.java:185)
> Caused by: javax.management.InstanceNotFoundException:
> user:service=Cscapeserver
> 
> 
> 
> 
> ---
> This SF.NET email is sponsored by: Order your Holiday Geek Presents Now!
> Green Lasers, Hip Geek T-Shirts, Remote Control Tanks, Caffeinated Soap,
> MP3 Players,  XBox Games,  Flying Saucers,  WebCams,  Smart Putty.
> T H I N K G E E K . C O M   http://www.thinkgeek.com/sf/
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 
> 


---
This SF.NET email is sponsored by: Order your Holiday Geek Presents Now!
Green Lasers, Hip Geek T-Shirts, Remote Control Tanks, Caffeinated Soap,
MP3 Players,  XBox Games,  Flying Saucers,  WebCams,  Smart Putty.
T H I N K G E E K . C O M   http://www.thinkgeek.com/sf/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Please Help: JBoss - How to start a user service ????

2002-12-18 Thread Sasidharan, Manoj
Hello All,

I want to start CloudScape from within JBoss. CloudScape can be started by
instantiating an object of its Driver class.

Hence I tried to put the logic in a startcs-service.xml:







This somehow does not work. Please help. When I deploy the file, following
error is displayed on console:

11:23:48,404 INFO [MainDeployer] Starting deployment of package:
file:/Q:/jboss
-3.2.0beta2/server/default/deploy/cscape-service.xml
11:23:48,529 INFO [SARDeployer] looking for nested deployments in :
file:/Q:/jb
oss-3.2.0beta2/server/default/deploy/cscape-service.xml
11:23:48,654 INFO [SARDeployer] Remove MBean, name:
user:service=Cscapeserver
11:23:48,654 ERROR [MainDeployer] could not create deployment:
file:/Q:/jboss-3.
2.0beta2/server/default/deploy/cscape-service.xml
org.jboss.deployment.DeploymentException: create operation failed for
package fi
le:/Q:/jboss-3.2.0beta2/server/default/deploy/cscape-service.xml; - nested
throw
able: (javax.management.InstanceNotFoundException: user:service=Cscapeserver
is
not registered.)
at org.jboss.deployment.SARDeployer.create(SARDeployer.java:283)
at org.jboss.deployment.MainDeployer.create(MainDeployer.java:770)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:629)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:594)
at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
nDispatcher.java:284)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
at $Proxy7.deploy(Unknown Source)
at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymen
tScanner.java:400)
at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentS
canner.java:524)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
doScan(AbstractDeploymentScanner.java:195)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
loop(AbstractDeploymentScanner.java:206)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
run(AbstractDeploymentScanner.java:185)
Caused by: javax.management.InstanceNotFoundException:
user:service=Cscapeserver




---
This SF.NET email is sponsored by: Order your Holiday Geek Presents Now!
Green Lasers, Hip Geek T-Shirts, Remote Control Tanks, Caffeinated Soap,
MP3 Players,  XBox Games,  Flying Saucers,  WebCams,  Smart Putty.
T H I N K G E E K . C O M   http://www.thinkgeek.com/sf/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Please help me! Transaction problem

2002-10-25 Thread Greg Turner
Here is how to deal with this:

http://www.tuxedo.org/~esr/faqs/smart-questions.html



Gene Ge wrote:


Someone please help me, I have asked this question many times and 
still not get any answer yet! I also searched in archives but get no 
answer.
_ 

11:43:14,093 ERROR [LogInterceptor] EJBException:
javax.ejb.EJBException: Application Error: tried to enter Stateful 
bean with different transaction context
   at 
org.jboss.ejb.plugins.StatefulSessionInstanceInterceptor.invoke(StatefulSessionInstanceInterceptor.ja 

   at 
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:107) 

   at 
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:178) 

   at 
org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:60)
   at 
org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:203)
   at 
org.jboss.ejb.StatefulSessionContainer.invoke(StatefulSessionContainer.java:380) 

   at 
org.jboss.ejb.plugins.local.BaseLocalContainerInvoker.invoke(BaseLocalContainerInvoker.java:301) 

   at 
org.jboss.ejb.plugins.local.StatefulSessionProxy.invoke(StatefulSessionProxy.java:41) 

   at $Proxy270.setStudentData(Unknown Source)
   at 
com.bit.job.actions.EditStudentInfoAction.execute(EditStudentInfoAction.java:97) 

   at 
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:437) 

   at 
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:264) 

   at 
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1115)
   at 
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:476)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at 
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:366)
   at 
org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:284) 

   at 
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:577)
   at org.mortbay.http.HttpContext.handle(HttpContext.java:1674)
   at 
org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:544) 

   at org.mortbay.http.HttpContext.handle(HttpContext.java:1624)
   at org.mortbay.http.HttpServer.service(HttpServer.java:875)
   at org.jboss.jetty.Jetty.service(Jetty.java:541)
   at 
org.mortbay.http.HttpConnection.service(HttpConnection.java:785)
   at 
org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:935)
   at org.mortbay.http.HttpConnection.handle(HttpConnection.java:802)
   at 
org.mortbay.http.SocketListener.handleConnection(SocketListener.java:200)
   at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:294)
   at org.mortbay.util.ThreadPool$JobRunner.run(ThreadPool.java:743)
   at java.lang.Thread.run(Thread.java:536)
_ 


Who can tell me how to deal with this?
If I retry to invoke the method for some times, the method could 
execute successfully.
So??

thanks for any help

Gene

_
Get a speedy connection with MSN Broadband.  Join now! 
http://resourcecenter.msn.com/access/plans/freeactivation.asp



---
This sf.net email is sponsored by: Influence the future of Java(TM) 
technology. Join the Java Community Process(SM) (JCP(SM)) program now. 
http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0003en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



--
Greg Turner, JBoss Authorized Consultant

Tiburon Enterprise Systems
http://www.tiburon-e-systems.com
Box 1171
Tiburon, CA 94920
415-927-2543






---
This sf.net email is sponsored by: Influence the future 
of Java(TM) technology. Join the Java Community 
Process(SM) (JCP(SM)) program now. 
http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0004en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Please help me! Transaction problem

2002-10-24 Thread Stephen Coy
From where does EditStudentInfoAction get its session bean reference?

Does it create a new one for each request, or does it create just one  
and try to re-use it for each request?

The latter situation is guaranteed to cause the problem below.

If that is not the cause, then show me your implementation of  
EditStudentInfoAction.execute.

Steve Coy

On Friday, October 25, 2002, at 01:55  PM, Gene Ge wrote:

Someone please help me, I have asked this question many times and  
still not get any answer yet! I also searched in archives but get no  
answer.
___ 
__
11:43:14,093 ERROR [LogInterceptor] EJBException:
javax.ejb.EJBException: Application Error: tried to enter Stateful  
bean with different transaction context
   at  
org.jboss.ejb.plugins.StatefulSessionInstanceInterceptor.invoke(Statefu 
lSessionInstanceInterceptor.ja
   at  
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterc 
eptor.java:107)
   at  
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxIntercepto 
rCMT.java:178)
   at  
org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:60)
   at  
org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:203)
   at  
org.jboss.ejb.StatefulSessionContainer.invoke(StatefulSessionContainer. 
java:380)
   at  
org.jboss.ejb.plugins.local.BaseLocalContainerInvoker.invoke(BaseLocalC 
ontainerInvoker.java:301)
   at  
org.jboss.ejb.plugins.local.StatefulSessionProxy.invoke(StatefulSession 
Proxy.java:41)
   at $Proxy270.setStudentData(Unknown Source)
   at  
com.bit.job.actions.EditStudentInfoAction.execute(EditStudentInfoAction 
.java:97)
   at  
org.apache.struts.action.RequestProcessor.processActionPerform(RequestP 
rocessor.java:437)
   at  
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java 
:264)
   at  
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1115)
   at  
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:476)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at  
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:366)
   at  
org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplication 
Handler.java:284)
   at  
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:577 
)
   at org.mortbay.http.HttpContext.handle(HttpContext.java:1674)
   at  
org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationCo 
ntext.java:544)
   at org.mortbay.http.HttpContext.handle(HttpContext.java:1624)
   at org.mortbay.http.HttpServer.service(HttpServer.java:875)
   at org.jboss.jetty.Jetty.service(Jetty.java:541)
   at  
org.mortbay.http.HttpConnection.service(HttpConnection.java:785)
   at  
org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:935)
   at  
org.mortbay.http.HttpConnection.handle(HttpConnection.java:802)
   at  
org.mortbay.http.SocketListener.handleConnection(SocketListener.java:20 
0)
   at  
org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:294)
   at  
org.mortbay.util.ThreadPool$JobRunner.run(ThreadPool.java:743)
   at java.lang.Thread.run(Thread.java:536)
___ 
__

Who can tell me how to deal with this?
If I retry to invoke the method for some times, the method could  
execute successfully.
So??

thanks for any help

Gene



---
This sf.net email is sponsored by: Influence the future 
of Java(TM) technology. Join the Java Community 
Process(SM) (JCP(SM)) program now. 
http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0004en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Please help me! Transaction problem

2002-10-24 Thread Dmitri Colebatch
how are you creating/storing the stateful bean?

one possible cause is you have one stateful bean in the action class, and
multiple requests are using the same instance

other than that, I think you need to provide some more info... show the code
that actually creates and calls the sfsb...

hth
dim

- Original Message -
From: "Gene Ge" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, October 25, 2002 1:55 PM
Subject: [JBoss-user] Please help me! Transaction problem


> Someone please help me, I have asked this question many times and still
not
> get any answer yet! I also searched in archives but get no answer.
>

_
> 11:43:14,093 ERROR [LogInterceptor] EJBException:
> javax.ejb.EJBException: Application Error: tried to enter Stateful bean
with
> different transaction context
> at
>
org.jboss.ejb.plugins.StatefulSessionInstanceInterceptor.invoke(StatefulSess
ionInstanceInterceptor.ja
> at
>
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor
.java:107)
> at
>
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.
java:178)
> at
> org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:60)
> at
> org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:203)
> at
>
org.jboss.ejb.StatefulSessionContainer.invoke(StatefulSessionContainer.java:
380)
> at
>
org.jboss.ejb.plugins.local.BaseLocalContainerInvoker.invoke(BaseLocalContai
nerInvoker.java:301)
> at
>
org.jboss.ejb.plugins.local.StatefulSessionProxy.invoke(StatefulSessionProxy
.java:41)
> at $Proxy270.setStudentData(Unknown Source)
> at
>
com.bit.job.actions.EditStudentInfoAction.execute(EditStudentInfoAction.java
:97)
> at
>
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProces
sor.java:437)
> at
>
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:264)
> at
> org.apache.struts.action.ActionServlet.process(ActionServlet.java:1115)
> at
> org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:476)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
> org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:366)
> at
>
org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandl
er.java:284)
> at
> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:577)
> at org.mortbay.http.HttpContext.handle(HttpContext.java:1674)
> at
>
org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext
.java:544)
> at org.mortbay.http.HttpContext.handle(HttpContext.java:1624)
> at org.mortbay.http.HttpServer.service(HttpServer.java:875)
> at org.jboss.jetty.Jetty.service(Jetty.java:541)
> at
org.mortbay.http.HttpConnection.service(HttpConnection.java:785)
> at
> org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:935)
> at org.mortbay.http.HttpConnection.handle(HttpConnection.java:802)
> at
> org.mortbay.http.SocketListener.handleConnection(SocketListener.java:200)
> at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:294)
> at org.mortbay.util.ThreadPool$JobRunner.run(ThreadPool.java:743)
> at java.lang.Thread.run(Thread.java:536)
>

_
>
> Who can tell me how to deal with this?
> If I retry to invoke the method for some times, the method could execute
> successfully.
> So??
>
> thanks for any help
>
> Gene
>
> _
> Get a speedy connection with MSN Broadband. Join now!
> http://resourcecenter.msn.com/access/plans/freeactivation.asp
>
>
>
> ---
> This sf.net email is sponsored by: Influence the future
> of Java(TM) technology. Join the Java Community
> Process(SM) (JCP(SM)) program now.
> http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0003en
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user



---
This sf.net email is sponsored by: Influence the future 
of Java(TM) technology. Join the Java Community 
Process(SM) (JCP(SM)) program now. 
http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0004en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Please help me! Transaction problem

2002-10-24 Thread Gene Ge
Someone please help me, I have asked this question many times and still not 
get any answer yet! I also searched in archives but get no answer.
_
11:43:14,093 ERROR [LogInterceptor] EJBException:
javax.ejb.EJBException: Application Error: tried to enter Stateful bean with 
different transaction context
   at 
org.jboss.ejb.plugins.StatefulSessionInstanceInterceptor.invoke(StatefulSessionInstanceInterceptor.ja
   at 
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:107)
   at 
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:178)
   at 
org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:60)
   at 
org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:203)
   at 
org.jboss.ejb.StatefulSessionContainer.invoke(StatefulSessionContainer.java:380)
   at 
org.jboss.ejb.plugins.local.BaseLocalContainerInvoker.invoke(BaseLocalContainerInvoker.java:301)
   at 
org.jboss.ejb.plugins.local.StatefulSessionProxy.invoke(StatefulSessionProxy.java:41)
   at $Proxy270.setStudentData(Unknown Source)
   at 
com.bit.job.actions.EditStudentInfoAction.execute(EditStudentInfoAction.java:97)
   at 
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:437)
   at 
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:264)
   at 
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1115)
   at 
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:476)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at 
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:366)
   at 
org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:284)
   at 
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:577)
   at org.mortbay.http.HttpContext.handle(HttpContext.java:1674)
   at 
org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:544)
   at org.mortbay.http.HttpContext.handle(HttpContext.java:1624)
   at org.mortbay.http.HttpServer.service(HttpServer.java:875)
   at org.jboss.jetty.Jetty.service(Jetty.java:541)
   at org.mortbay.http.HttpConnection.service(HttpConnection.java:785)
   at 
org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:935)
   at org.mortbay.http.HttpConnection.handle(HttpConnection.java:802)
   at 
org.mortbay.http.SocketListener.handleConnection(SocketListener.java:200)
   at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:294)
   at org.mortbay.util.ThreadPool$JobRunner.run(ThreadPool.java:743)
   at java.lang.Thread.run(Thread.java:536)
_

Who can tell me how to deal with this?
If I retry to invoke the method for some times, the method could execute 
successfully.
So??

thanks for any help

Gene

_
Get a speedy connection with MSN Broadband.  Join now! 
http://resourcecenter.msn.com/access/plans/freeactivation.asp



---
This sf.net email is sponsored by: Influence the future 
of Java(TM) technology. Join the Java Community 
Process(SM) (JCP(SM)) program now. 
http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0003en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] Please help with this error!

2002-10-08 Thread kiuma

Hello I'm using jb 3.2b and I'm having the following error.
Please could you tell me where I'm wrong ?

2002-10-08 09:23:12,944 DEBUG 
[org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.webappointments/Absence] 
Initializing CMP plugin for webappointments/Absence
2002-10-08 09:23:12,991 DEBUG [org.jboss.util.NestedThrowable] 
org.jboss.util.NestedThrowable.parentTraceEnabled=true
2002-10-08 09:23:12,994 DEBUG [org.jboss.util.NestedThrowable] 
org.jboss.util.NestedThrowable.nestedTraceEnabled=false
2002-10-08 09:23:12,995 DEBUG [org.jboss.util.NestedThrowable] 
org.jboss.util.NestedThrowable.detectDuplicateNesting=true
2002-10-08 09:23:12,983 ERROR [org.jboss.ejb.EntityContainer] Starting 
failed
org.jboss.deployment.DeploymentException: Parameter class not found: String
at 
org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCQueryMetaDataFactory.convertToJavaClass(JDBCQueryMetaDataFactory.java:271)
at 
org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCQueryMetaDataFactory.convertToJavaClasses(JDBCQueryMetaDataFactory.java:236)
at 
org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCQueryMetaDataFactory.getQueryMethods(JDBCQueryMetaDataFactory.java:169)
at 
org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCQueryMetaDataFactory.createJDBCQueryMetaData(JDBCQueryMetaDataFactory.java:41)
at 
org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCEntityMetaData.(JDBCEntityMetaData.java:298)
at 
org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCApplicationMetaData.(JDBCApplicationMetaData.java:117)
at 
org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCXmlFileLoader.load(JDBCXmlFileLoader.java:52)
at 
org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.loadJDBCEntityMetaData(JDBCStoreManager.java:677)
at 
org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.initStoreManager(JDBCStoreManager.java:389)
at 
org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.start(JDBCStoreManager.java:339)
at 
org.jboss.ejb.plugins.CMPPersistenceManager.start(CMPPersistenceManager.java:198)
at org.jboss.ejb.EntityContainer.startService(EntityContainer.java:359)
at 
org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:196)


and my bean is:

 * @ejb.bean name="webappointments/Absence"
 *   display-name="AbsenceBean working on projects to support 
application Absence"
 *   type="CMP"
 *   cmp-version="2.x"
 * schema="WaAbsence"
 *   jndi-name="ejb/webappointments/Absence"
 *   view-type="local"
 *
 * @ejb.transaction type="Required"
 *
 * @ejb:env-entry name="AbsenceSequenceName"
 *value="absence_seq"
 *
 * @ejb.data-object 
extends="com.wingstech.webappointments.interfaces.AbstractData"
 *  setdata="false"
 *
 * @ejb.security-role-ref role-name="ApplicationAdmin"
 *role-link="Admin"
 * @ejb.permission role-name="Admin"
 *
 * @ejb.finder signature="java.util.Collection findAll()"
 * @jboss.query
 *  signature="java.util.Collection findAll()"
 *  query="SELECT OBJECT(Absence) FROM WaAbsence Absence ORDER BY 
Absence.serviceId, Absence.absence_day"
 *  result-type-mapping="Local"
 *
 * @ejb.finder
 *  signature="java.util.Collection findInPeriod( int pServiceId, 
java.util.Date pFromDate, java.util.Date pToDate )"
 *  result-type-mapping="Local"
 *  query="SELECT OBJECT(Absence) FROM WaAbsence Absence WHERE 
Absence.serviceId = ?1 AND Absence.absenceDay BETWEEN ?2 AND ?3"
 * @jboss.query
 *  signature="java.util.Collection findInPeriod( int pServiceId, 
java.util.Date pFromDate, java.util.Date pToDate )"
 *  result-type-mapping="Local"
 *  query="SELECT OBJECT(Absence) FROM WaAbsence Absence WHERE 
Absence.serviceId = ?1 AND Absence.absenceDay BETWEEN ?2 AND ?3 ORDER BY 
Absence.absenceDay"
 *
* @ejb.finder
 *  signature="java.util.Collection findAllInPeriod( java.util.Date 
pFromDate, java.util.Date pToDate )"
 *  result-type-mapping="Local"
 *  query="SELECT OBJECT(Absence) FROM WaAbsence Absence WHERE 
Absence.absenceDay BETWEEN ?1 AND ?2"
 * @jboss.query
 *  signature="java.util.Collection findAllInPeriod( java.util.Date 
pFromDate, java.util.Date pToDate )"
 *  result-type-mapping="Local"
 *  query="SELECT OBJECT(Absence) FROM WaAbsence Absence WHERE 
Absence.absenceDay BETWEEN ?1 AND ?2 ORDER BY Absence.absenceDay"
 *
 *
 *
 * @jboss.table-name table-name="absence"
 *
 * @jboss.create-table create="false"
 *
 * @jboss.remove-table remove="false"



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



Re: [JBoss-user] Please help! I meet a CMP Relationship problem:(

2002-09-01 Thread Dmitri Colebatch

> you never really need ot use the setXXX collection method.  The collection
> you get will be live, so just add/remove entities to that as required.
>
> your foreign keys would have been cleared because they weren't contained
in
> the collection that you set.

sorry - I didn't pay enough attention to your code.  David has answered
this query correctly (surprise surprise)  (o:

cheers
dim

>
> hth
> dim
>
> - Original Message -
> From: <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, September 02, 2002 12:27 PM
> Subject: [JBoss-user] Please help! I meet a CMP Relationship problem:(
>
>
> > Hello eveyone:
> > Please help me: I want to use CMP 1:N relationship and have written
> "abstract Collection getXxx" and "abstract void setXxx(Collection xxx)".
> > The getter work well but setter seems never take effect. So I did a
> experiment that manual insert into database some data to make a
> relationship(set foreign key directly) and invoked setter immediately
> following getter like this:
> > Collection coll=XXXlocal.getXxx();
> > XXXLocal.setXxx(coll);
> >
> > to my surprise, all relationship I made manually were gone(foreign key
in
> database changed to null).
> >
> > It's my first time to use CMP 1:N relationship, anyone help to tell me
> what I am wrong.
> >
> >
> > ---
> > This sf.net email is sponsored by: OSDN - Tired of that same old
> > cell phone?  Get a new here for FREE!
> > https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
> > ___
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/jboss-user
> >
>
>
>
> ---
> This sf.net email is sponsored by: OSDN - Tired of that same old
> cell phone?  Get a new here for FREE!
> https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user



---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Please help! I meet a CMP Relationship problem:(

2002-09-01 Thread Dmitri Colebatch

you never really need ot use the setXXX collection method.  The collection
you get will be live, so just add/remove entities to that as required.

your foreign keys would have been cleared because they weren't contained in
the collection that you set.

hth
dim

- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, September 02, 2002 12:27 PM
Subject: [JBoss-user] Please help! I meet a CMP Relationship problem:(


> Hello eveyone:
> Please help me: I want to use CMP 1:N relationship and have written
"abstract Collection getXxx" and "abstract void setXxx(Collection xxx)".
> The getter work well but setter seems never take effect. So I did a
experiment that manual insert into database some data to make a
relationship(set foreign key directly) and invoked setter immediately
following getter like this:
> Collection coll=XXXlocal.getXxx();
> XXXLocal.setXxx(coll);
>
> to my surprise, all relationship I made manually were gone(foreign key in
database changed to null).
>
> It's my first time to use CMP 1:N relationship, anyone help to tell me
what I am wrong.
>
>
> ---
> This sf.net email is sponsored by: OSDN - Tired of that same old
> cell phone?  Get a new here for FREE!
> https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
>



---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Please help! I meet a CMP Relationship problem:(

2002-09-01 Thread David Jencks

This is a bug very recently fixed in cvs.

Normally you don't do this.  If you do

coll.add(something);
or
coll.remove(somethingelse);

the database will be updated automatically.  Normally you would use
setXxx(newCollection) only when you are replacing the entire set of related
entities.

However, it was a bug, but I don't think the fix is in any released
versions at the moment.

david jencks

On 2002.09.01 22:27:02 -0400 [EMAIL PROTECTED] wrote:
> Hello eveyone:
> Please help me: I want to use CMP 1:N relationship and have written
> "abstract Collection getXxx" and "abstract void setXxx(Collection xxx)".
> The getter work well but setter seems never take effect. So I did a
> experiment that manual insert into database some data to make a
> relationship(set foreign key directly) and invoked setter immediately
> following getter like this:
> Collection coll=XXXlocal.getXxx();
> XXXLocal.setXxx(coll);
> 
> to my surprise, all relationship I made manually were gone(foreign key in
> database changed to null).
> 
> It's my first time to use CMP 1:N relationship, anyone help to tell me
> what I am wrong.
> 
> 
> ---
> This sf.net email is sponsored by: OSDN - Tired of that same old
> cell phone?  Get a new here for FREE!
> https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 
> 


---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Please help! I meet a CMP Relationship problem:(

2002-09-01 Thread ggngenan

Hello eveyone:
Please help me: I want to use CMP 1:N relationship and have written "abstract 
Collection getXxx" and "abstract void setXxx(Collection xxx)".
The getter work well but setter seems never take effect. So I did a experiment 
that manual insert into database some data to make a relationship(set foreign key 
directly) and invoked setter immediately following getter like this:
Collection coll=XXXlocal.getXxx();
XXXLocal.setXxx(coll);

to my surprise, all relationship I made manually were gone(foreign key in database 
changed to null).

It's my first time to use CMP 1:N relationship, anyone help to tell me what I am wrong.


---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] Please Help: Classpath Issue?

2002-07-22 Thread Sacha Labourey

Hello,

Please provide stacktrace + deployment information (how much jars, what is
in it, etc.)

cheers,


Sacha



> -Message d'origine-
> De : [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]De la part de Mike Kenyon
> Envoyé : lundi, 22 juillet 2002 17:50
> À : '[EMAIL PROTECTED]'
> Objet : [JBoss-user] Please Help: Classpath Issue?
>
>
> Hi, I've deployed an app to JBoss 3 and though the initial
> connection to the
> server and obtaining a reference works fine, I'm getting
> ClassNotFoundException's whenever my EJB attempts to look up another EJB.
> I'm assuming it has to be a classpath issue with the server.
>
> Any thoughts?
>
> Mike
>
>
> ---
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
>



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



[JBoss-user] Please Help: Classpath Issue?

2002-07-22 Thread Mike Kenyon

Hi, I've deployed an app to JBoss 3 and though the initial connection to the
server and obtaining a reference works fine, I'm getting
ClassNotFoundException's whenever my EJB attempts to look up another EJB.
I'm assuming it has to be a classpath issue with the server.

Any thoughts?

Mike


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



Re: [JBoss-user] Please help jboss-3.0.0_tomcat-4.0.3 does not work (tomcat4-service.xml changed)

2002-06-13 Thread kleung

Hi Greg,

Thank you for your information. The
jboss-3.0.0_tomcat-4.0.3 did not contains the
webtest.ear file in the deploy directory.

Thank,

On Thu, 13 June 2002, Greg Turner wrote

> 
> The JBoss/Tomcat combo DOES work.  You just need to
learn how to work it.  If you are using the
JBoss/Tomcat combo,
> that means you are running an app server call JBoss,
which means Tomcat does not run independently.  This
means
> Tomcat is just another service offered by the JBoss
app server.  All of this means that you need to create
an ear
> file and put it in the deploy directory.  The ear
file should contain the mappings to map the various
contexts to
> war files.  Please note that none of what I have
written is specific to JBoss.  Its all standard for any
app
> server.  I suggest you get yourself a good book about
J2EE !!   I've attached a sample file that maps the root
> context "/" to a war file and maps a context called
"/foo" to another war file.
> 
> 
> 
> [EMAIL PROTECTED] wrote:
> 
> > Hi,
> >
> > Please help me to configure out what is going on.
> > I downloaded the jboss-3.0.0_tomcat-4.0.3.zip file
and
> > setup all paths. Jboss does not complain about much
and
> > it works. However, when I try to access tomcat by
> > accessing the http://localhost:8080 in netscape4.76
> > browser, I got the following messages:
> >  Apache Tomcat/4.0.3 - HTTP Status 500 - No Context
> > configured to process this request.
> >
> > Following messages are from Jboss console about
> > cataline.
> >
> > * Begin Cataline Log messages
> > ***
> > INFO  [MainDeployer] Starting deployment of package:
> >
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/server/default/deploy/tomcat4-service.xml
> > INFO  [MainDeployer] Starting deployment of package:
> >
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/servlets-common.jar
> > INFO  [MainDeployer] Successfully completed
deployment
> > of package:
> >
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/servlets-common.jar
> > INFO  [MainDeployer] Starting deployment of package:
> >
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/servlets-default.jar
> > INFO  [MainDeployer] Successfully completed
deployment
> > of package:
> >
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/servlets-default.jar
> > INFO  [MainDeployer] Starting deployment of package:
> >
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/lib/naming-factory.jar
> > INFO  [MainDeployer] Successfully completed
deployment
> > of package:
> >
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/lib/naming-factory.jar
> > INFO  [MainDeployer] Starting deployment of package:
> >
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/tomcat-ajp.jar
> > INFO  [MainDeployer] Successfully completed
deployment
> > of package:
> >
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/tomcat-ajp.jar
> > INFO  [MainDeployer] Starting deployment of package:
> >
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/servlets-webdav.jar
> > INFO  [MainDeployer] Successfully completed
deployment
> > of package:
> >
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/servlets-webdav.jar
> > INFO  [MainDeployer] Starting deployment of package:
> >
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/servlets-invoker.jar
> > INFO  [MainDeployer] Successfully completed
deployment
> > of package:
> >
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/servlets-invoker.jar
> > INFO  [MainDeployer] Starting deployment of package:
> >
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/catalina.jar
> > INFO  [MainDeployer] Successfully completed
deployment
> > of package:
> >
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/catalina.jar
> > INFO  [MainDeployer] Starting deployment of package:
> >
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/common/lib/naming-resources.jar
> > INFO  [MainDeployer] Successfully completed
deployment
> > of package:
> >
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/common/lib/naming-resources.jar
> > INFO  [MainDeployer] Starting deployment of package:
> >
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/servlets-snoop.jar
> > INFO  [MainDeployer] Successfully completed
deployment
> > of package:
> >
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/servlets-snoop.jar
> > INFO  [MainDeployer] Starting deployment of package:
> >
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/common/lib/naming-common.jar
> > INFO  [MainDeployer] Successfully completed
deployment
> > of package:
> >
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/common/lib/naming-common.jar
> > INFO  [MainDeployer] Starting deployment of package:
> >
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/bin/bootstrap.jar
> > INFO  [MainDeployer] Successfully completed
deployment
> > of package:
> >
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/bin/bootstrap.jar
> > INFO  [MainDeployer]

Re: [JBoss-user] Please help jboss-3.0.0_tomcat-4.0.3 does not work (tomcat4-service.xml changed)

2002-06-13 Thread kleung

Hi Damon Torgerson,

Thank you for the information; however, I am still
confused. I am only trying to test out the Cataline
example and test pages. Last time when I installed the
jboss3.0.0RC1_Tomcat4.zip, I did not need to add
anything to the deploy directory. If I need to add a
context, can you send me a copy of a context example
for run the Cataline example page. 

Thank,

On Thu, 13 June 2002, Damon Torgerson wrote

> 
> You have to define a context either in your
application.xml file or your 
> server.xml/web.xml files.
> 
> On Thursday, June 13, 2002, at 10:34 AM,
[EMAIL PROTECTED] wrote:
> 
> > Hi,
> >
> > Please help me to configure out what is going on.
> > I downloaded the jboss-3.0.0_tomcat-4.0.3.zip file
and
> > setup all paths. Jboss does not complain about much
and
> > it works. However, when I try to access tomcat by
> > accessing the http://localhost:8080 in netscape4.76
> > browser, I got the following messages:
> >  Apache Tomcat/4.0.3 - HTTP Status 500 - No Context
> > configured to process this request.
> >
> > Following messages are from Jboss console about
> > cataline.
> >
> > * Begin Cataline Log messages
> > ***
> > INFO  [MainDeployer] Starting deployment of package:
> >
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/server/default/deploy/tomcat4-service.
> > xml
> > INFO  [MainDeployer] Starting deployment of package:
> >
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/servlets-common.
> > jar
> > INFO  [MainDeployer] Successfully completed
deployment
> > of package:
> >
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/servlets-common.
> > jar
> > INFO  [MainDeployer] Starting deployment of package:
> >
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/servlets-default.
> > jar
> > INFO  [MainDeployer] Successfully completed
deployment
> > of package:
> >
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/servlets-default.
> > jar
> > INFO  [MainDeployer] Starting deployment of package:
> >
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/lib/naming-factory.jar
> > INFO  [MainDeployer] Successfully completed
deployment
> > of package:
> >
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/lib/naming-factory.jar
> > INFO  [MainDeployer] Starting deployment of package:
> >
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/tomcat-
> > ajp.jar
> > INFO  [MainDeployer] Successfully completed
deployment
> > of package:
> >
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/tomcat-
> > ajp.jar
> > INFO  [MainDeployer] Starting deployment of package:
> >
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/servlets-webdav.
> > jar
> > INFO  [MainDeployer] Successfully completed
deployment
> > of package:
> >
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/servlets-webdav.
> > jar
> > INFO  [MainDeployer] Starting deployment of package:
> >
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/servlets-invoker.
> > jar
> > INFO  [MainDeployer] Successfully completed
deployment
> > of package:
> >
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/servlets-invoker.
> > jar
> > INFO  [MainDeployer] Starting deployment of package:
> >
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/catalina.jar
> > INFO  [MainDeployer] Successfully completed
deployment
> > of package:
> >
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/catalina.jar
> > INFO  [MainDeployer] Starting deployment of package:
> >
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/common/lib/naming-resources.
> > jar
> > INFO  [MainDeployer] Successfully completed
deployment
> > of package:
> >
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/common/lib/naming-resources.
> > jar
> > INFO  [MainDeployer] Starting deployment of package:
> >
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/servlets-snoop.
> > jar
> > INFO  [MainDeployer] Successfully completed
deployment
> > of package:
> >
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/servlets-snoop.
> > jar
> > INFO  [MainDeployer] Starting deployment of package:
> >
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/common/lib/naming-common.
> > jar
> > INFO  [MainDeployer] Successfully completed
deployment
> > of package:
> >
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/common/lib/naming-common.
> > jar
> > INFO  [MainDeployer] Starting deployment of package:
> >
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/bin/bootstrap.jar
> > INFO  [MainDeployer] Successfully completed
deployment
> > of package:
> >
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/bin/bootstrap.jar
> > INFO  [MainDeployer] Starting deployment of package:
> >
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/servlets-manager.
> > jar
> > INFO  [MainDeployer] Successfully completed
deployment
> > of package:
> >
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/servlets-manager.
> > jar
> > INFO  [MainD

Re: [JBoss-user] Please help jboss-3.0.0_tomcat-4.0.3 does not work (tomcat4-service.xml changed)

2002-06-13 Thread Greg Turner

The JBoss/Tomcat combo DOES work.  You just need to learn how to work it.  If you are 
using the JBoss/Tomcat combo,
that means you are running an app server call JBoss, which means Tomcat does not run 
independently.  This means
Tomcat is just another service offered by the JBoss app server.  All of this means 
that you need to create an ear
file and put it in the deploy directory.  The ear file should contain the mappings to 
map the various contexts to
war files.  Please note that none of what I have written is specific to JBoss.  Its 
all standard for any app
server.  I suggest you get yourself a good book about J2EE !!   I've attached a sample 
file that maps the root
context "/" to a war file and maps a context called "/foo" to another war file.



[EMAIL PROTECTED] wrote:

> Hi,
>
> Please help me to configure out what is going on.
> I downloaded the jboss-3.0.0_tomcat-4.0.3.zip file and
> setup all paths. Jboss does not complain about much and
> it works. However, when I try to access tomcat by
> accessing the http://localhost:8080 in netscape4.76
> browser, I got the following messages:
>  Apache Tomcat/4.0.3 - HTTP Status 500 - No Context
> configured to process this request.
>
> Following messages are from Jboss console about
> cataline.
>
> * Begin Cataline Log messages
> ***
> INFO  [MainDeployer] Starting deployment of package:
> file:/usr/local/jboss-3.0.0_tomcat-4.0.3/server/default/deploy/tomcat4-service.xml
> INFO  [MainDeployer] Starting deployment of package:
> file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/servlets-common.jar
> INFO  [MainDeployer] Successfully completed deployment
> of package:
> file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/servlets-common.jar
> INFO  [MainDeployer] Starting deployment of package:
> file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/servlets-default.jar
> INFO  [MainDeployer] Successfully completed deployment
> of package:
> file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/servlets-default.jar
> INFO  [MainDeployer] Starting deployment of package:
> file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/lib/naming-factory.jar
> INFO  [MainDeployer] Successfully completed deployment
> of package:
> file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/lib/naming-factory.jar
> INFO  [MainDeployer] Starting deployment of package:
> file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/tomcat-ajp.jar
> INFO  [MainDeployer] Successfully completed deployment
> of package:
> file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/tomcat-ajp.jar
> INFO  [MainDeployer] Starting deployment of package:
> file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/servlets-webdav.jar
> INFO  [MainDeployer] Successfully completed deployment
> of package:
> file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/servlets-webdav.jar
> INFO  [MainDeployer] Starting deployment of package:
> file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/servlets-invoker.jar
> INFO  [MainDeployer] Successfully completed deployment
> of package:
> file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/servlets-invoker.jar
> INFO  [MainDeployer] Starting deployment of package:
> file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/catalina.jar
> INFO  [MainDeployer] Successfully completed deployment
> of package:
> file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/catalina.jar
> INFO  [MainDeployer] Starting deployment of package:
> file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/common/lib/naming-resources.jar
> INFO  [MainDeployer] Successfully completed deployment
> of package:
> file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/common/lib/naming-resources.jar
> INFO  [MainDeployer] Starting deployment of package:
> file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/servlets-snoop.jar
> INFO  [MainDeployer] Successfully completed deployment
> of package:
> file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/servlets-snoop.jar
> INFO  [MainDeployer] Starting deployment of package:
> file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/common/lib/naming-common.jar
> INFO  [MainDeployer] Successfully completed deployment
> of package:
> file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/common/lib/naming-common.jar
> INFO  [MainDeployer] Starting deployment of package:
> file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/bin/bootstrap.jar
> INFO  [MainDeployer] Successfully completed deployment
> of package:
> file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/bin/bootstrap.jar
> INFO  [MainDeployer] Starting deployment of package:
> file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/servlets-manager.jar
> INFO  [MainDeployer] Successfully completed deployment
> of package:
> file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/servlets-manager.jar
> INFO  [MainDeployer] Starting deployment of package:
> file:/usr/local/jboss-3.

Re: [JBoss-user] Please help jboss-3.0.0_tomcat-4.0.3 does not work (tomcat4-service.xml changed)

2002-06-13 Thread Damon Torgerson

You have to define a context either in your application.xml file or your 
server.xml/web.xml files.

On Thursday, June 13, 2002, at 10:34 AM, [EMAIL PROTECTED] wrote:

> Hi,
>
> Please help me to configure out what is going on.
> I downloaded the jboss-3.0.0_tomcat-4.0.3.zip file and
> setup all paths. Jboss does not complain about much and
> it works. However, when I try to access tomcat by
> accessing the http://localhost:8080 in netscape4.76
> browser, I got the following messages:
>  Apache Tomcat/4.0.3 - HTTP Status 500 - No Context
> configured to process this request.
>
> Following messages are from Jboss console about
> cataline.
>
> * Begin Cataline Log messages
> ***
> INFO  [MainDeployer] Starting deployment of package:
> file:/usr/local/jboss-3.0.0_tomcat-4.0.3/server/default/deploy/tomcat4-service.
> xml
> INFO  [MainDeployer] Starting deployment of package:
> file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/servlets-common.
> jar
> INFO  [MainDeployer] Successfully completed deployment
> of package:
> file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/servlets-common.
> jar
> INFO  [MainDeployer] Starting deployment of package:
> file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/servlets-default.
> jar
> INFO  [MainDeployer] Successfully completed deployment
> of package:
> file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/servlets-default.
> jar
> INFO  [MainDeployer] Starting deployment of package:
> file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/lib/naming-factory.jar
> INFO  [MainDeployer] Successfully completed deployment
> of package:
> file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/lib/naming-factory.jar
> INFO  [MainDeployer] Starting deployment of package:
> file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/tomcat-
> ajp.jar
> INFO  [MainDeployer] Successfully completed deployment
> of package:
> file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/tomcat-
> ajp.jar
> INFO  [MainDeployer] Starting deployment of package:
> file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/servlets-webdav.
> jar
> INFO  [MainDeployer] Successfully completed deployment
> of package:
> file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/servlets-webdav.
> jar
> INFO  [MainDeployer] Starting deployment of package:
> file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/servlets-invoker.
> jar
> INFO  [MainDeployer] Successfully completed deployment
> of package:
> file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/servlets-invoker.
> jar
> INFO  [MainDeployer] Starting deployment of package:
> file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/catalina.jar
> INFO  [MainDeployer] Successfully completed deployment
> of package:
> file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/catalina.jar
> INFO  [MainDeployer] Starting deployment of package:
> file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/common/lib/naming-resources.
> jar
> INFO  [MainDeployer] Successfully completed deployment
> of package:
> file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/common/lib/naming-resources.
> jar
> INFO  [MainDeployer] Starting deployment of package:
> file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/servlets-snoop.
> jar
> INFO  [MainDeployer] Successfully completed deployment
> of package:
> file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/servlets-snoop.
> jar
> INFO  [MainDeployer] Starting deployment of package:
> file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/common/lib/naming-common.
> jar
> INFO  [MainDeployer] Successfully completed deployment
> of package:
> file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/common/lib/naming-common.
> jar
> INFO  [MainDeployer] Starting deployment of package:
> file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/bin/bootstrap.jar
> INFO  [MainDeployer] Successfully completed deployment
> of package:
> file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/bin/bootstrap.jar
> INFO  [MainDeployer] Starting deployment of package:
> file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/servlets-manager.
> jar
> INFO  [MainDeployer] Successfully completed deployment
> of package:
> file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/servlets-manager.
> jar
> INFO  [MainDeployer] Starting deployment of package:
> file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/jakarta-regexp-1.
> 2.jar
> INFO  [MainDeployer] Successfully completed deployment
> of package:
> file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/jakarta-regexp-1.
> 2.jar
> INFO  [MainDeployer] Starting deployment of package:
> file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/lib/jasper-
> compiler.jar
> INFO  [MainDeployer] Successfully completed deployment
> of package:
> file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/lib/jasper-
> compiler.jar
> INFO  [MainDeployer] Starting deployment of package:
> fi

[JBoss-user] Please help jboss-3.0.0_tomcat-4.0.3 does not work (tomcat4-service.xml changed)

2002-06-13 Thread kleung

Hi,
 
Please help me to configure out what is going on.
I downloaded the jboss-3.0.0_tomcat-4.0.3.zip file and
setup all paths. Jboss does not complain about much and
it works. However, when I try to access tomcat by
accessing the http://localhost:8080 in netscape4.76
browser, I got the following messages:
 Apache Tomcat/4.0.3 - HTTP Status 500 - No Context
configured to process this request.

Following messages are from Jboss console about
cataline.

* Begin Cataline Log messages
***
INFO  [MainDeployer] Starting deployment of package:
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/server/default/deploy/tomcat4-service.xml
INFO  [MainDeployer] Starting deployment of package:
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/servlets-common.jar
INFO  [MainDeployer] Successfully completed deployment
of package:
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/servlets-common.jar
INFO  [MainDeployer] Starting deployment of package:
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/servlets-default.jar
INFO  [MainDeployer] Successfully completed deployment
of package:
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/servlets-default.jar
INFO  [MainDeployer] Starting deployment of package:
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/lib/naming-factory.jar
INFO  [MainDeployer] Successfully completed deployment
of package:
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/lib/naming-factory.jar
INFO  [MainDeployer] Starting deployment of package:
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/tomcat-ajp.jar
INFO  [MainDeployer] Successfully completed deployment
of package:
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/tomcat-ajp.jar
INFO  [MainDeployer] Starting deployment of package:
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/servlets-webdav.jar
INFO  [MainDeployer] Successfully completed deployment
of package:
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/servlets-webdav.jar
INFO  [MainDeployer] Starting deployment of package:
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/servlets-invoker.jar
INFO  [MainDeployer] Successfully completed deployment
of package:
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/servlets-invoker.jar
INFO  [MainDeployer] Starting deployment of package:
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/catalina.jar
INFO  [MainDeployer] Successfully completed deployment
of package:
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/catalina.jar
INFO  [MainDeployer] Starting deployment of package:
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/common/lib/naming-resources.jar
INFO  [MainDeployer] Successfully completed deployment
of package:
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/common/lib/naming-resources.jar
INFO  [MainDeployer] Starting deployment of package:
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/servlets-snoop.jar
INFO  [MainDeployer] Successfully completed deployment
of package:
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/servlets-snoop.jar
INFO  [MainDeployer] Starting deployment of package:
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/common/lib/naming-common.jar
INFO  [MainDeployer] Successfully completed deployment
of package:
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/common/lib/naming-common.jar
INFO  [MainDeployer] Starting deployment of package:
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/bin/bootstrap.jar
INFO  [MainDeployer] Successfully completed deployment
of package:
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/bin/bootstrap.jar
INFO  [MainDeployer] Starting deployment of package:
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/servlets-manager.jar
INFO  [MainDeployer] Successfully completed deployment
of package:
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/servlets-manager.jar
INFO  [MainDeployer] Starting deployment of package:
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/jakarta-regexp-1.2.jar
INFO  [MainDeployer] Successfully completed deployment
of package:
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/jakarta-regexp-1.2.jar
INFO  [MainDeployer] Starting deployment of package:
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/lib/jasper-compiler.jar
INFO  [MainDeployer] Successfully completed deployment
of package:
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/lib/jasper-compiler.jar
INFO  [MainDeployer] Starting deployment of package:
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/warp.jar
INFO  [MainDeployer] Successfully completed deployment
of package:
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/server/lib/warp.jar
INFO  [MainDeployer] Starting deployment of package:
file:/usr/local/jboss-3.0.0_tomcat-4.0.3/catalina/common/lib/servlet.jar
INFO  [MainDeployer] Successfully completed deployment
of package:
file:/usr/local

[JBoss-user] Please help: "Fatal error: Cannot find class java/lang/StackOverflowError"

2002-06-12 Thread Shamis, Leonid

Hello,

I've got the error message "Fatal error: Cannot find class
java/lang/StackOverflowError" and JBoss server crashed when I attempted to
use Form Based authentication (against Oracle database) from my "hypothetic"
application.

Also as a result of Submit from Login page the URL wich stays displayed in
the Address line of Internet Explorer is:
http://localhost:8080/hypothetic/j_security_check

This application is very basic (hypothetic) application (Entity Bean,
Session Bean (EJB Controller), Dispatcher Servlet (Web Controller), Value
Object, JSP's) that worked properly with JBoss-2.4.x_Tomcat-3.2.3.

My configuration:

Java VM
java version "1.3.1"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1-b24)
OJVM Client VM (build 9.0.2.579 cdov, Copyright (c) 1998-2002
Oracle Corp., noj
it)

JBoss
17:23:13,125 INFO  [Server] JBoss (MX MicroKernel) [3.0.0
Date:200205311035] Started in 0m:43s:443ms

Files changed
- added to login-config.xml:
 
 
 
java:/OracleDS 
select passwd from Users username where
username=? 
select userRoles, 'Roles' from UserRoles where
username=? 
 
 


- oracle-service.xml:










  
  
  
  
  

  
  




 
 
 
java:/OracleDS 
select passwd from Users username where
username=? 
select userRoles, 'Roles' from UserRoles where
username=? 
 
 



OracleDBRealm



  
  
  

OracleDS


  
jdbc:oracle:thin:@dvux02:1521:paxd01
oracle.jdbc.driver.OracleDriver


  





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



  
  
  

0
50
5000
15

ByContainer
  


jboss.jca:service=CachedCo
nnectionManager
   
jboss.security:name=Jaa
sSecurityManager

java:/TransactionManager
 

jboss.jca:service=RARDeployer

  





Best Regards,

Leonid Shamis


___

Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Please help re: Client-side UserTransactions not commiting

2002-01-17 Thread Bryan Field-Elliot

I am hoping someone can help me solve a problem I'm having with JBoss
2.4.4 (using RedHat Linux 7.1 and PostgreSQL 7.0.2).

My client application manipulates several entity beans. I know that a
better design would be to use a session facade, but that's not an option
in the short term.

In any case -- I've introduced the use of UserTransaction from the
client. I obtain a UserTransaction and call "begin". Then I manipulate
my entity beans. Finally, I call "UserTransaction.commit()".

My changes are being written to the database, but, they are not being
commited. I know this because when my application tries to read the
values back, the new values are shown. But another application,
connecting directly to PostgreSQL, shows the old values. Lastly, when I
restart JBoss or reload the EAR file, all the old values come back.

My CMP beans are marked as "Requires" a transaction.

Can anyone please help me deduce what's going wrong, and why my commit()
calls don't seem to be doing anything?

Thank you,

Bryan


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



Re: [JBoss-user] Please help me ...

2001-10-25 Thread Andrius Juozapaitis

ack, I realized that the next second I sent the message out ;-) sorry for
the confusion my post might have caused

--andrius
- Original Message -
From: "danch" <[EMAIL PROTECTED]>
: Any time you call a finder there's at least one hit on the database, for
: that very reason. Even with commit option A, the container hits the
: database to get (at least) the keys.



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



[JBoss-user] Please help

2001-10-24 Thread MSedliak

Hi All,

please I would like to ask you for help. I use JBoss-2.2.2_Tomcat-3.2.2 and
I have a problem when I try to use my stateless EJB
sk.softip.ejb.util.EjbDispatcher after approx 20 minuts of waiting. I get
this exception.

Are there some ideas ?

java.lang.NullPointerException
at
org.opentools.minerva.cache.LeastRecentlyUsedCache.checkMaxSize(LeastRecentlyUsedCache.java:183)
at
org.opentools.minerva.cache.LeastRecentlyUsedCache.addObject(LeastRecentlyUsedCache.java:158)
at
org.opentools.minerva.cache.LeastRecentlyUsedCache.getObject(LeastRecentlyUsedCache.java:106)
at
org.opentools.minerva.cache.LeastRecentlyUsedCache.useObject(LeastRecentlyUsedCache.java:35)
at
org.opentools.minerva.jdbc.xa.wrapper.XAClientConnection.prepareStatement(XAClientConnection.java:167)
at sk.softip.dao.HandlerBase.executeQuery(HandlerBase.java:107)
at sk.softip.dao.HandlerBase.executeQuery(HandlerBase.java:73)
at
sk.softip.util.security.UserPermission.getPermission(UserPermission.java:107)
at
sk.softip.ejb.util.EjbDispatcher.checkClientAuthorizedForMethod(EjbDispatcher.java:228)
at
sk.softip.ejb.util.EjbDispatcher.processRequest(EjbDispatcher.java:126)
at java.lang.reflect.Method.invoke(Native Method)
at
org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:472)
at
org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:87)
at
org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxInterceptorCMT.java:133)
at
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:263)
at
org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:99)
at
org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:190)
at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:195)
at
org.jboss.ejb.StatelessSessionContainer.invoke(StatelessSessionContainer.java:271)
at
org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(JRMPContainerInvoker.java:482)
at
org.jboss.ejb.plugins.jrmp.interfaces.StatelessSessionProxy.invoke(StatelessSessionProxy.java:152)
at $Proxy326.processRequest(Unknown Source)
at
sk.softip.servlet.ServletDispatcher.processRequest(ServletDispatcher.java:69)
at
sk.softip.servlet.ServletDispatcher.doPost(ServletDispatcher.java:53)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at org.apache.tomcat.core.Handler.service(Handler.java:287)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
at java.lang.Thread.run(Unknown Source)


My JBoss.jcml


OracleDB
org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImpl

jdbc:oracle:thin:@APPSERVER:1521:ORA
test
test
120
50
true
false
false
true
12
90
true
false
1.0
10
  



Thanks a lot.

Mark


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



Re: [JBoss-user] Please help me ...

2001-10-24 Thread danch

Any time you call a finder there's at least one hit on the database, for 
that very reason. Even with commit option A, the container hits the 
database to get (at least) the keys.

-danch

John Moore wrote:

> 
> Andrius,
> 
> Good point, then it comes down to what you are trying to get the sum 
> of.   I have tables w/ million+ active records, multiple containers, 
> commit-option=B/C and our sums/counts are of big results so the 
> collection route was a bad thing (for me).  
> 
> Even so I'm wondering, on smaller collections how would jboss know that 
> it had all of the records that qualified for the query unless it was a 
> result of a finder method for which the results were still cached?  It 
> seems like it would still have to go back to the DB and re-retrieve the 
> keys to verify against the cache.  
> 
> john
> 
> 
> 
> 
> -Original Message-
> From: Andrius Juozapaitis [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, October 24, 2001 10:04 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [JBoss-user] Please help me ...
> 
> 
> RE: [JBoss-user] Please help me ...IMHO slsb + entity bean collection
> approach looks like a better and more universal one. with jboss caching the
> entities, you might not get a db hit at all. and if your data is more or
> less static, there is a way to use read-only entity beans, look in the
> archives for more info on this
> 
> regards,
> --andrius
> 
> 
> - Original Message -
> From: John Moore
> 
> I agree with the Fred that the SLSB is the better route and cleaner 
> overall.
> In any event, you are only going to return an int.  So, in your remote
> interface add a public int getXYZ() ... and then add the same to the Bean.
> The following is from a SLSB but the same would work in a Entity Bean.
> Note: we put the name of our datasource into an  rather than 
> hard
> code; you wouldn't need to do this.
> John
> 
> 
> 
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 



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



RE: [JBoss-user] Please help me ...

2001-10-24 Thread John Moore
Title: RE: [JBoss-user] Please help me ...






Andrius,


Good point, then it comes down to what you are trying to get the sum of.   I have tables w/ million+ active records, multiple containers, commit-option=B/C and our sums/counts are of big results so the collection route was a bad thing (for me).   

Even so I'm wondering, on smaller collections how would jboss know that it had all of the records that qualified for the query unless it was a result of a finder method for which the results were still cached?  It seems like it would still have to go back to the DB and re-retrieve the keys to verify against the cache.   

john





-Original Message-
From: Andrius Juozapaitis [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 24, 2001 10:04 AM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Please help me ...



RE: [JBoss-user] Please help me ...IMHO slsb + entity bean collection
approach looks like a better and more universal one. with jboss caching the
entities, you might not get a db hit at all. and if your data is more or
less static, there is a way to use read-only entity beans, look in the
archives for more info on this


regards,
--andrius



- Original Message -
From: John Moore


I agree with the Fred that the SLSB is the better route and cleaner overall.
In any event, you are only going to return an int.  So, in your remote
interface add a public int getXYZ() ... and then add the same to the Bean.
The following is from a SLSB but the same would work in a Entity Bean.
Note: we put the name of our datasource into an  rather than hard
code; you wouldn't need to do this.
John





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





Re: [JBoss-user] Please help me ...

2001-10-24 Thread Andrius Juozapaitis

RE: [JBoss-user] Please help me ...IMHO slsb + entity bean collection
approach looks like a better and more universal one. with jboss caching the
entities, you might not get a db hit at all. and if your data is more or
less static, there is a way to use read-only entity beans, look in the
archives for more info on this

regards,
--andrius


- Original Message -
From: John Moore

I agree with the Fred that the SLSB is the better route and cleaner overall.
In any event, you are only going to return an int.  So, in your remote
interface add a public int getXYZ() ... and then add the same to the Bean.
The following is from a SLSB but the same would work in a Entity Bean.
Note: we put the name of our datasource into an  rather than hard
code; you wouldn't need to do this.
John




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



Re: [JBoss-user] Please help me ...

2001-10-24 Thread IvanLatysh

Hello, John!
You wrote to "'IvanLatysh'" <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> on 
Wed, 24
Oct 2001 09:14:00 -0700:


 JM> Note: we put the name of our datasource into an  rather
 JM> than hard code; you wouldn't need to do this.
I have done the same way.

Now I see.
You mean to calculate sum for _each_ field separately?
Ok in sql it will be like:
Select sum(a), sum(b), sum(c) from myTable where id=1 group by myName

And now I should create 3 function and each function will calculate sum for separate 
field:
1 - Select sum(a) from myTable where id=1 group by myName
return sum

2 - Select sum(b) from myTable where id=1 group by myName
return sum

3 - Select sum(c) from myTable where id=1 group by myName
return sum

 ---
Yours sincerely, Ivan Latysh.
[EMAIL PROTECTED]
http://ivan.yourmail.com


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



RE: [JBoss-user] Please help me ...

2001-10-24 Thread John Moore
Title: RE: [JBoss-user] Please help me ...






I agree with the Fred that the SLSB is the better route and cleaner overall.  In any event, you are only going to return an int.  So, in your remote interface add a public int getXYZ() ... and then add the same to the Bean.  The following is from a SLSB but the same would work in a Entity Bean.  Note: we put the name of our datasource into an  rather than hard code; you wouldn't need to do this.  

John



Remote Interface
    public abstract int countByXYZ( int arg ) throws RemoteException, ... ;



Implementation Class
    public int countByXYZ( int arg) throws RemoteException, ... {
    DataSource  ds = null;
    Connection   con = null;
    PreparedStatement ps = null;
    ResultSet result = null;
    int count = 0;
    final  String query = "select count(0) from DUMMY_TBL  where ARG_TO_MATCH = ?  ";


    try {
    InitialContext context = new InitialContext();
    String  dataSourceName = (String)context.lookup("java:comp/env/data_source_name");
    ds = (DataSource)context.lookup("java:" + dataSourceName);
    con = ds.getConnection();
    con.setAutoCommit(false);
    ps  = con.prepareStatement(query);
    ps.setInt( 1, arg );
    result = ps.executeQuery();
    if (result.next()) {
    count = result.getInt(1);
    }
    }
    catch( Exception e ) {
    throw new BusinessException( e );
    }
    finally {
    try { result.close(); } catch( Exception e ) { }
    try { ps.close(); } catch( Exception e ) { }
    try { con.close(); } catch( Exception e ) { }
    }
    return count;
    }


-Original Message-
From: IvanLatysh [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 24, 2001 8:58 AM
To: John Moore; [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Please help me ...



Hello, John!
You wrote to "'IvanLatysh'" <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> on Wed, 24
Oct 2001 08:46:42 -0700:



 JM> or,  #4) Rather than a new entity bean, use the existing entity bean
 JM> and put a new method that grabs the datasource from jndi, gets a
 JM> connection, runs the query and closes (hands back) the connection.
This way sounds nice.
But how to return data from my method? Or just return a Vector?


 JM> I have done #2 & #4, more often #2.


 JM> #1 won't buy you anything except more beans to manage.
 JM> #3 is a waste of system resources


 JM> I see any ways how to do it.
 JM> 1. Build the new EntityBean which will execute SQL and will
 JM> represent summary information (but I see something wrong here)
 JM> 2. Build a SessionStateless bean and execute SQL to get this summary
 JM> information
 JM> 3. Build SessionStateless bean to get data from my EntityBean-s and
 JM> group this data manualy.


 JM> My question - how to have it done more easely and in right way.


---
Yours sincerely, Ivan Latysh.
[EMAIL PROTECTED]
http://ivan.yourmail.com





Re: [JBoss-user] Please help me ...

2001-10-24 Thread IvanLatysh

Hello, John!
You wrote to "'IvanLatysh'" <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> on 
Wed, 24
Oct 2001 08:46:42 -0700:


 JM> or,  #4) Rather than a new entity bean, use the existing entity bean
 JM> and put a new method that grabs the datasource from jndi, gets a
 JM> connection, runs the query and closes (hands back) the connection.
This way sounds nice.
But how to return data from my method? Or just return a Vector?

 JM> I have done #2 & #4, more often #2.

 JM> #1 won't buy you anything except more beans to manage.
 JM> #3 is a waste of system resources

 JM> I see any ways how to do it.
 JM> 1. Build the new EntityBean which will execute SQL and will
 JM> represent summary information (but I see something wrong here)
 JM> 2. Build a SessionStateless bean and execute SQL to get this summary
 JM> information
 JM> 3. Build SessionStateless bean to get data from my EntityBean-s and
 JM> group this data manualy.

 JM> My question - how to have it done more easely and in right way.

---
Yours sincerely, Ivan Latysh.
[EMAIL PROTECTED]
http://ivan.yourmail.com


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



RE: [JBoss-user] Please help me ...

2001-10-24 Thread John Moore
Title: RE: [JBoss-user] Please help me ...







or, 
#4) Rather than a new entity bean, use the existing entity bean and put a new method that grabs the datasource from jndi, gets a connection, runs the query and closes (hands back) the connection.

I have done #2 & #4, more often #2.


#1 won't buy you anything except more beans to manage.
#3 is a waste of system resources


John


-Original Message-
From: IvanLatysh [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 24, 2001 7:41 AM
To: [EMAIL PROTECTED]
Subject: [JBoss-user] Please help me ...




Hi All.


I have got one problem and I can't get the right way.


I have database and I wrap this database with EntityBeans.
But now I need build report and I need summary information (in SQL: select sum(myColumn) from
myTable group by myID)


I see any ways how to do it.
1. Build the new EntityBean which will execute SQL and will represent summary information (but I
see something wrong here)
2. Build a SessionStateless bean and execute SQL to get this summary information
3. Build SessionStateless bean to get data from my EntityBean-s and group this data manualy.


My question - how to have it done more easely and in right way.


Sincerely yours, Ivan Latysh.
[EMAIL PROTECTED]
http://ivan.yourmail.com



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





Re: [JBoss-user] Please help me ...

2001-10-24 Thread IvanLatysh

Hello, Fred!
You wrote to "IvanLatysh" <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> on 
Wed, 24 Oct
2001 08:36:21 -0700:

 FL> Aggregate queries are usually best performed by a SLSB using an SQL
 FL> statement. One exception is if the query range is a small number of
 FL> records whose corresponding EBs can be readily activated by a
 FL> finder,
 FL> e.g. a sum over a user's account balances where the account EBs are
 FL> fetched by a UserHome finder. The finder alternative is esp.
 FL> appropriate if the use case calls for a subsequent drill down into
 FL> the detail EBs.
 FL> Moral: depends on the app usage model, as usual.

SLSB - is StateLessSessionBean
I am expect group ~50-100 records. (not much )
But maybe technology have some ideas about this situation.
Because if I am using SLSB with SQL why I hould use Entity in other case ?
I think if I wrap my database into the EntityBeans I should work with this interface 
not with
SQL. (IMHO)

---
Yours sincerely, Ivan Latysh.
[EMAIL PROTECTED]
http://ivan.yourmail.com


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



Re: [JBoss-user] Please help me ...

2001-10-24 Thread Fred Loney

Aggregate queries are usually best performed by a SLSB using an SQL
statement. One exception is if the query range is a small number of
records whose corresponding EBs can be readily activated by a finder,
e.g. a sum over a user's account balances where the account EBs are
fetched by a UserHome finder. The finder alternative is esp. appropriate
if the use case calls for a subsequent drill down into the detail EBs.
Moral: depends on the app usage model, as usual.

Fred Loney
Spirited Software, Inc.
www.spiritedsw.com

- Original Message -
From: "IvanLatysh" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, October 24, 2001 7:40 AM
Subject: [JBoss-user] Please help me ...


>
> Hi All.
>
> I have got one problem and I can't get the right way.
>
> I have database and I wrap this database with EntityBeans.
> But now I need build report and I need summary information (in SQL:
select sum(myColumn) from
> myTable group by myID)
>
> I see any ways how to do it.
> 1. Build the new EntityBean which will execute SQL and will represent
summary information (but I
> see something wrong here)
> 2. Build a SessionStateless bean and execute SQL to get this summary
information
> 3. Build SessionStateless bean to get data from my EntityBean-s and
group this data manualy.
>
> My question - how to have it done more easely and in right way.
>
> Sincerely yours, Ivan Latysh.
> [EMAIL PROTECTED]
> http://ivan.yourmail.com
>
>
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
>


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



[JBoss-user] Please help me ...

2001-10-24 Thread IvanLatysh


Hi All.

I have got one problem and I can't get the right way.

I have database and I wrap this database with EntityBeans.
But now I need build report and I need summary information (in SQL: select 
sum(myColumn) from
myTable group by myID)

I see any ways how to do it.
1. Build the new EntityBean which will execute SQL and will represent summary 
information (but I
see something wrong here)
2. Build a SessionStateless bean and execute SQL to get this summary information
3. Build SessionStateless bean to get data from my EntityBean-s and group this data 
manualy.

My question - how to have it done more easely and in right way.

Sincerely yours, Ivan Latysh.
[EMAIL PROTECTED]
http://ivan.yourmail.com


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



[JBoss-user] Please Help JDBC or JAAS error , I/O Error Occured !!

2001-07-30 Thread Binoy

Hi
I have been  using postgres database since last 7 months working on a
involving JBoss server as an application server and postgres database at
backend lately.. i noticed as the database started growing larger.. today
encountered some error while firing this query

select firstname , last name from mycustomers where firstname between 'A%'
and 'Z%'

the above query returns 6000 + records ;-)

I am using PostgreSQL 7.1.2 and JBoss2.2.2 with jetty 3.1

The error stack trace is :
[Jetty] An I/O error occured while reading from backend - Exception:
java.net.SocketException: Connection reset by peer: JVM_recv in socket input
stream read
Stack Trace:

java.net.SocketException: Connection reset by peer: JVM_recv in socket input
stream read
 at java.net.SocketInputStream.socketRead(Native Method)
 at java.net.SocketInputStream.read(Unknown Source)
 at java.io.BufferedInputStream.fill(Unknown Source)
 at java.io.BufferedInputStream.read(Unknown Source)
 at org.postgresql.PG_Stream.ReceiveChar(PG_Stream.java:181)
 at org.postgresql.Connection.ExecSQL(Connection.java:473)
 at org.postgresql.jdbc2.Statement.execute(Statement.java:294)
 at org.postgresql.jdbc2.Statement.executeQuery(Statement.java:59)
 at
org.postgresql.jdbc2.PreparedStatement.executeQuery(PreparedStatement.java:1
08)
 at
org.opentools.minerva.jdbc.PreparedStatementInPool.executeQuery(PreparedStat
ementInPool.java:71)
 at
org.jboss.security.auth.spi.DatabaseServerLoginModule.getUsersPassword(Datab
aseServerLoginModule.java:94)
 at
org.jboss.security.auth.spi.UsernamePasswordLoginModule.login(UsernamePasswo
rdLoginModule.java:82)
 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(JaasSecurityMana
ger.java:333)
 at
org.jboss.security.plugins.JaasSecurityManager.authenticate(JaasSecurityMana
ger.java:301)
 at
org.jboss.security.plugins.JaasSecurityManager.isValid(JaasSecurityManager.j
ava:193)
 at org.jboss.jetty.JBossUserRealm$User.authenticate(JBossUserRealm.java:46)
 at
com.mortbay.HTTP.Handler.SecurityHandler.basicAuthenticated(SecurityHandler.
java:259)
 at
com.mortbay.HTTP.Handler.SecurityHandler.authenticatedInRole(SecurityHandler
.java:192)
 at
com.mortbay.HTTP.Handler.SecurityHandler.handle(SecurityHandler.java:163)
 at com.mortbay.HTTP.HandlerContext.handle(HandlerContext.java:956)
 at com.mortbay.HTTP.HandlerContext.handle(HandlerContext.java:913)
 at com.mortbay.HTTP.HttpServer.service(HttpServer.java:703)
 at com.mortbay.HTTP.HttpConnection.service(HttpConnection.java:508)
 at com.mortbay.HTTP.HttpConnection.handle(HttpConnection.java:347)
 at
com.mortbay.HTTP.SocketListener.handleConnection(SocketListener.java:107)
 at com.mortbay.Util.ThreadedServer.handle(ThreadedServer.java:294)
 at com.mortbay.Util.ThreadPool$PoolThreadRunnable.run(ThreadPool.java:613)
 at java.lang.Thread.run(Unknown Source)
End of Stack Trace

[Jetty]  at org.postgresql.PG_Stream.ReceiveChar(PG_Stream.java:184)
[Jetty]  at org.postgresql.Connection.ExecSQL(Connection.java:473)
[Jetty]  at org.postgresql.jdbc2.Statement.execute(Statement.java:294)
[Jetty]  at org.postgresql.jdbc2.Statement.executeQuery(Statement.java:59)
[Jetty]  at
org.postgresql.jdbc2.PreparedStatement.executeQuery(PreparedStatement.java:1
08)
[Jetty]  at
org.opentools.minerva.jdbc.PreparedStatementInPool.executeQuery(PreparedStat
ementInPool.java:71)
[Jetty]  at
org.jboss.security.auth.spi.DatabaseServerLoginModule.getUsersPassword(Datab
aseServerLoginModule.java:94)
[Jetty]  at
org.jboss.security.auth.spi.UsernamePasswordLoginModule.login(UsernamePasswo
rdLoginModule.java:82)
[Jetty]  at java.lang.reflect.Method.invoke(Native Method)
[Jetty]  at
javax.security.auth.login.LoginContext.invoke(LoginContext.java:595)
[Jetty]  at
javax.security.auth.login.LoginContext.access$000(LoginContext.java:125)
[Jetty]  at
javax.security.auth.login.LoginContext$3.run(LoginContext.java:531)
[Jetty]  at java.security.AccessController.doPrivileged(Native Method)
[Jetty]  at
javax.security.auth.login.LoginContext.invokeModule(LoginContext.java:528)
[Jetty]  at
javax.security.auth.login.LoginContext.login(LoginContext.java:449)
[Jetty]  at
org.jboss.security.plugins.JaasSecurityManager.defaultLogin(JaasSecurityMana
ger.java:333)
[Jetty]  at
org.jboss.security.plugins.JaasSecurityManager.authenticate(JaasSecurityMana
ger.java:301)
[Jetty]  at
org.jboss.security.plugins.JaasSecurityManager.isValid(JaasSecurityManager.j
ava:193)
[Jetty]  at
org.jboss.jetty.JBossUserRealm$User.authenticate(JBossUserRealm.java:46)
[Jetty]  at
com.m

[JBoss-user] Please help me

2001-07-26 Thread riyaz ahamed

Hai,
I am very fond of JBOSS server ie the way it
handes Ejb. Please help me I am getting this error
when i deploy the  Interest session bean in JBOSS.
Please not this error comes when ever I deploy the
bean

[J2EE Deployer Default] Started
[Auto deploy] Starting
[Auto deploy] Watching D:\JBoss\jboss\deploy
[Auto deploy] Auto deploy of
file:/D:/JBoss/jboss/deploy/cd.jar
[J2EE Deployer Default] Deploy J2EE application:
file:/D:/JBoss/jboss/deploy/cd.jar
[J2EE Deployer Default] Create application cd.jar
[J2EE Deployer Default] install module cd.jar
[Container factory]
Deploying:file:/D:/JBoss/jboss/tmp/deploy/Default/cd.jar
[Verifier] Verifying
file:/D:/JBoss/jboss/tmp/deploy/Default/cd.jar/ejb1001.jar
[Verifier] Interest: Verified.
[Container factory] Deploying Interest
[Container factory] Container Invoker RMI Port=''
[Container factory] Container Invoker Client
SocketFactory='Default'
[Container factory] Container Invoker Server
SocketFactory='Default'
[Container factory] Container Invoker Optimize='true'
[Container factory]
javax.naming.NameNotFoundException: comp not bound
[Container factory] at
org.jnp.server.NamingServer.getBinding(NamingServer.java:473)
[Container factory] at
org.jnp.server.NamingServer.getBinding(NamingServer.java:481)
[Container factory] at
org.jnp.server.NamingServer.getObject(NamingServer.java:487)
[Container factory] at org.jnp.server.NamingServer.lookup(NamingServer.java:2

__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/

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



[JBoss-user] Please help me

2001-07-25 Thread riyaz ahamed

hi,
  I am new to JBoss, I installed it and then 
when I started JBoss, it's auto deployer
has given the following error for the very simple
bean and for the interest bean.

Please, can anybody help me.

Riyaz ahamed.


[Container factory]
javax.naming.CommunicationException.  Root exception
is java.rmi.StubNotFoundException: Remote object not
exported: org.jboss.proxy.ProxyProxy



__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/

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



[JBoss-user] Please Help, XAException when deploying CMP bean with oracle 8idatasource

2001-06-20 Thread Hiep Luong

I just got started with jboss and trying examples from the RMH
Enterprise JavaBeans book.

I get a boat load of errors when I deploy the cabinbean example with
JBOSS using Oracle 8i.  When first deployed the bean Jboss was set with
Hypersonic as the datasource(DefaultDS).  I next switched to Oracle by
changing the oracle datasource to DefaultDS in jboss.jcml file.
deployment gives this:

[Default] JBoss 2.3 BETA Started in 0m:33s
[Auto deploy] Auto deploy of file:/usr/local/jboss/deploy/cabin.jar
[J2EE Deployer Default] Deploy J2EE application:
file:/usr/local/jboss/deploy/cabin.jar
[J2EE Deployer Default] Create application cabin.jar
[J2EE Deployer Default] install module cabin.jar
[Container factory]
Deploying:file:/usr/local/jboss/tmp/deploy/Default/cabin.jar
[Verifier] Verifying
file:/usr/local/jboss/tmp/deploy/Default/cabin.jar/ejb1003.jar
[Container factory] Deploying CabinBean
[Container Management Proxy] Initializing
[Container Management Proxy] Initialized
[Container Management Proxy] Starting
[Container Management Proxy] Started
[Container factory] XAException: tx=XidImpl [FormatId=257,
GlobalId=barney//0, BranchQual=] errorCode=XAER_NOTA
[Container factory] oracle.jdbc.xa.OracleXAException
[Container factory]  at
oracle.jdbc.xa.OracleXAResource.checkError(OracleXAResource.java:483)
[Container factory]  at
oracle.jdbc.xa.client.OracleXAResource.end(OracleXAResource.java:285)
[Container factory]  at
org.jboss.tm.TxCapsule.endResource(TxCapsule.java:1129)
[Container factory]  at
org.jboss.tm.TxCapsule.delistResource(TxCapsule.java:523)
[Container factory]  at
org.jboss.tm.TransactionImpl.delistResource(TransactionImpl.java:99)
[Container factory]  at
org.jboss.pool.jdbc.xa.XAConnectionFactory$2.closeConnection(XAConnectionFac
tory.java:97)

[Container factory]  at
org.jboss.pool.jdbc.xa.XAConnectionFactory$2.connectionClosed(XAConnectionFa
ctory.java:82)

[Container factory]  at
oracle.jdbc.pool.OraclePooledConnection.callListener(OraclePooledConnection.
java:241)

[Container factory]  at
oracle.jdbc.pool.OraclePooledConnection.logicalClose(OraclePooledConnection.
java:215)

[Container factory]  at
oracle.jdbc.driver.OracleConnection.logicalClose(OracleConnection.java:1955)

[Container factory]  at
oracle.jdbc.driver.OracleConnection.close(OracleConnection.java:904)
[Container factory]  at
org.jboss.ejb.plugins.jaws.jdbc.JDBCCommand.jdbcExecute(JDBCCommand.java:180
)

[Container factory]  at
org.jboss.ejb.plugins.jaws.jdbc.JDBCInitCommand.execute(JDBCInitCommand.java
:122)

[Container factory]  at
org.jboss.ejb.plugins.jaws.JAWSPersistenceManager.init(JAWSPersistenceManage
r.java:103)

[Container factory]  at
org.jboss.ejb.plugins.CMPPersistenceManager.init(CMPPersistenceManager.java:
109)

[Container factory]  at
org.jboss.ejb.EntityContainer.init(EntityContainer.java:210)
[Container factory]  at
org.jboss.ejb.Application.init(Application.java:201)
[Container factory]  at
org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:340)
[Container factory]  at
org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:278)
[Container factory]  at java.lang.reflect.Method.invoke(Native Method)
[Container factory]  at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)

[Container factory]  at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)

[Container factory]  at
org.jboss.deployment.J2eeDeployer.startModules(J2eeDeployer.java:489)
[Container factory]  at
org.jboss.deployment.J2eeDeployer.startApplication(J2eeDeployer.java:467)

[Container factory]  at
org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer.java:211)
[Container factory]  at java.lang.reflect.Method.invoke(Native Method)
[Container factory]  at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)

[Container factory]  at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)

[Container factory]  at
org.jboss.ejb.AutoDeployer.deploy(AutoDeployer.java:379)
[Container factory]  at
org.jboss.ejb.AutoDeployer.run(AutoDeployer.java:217)
[Container factory]  at java.lang.Thread.run(Thread.java:484)
[Container factory] XAException: tx=XidImpl [FormatId=257,
GlobalId=barney//0, BranchQual=] errorCode=XAER_NOTA
[Container factory] oracle.jdbc.xa.OracleXAException
[Container factory]  at
oracle.jdbc.xa.OracleXAResource.checkError(OracleXAResource.java:483)
[Container factory]  at
oracle.jdbc.xa.client.OracleXAResource.end(OracleXAResource.java:285)
[Container factory]  at
org.jboss.tm.TxCapsule.endResource(TxCapsule.java:1129)
[Container factory]  at
org.jboss.tm.TxCapsule.endResources(TxCapsule.java:1187)
[Container factory]  at
org.jboss.tm.TxCapsule.commit(TxCapsule.java:291)
[Container factory]  at
org.jboss.tm.TransactionImpl.commit(TransactionImpl.java:76)
[Container factory]  at
org.jboss.tm.TxManager.commit(TxManager.java:121)
[Container factory]  at
org.jboss.ejb.plugins.jaws.jdbc.JDBCInitCommand.execute(JDBCInitCommand.java
:123)

[Container factory]

Re: [JBoss-user] PLEASE HELP!!!! EJB ENTITY FINDBY ISSUES

2001-06-06 Thread K.V. Vinay Menon

what are your authentication/authorization settings? roles etc?

Vinay
- Original Message -
From: "zach" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 06, 2001 6:18 PM
Subject: [JBoss-user] PLEASE HELP EJB ENTITY FINDBY ISSUES


> Ok here is the deal,
>
> I really need to get this problem solved or I have to start looking at
> different software. This seems like such a small problem why is this
failing
>
> Here is the issue:
>
> Why does this jboss code throw me and illegalAccessException when I try to
> do a ejbFindByPrimaryKey call on the home interface, everything is
deployed.
>
> The error comes up in the following sectoin of code with in jboss
>
> This is in the org.jboss.ejb.plugins.BMPPersistenceManager class
>
>
> private Object callFinderMethod(Method finderMethod, Object[] args,
> EntityEnterpriseContext ctx)
>throws Exception
>{
>
>
> Method callMethod = (Method)finderMethods.get(finderMethod);
> try
>   {
>  result = callMethod.invoke(ctx.getInstance(), args);
>   } catch (IllegalAccessException e)
> {
> // Throw this as a bean exception...(?)
> throw new EJBException(e);
> }
>
> here is the error corresponding to this code:
>
> [UserBean] TRANSACTION ROLLBACK EXCEPTION:null; nested exception is:
> javax.ejb.EJBException
> [UserBean] java.lang.ClassCastException: java.lang.NoClassDefFoundError
> [UserBean]  at
> org.jboss.ejb.plugins.BMPPersistenceManager.callFinderMethod(
> BMPPersistenceManager.java:488)
> [UserBean]  at
> org.jboss.ejb.plugins.BMPPersistenceManager.findEntity(BMPPer
> sistenceManager.java:211)
> [UserBean]  at
> org.jboss.ejb.EntityContainer.find(EntityContainer.java:419)
> [UserBean]  at java.lang.reflect.Method.invoke(Native Method)
> [UserBean]  at
> org.jboss.ejb.EntityContainer$ContainerInterceptor.invokeHome
> (EntityContainer.java:639)
> [UserBean]  at
> org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invoke
> Home(EntitySynchronizationInterceptor.java:160)
> [UserBean]  at
> org.jboss.ejb.plugins.EntityInstanceInterceptor.invokeHome(En
> tityInstanceInterceptor.java:87)
> [UserBean]  at
> org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxIntercept
> orCMT.java:135)
>
> Thanks
>
> zach
> [EMAIL PROTECTED]
>
>
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user


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



Re: [JBoss-user] PLEASE HELP!!!! EJB ENTITY FINDBY ISSUES

2001-06-06 Thread K.V. Vinay Menon

Can you please post your entire code!
Trust me we can fix the problem! So don't go looking for other app
servers!

Vinay
- Original Message -
From: "zach" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 06, 2001 6:18 PM
Subject: [JBoss-user] PLEASE HELP EJB ENTITY FINDBY ISSUES


> Ok here is the deal,
>
> I really need to get this problem solved or I have to start looking at
> different software. This seems like such a small problem why is this
failing
>
> Here is the issue:
>
> Why does this jboss code throw me and illegalAccessException when I try to
> do a ejbFindByPrimaryKey call on the home interface, everything is
deployed.
>
> The error comes up in the following sectoin of code with in jboss
>
> This is in the org.jboss.ejb.plugins.BMPPersistenceManager class
>
>
> private Object callFinderMethod(Method finderMethod, Object[] args,
> EntityEnterpriseContext ctx)
>throws Exception
>{
>
>
> Method callMethod = (Method)finderMethods.get(finderMethod);
> try
>   {
>  result = callMethod.invoke(ctx.getInstance(), args);
>   } catch (IllegalAccessException e)
> {
> // Throw this as a bean exception...(?)
> throw new EJBException(e);
> }
>
> here is the error corresponding to this code:
>
> [UserBean] TRANSACTION ROLLBACK EXCEPTION:null; nested exception is:
> javax.ejb.EJBException
> [UserBean] java.lang.ClassCastException: java.lang.NoClassDefFoundError
> [UserBean]  at
> org.jboss.ejb.plugins.BMPPersistenceManager.callFinderMethod(
> BMPPersistenceManager.java:488)
> [UserBean]  at
> org.jboss.ejb.plugins.BMPPersistenceManager.findEntity(BMPPer
> sistenceManager.java:211)
> [UserBean]  at
> org.jboss.ejb.EntityContainer.find(EntityContainer.java:419)
> [UserBean]  at java.lang.reflect.Method.invoke(Native Method)
> [UserBean]  at
> org.jboss.ejb.EntityContainer$ContainerInterceptor.invokeHome
> (EntityContainer.java:639)
> [UserBean]  at
> org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invoke
> Home(EntitySynchronizationInterceptor.java:160)
> [UserBean]  at
> org.jboss.ejb.plugins.EntityInstanceInterceptor.invokeHome(En
> tityInstanceInterceptor.java:87)
> [UserBean]  at
> org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxIntercept
> orCMT.java:135)
>
> Thanks
>
> zach
> [EMAIL PROTECTED]
>
>
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user


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



[JBoss-user] PLEASE HELP!!!! EJB ENTITY FINDBY ISSUES

2001-06-06 Thread zach

Ok here is the deal,

I really need to get this problem solved or I have to start looking at
different software. This seems like such a small problem why is this failing

Here is the issue:

Why does this jboss code throw me and illegalAccessException when I try to
do a ejbFindByPrimaryKey call on the home interface, everything is deployed.

The error comes up in the following sectoin of code with in jboss

This is in the org.jboss.ejb.plugins.BMPPersistenceManager class


private Object callFinderMethod(Method finderMethod, Object[] args,
EntityEnterpriseContext ctx)
   throws Exception
   {


Method callMethod = (Method)finderMethods.get(finderMethod);
try
  {
 result = callMethod.invoke(ctx.getInstance(), args);
  } catch (IllegalAccessException e)
{
// Throw this as a bean exception...(?)
throw new EJBException(e);
}

here is the error corresponding to this code:

[UserBean] TRANSACTION ROLLBACK EXCEPTION:null; nested exception is:
javax.ejb.EJBException
[UserBean] java.lang.ClassCastException: java.lang.NoClassDefFoundError
[UserBean]  at
org.jboss.ejb.plugins.BMPPersistenceManager.callFinderMethod(
BMPPersistenceManager.java:488)
[UserBean]  at
org.jboss.ejb.plugins.BMPPersistenceManager.findEntity(BMPPer
sistenceManager.java:211)
[UserBean]  at
org.jboss.ejb.EntityContainer.find(EntityContainer.java:419)
[UserBean]  at java.lang.reflect.Method.invoke(Native Method)
[UserBean]  at
org.jboss.ejb.EntityContainer$ContainerInterceptor.invokeHome
(EntityContainer.java:639)
[UserBean]  at
org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invoke
Home(EntitySynchronizationInterceptor.java:160)
[UserBean]  at
org.jboss.ejb.plugins.EntityInstanceInterceptor.invokeHome(En
tityInstanceInterceptor.java:87)
[UserBean]  at
org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxIntercept
orCMT.java:135)

Thanks

zach
[EMAIL PROTECTED]


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



[JBoss-user] Please Help !!

2001-06-04 Thread Binoy's Jboss

Hello !!
This is to inform you that my messages have not been posted on the list
since a long time..
i have been mailing my problems regurlarly.. but i never see my messages on
the list
Help in this regard will be appreciated
Thanks !!
Binoy



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



Re: [JBoss-user] Please help :-( tomcat Servlet => Jboss EJB => JAAS Authentiaction

2001-05-21 Thread Scott M Stark

So add a client configuration entry to the server auth.conf and use it for your
client LoginContext creation. The current contrib/tomcat module code has
two example tomcat request interceptors that integrate into the JBoss security
layer.

- Original Message - 
From: "Lewis Henderson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, May 21, 2001 1:29 PM
Subject: Re: [JBoss-user] Please help :-( tomcat Servlet => Jboss EJB => JAAS 
Authentiaction


> ...I was trying to run an embedded tomcat client talking to jboss in the 
> same VM! There is another issue to this in that you cannot have override 
> java.security.auth.login.config for the client as the server also uses it!
> 
> If I use stand-alone tomcat everything seems to work...I'm still holding my 
> breath on this one!!
> 
> It seems from the above that there needs to be two SecurityAssociations, one 
> for the server and another for clients when using tomcat embedded...
> 
> 
> Lewis
> _
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
> 
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
> 


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



Re: [JBoss-user] Please help :-( tomcat Servlet => Jboss EJB => JAAS Authentiaction

2001-05-21 Thread Lewis Henderson

...I was trying to run an embedded tomcat client talking to jboss in the 
same VM! There is another issue to this in that you cannot have override 
java.security.auth.login.config for the client as the server also uses it!

If I use stand-alone tomcat everything seems to work...I'm still holding my 
breath on this one!!

It seems from the above that there needs to be two SecurityAssociations, one 
for the server and another for clients when using tomcat embedded...


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


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



Re: [JBoss-user] Please help :-( tomcat Servlet => Jboss EJB => JAAS Authentiaction

2001-05-21 Thread Scott M Stark

If by client side you mean a client running in a VM external to the JBoss
server VM, then this is the expected default behavior. Multi-threaded clients
need to enable the thread local storage mode of the SecurityAssociation
class by either calling SecurityAssociation.setServer() or equivalently
adding a multi-threaded=true option to the JAAS ClientLoginModule config:

other {
org.jboss.security.ClientLoginModule  required multi-threaded=true ;
};

- Original Message - 
From: "Lewis Henderson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, May 20, 2001 1:31 PM
Subject: RE: [JBoss-user] Please help :-( tomcat Servlet => Jboss EJB => JAAS 
Authentiaction


> ...I tried the three new jars...I get the same problem...However, the
> problem is 'client' side.
> 
> Using two machines, both with JBoss & Embedded Tomcat, I connect my browser
> to machine 1 for Tomcat JSP's talking to machine 2's EJB's...
> 
> My proxy on the client-side looses the SecurityAssociation as it's threads
> change...
> 
> ...am I making sense and is there anything else I can try?
> 
> 
> Lewis
> -Original Message-



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



RE: [JBoss-user] Please help :-( tomcat Servlet => Jboss EJB => JAAS Authentiaction

2001-05-20 Thread Lewis Henderson

...I tried the three new jars...I get the same problem...However, the
problem is 'client' side.

Using two machines, both with JBoss & Embedded Tomcat, I connect my browser
to machine 1 for Tomcat JSP's talking to machine 2's EJB's...

My proxy on the client-side looses the SecurityAssociation as it's threads
change...

...am I making sense and is there anything else I can try?


Lewis
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Lewis
Henderson
Sent: 20 May 2001 14:53
To: [EMAIL PROTECTED]
Subject: RE: [JBoss-user] Please help :-( tomcat Servlet => Jboss EJB =>
JAAS Authentiaction


Thx!

When will 2.3 be available?

Can I use the new jboss-jaas.jar and jbosssx.jar with 2.2.1?

Lewis

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Scott M
Stark
Sent: 20 May 2001 04:59
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Please help :-( tomcat Servlet => Jboss EJB =>
JAAS Authentiaction


Currently(JBoss-2.2.1) the security information that is obtained
from the server request is stored in a ThreadLocal and so
is only available to the request thread. You need to propagate
the security information to any child threads.

As of JBoss-2.3, security information is stored in an
InheritableThreadLocal and so is propgated automatically
to any child threads.

Lewis Henderson wrote:

> ...this is the important bit of the trace...
> ...the remote interface is stored and retrieved correctly on the session,
> however the SecurityAssociation was stored in a ThreadLocal on Thread-12
> earlier and now we are using Thread-10...
>
> marc suggests that we need some kind of InheritableThreadLocal
> implementation to get round this...
>
> I am using embedded tomcat if that helps anyone...?
>


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


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


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



RE: [JBoss-user] Please help :-( tomcat Servlet => Jboss EJB => JAAS Authentiaction

2001-05-20 Thread Lewis Henderson

Thx!

When will 2.3 be available?

Can I use the new jboss-jaas.jar and jbosssx.jar with 2.2.1?

Lewis

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Scott M
Stark
Sent: 20 May 2001 04:59
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Please help :-( tomcat Servlet => Jboss EJB =>
JAAS Authentiaction


Currently(JBoss-2.2.1) the security information that is obtained
from the server request is stored in a ThreadLocal and so
is only available to the request thread. You need to propagate
the security information to any child threads.

As of JBoss-2.3, security information is stored in an
InheritableThreadLocal and so is propgated automatically
to any child threads.

Lewis Henderson wrote:

> ...this is the important bit of the trace...
> ...the remote interface is stored and retrieved correctly on the session,
> however the SecurityAssociation was stored in a ThreadLocal on Thread-12
> earlier and now we are using Thread-10...
> 
> marc suggests that we need some kind of InheritableThreadLocal
> implementation to get round this...
> 
> I am using embedded tomcat if that helps anyone...?
> 


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


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



Re: [JBoss-user] Please help :-( tomcat Servlet => Jboss EJB => JAAS Authentiaction

2001-05-19 Thread Scott M Stark

Currently(JBoss-2.2.1) the security information that is obtained
from the server request is stored in a ThreadLocal and so
is only available to the request thread. You need to propagate
the security information to any child threads.

As of JBoss-2.3, security information is stored in an
InheritableThreadLocal and so is propgated automatically
to any child threads.

Lewis Henderson wrote:

> ...this is the important bit of the trace...
> ...the remote interface is stored and retrieved correctly on the session,
> however the SecurityAssociation was stored in a ThreadLocal on Thread-12
> earlier and now we are using Thread-10...
> 
> marc suggests that we need some kind of InheritableThreadLocal
> implementation to get round this...
> 
> I am using embedded tomcat if that helps anyone...?
> 


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



RE: [JBoss-user] Please help :-( tomcat Servlet => Jboss EJB => JAAS Authentiaction

2001-05-19 Thread Lewis Henderson

...this is the important bit of the trace...
...the remote interface is stored and retrieved correctly on the session,
however the SecurityAssociation was stored in a ThreadLocal on Thread-12
earlier and now we are using Thread-10...

marc suggests that we need some kind of InheritableThreadLocal
implementation to get round this...

I am using embedded tomcat if that helps anyone...?

[WorkflowAccess]
org.jboss.ejb.plugins.jrmp13.interfaces.StatefulSessionProxy==
invoke(Call)
[WorkflowAccess]
org.jboss.ejb.plugins.jrmp13.interfaces.StatefulSessionProxy== invoke(Ok
so far)
[WorkflowAccess]
org.jboss.ejb.plugins.jrmp13.interfaces.StatefulSessionProxy== invoke()
Principal [Paul]
[Thread-12] DEBUG client.JBossUserContext - getUserCompoundName() returned
[Paul]
15513 [Thread-12] DEBUG com.cf.rt.client.JBossUserContext  -
getUserCompoundName() returned [Paul]
[Thread-12] DEBUG context.UserContextBean - getUserCompoundName() returned
[Paul]
15513 [Thread-12] DEBUG com.cf.rt.context.UserContextBean  -
getUserCompoundName() returned [Paul]
[Thread-10] DEBUG struts.WorkflowUser - getSelectExpression()
18507 [Thread-10] DEBUG com.cf.rt.struts.WorkflowUser  -
getSelectExpression()
[Thread-10] DEBUG struts.WorkflowUser - getWorkItems()
18507 [Thread-10] DEBUG com.cf.rt.struts.WorkflowUser  - getWorkItems()
[Thread-10] DEBUG client.WfoWorkflowHelper - getWorkItems(.)
18517 [Thread-10] DEBUG com.cf.rt.client.WfoWorkflowHelper  -
getWorkItems(.)
[EmbeddedTomcat]
org.jboss.ejb.plugins.jrmp13.interfaces.StatefulSessionProxy==
invoke(Call)
[EmbeddedTomcat]
org.jboss.ejb.plugins.jrmp13.interfaces.StatefulSessionProxy== invoke(Ok
so far)
[EmbeddedTomcat]
org.jboss.ejb.plugins.jrmp13.interfaces.StatefulSessionProxy== invoke()
Principal [null]
[WorkflowClient] Authentication exception, principal=null
[WorkflowClient] TRANSACTION ROLLBACK EXCEPTION:checkSecurityAssociation;
nested exception is:
java.lang.SecurityException: Authentication exception; nested
exception is:
java.rmi.RemoteException: checkSecurityAssociation; nested exception
is:
java.lang.SecurityException: Authentication exception
[WorkflowClient] java.rmi.RemoteException: checkSecurityAssociation; nested
exception is:
[WorkflowClient]java.lang.SecurityException: Authentication
exception
[WorkflowClient] java.lang.SecurityException: Authentication exception
[WorkflowClient]at
org.jboss.ejb.plugins.SecurityInterceptor.checkSecurityAssociation(SecurityI
nterceptor.java:212)
[WorkflowClient]at
org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:16
9)
[WorkflowClient]at
org.jboss.ejb.plugins.StatefulSessionInstanceInterceptor.invoke(StatefulSess
ionInstanceInterceptor.java:209)
[WorkflowClient]at
org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxInterceptorCMT.java:133)
[WorkflowClient]at
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.
java:263)
[WorkflowClient]at
org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:99)
[WorkflowClient]at
org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:195)
[WorkflowClient]at
org.jboss.ejb.StatefulSessionContainer.invoke(StatefulSessionContainer.java:
326)
[WorkflowClient]at
org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(JRMPContainerI
nvoker.java:482)
[WorkflowClient]at
org.jboss.ejb.plugins.jrmp.interfaces.StatefulSessionProxy.invoke(StatefulSe
ssionProxy.java:160)
[WorkflowClient]at $Proxy17.getWorkItems(Unknown Source)
[WorkflowClient]at
com.cf.rt.client.WfoWorkflowHelper.getWorkItems(WfoWorkflowHelper.java:576)

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Dain
Sundstrom
Sent: 19 May 2001 16:20
To: '[EMAIL PROTECTED]'
Subject: RE: [JBoss-user] Please help :-( tomcat Servlet => Jboss EJB =>
JAAS Authentiaction


I don't think this is an EJB problem. Can you store any value (say a String)
in the session and retrieve it later.  If you cannot, you are loosing the
cookie or session id on the web client.

This is a common way a web server works.  There is a thread pool that handle
the incoming requests.  The code I posted sets the user credentials for each
request so your credentials extend to each thread.

I'm still tired so I hope that made sense.  Can you post the exception you
are getting on the second request. Also, is the system reporting that your
user is authenticated before each request is processes?

-dain

-Original Message-
From: Lewis Henderson [mailto:[EMAIL PROTECTED]]
Sent: Saturday, May 19, 2001 9:07 AM
To: [EMAIL PROTECTED]
Subject: RE: [JBoss-user] Please help :-( tomcat Servlet => Jboss EJB =>
JAAS Authentiaction


...I am using 'struts' with an initial logon action that connects to a
StatefulSessionBean and stores its reference in the session for use by
actions later on in th

RE: [JBoss-user] Please help :-( tomcat Servlet => Jboss EJB => JAAS Authentiaction

2001-05-19 Thread Dain Sundstrom

I don't think this is an EJB problem. Can you store any value (say a String)
in the session and retrieve it later.  If you cannot, you are loosing the
cookie or session id on the web client.  

This is a common way a web server works.  There is a thread pool that handle
the incoming requests.  The code I posted sets the user credentials for each
request so your credentials extend to each thread.  

I'm still tired so I hope that made sense.  Can you post the exception you
are getting on the second request. Also, is the system reporting that your
user is authenticated before each request is processes?

-dain

-Original Message-
From: Lewis Henderson [mailto:[EMAIL PROTECTED]]
Sent: Saturday, May 19, 2001 9:07 AM
To: [EMAIL PROTECTED]
Subject: RE: [JBoss-user] Please help :-( tomcat Servlet => Jboss EJB =>
JAAS Authentiaction


...I am using 'struts' with an initial logon action that connects to a
StatefulSessionBean and stores its reference in the session for use by
actions later on in the process...The initial connection and all method
calls in the logon action work ok as this is thread1 however when the
reference is retrieved from the session by another action it (may) executes
in thread2...This is where all the wheels drop off!

Lewis

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of marc fleury
Sent: 19 May 2001 14:46
To: [EMAIL PROTECTED]
Subject: RE: [JBoss-user] Please help :-( tomcat Servlet => Jboss EJB =>
JAAS Authentiaction


If the threads are spawned by a same thread, we need to implement
InheritableThreadLocal behavior and then the associations are kept in the
child threads.

marc


|-Original Message-
|From: [EMAIL PROTECTED]
|[mailto:[EMAIL PROTECTED]]On Behalf Of Lewis
|Henderson
|Sent: Saturday, May 19, 2001 7:24 AM
|To: [EMAIL PROTECTED]
|Subject: RE: [JBoss-user] Please help :-( tomcat Servlet => Jboss EJB =>
|JAAS Authentiaction
|
|
|...I've found the cause of my original problem...now I need an answer...
|
|My client is multi-threaded...I login successfully on the first
|thread...then when another thread tries to use the remote interface (stored
|in the session) I get the security exception!
|
|Is this just a config issue or something deeper?
|
|
|Lewis
|
|-Original Message-
|From: [EMAIL PROTECTED]
|[mailto:[EMAIL PROTECTED]]On Behalf Of awc
|Sent: 18 May 2001 22:01
|To: [EMAIL PROTECTED]
|Subject: Re: [JBoss-user] Please help :-( tomcat Servlet => Jboss EJB =>
|JAAS Authentiaction
|
|
|OK, so this pipes into to what ever you have set up.
|Tks for the clarification.
|
|anil.
|
|Dain Sundstrom wrote:
|
|> Anil,
|>
|> No, the code I posted simply hands login off to JAAS.  You can use the
|> JaasServerLoginModule, the DatabaseServerLoginModule, or any other login
|> module (I wrote my own).  By default JBoss 'other' context uses the
|> JaasServerLoginModule which uses a users.properties and roles.properties
|> files.
|>
|> -dain
|
|
|___
|JBoss-user mailing list
|[EMAIL PROTECTED]
|http://lists.sourceforge.net/lists/listinfo/jboss-user
|
|
|___
|JBoss-user mailing list
|[EMAIL PROTECTED]
|http://lists.sourceforge.net/lists/listinfo/jboss-user



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


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

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



RE: [JBoss-user] Please help :-( tomcat Servlet => Jboss EJB => JAAS Authentiaction

2001-05-19 Thread Lewis Henderson

...this is defiantly NOT my area of expertise...how do we get this done?

Are there any examples of similar stuff, or is it 'open heart surgery' ?

Lewis

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of marc fleury
Sent: 19 May 2001 15:24
To: [EMAIL PROTECTED]
Subject: RE: [JBoss-user] Please help :-( tomcat Servlet => Jboss EJB =>
JAAS Authentiaction


|...I am using 'struts' with an initial logon action that connects to a
|StatefulSessionBean and stores its reference in the session for use by
|actions later on in the process...The initial connection and all method
|calls in the logon action work ok as this is thread1 however when the
|reference is retrieved from the session by another action it (may) executes
|in thread2...This is where all the wheels drop off!

Yes I repeat that the associations are done at the thread level and if you
use another thread you don't have the associations hence your application is
not "authenticated".  The only way around is a ITL construct in the security
and transaction storages.

Actions in struts are executed by independent threads??? The flow is not
thread family dependent?

marc
|
|Lewis
|
|-Original Message-
|From: [EMAIL PROTECTED]
|[mailto:[EMAIL PROTECTED]]On Behalf Of marc fleury
|Sent: 19 May 2001 14:46
|To: [EMAIL PROTECTED]
|Subject: RE: [JBoss-user] Please help :-( tomcat Servlet => Jboss EJB =>
|JAAS Authentiaction
|
|
|If the threads are spawned by a same thread, we need to implement
|InheritableThreadLocal behavior and then the associations are kept in the
|child threads.
|
|marc
|
|
||-Original Message-
||From: [EMAIL PROTECTED]
||[mailto:[EMAIL PROTECTED]]On Behalf Of Lewis
||Henderson
||Sent: Saturday, May 19, 2001 7:24 AM
||To: [EMAIL PROTECTED]
||Subject: RE: [JBoss-user] Please help :-( tomcat Servlet => Jboss EJB =>
||JAAS Authentiaction
||
||
||...I've found the cause of my original problem...now I need an answer...
||
||My client is multi-threaded...I login successfully on the first
||thread...then when another thread tries to use the remote
|interface (stored
||in the session) I get the security exception!
||
||Is this just a config issue or something deeper?
||
||
||Lewis
||
||-Original Message-
||From: [EMAIL PROTECTED]
||[mailto:[EMAIL PROTECTED]]On Behalf Of awc
||Sent: 18 May 2001 22:01
||To: [EMAIL PROTECTED]
||Subject: Re: [JBoss-user] Please help :-( tomcat Servlet => Jboss EJB =>
||JAAS Authentiaction
||
||
||OK, so this pipes into to what ever you have set up.
||Tks for the clarification.
||
||anil.
||
||Dain Sundstrom wrote:
||
||> Anil,
||>
||> No, the code I posted simply hands login off to JAAS.  You can use the
||> JaasServerLoginModule, the DatabaseServerLoginModule, or any other login
||> module (I wrote my own).  By default JBoss 'other' context uses the
||> JaasServerLoginModule which uses a users.properties and roles.properties
||> files.
||>
||> -dain
||
||
||___
||JBoss-user mailing list
||[EMAIL PROTECTED]
||http://lists.sourceforge.net/lists/listinfo/jboss-user
||
||
||___
||JBoss-user mailing list
||[EMAIL PROTECTED]
||http://lists.sourceforge.net/lists/listinfo/jboss-user
|
|
|
|___
|JBoss-user mailing list
|[EMAIL PROTECTED]
|http://lists.sourceforge.net/lists/listinfo/jboss-user
|
|
|___
|JBoss-user mailing list
|[EMAIL PROTECTED]
|http://lists.sourceforge.net/lists/listinfo/jboss-user



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


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



RE: [JBoss-user] Please help :-( tomcat Servlet => Jboss EJB => JAAS Authentiaction

2001-05-19 Thread marc fleury

|...I am using 'struts' with an initial logon action that connects to a
|StatefulSessionBean and stores its reference in the session for use by
|actions later on in the process...The initial connection and all method
|calls in the logon action work ok as this is thread1 however when the
|reference is retrieved from the session by another action it (may) executes
|in thread2...This is where all the wheels drop off!

Yes I repeat that the associations are done at the thread level and if you
use another thread you don't have the associations hence your application is
not "authenticated".  The only way around is a ITL construct in the security
and transaction storages.

Actions in struts are executed by independent threads??? The flow is not
thread family dependent?

marc
|
|Lewis
|
|-Original Message-
|From: [EMAIL PROTECTED]
|[mailto:[EMAIL PROTECTED]]On Behalf Of marc fleury
|Sent: 19 May 2001 14:46
|To: [EMAIL PROTECTED]
|Subject: RE: [JBoss-user] Please help :-( tomcat Servlet => Jboss EJB =>
|JAAS Authentiaction
|
|
|If the threads are spawned by a same thread, we need to implement
|InheritableThreadLocal behavior and then the associations are kept in the
|child threads.
|
|marc
|
|
||-Original Message-
||From: [EMAIL PROTECTED]
||[mailto:[EMAIL PROTECTED]]On Behalf Of Lewis
||Henderson
||Sent: Saturday, May 19, 2001 7:24 AM
||To: [EMAIL PROTECTED]
||Subject: RE: [JBoss-user] Please help :-( tomcat Servlet => Jboss EJB =>
||JAAS Authentiaction
||
||
||...I've found the cause of my original problem...now I need an answer...
||
||My client is multi-threaded...I login successfully on the first
||thread...then when another thread tries to use the remote
|interface (stored
||in the session) I get the security exception!
||
||Is this just a config issue or something deeper?
||
||
||Lewis
||
||-Original Message-
||From: [EMAIL PROTECTED]
||[mailto:[EMAIL PROTECTED]]On Behalf Of awc
||Sent: 18 May 2001 22:01
||To: [EMAIL PROTECTED]
||Subject: Re: [JBoss-user] Please help :-( tomcat Servlet => Jboss EJB =>
||JAAS Authentiaction
||
||
||OK, so this pipes into to what ever you have set up.
||Tks for the clarification.
||
||anil.
||
||Dain Sundstrom wrote:
||
||> Anil,
||>
||> No, the code I posted simply hands login off to JAAS.  You can use the
||> JaasServerLoginModule, the DatabaseServerLoginModule, or any other login
||> module (I wrote my own).  By default JBoss 'other' context uses the
||> JaasServerLoginModule which uses a users.properties and roles.properties
||> files.
||>
||> -dain
||
||
||___
||JBoss-user mailing list
||[EMAIL PROTECTED]
||http://lists.sourceforge.net/lists/listinfo/jboss-user
||
||
||___
||JBoss-user mailing list
||[EMAIL PROTECTED]
||http://lists.sourceforge.net/lists/listinfo/jboss-user
|
|
|
|___
|JBoss-user mailing list
|[EMAIL PROTECTED]
|http://lists.sourceforge.net/lists/listinfo/jboss-user
|
|
|___
|JBoss-user mailing list
|[EMAIL PROTECTED]
|http://lists.sourceforge.net/lists/listinfo/jboss-user



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



RE: [JBoss-user] Please help :-( tomcat Servlet => Jboss EJB => JAAS Authentiaction

2001-05-19 Thread Lewis Henderson

...I am using 'struts' with an initial logon action that connects to a
StatefulSessionBean and stores its reference in the session for use by
actions later on in the process...The initial connection and all method
calls in the logon action work ok as this is thread1 however when the
reference is retrieved from the session by another action it (may) executes
in thread2...This is where all the wheels drop off!

Lewis

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of marc fleury
Sent: 19 May 2001 14:46
To: [EMAIL PROTECTED]
Subject: RE: [JBoss-user] Please help :-( tomcat Servlet => Jboss EJB =>
JAAS Authentiaction


If the threads are spawned by a same thread, we need to implement
InheritableThreadLocal behavior and then the associations are kept in the
child threads.

marc


|-Original Message-
|From: [EMAIL PROTECTED]
|[mailto:[EMAIL PROTECTED]]On Behalf Of Lewis
|Henderson
|Sent: Saturday, May 19, 2001 7:24 AM
|To: [EMAIL PROTECTED]
|Subject: RE: [JBoss-user] Please help :-( tomcat Servlet => Jboss EJB =>
|JAAS Authentiaction
|
|
|...I've found the cause of my original problem...now I need an answer...
|
|My client is multi-threaded...I login successfully on the first
|thread...then when another thread tries to use the remote interface (stored
|in the session) I get the security exception!
|
|Is this just a config issue or something deeper?
|
|
|Lewis
|
|-Original Message-
|From: [EMAIL PROTECTED]
|[mailto:[EMAIL PROTECTED]]On Behalf Of awc
|Sent: 18 May 2001 22:01
|To: [EMAIL PROTECTED]
|Subject: Re: [JBoss-user] Please help :-( tomcat Servlet => Jboss EJB =>
|JAAS Authentiaction
|
|
|OK, so this pipes into to what ever you have set up.
|Tks for the clarification.
|
|anil.
|
|Dain Sundstrom wrote:
|
|> Anil,
|>
|> No, the code I posted simply hands login off to JAAS.  You can use the
|> JaasServerLoginModule, the DatabaseServerLoginModule, or any other login
|> module (I wrote my own).  By default JBoss 'other' context uses the
|> JaasServerLoginModule which uses a users.properties and roles.properties
|> files.
|>
|> -dain
|
|
|___
|JBoss-user mailing list
|[EMAIL PROTECTED]
|http://lists.sourceforge.net/lists/listinfo/jboss-user
|
|
|___
|JBoss-user mailing list
|[EMAIL PROTECTED]
|http://lists.sourceforge.net/lists/listinfo/jboss-user



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


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



RE: [JBoss-user] Please help :-( tomcat Servlet => Jboss EJB => JAAS Authentiaction

2001-05-19 Thread marc fleury

If the threads are spawned by a same thread, we need to implement
InheritableThreadLocal behavior and then the associations are kept in the
child threads.

marc


|-Original Message-
|From: [EMAIL PROTECTED]
|[mailto:[EMAIL PROTECTED]]On Behalf Of Lewis
|Henderson
|Sent: Saturday, May 19, 2001 7:24 AM
|To: [EMAIL PROTECTED]
|Subject: RE: [JBoss-user] Please help :-( tomcat Servlet => Jboss EJB =>
|JAAS Authentiaction
|
|
|...I've found the cause of my original problem...now I need an answer...
|
|My client is multi-threaded...I login successfully on the first
|thread...then when another thread tries to use the remote interface (stored
|in the session) I get the security exception!
|
|Is this just a config issue or something deeper?
|
|
|Lewis
|
|-Original Message-
|From: [EMAIL PROTECTED]
|[mailto:[EMAIL PROTECTED]]On Behalf Of awc
|Sent: 18 May 2001 22:01
|To: [EMAIL PROTECTED]
|Subject: Re: [JBoss-user] Please help :-( tomcat Servlet => Jboss EJB =>
|JAAS Authentiaction
|
|
|OK, so this pipes into to what ever you have set up.
|Tks for the clarification.
|
|anil.
|
|Dain Sundstrom wrote:
|
|> Anil,
|>
|> No, the code I posted simply hands login off to JAAS.  You can use the
|> JaasServerLoginModule, the DatabaseServerLoginModule, or any other login
|> module (I wrote my own).  By default JBoss 'other' context uses the
|> JaasServerLoginModule which uses a users.properties and roles.properties
|> files.
|>
|> -dain
|
|
|___
|JBoss-user mailing list
|[EMAIL PROTECTED]
|http://lists.sourceforge.net/lists/listinfo/jboss-user
|
|
|___
|JBoss-user mailing list
|[EMAIL PROTECTED]
|http://lists.sourceforge.net/lists/listinfo/jboss-user



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



RE: [JBoss-user] Please help :-( tomcat Servlet => Jboss EJB => JAAS Authentiaction

2001-05-19 Thread Lewis Henderson

...I've found the cause of my original problem...now I need an answer...

My client is multi-threaded...I login successfully on the first
thread...then when another thread tries to use the remote interface (stored
in the session) I get the security exception!

Is this just a config issue or something deeper?


Lewis

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of awc
Sent: 18 May 2001 22:01
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Please help :-( tomcat Servlet => Jboss EJB =>
JAAS Authentiaction


OK, so this pipes into to what ever you have set up.
Tks for the clarification.

anil.

Dain Sundstrom wrote:

> Anil,
>
> No, the code I posted simply hands login off to JAAS.  You can use the
> JaasServerLoginModule, the DatabaseServerLoginModule, or any other login
> module (I wrote my own).  By default JBoss 'other' context uses the
> JaasServerLoginModule which uses a users.properties and roles.properties
> files.
>
> -dain


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


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



Re: [JBoss-user] Please help :-( tomcat Servlet => Jboss EJB => JAAS Authentiaction

2001-05-18 Thread awc

OK, so this pipes into to what ever you have set up.
Tks for the clarification.

anil.

Dain Sundstrom wrote:

> Anil,
>
> No, the code I posted simply hands login off to JAAS.  You can use the
> JaasServerLoginModule, the DatabaseServerLoginModule, or any other login
> module (I wrote my own).  By default JBoss 'other' context uses the
> JaasServerLoginModule which uses a users.properties and roles.properties
> files.
>
> -dain


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



RE: [JBoss-user] Please help :-( tomcat Servlet => Jboss EJB => JAAS Authentiaction

2001-05-18 Thread Dain Sundstrom

Anil,

No, the code I posted simply hands login off to JAAS.  You can use the
JaasServerLoginModule, the DatabaseServerLoginModule, or any other login
module (I wrote my own).  By default JBoss 'other' context uses the
JaasServerLoginModule which uses a users.properties and roles.properties
files.

-dain

-Original Message-
From: awc [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 18, 2001 12:26 PM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Please help :-( tomcat Servlet => Jboss EJB =>
JAAS Authentiaction


Dain,  don't you have to add this to auth.conf (if you use PostgreSQL)

 org.jboss.security.plugins.samples.DatabaseServerLoginModule required
dsJndiName="java:/jdbc/PostgresDB" principalsQuery="select password from
principals where principalid=?" rolesQuery="select role, rolegroup from
roles
where principalid=?";


or how does jboss know which db and tables to use?

anil

Dain Sundstrom wrote:

> Last month I sent the following message, which details how I integrated
the
> Tomcat and JBoss security systems. Scott Stark has written a new JBoss
realm
> that work similar to mine.  His new JBoss realm is available in CVS (I'm
not
> sure where) and I think will be in the next release of JBoss.
>
> I have made some minor changes since I last posted the code.
>
> Dain Sundstrom
>
> 
> Recently, I have seen several posts asking how to integrate Tomcat and
JBoss
> security.  The current JBossRealm requires you to add users to both the
> tomcat and JBoss security systems or configure the tomcat JDBCRealm and
> JBoss DatabaseServerLoginModule to point to the same database table.  This
> is all a big pain, so I wrote a new Tomcat interceptor which performs
> authentication and authorization via the JBoss JAAS code.  The steps
> required to setup this interceptor follow.
>
> 1. Create the jar
> a. Copy the code (later in message) onto your machine. You can
> change the package if you like.
> b. Compile (requires servlet.jar webserver.jar jaas.jar
> jboss-jaas.jar jbosssx.jar)
> c. Jar it
> d. Copy it to jboss/lib/ext
>
> Here is the ant target I use.
> 
> 
> 
>includes="com/hypothermic/security/*.class" />
> 
>todir="${jboss.lib}/ext" />
> 
>
> 2. Secure your EJBs.
> a. ejb-jar.xml Mark your EJBs as protected.
>
> 
> 
> user
> 
> YourBean
> *
> 
> 
> 
>
> b. jboss.xml Set the authentication and authorization manager.
>
> 
> 
> Standard CMP
> EntityBean
>
> java:/jaas/other
>
> java:/jaas/other
> 
> 
>
> 
> 
> YourBean Standard CMP
> EntityBean
> 
> 
>
> 3. Secure your WAR (web.xml)
> 
> 
> util
> /protected/*
> 
> 
> user
> 
> 
>
> 
> FORM
> 
> /login.jsp
> /login.jsp
> 
> 
>
> 4. Setup Tomcat
> a. add interceptor to server.xml immediately before the
> LoadOnStartupInterceptor
>
>  className="com.hypothermic.security.HypothermicRealm" />
>
> You can also configure the interceptor here in the server.xml
> The following line turns off anonymous login.
>
>  className="com.hypothermic.security.HypothermicRealm"
> allowAnonymousLogin="false" />
>
> b. Comment out all other security interceptors (SimpleRealm
> JbossRealm JDBCRealm).
>
> 5. Add your users to JBoss
>
> I hope I didn't leave out any steps.  If you find any bugs or have any
> enhancements, please email me.
>
> -Dain Sundstrom
>
> =
> package com.hypothermic.security;
>
> import org.apache.tomcat.core.Request;
> import org.apache.tomcat.core.Response;
> import org.apache.tomcat.core.Context;
>
> import org.apache.tomc

RE: [JBoss-user] Please help :-( tomcat Servlet => Jboss EJB => JAAS Authentiaction

2001-05-18 Thread Lewis Henderson

...I spoke a little too soon...

I connect OK, I keep my principal for about 15 seconds as I move between my
EJBs then all of a sudden I get a

[WorkflowClient] Authentication exception, principal=null
[WorkflowClient] TRANSACTION ROLLBACK EXCEPTION:checkSecurityAssociation;
nested exception is:
java.lang.SecurityException: Authentication exception; nested
exception is:
java.rmi.RemoteException: checkSecurityAssociation; nested exception
is:
java.lang.SecurityException: Authentication exception
[WorkflowClient] java.rmi.RemoteException: checkSecurityAssociation; nested
exception is:
[WorkflowClient]java.lang.SecurityException: Authentication
exception
[WorkflowClient] java.lang.SecurityException: Authentication exception
[WorkflowClient]at
org.jboss.ejb.plugins.SecurityInterceptor.checkSecurityAssociation(SecurityI
nterceptor.java:212)
[WorkflowClient]at
org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:16
9)
[WorkflowClient]at
org.jboss.ejb.plugins.StatefulSessionInstanceInterceptor.invoke(StatefulSess
ionInstanceInterceptor.java:209)
[WorkflowClient]at
org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxInterceptorCMT.java:133)
[WorkflowClient]at
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.
java:263)
[WorkflowClient]at
org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:99)
[WorkflowClient]at
org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:195)
[WorkflowClient]at
org.jboss.ejb.StatefulSessionContainer.invoke(StatefulSessionContainer.java:
326)
[WorkflowClient]at
org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(JRMPContainerI
nvoker.java:482)
[WorkflowClient]at
org.jboss.ejb.plugins.jrmp.interfaces.StatefulSessionProxy.invoke(StatefulSe
ssionProxy.java:150)


...what the ?*#@s going on?


Lewis
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Dain
Sundstrom
Sent: 18 May 2001 16:39
To: '[EMAIL PROTECTED]'
Subject: RE: [JBoss-user] Please help :-( tomcat Servlet => Jboss EJB =>
JAAS Authentiaction


Last month I sent the following message, which details how I integrated the
Tomcat and JBoss security systems. Scott Stark has written a new JBoss realm
that work similar to mine.  His new JBoss realm is available in CVS (I'm not
sure where) and I think will be in the next release of JBoss.

I have made some minor changes since I last posted the code.

Dain Sundstrom


Recently, I have seen several posts asking how to integrate Tomcat and JBoss
security.  The current JBossRealm requires you to add users to both the
tomcat and JBoss security systems or configure the tomcat JDBCRealm and
JBoss DatabaseServerLoginModule to point to the same database table.  This
is all a big pain, so I wrote a new Tomcat interceptor which performs
authentication and authorization via the JBoss JAAS code.  The steps
required to setup this interceptor follow.

1. Create the jar
a. Copy the code (later in message) onto your machine. You can
change the package if you like.
b. Compile (requires servlet.jar webserver.jar jaas.jar
jboss-jaas.jar jbosssx.jar)
c. Jar it
d. Copy it to jboss/lib/ext

Here is the ant target I use.








2. Secure your EJBs.
a. ejb-jar.xml Mark your EJBs as protected.



user

YourBean
*




b. jboss.xml Set the authentication and authorization manager.



Standard CMP
EntityBean

java:/jaas/other

java:/jaas/other





YourBeanStandard CMP
EntityBean



3. Secure your WAR (web.xml)


util
/protected/*


user




FORM

/login.jsp
/login.jsp



4. Setup Tomcat
a. add interceptor to server.xml immediately before the
LoadOnStartupInterceptor



You can also configure the interceptor here in the server.xml
The following line turns off anonymous login.



b. Comment out all other security interceptors (SimpleRealm
JbossRealm JDBCRealm).

5. Add your users to JBoss

I hope I didn't leave out any steps.  If you find any bugs or have any
enhancement

Re: [JBoss-user] Please help :-( tomcat Servlet => Jboss EJB => JAAS Authentiaction

2001-05-18 Thread awc

Dain,  don't you have to add this to auth.conf (if you use PostgreSQL)

 org.jboss.security.plugins.samples.DatabaseServerLoginModule required
dsJndiName="java:/jdbc/PostgresDB" principalsQuery="select password from
principals where principalid=?" rolesQuery="select role, rolegroup from roles
where principalid=?";


or how does jboss know which db and tables to use?

anil

Dain Sundstrom wrote:

> Last month I sent the following message, which details how I integrated the
> Tomcat and JBoss security systems. Scott Stark has written a new JBoss realm
> that work similar to mine.  His new JBoss realm is available in CVS (I'm not
> sure where) and I think will be in the next release of JBoss.
>
> I have made some minor changes since I last posted the code.
>
> Dain Sundstrom
>
> 
> Recently, I have seen several posts asking how to integrate Tomcat and JBoss
> security.  The current JBossRealm requires you to add users to both the
> tomcat and JBoss security systems or configure the tomcat JDBCRealm and
> JBoss DatabaseServerLoginModule to point to the same database table.  This
> is all a big pain, so I wrote a new Tomcat interceptor which performs
> authentication and authorization via the JBoss JAAS code.  The steps
> required to setup this interceptor follow.
>
> 1. Create the jar
> a. Copy the code (later in message) onto your machine. You can
> change the package if you like.
> b. Compile (requires servlet.jar webserver.jar jaas.jar
> jboss-jaas.jar jbosssx.jar)
> c. Jar it
> d. Copy it to jboss/lib/ext
>
> Here is the ant target I use.
> 
> 
> 
>includes="com/hypothermic/security/*.class" />
> 
>todir="${jboss.lib}/ext" />
> 
>
> 2. Secure your EJBs.
> a. ejb-jar.xml Mark your EJBs as protected.
>
> 
> 
> user
> 
> YourBean
> *
> 
> 
> 
>
> b. jboss.xml Set the authentication and authorization manager.
>
> 
> 
> Standard CMP
> EntityBean
>
> java:/jaas/other
>
> java:/jaas/other
> 
> 
>
> 
> 
> YourBean Standard CMP
> EntityBean
> 
> 
>
> 3. Secure your WAR (web.xml)
> 
> 
> util
> /protected/*
> 
> 
> user
> 
> 
>
> 
> FORM
> 
> /login.jsp
> /login.jsp
> 
> 
>
> 4. Setup Tomcat
> a. add interceptor to server.xml immediately before the
> LoadOnStartupInterceptor
>
>  className="com.hypothermic.security.HypothermicRealm" />
>
> You can also configure the interceptor here in the server.xml
> The following line turns off anonymous login.
>
>  className="com.hypothermic.security.HypothermicRealm"
> allowAnonymousLogin="false" />
>
> b. Comment out all other security interceptors (SimpleRealm
> JbossRealm JDBCRealm).
>
> 5. Add your users to JBoss
>
> I hope I didn't leave out any steps.  If you find any bugs or have any
> enhancements, please email me.
>
> -Dain Sundstrom
>
> =
> package com.hypothermic.security;
>
> import org.apache.tomcat.core.Request;
> import org.apache.tomcat.core.Response;
> import org.apache.tomcat.core.Context;
>
> import org.apache.tomcat.util.SecurityTools;
> import org.apache.tomcat.core.BaseInterceptor;
>
> import org.jboss.security.SecurityAssociation;
> import org.jboss.security.SimplePrincipal;
> import org.jboss.security.auth.UsernamePasswordHandler;
>
> import javax.servlet.http.HttpSession;
>
> import javax.security.auth.Subject;
> import javax.security.auth.callback.CallbackHandler;
> import javax.security.auth.login.LoginContext;
> import javax.security.auth.login.LoginException;
>
> import java.security.Principal;
> import java.security.acl.Group;
>
> import java.util.Enumeration;
> import java.util.Iterator;
> import java.util.Set;
> import java.util.HashSet;
> import java.util.Hashtable;
>
> /**
>  * Integrates Tomcat and Jboss security by redirecting Tomcat authentication
> and authorization
>  * calls to the JBoss JAAS code.
>  * @author Dain Sundstrom
>  */
> public class HypothermicRealm extends BaseInterceptor {
> private String subjectKey = "j_subject";
> private String loginContextName = "other";

RE: [JBoss-user] Please help :-( tomcat Servlet => Jboss EJB => JAAS Authentiaction

2001-05-18 Thread Lewis Henderson

EXCELLENT > 2 Birds with one stone...

My problem was not quite as you answered...however

I shall use this code when I secure my WebApp !

My Problem was that when I use loginContext.login() in a connection bean
(Used by both Swing apps and a struts Action) to authenticate the user to
enable them to access my EJBs, it worked for swing but not for action.
Looking through your code I see SecurityAssociation.setPrincipal() and
SecurityAssociation.setCredentials()...I did not call these !!! When I call
them, after a successful login it all works!!!

Question 1
  Should I need to call these methods... and

Question 2
  SecurityAssociation and related classes are in the JBoss jars...This makes
my code proprietary! (I want JAAS only!!!), how can I get round it?


Lewis

Thanks again, you've saved my hair !

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Dain
Sundstrom
Sent: 18 May 2001 16:39
To: '[EMAIL PROTECTED]'
Subject: RE: [JBoss-user] Please help :-( tomcat Servlet => Jboss EJB =>
JAAS Authentiaction


Last month I sent the following message, which details how I integrated the
Tomcat and JBoss security systems. Scott Stark has written a new JBoss realm
that work similar to mine.  His new JBoss realm is available in CVS (I'm not
sure where) and I think will be in the next release of JBoss.

I have made some minor changes since I last posted the code.

Dain Sundstrom


Recently, I have seen several posts asking how to integrate Tomcat and JBoss
security.  The current JBossRealm requires you to add users to both the
tomcat and JBoss security systems or configure the tomcat JDBCRealm and
JBoss DatabaseServerLoginModule to point to the same database table.  This
is all a big pain, so I wrote a new Tomcat interceptor which performs
authentication and authorization via the JBoss JAAS code.  The steps
required to setup this interceptor follow.

1. Create the jar
a. Copy the code (later in message) onto your machine. You can
change the package if you like.
b. Compile (requires servlet.jar webserver.jar jaas.jar
jboss-jaas.jar jbosssx.jar)
c. Jar it
d. Copy it to jboss/lib/ext

Here is the ant target I use.








2. Secure your EJBs.
a. ejb-jar.xml Mark your EJBs as protected.



user

YourBean
*




b. jboss.xml Set the authentication and authorization manager.



Standard CMP
EntityBean

java:/jaas/other

java:/jaas/other





YourBeanStandard CMP
EntityBean



3. Secure your WAR (web.xml)


util
/protected/*


user




FORM

/login.jsp
/login.jsp



4. Setup Tomcat
a. add interceptor to server.xml immediately before the
LoadOnStartupInterceptor



You can also configure the interceptor here in the server.xml
The following line turns off anonymous login.



b. Comment out all other security interceptors (SimpleRealm
JbossRealm JDBCRealm).

5. Add your users to JBoss

I hope I didn't leave out any steps.  If you find any bugs or have any
enhancements, please email me.

-Dain Sundstrom

=
package com.hypothermic.security;

import org.apache.tomcat.core.Request;
import org.apache.tomcat.core.Response;
import org.apache.tomcat.core.Context;

import org.apache.tomcat.util.SecurityTools;
import org.apache.tomcat.core.BaseInterceptor;

import org.jboss.security.SecurityAssociation;
import org.jboss.security.SimplePrincipal;
import org.jboss.security.auth.UsernamePasswordHandler;

import javax.servlet.http.HttpSession;

import javax.security.auth.Subject;
import javax.security.auth.callback.CallbackHandler;
import javax.security.auth.login.LoginContext;
import javax.security.auth.login.LoginException;

import java.security.Principal;
import java.security.acl.Group;

import java.util.Enumeration;
import java.util.Iterator;
import java.util.Set;
import java.util.HashSet;
import java.util.Hashtable;

/**
 * Integrates Tomcat and Jboss security by redirecting Tomcat authentication
and authorization
 * calls to the JBoss JAAS code.
 * @author Dain Sundstrom
 */
public class Hypoth

RE: [JBoss-user] Please help :-( tomcat Servlet => Jboss EJB => JAAS Authentiaction

2001-05-18 Thread Dain Sundstrom

Last month I sent the following message, which details how I integrated the
Tomcat and JBoss security systems. Scott Stark has written a new JBoss realm
that work similar to mine.  His new JBoss realm is available in CVS (I'm not
sure where) and I think will be in the next release of JBoss.  

I have made some minor changes since I last posted the code.

Dain Sundstrom


Recently, I have seen several posts asking how to integrate Tomcat and JBoss
security.  The current JBossRealm requires you to add users to both the
tomcat and JBoss security systems or configure the tomcat JDBCRealm and
JBoss DatabaseServerLoginModule to point to the same database table.  This
is all a big pain, so I wrote a new Tomcat interceptor which performs
authentication and authorization via the JBoss JAAS code.  The steps
required to setup this interceptor follow.

1. Create the jar
a. Copy the code (later in message) onto your machine. You can
change the package if you like.
b. Compile (requires servlet.jar webserver.jar jaas.jar 
jboss-jaas.jar jbosssx.jar)
c. Jar it
d. Copy it to jboss/lib/ext

Here is the ant target I use. 








2. Secure your EJBs.
a. ejb-jar.xml Mark your EJBs as protected.



user

YourBean
*




b. jboss.xml Set the authentication and authorization manager.



Standard CMP
EntityBean

java:/jaas/other

java:/jaas/other





YourBeanStandard CMP
EntityBean



3. Secure your WAR (web.xml)


util
/protected/*


user




FORM

/login.jsp
/login.jsp



4. Setup Tomcat
a. add interceptor to server.xml immediately before the
LoadOnStartupInterceptor



You can also configure the interceptor here in the server.xml
The following line turns off anonymous login.



b. Comment out all other security interceptors (SimpleRealm
JbossRealm JDBCRealm).

5. Add your users to JBoss 

I hope I didn't leave out any steps.  If you find any bugs or have any
enhancements, please email me.  

-Dain Sundstrom

=
package com.hypothermic.security;

import org.apache.tomcat.core.Request;
import org.apache.tomcat.core.Response;
import org.apache.tomcat.core.Context;

import org.apache.tomcat.util.SecurityTools;
import org.apache.tomcat.core.BaseInterceptor;

import org.jboss.security.SecurityAssociation;
import org.jboss.security.SimplePrincipal;
import org.jboss.security.auth.UsernamePasswordHandler;

import javax.servlet.http.HttpSession;

import javax.security.auth.Subject;
import javax.security.auth.callback.CallbackHandler;
import javax.security.auth.login.LoginContext;
import javax.security.auth.login.LoginException;

import java.security.Principal;
import java.security.acl.Group;

import java.util.Enumeration;
import java.util.Iterator;
import java.util.Set;
import java.util.HashSet;
import java.util.Hashtable;

/**
 * Integrates Tomcat and Jboss security by redirecting Tomcat authentication
and authorization
 * calls to the JBoss JAAS code.
 * @author Dain Sundstrom
 */
public class HypothermicRealm extends BaseInterceptor {
private String subjectKey = "j_subject";
private String loginContextName = "other";
private boolean credentialsFromRequest = true;
private boolean allowAnonymousLogin = true;
private String anonymousUsername = "anonymous";
private String anonymousPassword = "anonymous";

/**
 * The key that is used to store the Subject in the session
attributes.
 * @param subjectKey the key 
 */
public void setSubjectKey(String subjectKey) {
this.subjectKey = subjectKey;
}

/**
 * The name used by JAAS during Login for determining spi
 * @param loginContextName the name
 */
public void setLoginContextName(String loginContextName) {
this.loginContextName = loginContextName;
}

/**
 * Should the request be checked for credentials.
 */
public void setCredentialsFromRequest(String credentialsFromRequest)

[JBoss-user] Please help :-( tomcat Servlet => Jboss EJB => JAAS Authentiaction

2001-05-18 Thread Lewis Henderson



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Lewis
Henderson
Sent: 15 May 2001 17:19
To: JBoss User (E-mail)
Subject: [JBoss-user] Example Servlet Connecting to EJB using JAAS


Does anyone have an example of servlet connecting to an EJB in JBoss using
JAAS?

I have a 'struts' war file with an Action that creates a 'WorkflowClient'
bean...Using a regular 'Swing' application everything works, but I get the
exception below when accessed from the Action...As you can see the user has
been authorised...Any help/pointers will be much appreciated...

Lewis

[JAASSecurity] User 'Paul' authenticated.
[EmbeddedTomcat] Principal => Paul [org.jboss.security.SimplePrincipal]
[EmbeddedTomcat] Group => Roles [org.jboss.security.NestableGroup]
[EmbeddedTomcat]Principal => Echo
[org.jboss.security.SimplePrincipal]
[EmbeddedTomcat]Principal => Users
[org.jboss.security.SimplePrincipal]
[EmbeddedTomcat]Principal => PaulPrincipal
[org.jboss.security.SimplePrincipal]
[EmbeddedTomcat] Group => CallerPrincipal [org.jboss.security.NestableGroup]
[Thread-13] DEBUG client.WfoWorkflowHelper -
getResource(/RMI/JNDIWorkflowClient,{java.naming.provider.url=localhost:1099
, java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory,
java.naming.factory.url.pkgs=org.jboss.naming,
java.naming.security.principal=Paul, java.naming.security.credentials=paul})
[Thread-13] DEBUG client.WorkflowClientBean - setSessionContext(.)
[WorkflowClient] Authentication exception, principal=null
[WorkflowClient] TRANSACTION ROLLBACK EXCEPTION:checkSecurityAssociation;
nested exception is:
java.lang.SecurityException: Authentication exception; nested
exception is:
java.rmi.RemoteException: checkSecurityAssociation; nested exception
is:
java.lang.SecurityException: Authentication exception
[WorkflowClient] java.rmi.RemoteException: checkSecurityAssociation; nested
exception is:
[WorkflowClient]java.lang.SecurityException: Authentication
exception
[WorkflowClient] java.lang.SecurityException: Authentication exception
[WorkflowClient]at
org.jboss.ejb.plugins.SecurityInterceptor.checkSecurityAssociation(SecurityI
nterceptor.java:212)
[WorkflowClient]at
org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.jav
a:144)
[WorkflowClient]at
org.jboss.ejb.plugins.StatefulSessionInstanceInterceptor.invokeHome(Stateful
SessionInstanceInterceptor.java:99)
[WorkflowClient]at
org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxInterceptorCMT.java:135)
[WorkflowClient]at
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.
java:263)
[WorkflowClient]at
org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java:86)
[WorkflowClient]at
org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:106)
[WorkflowClient]at
org.jboss.ejb.StatefulSessionContainer.invokeHome(StatefulSessionContainer.j
ava:311)
[WorkflowClient]at
org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invokeHome(JRMPContai
nerInvoker.java:436)
[WorkflowClient]at
org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invoke(HomeProxy.java:212)
[WorkflowClient]at $Proxy25.create(Unknown Source)
[WorkflowClient]at
com.cf.rt.client.WfoWorkflowHelper.connect(WfoWorkflowHelper.java:49)
[WorkflowClient]at
com.cf.rt.struts.WorkflowUser.connect(WorkflowUser.java:54)
[WorkflowClient]at
com.cf.rt.struts.WorkflowLogonAction.perform(WorkflowLogonAction.java:53)
[WorkflowClient]at
org.apache.struts.action.ActionServlet.processActionPerform(ActionServlet.ja
va:1726)
[WorkflowClient]at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1536)
[WorkflowClient]at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:509)
[WorkflowClient]at
javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
[WorkflowClient]at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
[WorkflowClient]at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
[WorkflowClient]at
org.apache.tomcat.core.Handler.service(Handler.java:286)
[WorkflowClient]at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
[WorkflowClient]at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)
[WorkflowClient]at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
[WorkflowClient]at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:210)
[WorkflowClient]at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
[WorkflowClient]at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
[WorkflowClient]at java.lang.Thread.run(Thread.java:484)



Re: [JBoss-user] Please Help... i have been working on this problem for 5 days

2001-04-28 Thread Toby Allsopp

Roman Brouk wrote:

> thanks for reply!  why isn't it a correct way to access Datasource?

I'll repeat the answer I gave in the mail addressed to me directly 
(please don't send mail directly to me and to the list).

See section 19.4 of the EJB spec and numerous discussions here on 
jboss-user.  Hint: java:comp/env/.

Toby.


>> try{
>> InitialContext jndiContext = new InitialContext();
>> javax.sql.DataSource ds = (javax.sql.DataSource)
>> jndiContext.lookup("java:/mySQLDS");
>> con = ds.getConnection();
>> }catch(Exception ex){
>> System.out.println("Looking for DataSource: " +
>> ex.getMessage());
>> }
>> 
>> 
>> I get message that mySQLDS is not bound.
> 
> 
> That's strange.  What you're doing isn't the "correct" way for an EJB to
> access a DataSource, but it should work.  Is this all using a single
> JBoss instance?  What does the JNDIView MBean tell you (i.e. go to port
> 8082, find the JNDIView MBean, invoke the list operation)?


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



RE: [JBoss-user] Please Help... i have been working on this problem for 5 days

2001-04-27 Thread Roman Brouk

thanks for reply!  why isn't it a correct way to access Datasource?
-roman.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Toby Allsopp
Sent: Friday, April 27, 2001 3:48 PM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Please Help... i have been working on this
problem for 5 days


Roman Brouk wrote:

> I am using BMP. The question is how to access DataSource that represents
> connection pool.
>
> on start up JBOSS says that "[mySQLDS] XA Connection pool mySQLDS bound to
> java:/mySQLDS [mySQLDS] ".  I have entries in jboss.jcml.
>
> But in entity bean which I retrieve from JNDI, when I get connection:
>
> try{
> InitialContext jndiContext = new InitialContext();
> javax.sql.DataSource ds = (javax.sql.DataSource)
> jndiContext.lookup("java:/mySQLDS");
> con = ds.getConnection();
> }catch(Exception ex){
> System.out.println("Looking for DataSource: " +
> ex.getMessage());
> }
>
>
> I get message that mySQLDS is not bound.

That's strange.  What you're doing isn't the "correct" way for an EJB to
access a DataSource, but it should work.  Is this all using a single
JBoss instance?  What does the JNDIView MBean tell you (i.e. go to port
8082, find the JNDIView MBean, invoke the list operation)?

Toby.


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


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



Re: [JBoss-user] Please Help... i have been working on this problem for 5 days

2001-04-27 Thread Toby Allsopp

Roman Brouk wrote:

> I am using BMP. The question is how to access DataSource that represents
> connection pool.
> 
> on start up JBOSS says that "[mySQLDS] XA Connection pool mySQLDS bound to
> java:/mySQLDS [mySQLDS] ".  I have entries in jboss.jcml.
> 
> But in entity bean which I retrieve from JNDI, when I get connection:
> 
> try{
> InitialContext jndiContext = new InitialContext();
> javax.sql.DataSource ds = (javax.sql.DataSource)
> jndiContext.lookup("java:/mySQLDS");
> con = ds.getConnection();
> }catch(Exception ex){
> System.out.println("Looking for DataSource: " +
> ex.getMessage());
> }
> 
> 
> I get message that mySQLDS is not bound.

That's strange.  What you're doing isn't the "correct" way for an EJB to 
access a DataSource, but it should work.  Is this all using a single 
JBoss instance?  What does the JNDIView MBean tell you (i.e. go to port 
8082, find the JNDIView MBean, invoke the list operation)?

Toby.


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



RE: [JBoss-user] Please Help... i have been working on this problem for 5 days

2001-04-27 Thread WMckean

try  "java:comp/env/mySQLDS" in your lookup.

Wes

-Original Message-
From: Roman Brouk [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 27, 2001 5:06 PM
To: [EMAIL PROTECTED]
Subject: [JBoss-user] Please Help... i have been working on this problem
for 5 days


I am using BMP. The question is how to access DataSource that represents
connection pool.

on start up JBOSS says that "[mySQLDS] XA Connection pool mySQLDS bound to
java:/mySQLDS [mySQLDS] ".  I have entries in jboss.jcml.

But in entity bean which I retrieve from JNDI, when I get connection:

try{
InitialContext jndiContext = new InitialContext();
javax.sql.DataSource ds = (javax.sql.DataSource)
jndiContext.lookup("java:/mySQLDS");
con = ds.getConnection();
}catch(Exception ex){
System.out.println("Looking for DataSource: " +
ex.getMessage());
}


I get message that mySQLDS is not bound.



ANY IDEAS?  THANKS for your time and help.

-ROMAN BROUK


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

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



[JBoss-user] Please Help... i have been working on this problem for 5 days

2001-04-27 Thread Roman Brouk

I am using BMP. The question is how to access DataSource that represents
connection pool.

on start up JBOSS says that "[mySQLDS] XA Connection pool mySQLDS bound to
java:/mySQLDS [mySQLDS] ".  I have entries in jboss.jcml.

But in entity bean which I retrieve from JNDI, when I get connection:

try{
InitialContext jndiContext = new InitialContext();
javax.sql.DataSource ds = (javax.sql.DataSource)
jndiContext.lookup("java:/mySQLDS");
con = ds.getConnection();
}catch(Exception ex){
System.out.println("Looking for DataSource: " +
ex.getMessage());
}


I get message that mySQLDS is not bound.



ANY IDEAS?  THANKS for your time and help.

-ROMAN BROUK


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



RE: [JBoss-user] PLEASE HELP : How to bind javax.transaction.UserTransaction

2001-03-21 Thread tim . taylor

Check that your ejb-jar.xml file has
Bean and that you are looking up
"java:comp/UserTransaction" from the bean.  It's not bound to
javax.transaction.UserTransaction.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Kirill
Averianov
Sent: Wednesday, March 21, 2001 3:30 PM
To: '[EMAIL PROTECTED]'
Subject: RE: [JBoss-user] PLEASE HELP : How to bind
javax.transaction.UserTransaction


I tried to it in a session bean it DOES NOT FIND it too.

Is UserTransaction implemented in JBOSS at all?
Looks to me that it is not.



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 21, 2001 4:06 PM
To: [EMAIL PROTECTED]
Subject: RE: [JBoss-user] PLEASE HELP : How to bind
javax.transaction.UserTransaction


Previous discussions indicate that this can't be done in JBoss and that
supporting it would be non-standard.  I wanted to do this too and ran into
the same issue.

If you just want to use a UserTransaction from code in the same JVM as
JBoss, you have to use a session bean.  You can't use the UserTransaction at
all from a separate client JVM.

At least that is my understanding.  Someone please correct me if I'm wrong.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Kirill
Averianov
Sent: Wednesday, March 21, 2001 11:41 AM
To: JBOSS (E-mail)
Subject: [JBoss-user] PLEASE HELP : How to bind
javax.transaction.UserTransaction



PLEASE HELP !

> How to bind javax.transaction.UserTransaction to the JNDI
> at the JBoss startup ?
> What JBoss configuration files must be changed for that ?
>
>
>   Thanks a lot , Kirill.

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


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

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


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



RE: [JBoss-user] PLEASE HELP : How to bind javax.transaction.UserTransaction

2001-03-21 Thread Dan Christopherson

Try getting it from the session context.

On Wed, 21 Mar 2001, Kirill Averianov wrote:

> I tried to it in a session bean it DOES NOT FIND it too.
> 
> Is UserTransaction implemented in JBOSS at all?
> Looks to me that it is not.
> 
> 
> 
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, March 21, 2001 4:06 PM
> To: [EMAIL PROTECTED]
> Subject: RE: [JBoss-user] PLEASE HELP : How to bind
> javax.transaction.UserTransaction
> 
> 
> Previous discussions indicate that this can't be done in JBoss and that
> supporting it would be non-standard.  I wanted to do this too and ran into
> the same issue.
> 
> If you just want to use a UserTransaction from code in the same JVM as
> JBoss, you have to use a session bean.  You can't use the UserTransaction at
> all from a separate client JVM.
> 
> At least that is my understanding.  Someone please correct me if I'm wrong.
> 
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Kirill
> Averianov
> Sent: Wednesday, March 21, 2001 11:41 AM
> To: JBOSS (E-mail)
> Subject: [JBoss-user] PLEASE HELP : How to bind
> javax.transaction.UserTransaction
> 
> 
> 
>   PLEASE HELP !
> 
> > How to bind javax.transaction.UserTransaction to the JNDI
> > at the JBoss startup ?
> > What JBoss configuration files must be changed for that ?
> >
> >
> > Thanks a lot , Kirill.
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
> 
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
> 

-- 
Dan Christopherson (danch) 
nVisia Technical Architect (www.nvisia.com)

Opinions expressed are mine and do not neccessarily reflect any 
position or opinion of nVISIA.

---
If you're a capitalist and you have the best goods and they're 
free, you don't have to proselytize, you just have to wait.
-Eben Moglen


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



RE: [JBoss-user] PLEASE HELP : How to bind javax.transaction.UserTransaction

2001-03-21 Thread Mike Jau

Is that mean that the TransactionContext propogation is not implemented?
Also, does that mean that JTS is not supported yet?

- Mike Jau  
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 21, 2001 3:06 PM
To: [EMAIL PROTECTED]
Subject: RE: [JBoss-user] PLEASE HELP : How to bind
javax.transaction.UserTransaction


Previous discussions indicate that this can't be done in JBoss and that
supporting it would be non-standard.  I wanted to do this too and ran into
the same issue.

If you just want to use a UserTransaction from code in the same JVM as
JBoss, you have to use a session bean.  You can't use the UserTransaction at
all from a separate client JVM.

At least that is my understanding.  Someone please correct me if I'm wrong.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Kirill
Averianov
Sent: Wednesday, March 21, 2001 11:41 AM
To: JBOSS (E-mail)
Subject: [JBoss-user] PLEASE HELP : How to bind
javax.transaction.UserTransaction



PLEASE HELP !

> How to bind javax.transaction.UserTransaction to the JNDI
> at the JBoss startup ?
> What JBoss configuration files must be changed for that ?
>
>
>   Thanks a lot , Kirill.

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


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

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



RE: [JBoss-user] PLEASE HELP : How to bind javax.transaction.UserTransaction

2001-03-21 Thread Kirill Averianov

I tried to it in a session bean it DOES NOT FIND it too.

Is UserTransaction implemented in JBOSS at all?
Looks to me that it is not.



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 21, 2001 4:06 PM
To: [EMAIL PROTECTED]
Subject: RE: [JBoss-user] PLEASE HELP : How to bind
javax.transaction.UserTransaction


Previous discussions indicate that this can't be done in JBoss and that
supporting it would be non-standard.  I wanted to do this too and ran into
the same issue.

If you just want to use a UserTransaction from code in the same JVM as
JBoss, you have to use a session bean.  You can't use the UserTransaction at
all from a separate client JVM.

At least that is my understanding.  Someone please correct me if I'm wrong.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Kirill
Averianov
Sent: Wednesday, March 21, 2001 11:41 AM
To: JBOSS (E-mail)
Subject: [JBoss-user] PLEASE HELP : How to bind
javax.transaction.UserTransaction



PLEASE HELP !

> How to bind javax.transaction.UserTransaction to the JNDI
> at the JBoss startup ?
> What JBoss configuration files must be changed for that ?
>
>
>   Thanks a lot , Kirill.

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


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

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



RE: [JBoss-user] PLEASE HELP : How to bind javax.transaction.UserTransaction

2001-03-21 Thread tim . taylor

Previous discussions indicate that this can't be done in JBoss and that
supporting it would be non-standard.  I wanted to do this too and ran into
the same issue.

If you just want to use a UserTransaction from code in the same JVM as
JBoss, you have to use a session bean.  You can't use the UserTransaction at
all from a separate client JVM.

At least that is my understanding.  Someone please correct me if I'm wrong.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Kirill
Averianov
Sent: Wednesday, March 21, 2001 11:41 AM
To: JBOSS (E-mail)
Subject: [JBoss-user] PLEASE HELP : How to bind
javax.transaction.UserTransaction



PLEASE HELP !

> How to bind javax.transaction.UserTransaction to the JNDI
> at the JBoss startup ?
> What JBoss configuration files must be changed for that ?
>
>
>   Thanks a lot , Kirill.

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


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



[JBoss-user] PLEASE HELP : How to bind javax.transaction.UserTransaction

2001-03-21 Thread Kirill Averianov


PLEASE HELP !

> How to bind javax.transaction.UserTransaction to the JNDI
> at the JBoss startup ? 
> What JBoss configuration files must be changed for that ?
> 
> 
>   Thanks a lot , Kirill.

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



[JBoss-user] Please help

2001-03-21 Thread Nester Dias

Hi...
  Can you check whats wrong with this code.I am trying to maintain it but
having no luck so far:Please let me know why I am I getting a  datasource
not bound exception.I have tried everything suggested on the mailing list
but absolutely no reward...
Hers the important lookup code from the calling ejb:

dataSource = (DataSource) new
InitialContext().lookup("java:comp/env/iMASDataSource");

I have made the relevant changes to the properties/conf files
I am getting stuck on the deployment descriptors


My jboss.xml looks like this


 
 iMASDataSource
 java:/iMASDataSource
 

 
 

  iMASDbHelperBean
   iMASDbHelperBean

iMASDataSource
iMASDataSource



  
 

--
My ejb-jar.xml looks liek this
jb-jar>

  
iMASDataSource
javax.sql.DataSource
Container

  


  
  



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



Re: [JBoss-user] Please help: javax.naming.ServiceUnavailableException: iiop.

2001-03-18 Thread Scott M Stark

It looks like you are picking another jndi.properties file that is trying to use
the iiop protocol. Make sure that the classpath that contains your jboss
jndi.properties file is the first entry on the classpath. The jndi.properties 
file should also contain java.naming.factory.url.pkgs=org.jboss.naming

### JBoss properties
java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
java.naming.provider.url=localhost
java.naming.factory.url.pkgs=org.jboss.naming

- Original Message - 
From: "Franco Biaggi" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, March 18, 2001 12:01 PM
Subject: [JBoss-user] Please help: javax.naming.ServiceUnavailableException: iiop.


> Hello,
> I ported IBM VAJ 3.5 EJB's 1.0 to 1.1 and succesfully deployed in JBOSS 2.1.
> The tables where correctly created on HSQL.
> 
> JNDI properties:
> java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
> java.naming.provider.url=localhost:1099
> 
> Now when I use the client the following error appear:
> 
> javax.naming.ServiceUnavailableException: iiop.  Root exception is 
>java.net.UnknownHostException: iiop
> <>
> 
> After long search I do not find a solution.
> 
> For any help, Thanks
> 



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



[JBoss-user] Please help: javax.naming.ServiceUnavailableException: iiop.

2001-03-18 Thread Franco Biaggi

Hello,
I ported IBM VAJ 3.5 EJB's 1.0 to 1.1 and succesfully deployed in JBOSS 2.1.
The tables where correctly created on HSQL.

JNDI properties:
java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
java.naming.provider.url=localhost:1099

Now when I use the client the following error appear:

javax.naming.ServiceUnavailableException: iiop.  Root exception is 
java.net.UnknownHostException: iiop
<>

After long search I do not find a solution.

For any help, Thanks













  


  

http://www.ticino.com/usr/fbiaggi/">Franco 
Biaggi
http://www.sisa.ch">SISA Studio Informatica 
SA 
R&D 
Services

Via Carvina 
1 
CH-6807 
Taverne 
Efax +1 801 705 
2839
Tel. +41 91 935 75 35  Fax. +41 
91 935
75 30
Sorry for my bad 
english... 

  







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