RE: [JBoss-user] Re: [JBoss-dev] SQLException: [Microsoft][ODBC SQL Server Driver]Optionalfeature not implemented

2002-07-31 Thread Narayan Singh

Thanx Mr Dain for ur suggestion.. and its working fine with JDBC Drivers..

Regards,
N Narayan Singh
__
*CMC Ltd.,
   VISIC Group, Gachibowli,
   Hyderabad- 500019 .
*(o) 040-3000401 Ext: 2166.












---
This sf.net email is sponsored by: Dice - The leading online job board
for high-tech professionals. Search and apply for tech jobs today!
http://seeker.dice.com/seeker.epl?rel_code=31
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] SFSB Clustering

2002-07-31 Thread Sacha Labourey

Hello Jerry,

Can you try with CVS HEAD please? (i.e. 3.1RC1)?

My problem is that I am not sure your behaviour is related to this bug:

http://sourceforge.net/tracker/index.php?func=detailaid=588997group_id=228
66atid=376685

I've just tried with 3.1RC1 and have not been able to reproduce this
behaviour.

Cheers,


Sacha


P.S.: in any case, the code that fail must be better protected. The question
is why does the code goes until there.

P.S. 2: could you please use the online web forums instead of jboss-user?

 -Message d'origine-
 De : [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]De la part de Jerry Smith
 Envoyé : mardi, 30 juillet 2002 21:18
 À : '[EMAIL PROTECTED]'
 Objet : [JBoss-user] SFSB Clustering


 Hi all, I've been playing with the clustering for a bit now using
 JBoss3.0.1RC1.  I've got a 2 node cluster with a SFSB that is clustered,
 here's something I'm seeing:

 1.  Node A and B are brought up fine and see each other.
 2.  I hit my app and see my SFSB message call on A.
 3.  I kill A, hit my app again and see my SFSB call on B.
 4.  I bring back up A, B sees it and the both say they have 2 members.
 5.  I hit my app and see my SFSB message call on B.
 6.  I kill B, hit my app again and BOOM, A says:

 2002-07-30 14:05:23,109 ERROR
 [org.jboss.ejb.plugins.AbstractInstanceCache]
 Activation failure
 java.lang.NullPointerException
   at
 org.jboss.ha.hasessionstate.server.HASessionStateImpl.localTakeOwn
 ership(HAS
 essionStateImpl.java:418)
   at
 org.jboss.ha.hasessionstate.server.HASessionStateImpl.getStateWith
 Ownership(
 HASessionStateImpl.java:411)
   at
 org.jboss.ejb.plugins.StatefulHASessionPersistenceManager.activate
 Session(St
 atefulHASessionPersistenceManager.java:221)
   at
 org.jboss.ejb.plugins.StatefulSessionInstanceCache.activate(Statef
 ulSessionI
 nstanceCache.java:83)
   at
 org.jboss.ejb.plugins.AbstractInstanceCache.get(AbstractInstanceCa
 che.java:1
 77)
   at
 org.jboss.ejb.plugins.StatefulSessionInstanceInterceptor.invoke(St
 atefulSess
 ionInstanceInterceptor.java:212)
   at
 org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxI
 nterceptor
 .java:96)
   at
 org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInter
 ceptorCMT.
 java:176)
   at
 org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:61)
   at
 org.jboss.ejb.plugins.CleanShutdownInterceptor.invoke(CleanShutdow
 nIntercept
 or.java:164)
   at
 org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:183)
   at
 org.jboss.ejb.StatefulSessionContainer.invoke(StatefulSessionConta
 iner.java:
 380)
   at org.jboss.ejb.Container.invoke(Container.java:705)
   at
 org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491)
   at
 org.jboss.invocation.jrmp.server.JRMPInvokerHA.invoke(JRMPInvokerH
 A.java:169
 )
   at java.lang.reflect.Method.invoke(Native Method)
   at
 sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:236)
   at sun.rmi.transport.Transport$1.run(Transport.java:147)
   at java.security.AccessController.doPrivileged(Native Method)
   at sun.rmi.transport.Transport.serviceCall(Transport.java:143)
   at
 sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
   at
 sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransp
 ort.java:7
 01)
   at java.lang.Thread.run(Thread.java:479)


 Any thoughts on this?


 ---
 This sf.net email is sponsored by: Dice - The leading online job board
 for high-tech professionals. Search and apply for tech jobs today!
 http://seeker.dice.com/seeker.epl?rel_code=31
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user




---
This sf.net email is sponsored by: Dice - The leading online job board
for high-tech professionals. Search and apply for tech jobs today!
http://seeker.dice.com/seeker.epl?rel_code=31
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] anyone knows about this exception?

2002-07-31 Thread Saroj Kumar
Title: Message



It may 
be due to incorrect Version of JAVA on client side!!!

-Original Message-From: 
[EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED]] On Behalf Of Sheng 
ZouSent: Wednesday, July 31, 2002 4:04 AMTo: 
'[EMAIL PROTECTED]'Subject: [JBoss-user] anyone knows 
about this exception?Importance: High
java.io.StreamCorruptedException: Caught EOFException while 
reading the stream header  at 
java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:845) 
 at 
java.io.ObjectInputStream.init(ObjectInputStream.java:168) 
 at 
org.jnp.interfaces.NamingContext.getServer(NamingContext.java:149) 
 at 
org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:871) 
 at 
org.jnp.interfaces.NamingContext.lookup(NamingContext.java:426)  at 
org.jnp.interfaces.NamingContext.lookup(NamingContext.java:419)  at 
javax.naming.InitialContext.lookup(InitialContext.java:350)  at 
com.solipsa.messaging.jms.vendor.iCCJBossJMS.getQueue(iCCJBossJMS.java:191) 
 at 
com.solipsa.messaging.jms.iCCQueueManager.init(iCCQueueManager.java:69) 
 at 
com.solipsa.messaging.jms.iCCMessageService.buildReceivingQueueManager(iCCMessageService.java:706) 
 at 
com.solipsa.messaging.jms.iCCMessageService.initReceivingQueue(iCCMessageService.java:124) 
 at 
com.solipsa.messaging.jms.iCCMessageServiceUT.setUp(iCCMessageServiceUT.java:163) 
 at 
junit.framework.TestCase.runBare(TestCase.java:138)  at 
junit.framework.TestResult$1.protect(TestResult.java:106)  at 
junit.framework.TestResult.runProtected(TestResult.java:124)  at 
junit.framework.TestResult.run(TestResult.java:109)  at 
junit.framework.TestCase.run(TestCase.java:131)  at 
junit.framework.TestSuite.runTest(TestSuite.java:173)  at 
junit.framework.TestSuite.run(TestSuite.java:168)  at 
junit.framework.TestSuite.runTest(TestSuite.java:173)  at 
junit.framework.TestSuite.run(TestSuite.java:168)  at 
junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)  at 
junit.extensions.TestSetup$1.protect(TestSetup.java:19)  at 
junit.framework.TestResult.runProtected(TestResult.java:124)  at 
junit.extensions.TestSetup.run(TestSetup.java:23)  at 
junit.textui.TestRunner.doRun(TestRunner.java:74)  at 
junit.textui.TestRunner.run(TestRunner.java:200)  at 
com.solipsa.messaging.jms.iCCMessagingUT.runProcess(iCCMessagingUT.java:95) 
 at 
com.solipsa.utils.jboss.iCCProcessThread.run(iCCProcessThread.java:29) 

thanks, sheng 


[JBoss-user] JBoss 2.4.6 Tomcat 4.0.3 webapp classpath problem

2002-07-31 Thread rickmacc

I downloaded the JBoss-2.4.6-Tomcat-4.0.3 distro and deployed my ear to
the jboss/deploy directory. Unfortunately, Tomcat can't seem to find
classes in my WEB-INF/classes directory. The same ear works fine with
JBoss-2.4.4-Tomcat 3.2.3. If I add the classes to the JBOSS_CLASSPATH,
everything works fine but I need to be able to package files up
(specifically resource bundles) in the war which is then packaged up in an
ear and have them available. I get ClassNotFound exceptions looking for
classes that I know are there because I can see them in the
jboss/temp/Default directory. Any ideas?

Thanks,
   Rick


---
This sf.net email is sponsored by: Dice - The leading online job board
for high-tech professionals. Search and apply for tech jobs today!
http://seeker.dice.com/seeker.epl?rel_code=31
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] question about JCA resources that use local transactions

2002-07-31 Thread Wink, Stephen

I'm writing a JCA adapter that uses LocalTxConnectionManager.  When the
user calls close() on my connection object, I send a connectionClosed
event to the listeners on my ManagedConnection, and this causes the
connection to be returned to the connection pool.  However, it seems
that JBoss won't check the same connection out of the pool again until
the connection's transaction has been committed or rolled back.  Is this
in fact what JBoss is doing?  If not, I'll put some code in my
implementation of ManagedConnectionFactory.matchManagedConnections(), so
that a connection that's already in a transaction can't be checked out
of the pool.  Can you tell me whether the LocalTxConnectionManager does
check whether a connection is in a transaction before making it
available to be used? 

Steve


---
This sf.net email is sponsored by: Dice - The leading online job board
for high-tech professionals. Search and apply for tech jobs today!
http://seeker.dice.com/seeker.epl?rel_code=31
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] FireBird JBoss

2002-07-31 Thread Stephen Davidson

Hi David.

Tried both of your suggestions, and several variations.

As I will eventually be creating/dropping databases with some of the applications that 
are going to be getting used, I would very much like to have the FBManager running.

Attached is the last attempt I made to get this to work.  I think I must be having a 
Low-IQ day today, because I am still getting errors.

Your help is appreciated.  Next time I am in the Toronto Area, I owe you a lunch or 
dinner (you are in Toronto, right?).
Steve

13:39:43,285 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
Packages waiting for a deployer:
   none
Incompletely deployed packages:
   none
MBeans waiting for classes:
   none
MBeans waiting for other MBeans:
[ObjectName: jboss.jca:service=XaTxCM,name=FirebirdDS
  state: CONFIGURED
  I Depend On:   jboss.jca:service=RARDeployer
   jboss.jca:service=XaTxDS,name=FirebirdDS
   jboss.jca:service=XaTxPool,name=FirebirdDS
   jboss.jca:service=CachedConnectionManager
   jboss.security:service=JaasSecurityManager

  Depends On Me: , ObjectName: jboss.jca:service=XaTxDS,name=FirebirdDS
  state: CONFIGURED
  I Depend On:   jboss.jca:service=RARDeployment,name=Firebird Database Connector

  Depends On Me:   jboss.jca:service=XaTxCM,name=FirebirdDS
]
13:39:43,290 INFO  [URLDeploymentScanner] Started
13:39:43,291 INFO  [MainDeployer] Deployed package: 
file:/home/jboss/jboss-all/build/output/jboss-3.0.1RC1/server/default/conf/jboss-service.xml
13:39:43,296 ERROR [Server] start failed
Incomplete Deployment listing:
Packages waiting for a deployer:
   none
Incompletely deployed packages:
   none
MBeans waiting for classes:
   none
MBeans waiting for other MBeans:
[ObjectName: jboss.jca:service=XaTxCM,name=FirebirdDS
  state: CONFIGURED
  I Depend On:   jboss.jca:service=RARDeployer
   jboss.jca:service=XaTxDS,name=FirebirdDS
   jboss.jca:service=XaTxPool,name=FirebirdDS
   jboss.jca:service=CachedConnectionManager
   jboss.security:service=JaasSecurityManager

  Depends On Me: , ObjectName: jboss.jca:service=XaTxDS,name=FirebirdDS
  state: CONFIGURED
  I Depend On:   jboss.jca:service=RARDeployment,name=Firebird Database Connector

  Depends On Me:   jboss.jca:service=XaTxCM,name=FirebirdDS
]
 at 
org.jboss.deployment.MainDeployer.checkIncompleteDeployments(MainDeployer.java:1091)
 at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:583)
 at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:565)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at 
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
 at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491)
 at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:319)
 at org.jboss.system.server.ServerImpl.start(ServerImpl.java:216)
 at org.jboss.Main.boot(Main.java:142)
 at org.jboss.Main$1.run(Main.java:375)
 at java.lang.Thread.run(Thread.java:536)
13:39:43,313 ERROR [STDERR] Incomplete Deployment listing:
Packages waiting for a deployer:
   none
Incompletely deployed packages:
   none
MBeans waiting for classes:
   none
MBeans waiting for other MBeans:
[ObjectName: jboss.jca:service=XaTxCM,name=FirebirdDS
  state: CONFIGURED
  I Depend On:   jboss.jca:service=RARDeployer
   jboss.jca:service=XaTxDS,name=FirebirdDS
   jboss.jca:service=XaTxPool,name=FirebirdDS
   jboss.jca:service=CachedConnectionManager
   jboss.security:service=JaasSecurityManager

  Depends On Me: , ObjectName: jboss.jca:service=XaTxDS,name=FirebirdDS
  state: CONFIGURED
  I Depend On:   jboss.jca:service=RARDeployment,name=Firebird Database Connector

  Depends On Me:   jboss.jca:service=XaTxCM,name=FirebirdDS
]
13:39:43,314 ERROR [STDERR] at 
org.jboss.deployment.MainDeployer.checkIncompleteDeployments(MainDeployer.java:1091)
13:39:43,314 ERROR [STDERR] at 
org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:583)
13:39:43,314 ERROR [STDERR] at 
org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:565)
13:39:43,314 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native 
Method)
13:39:43,314 ERROR [STDERR] at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
13:39:43,314 ERROR [STDERR] at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
13:39:43,315 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:324)
13:39:43,315 ERROR [STDERR] at 
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
13:39:43,315 ERROR [STDERR] at 

[JBoss-user] Postgres, JBoss 3

2002-07-31 Thread Jarecsni Jnos

Hi,

I'm trying to migrate from 2.4.x to 3.x. First of all I'd like to
configure Jboss to use the Postgres db.
I checked the configuration of JB2.4 and I've found the following mbean
configuration:

mbean code=org.jboss.jdbc.XADataSourceLoader
name=DefaultDomain:service=XADataSource,name=IStoreDB
attribute
name=DataSourceClassorg.jboss.pool.jdbc.xa.wrapper.XADataSourceImpl/
attribute
  attribute name=PoolNameOurDBName/attribute
  attribute
name=URLjdbc:postgresql://hostname/dbName/attribute
  attribute name=JDBCUseruser/attribute
attribute name=Passwordpw/attribute
/mbean

However, the template for configuring Postgres with JB3x (found in the
docs/examples/jca directory) has the following:

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

My question is: can't I use
org.jboss.resource.connectionmanager.XaTxConnectionManager as the
manager with Posgres? (we use Pg.7.2 I think)

Cheers
Janos




---
This sf.net email is sponsored by: Dice - The leading online job board
for high-tech professionals. Search and apply for tech jobs today!
http://seeker.dice.com/seeker.epl?rel_code=31
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Postgres, JBoss 3

2002-07-31 Thread David Jencks

No, postgres does not support xa transactions.  I recommend you use jboss
3.1 (cvs head) and the simplified -ds.xml files.  There should be a binary
3.1 release soon.

david jencks

On 2002.07.31 08:04:15 -0400 Jarecsni Jnos wrote:
 Hi,
 
 I'm trying to migrate from 2.4.x to 3.x. First of all I'd like to
 configure Jboss to use the Postgres db.
 I checked the configuration of JB2.4 and I've found the following mbean
 configuration:
 
 mbean code=org.jboss.jdbc.XADataSourceLoader
 name=DefaultDomain:service=XADataSource,name=IStoreDB
   attribute
 name=DataSourceClassorg.jboss.pool.jdbc.xa.wrapper.XADataSourceImpl/
 attribute
   attribute name=PoolNameOurDBName/attribute
   attribute
 name=URLjdbc:postgresql://hostname/dbName/attribute
   attribute name=JDBCUseruser/attribute
   attribute name=Passwordpw/attribute
 /mbean
 
 However, the template for configuring Postgres with JB3x (found in the
 docs/examples/jca directory) has the following:
 
   mbean
 code=org.jboss.resource.connectionmanager.LocalTxConnectionManager
 name=jboss.jca:service=LocalTxCM,name=PostgresDS
 
 My question is: can't I use
 org.jboss.resource.connectionmanager.XaTxConnectionManager as the
 manager with Posgres? (we use Pg.7.2 I think)
 
 Cheers
 Janos
 
 
 
 
 ---
 This sf.net email is sponsored by: Dice - The leading online job board
 for high-tech professionals. Search and apply for tech jobs today!
 http://seeker.dice.com/seeker.epl?rel_code=31
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user
 
 


---
This sf.net email is sponsored by: Dice - The leading online job board
for high-tech professionals. Search and apply for tech jobs today!
http://seeker.dice.com/seeker.epl?rel_code1
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] FireBird JBoss

2002-07-31 Thread David Jencks

Are you sure after all the changes you've made that the firebirdsql.rar is
still being deployed?  This line suggests it isn't:

ObjectName: jboss.jca:service=XaTxDS,name=FirebirdDS
  state: CONFIGURED
  I Depend On:   jboss.jca:service=RARDeployment,name=Firebird Database
Connector


(BTW I currently live in south florida, not too close to Toronto;-)

david jencks

On 2002.07.30 14:46:09 -0400 Stephen Davidson wrote:
 Hi David.
 
 Tried both of your suggestions, and several variations.
 
 As I will eventually be creating/dropping databases with some of the
 applications that are going to be getting used, I would very much like to
 have the FBManager running.
 
 Attached is the last attempt I made to get this to work.  I think I must
 be having a Low-IQ day today, because I am still getting errors.
 
 Your help is appreciated.  Next time I am in the Toronto Area, I owe you
 a lunch or dinner (you are in Toronto, right?).
 Steve
 
 13:39:43,285 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
 Packages waiting for a deployer:
none
 Incompletely deployed packages:
none
 MBeans waiting for classes:
none
 MBeans waiting for other MBeans:
 [ObjectName: jboss.jca:service=XaTxCM,name=FirebirdDS
   state: CONFIGURED
   I Depend On:   jboss.jca:service=RARDeployer
jboss.jca:service=XaTxDS,name=FirebirdDS
jboss.jca:service=XaTxPool,name=FirebirdDS
jboss.jca:service=CachedConnectionManager
jboss.security:service=JaasSecurityManager
 
   Depends On Me: , ObjectName: jboss.jca:service=XaTxDS,name=FirebirdDS
   state: CONFIGURED
   I Depend On:   jboss.jca:service=RARDeployment,name=Firebird Database
 Connector
 
   Depends On Me:   jboss.jca:service=XaTxCM,name=FirebirdDS
 ]
 13:39:43,290 INFO  [URLDeploymentScanner] Started
 13:39:43,291 INFO  [MainDeployer] Deployed package:
 
file:/home/jboss/jboss-all/build/output/jboss-3.0.1RC1/server/default/conf/jboss-service.xml
 13:39:43,296 ERROR [Server] start failed
 Incomplete Deployment listing:
 Packages waiting for a deployer:
none
 Incompletely deployed packages:
none
 MBeans waiting for classes:
none
 MBeans waiting for other MBeans:
 [ObjectName: jboss.jca:service=XaTxCM,name=FirebirdDS
   state: CONFIGURED
   I Depend On:   jboss.jca:service=RARDeployer
jboss.jca:service=XaTxDS,name=FirebirdDS
jboss.jca:service=XaTxPool,name=FirebirdDS
jboss.jca:service=CachedConnectionManager
jboss.security:service=JaasSecurityManager
 
   Depends On Me: , ObjectName: jboss.jca:service=XaTxDS,name=FirebirdDS
   state: CONFIGURED
   I Depend On:   jboss.jca:service=RARDeployment,name=Firebird Database
 Connector
 
   Depends On Me:   jboss.jca:service=XaTxCM,name=FirebirdDS
 ]
  at 
org.jboss.deployment.MainDeployer.checkIncompleteDeployments(MainDeployer.java:1091)
  at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:583)
  at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:565)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  at java.lang.reflect.Method.invoke(Method.java:324)
  at 
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
  at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491)
  at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:319)
  at org.jboss.system.server.ServerImpl.start(ServerImpl.java:216)
  at org.jboss.Main.boot(Main.java:142)
  at org.jboss.Main$1.run(Main.java:375)
  at java.lang.Thread.run(Thread.java:536)
 13:39:43,313 ERROR [STDERR] Incomplete Deployment listing:
 Packages waiting for a deployer:
none
 Incompletely deployed packages:
none
 MBeans waiting for classes:
none
 MBeans waiting for other MBeans:
 [ObjectName: jboss.jca:service=XaTxCM,name=FirebirdDS
   state: CONFIGURED
   I Depend On:   jboss.jca:service=RARDeployer
jboss.jca:service=XaTxDS,name=FirebirdDS
jboss.jca:service=XaTxPool,name=FirebirdDS
jboss.jca:service=CachedConnectionManager
jboss.security:service=JaasSecurityManager
 
   Depends On Me: , ObjectName: jboss.jca:service=XaTxDS,name=FirebirdDS
   state: CONFIGURED
   I Depend On:   jboss.jca:service=RARDeployment,name=Firebird Database
 Connector
 
   Depends On Me:   jboss.jca:service=XaTxCM,name=FirebirdDS
 ]
 13:39:43,314 ERROR [STDERR] at 
org.jboss.deployment.MainDeployer.checkIncompleteDeployments(MainDeployer.java:1091)
 13:39:43,314 ERROR [STDERR] at 
org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:583)
 13:39:43,314 ERROR [STDERR] at 
org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:565)
 13:39:43,314 ERROR [STDERR] at 
sun.reflect.NativeMethodAccessorImpl.invoke0(Native
 Method)
 13:39:43,314 ERROR 

AW: [JBoss-user] JBoss.net installation/configuration help!!!

2002-07-31 Thread Jung , Dr. Christoph

He was already responding that he solved his problem ...

CGJ

-Ursprüngliche Nachricht-
Von: David Jencks [mailto:[EMAIL PROTECTED]] 
Gesendet: Dienstag, 30. Juli 2002 17:44
An: [EMAIL PROTECTED]
Betreff: Re: [JBoss-user] JBoss.net installation/configuration help!!!


Starting jboss like 

bin/run.sh -c all

uses the configuration including jboss.net.  There are some tests of
jboss.net functionality in the testsuite, other than that I don't know much
about it.

david jencks

On 2002.07.30 10:46:22 -0400 Akbar, Wasif wrote:
 I am little new to JBoss and to J2EE as well.  I recently downloaded 
 and installed JBoss 3.0.1.  I am trying to integrate JBoss.net into 
 this, however I was told that JBoss 3.0.1 already comes with the 
 JBoss.net components and it's just a matter of 'turning them on'.  I 
 am not sure how to go about doing this.  I found these instructions on 
 the web to integrated JBoss.net, however, I haven't a clue as to how 
 to go about using them.
 
 Anyway, I could use some assistance.
 
 thanks,
 Wasif Akbar
 TEOCO Corporation
 703-259-4340
 
 
 How to build, install and use JBoss.net
 Before you go on writing your first Web Service in Java, we recommend 
 that you have a look at code and meta-data samples at the axis site 
 http://xml.apache.org/axis/. To build, you can run either
 cd build
 build -Dmodules=plugins/jboss.net
 or 
 cd build
 build -Dgroups=plugins
 or 
 cd build
 build -Dgroups=optional
 or (this is for our friends of logical progression ;-) 
 cd build
 build -Dgroups=optional-plugins
 
 
 
 
 ---
 This sf.net email is sponsored by: Dice - The leading online job board 
 for high-tech professionals. Search and apply for tech jobs today! 
 http://seeker.dice.com/seeker.epl?rel_code1
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED] 
 https://lists.sourceforge.net/lists/listinfo/jboss-user
 
 


---
This sf.net email is sponsored by: Dice - The leading online job board for
high-tech professionals. Search and apply for tech jobs today!
http://seeker.dice.com/seeker.epl?rel_code=31
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


---
This sf.net email is sponsored by: Dice - The leading online job board
for high-tech professionals. Search and apply for tech jobs today!
http://seeker.dice.com/seeker.epl?rel_code1
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] MBean interfaces to EJBs

2002-07-31 Thread David Jencks

It would make the ServiceConfigurator much more complicated, since it would
have to store non-object-names in the dependency list.  It also allows
conflicts: what if 2 or more mbeans define the same alias?

I'm still a bit doubtful about the real utility of this service, but if we
do it lets use a single immutable global file that has to be available to
ServiceController/Configurator when jboss is started.  This is an easy
implementation, we can see if we like it, if we need more we can add them
later.

david jencks

On 2002.07.31 08:43:01 -0400 Sacha Labourey wrote:
 Instead of having a alias to mbean name in another file, why not simply
 have
 a alias tag available for mbeans i.e.
 
 mbean bla
depends [optional-attribute-name=blah]QueueManager/depends
 /mbean
 
 mbean bli name=jboss:name=QueueManagerImpl,type=invm
 !--mbean has a complex objectname--
alias names=QueueManager,QueueSecurityManager/
 !--... but defines aliases with well known generic names (possibly more
 than one)--
 /mbean
 
 = you define the alias in the mbean itself as a set of well known
 generic
 object names
 
 Maybe that's too complicated and the intermediary file is more easy to
 use.
 
 Cheers,
 
   SAcha
 
  -Message d'origine-
  De : [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED]]De la part de Michael
  Stanley
  Envoye : mercredi, 31 juillet 2002 14:28
  A : [EMAIL PROTECTED]
  Objet : Re: [JBoss-user] MBean interfaces to EJBs
 
 
  I Agree 100%
 
  Symbolic names are definitely a good idea.
 
  Mike
 
  Scott M Stark wrote:
   Yes that is correct. Changing one name in a well known file
   vs changing 20 names, several of which where in archives
   is a lot easier. Come on, the time you spent fixing the testcases
   would have been at least an order of magnitude less. It actually
   would have been zero because I would have just changed the
   mapping and not cared who was referencing the security manager.
  
   Independent of the ease of change, the point here is why even
   impose an object naming convention that we don't really care
   about on the end user.
  
   
   Scott Stark
   Chief Technology Officer
   JBoss Group, LLC
   
   - Original Message -
   From: David Jencks [EMAIL PROTECTED]
   To: [EMAIL PROTECTED]
   Sent: Tuesday, July 30, 2002 7:56 PM
   Subject: Re: [JBoss-user] MBean interfaces to EJBs
  
  
  
  To make sure I understand what you are proposing...
  
  a global set of
  
  symbolic-name == ObjectName
  
  and with
  depends [optional-attribute-name=blah]some-string/depends
  
  some-string is first looked up in the table as a symbolic name, and
 only
  
   if
  
  not found we try to use it as an object name.
  
  This would certainly make changing the ObjectName half easier, but
  changing the symbolic-name would be just as hard.
  
  This certainly wouldn't be hard to do, I'm still thinking about
  my opinion
  on whether it would overall reduce complexity and maintenance.  I
 didn't
  find changing the object name for the DefaultDS all that hard.
  
  thanks
  david jencks
  
  
  
  
  
   ---
   This sf.net email is sponsored by: Dice - The leading online job
 board
   for high-tech professionals. Search and apply for tech jobs today!
   http://seeker.dice.com/seeker.epl?rel_code=31
   ___
   JBoss-user mailing list
   [EMAIL PROTECTED]
   https://lists.sourceforge.net/lists/listinfo/jboss-user
 
 
  --
  Mike/
 
 
 
 
  ---
  This sf.net email is sponsored by: Dice - The leading online job board
  for high-tech professionals. Search and apply for tech jobs today!
  http://seeker.dice.com/seeker.epl?rel_code=31
  ___
  JBoss-user mailing list
  [EMAIL PROTECTED]
  https://lists.sourceforge.net/lists/listinfo/jboss-user
 
 
 
 
 ---
 This sf.net email is sponsored by: Dice - The leading online job board
 for high-tech professionals. Search and apply for tech jobs today!
 http://seeker.dice.com/seeker.epl?rel_code=31
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user
 
 


---
This sf.net email is sponsored by: Dice - The leading online job board
for high-tech professionals. Search and apply for tech jobs today!
http://seeker.dice.com/seeker.epl?rel_code=31
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Migrating to JBoss 3.x

2002-07-31 Thread Jarecsni Jnos

Hi,

David, thanks for the reply, however, in the meanwhile I succeeded in
configuring Postgres. It seems to work (at least it is bound in JNDI).
Actually I could not see it in action, cause I have now another
exception. I have a JSP which uses a session JSP bean:

jsp:useBean
  id=screen
  class=hu.morganhill.istore.web.Screen
  scope=session
/

When I try to enter the opening screen of our app, JBoss complains about
a ClassCastException regarding this Screen class. (I assume that the JSP
container tries to cast the session attribute gotten from the
SessionContext, or something like this). The very same EAR worked no
problem on JB 2.4.4

Any help is much appreciated.

Cheers,
Jnos




---
This sf.net email is sponsored by: Dice - The leading online job board
for high-tech professionals. Search and apply for tech jobs today!
http://seeker.dice.com/seeker.epl?rel_code1
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Integrating Non-JMS Messaging with JBoss

2002-07-31 Thread Wink, Stephen

Hi, 

we have a similar situation - some of our clients will wish to use
MQSeries outside of JMS, so we have to provide a way of using MQSeries
messaging within JBoss. The way that we're doing this is by creating a
JCA Resource Adapter. That way, our software can access MQSeries objects
via JNDI within JBoss. I guess a similar approach would work with Tibco.
That way, you can also use JBoss's transaction management and connection
pooling. We are in the process of writing this, and have been copying
ideas from the JBoss JMS JCA resource adapter. I don't know if this is
the only way of achieving this, and its not a trivial piece of work.  

rgds, 

Steve.


---
This sf.net email is sponsored by: Dice - The leading online job board
for high-tech professionals. Search and apply for tech jobs today!
http://seeker.dice.com/seeker.epl?rel_code=31
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] standalone Tomcat

2002-07-31 Thread Maris Orbidans


hello

I would like to know how to find JBoss from a WEB app. that runs under standalone 
Tomcat that is NOT run with -nonaming option.

The reason for this is that I want to use Environment properties from my WEB app.

Maris Orbidans


---
This sf.net email is sponsored by: Dice - The leading online job board
for high-tech professionals. Search and apply for tech jobs today!
http://seeker.dice.com/seeker.epl?rel_code1
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] application security configuration

2002-07-31 Thread Gary S. Cuozzo

In my ejb-jar.xml file I have:

  method-permission 
 descriptiondescription not supported yet by 
ejbdoclet/description
 unchecked/
 method 
descriptiondescription not supported yet by 
ejbdoclet/description
ejb-nameClientSessionBean/ejb-name
method-name*/method-name
 /method
  /method-permission

and other ones like:

   method-permission 
  descriptiondescription not supported yet by ejbdoclet/description
  unchecked/
  method 
 description![CDATA[]]/description
 ejb-nameClientSessionBean/ejb-name
 method-intfRemote/method-intf
 method-nameauthenticate/method-name
 method-params
method-paramjava.lang.String/method-param
method-paramjava.lang.String/method-param
method-paramjava.lang.String/method-param
 /method-params
  /method
   /method-permission

Is my syntax wrong?  Oddly enough, I've even tried removing ALL the 
method permissions but leaving the security domain enabled, and still 
cannot call into the bean.  I'm doing something else wrong I think. 
 Now, to find out what it is!  :)

gary.


Alex Loubyansky wrote:

GSC The problem that I have now is that it happens for EVERY method call to
GSC the bean instead of just the one that I have permissions set up for.

GSC Any clues?

Are other methods marked as unchecked/?

alex




---
This sf.net email is sponsored by: Dice - The leading online job board
for high-tech professionals. Search and apply for tech jobs today!
http://seeker.dice.com/seeker.epl?rel_code=31
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user





---
This sf.net email is sponsored by: Dice - The leading online job board
for high-tech professionals. Search and apply for tech jobs today!
http://seeker.dice.com/seeker.epl?rel_code=31
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] MBean interfaces to EJBs

2002-07-31 Thread Scott M Stark

Too complicated.


Scott Stark
Chief Technology Officer
JBoss Group, LLC

- Original Message -
From: Sacha Labourey [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, July 31, 2002 5:43 AM
Subject: RE: [JBoss-user] MBean interfaces to EJBs


 Instead of having a alias to mbean name in another file, why not simply
have
 a alias tag available for mbeans i.e.

 mbean bla
depends [optional-attribute-name=blah]QueueManager/depends
 /mbean

 mbean bli name=jboss:name=QueueManagerImpl,type=invm
 !--mbean has a complex objectname--
alias names=QueueManager,QueueSecurityManager/
 !--... but defines aliases with well known generic names (possibly more
 than one)--
 /mbean

 = you define the alias in the mbean itself as a set of well known
generic
 object names

 Maybe that's too complicated and the intermediary file is more easy to
use.

 Cheers,

 SAcha

  -Message d'origine-
  De : [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED]]De la part de Michael
  Stanley
  Envoye : mercredi, 31 juillet 2002 14:28
  A : [EMAIL PROTECTED]
  Objet : Re: [JBoss-user] MBean interfaces to EJBs
 
 
  I Agree 100%
 
  Symbolic names are definitely a good idea.
 
  Mike
 
  Scott M Stark wrote:
   Yes that is correct. Changing one name in a well known file
   vs changing 20 names, several of which where in archives
   is a lot easier. Come on, the time you spent fixing the testcases
   would have been at least an order of magnitude less. It actually
   would have been zero because I would have just changed the
   mapping and not cared who was referencing the security manager.
  
   Independent of the ease of change, the point here is why even
   impose an object naming convention that we don't really care
   about on the end user.
  
   
   Scott Stark
   Chief Technology Officer
   JBoss Group, LLC
   
   - Original Message -
   From: David Jencks [EMAIL PROTECTED]
   To: [EMAIL PROTECTED]
   Sent: Tuesday, July 30, 2002 7:56 PM
   Subject: Re: [JBoss-user] MBean interfaces to EJBs
  
  
  
  To make sure I understand what you are proposing...
  
  a global set of
  
  symbolic-name == ObjectName
  
  and with
  depends [optional-attribute-name=blah]some-string/depends
  
  some-string is first looked up in the table as a symbolic name, and
only
  
   if
  
  not found we try to use it as an object name.
  
  This would certainly make changing the ObjectName half easier, but
  changing the symbolic-name would be just as hard.
  
  This certainly wouldn't be hard to do, I'm still thinking about
  my opinion
  on whether it would overall reduce complexity and maintenance.  I
didn't
  find changing the object name for the DefaultDS all that hard.
  
  thanks
  david jencks
  
  
  
  
  
   ---
   This sf.net email is sponsored by: Dice - The leading online job board
   for high-tech professionals. Search and apply for tech jobs today!
   http://seeker.dice.com/seeker.epl?rel_code=31
   ___
   JBoss-user mailing list
   [EMAIL PROTECTED]
   https://lists.sourceforge.net/lists/listinfo/jboss-user
 
 
  --
  Mike/
 
 
 
 
  ---
  This sf.net email is sponsored by: Dice - The leading online job board
  for high-tech professionals. Search and apply for tech jobs today!
  http://seeker.dice.com/seeker.epl?rel_code=31
  ___
  JBoss-user mailing list
  [EMAIL PROTECTED]
  https://lists.sourceforge.net/lists/listinfo/jboss-user
 



 ---
 This sf.net email is sponsored by: Dice - The leading online job board
 for high-tech professionals. Search and apply for tech jobs today!
 http://seeker.dice.com/seeker.epl?rel_code=31
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user




---
This sf.net email is sponsored by: Dice - The leading online job board
for high-tech professionals. Search and apply for tech jobs today!
http://seeker.dice.com/seeker.epl?rel_code=31
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] question about JCA resources that use local transactions

2002-07-31 Thread Wink, Stephen

David, 

I've checked again, and its behaving exactly as you said, so thank you
for pointing me in the right direction. Thats answered my question.

I'm using JBoss 3.0.0, but about to move to 3.0.1.

thanks, 

Steve


---
This sf.net email is sponsored by: Dice - The leading online job board
for high-tech professionals. Search and apply for tech jobs today!
http://seeker.dice.com/seeker.epl?rel_code=31
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] application security configuration

2002-07-31 Thread Scott M Stark

Any methods without permissions are equivalent to defining the methods
to be in the exclude-list and not invokable by anyone. When a
security-domain
is defined the default is no access. You have to explicity define what
should
be accessible. You also cannot make calls to unchecked methods from
an unsecured servlet. There still has to be a principal without roles. See
the
security chapter in the admin and devel book.


Scott Stark
Chief Technology Officer
JBoss Group, LLC

- Original Message -
From: Gary S. Cuozzo [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, July 31, 2002 7:08 AM
Subject: Re: [JBoss-user] application security configuration


 In my ejb-jar.xml file I have:

   method-permission 
  descriptiondescription not supported yet by
 ejbdoclet/description
  unchecked/
  method 
 descriptiondescription not supported yet by
 ejbdoclet/description
 ejb-nameClientSessionBean/ejb-name
 method-name*/method-name
  /method
   /method-permission

 and other ones like:

method-permission 
   descriptiondescription not supported yet by
ejbdoclet/description
   unchecked/
   method 
  description![CDATA[]]/description
  ejb-nameClientSessionBean/ejb-name
  method-intfRemote/method-intf
  method-nameauthenticate/method-name
  method-params
 method-paramjava.lang.String/method-param
 method-paramjava.lang.String/method-param
 method-paramjava.lang.String/method-param
  /method-params
   /method
/method-permission

 Is my syntax wrong?  Oddly enough, I've even tried removing ALL the
 method permissions but leaving the security domain enabled, and still
 cannot call into the bean.  I'm doing something else wrong I think.
  Now, to find out what it is!  :)

 gary.




---
This sf.net email is sponsored by: Dice - The leading online job board
for high-tech professionals. Search and apply for tech jobs today!
http://seeker.dice.com/seeker.epl?rel_code=31
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] Migrating to JBoss 3.x

2002-07-31 Thread Jarecsni Jnos

Hi.

Problem disappeared with no clue as to what was happening. Sorry for the
quickness :)

Cheers,
Janos

| -Original Message-
| From: [EMAIL PROTECTED] 
| [mailto:[EMAIL PROTECTED]] On Behalf Of 
| Jarecsni Jnos
| Sent: Wednesday, July 31, 2002 3:37 PM
| To: JBoss-List
| Subject: [JBoss-user] Migrating to JBoss 3.x
| 
| 
| Hi,
| 
| David, thanks for the reply, however, in the meanwhile I 
| succeeded in configuring Postgres. It seems to work (at least 
| it is bound in JNDI). Actually I could not see it in action, 
| cause I have now another exception. I have a JSP which uses a 
| session JSP bean:
| 
| jsp:useBean
|   id=screen
|   class=hu.morganhill.istore.web.Screen
|   scope=session
| /
| 
| When I try to enter the opening screen of our app, JBoss 
| complains about a ClassCastException regarding this Screen 
| class. (I assume that the JSP container tries to cast the 
| session attribute gotten from the SessionContext, or 
| something like this). The very same EAR worked no problem on JB 2.4.4
| 
| Any help is much appreciated.
| 
| Cheers,
| Jnos
| 
| 
| 
| 
| ---
| This sf.net email is sponsored by: Dice - The leading online 
| job board for high-tech professionals. Search and apply for 
| tech jobs today! http://seeker.dice.com/seeker.epl?rel_code1
| ___
| JBoss-user mailing list
| [EMAIL PROTECTED] 
| https://lists.sourceforge.net/lists/listinfo/j| boss-user
| 



---
This sf.net email is sponsored by: Dice - The leading online job board
for high-tech professionals. Search and apply for tech jobs today!
http://seeker.dice.com/seeker.epl?rel_code1
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] CMR local interfaces

2002-07-31 Thread Sebastien CHAUSSON



Hi,

I am a newbie in EJB 2.0, and I don't understand 
how to
access to my relations from the client side 
(because 
relationships seem to work with local interfaces 
only)

I have 2 entity bean : 'owner' and 'dog', and a 
one-to-one
relationship between themselves : a dog has one 
owner, and 
one owner has (only) onedog.

In my OwnerBean class, I define a getDog() method 
which
return a DogLocal interface, so I can't get it from 
my client !

How can I do ?

Thanks

Sebastien CHAUSSON


RE: [JBoss-user] JBossCMP Change Column Names in CMR

2002-07-31 Thread Luttrell, Peter


I actually tried that and it didn't work either. 
The only difference is that instead of complaining that it couldn't find
roles, now it complains that it can't find users.

Any other ideas?

thanks.
.peter

-Original Message-
From: Alex Loubyansky [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 31, 2002 1:11 AM
To: Peter Luttrell
Subject: Re: [JBoss-user] JBossCMP Change Column Names in CMR


You need to interchange key-fields for ejb-relationship-role's in
jbosscmp-jdbc.xml.

I.e.
ejb-relationship-role-nameRole-Belongs-To-User/ejb-relationship-role-name

   key-fields
  key-field
 field-nameroles/field-name
 column-namerole_name/column-name
  /key-field
   /key-fields
...

alex

Wednesday, July 31, 2002, 1:45:57 AM, you wrote:

PL How do you change the column names for a table generated by a
MANY-to-MANY
PL CMR?

PL Here's an example of what i've tried:

PL ejb-jar.xml:

PL ejb-relation
PL ejb-relation-nameUser-Roles/ejb-relation-name
PL ejb-relationship-role
PL
ejb-relationship-role-nameUser-has-multiple-Roles/ejb-relationship-role-n
ame
PL multiplicityMany/multiplicity
PL relationship-role-source
PL ejb-nameUsers/ejb-name
PL /relationship-role-source
PL cmr-field
PL cmr-field-nameroles/cmr-field-name
PL cmr-field-typejava.util.Set/cmr-field-type
PL /cmr-field
PL /ejb-relationship-role
PL ejb-relationship-role
PL
ejb-relationship-role-nameRole-Belongs-To-User/ejb-relationship-role-name

PL multiplicityMany/multiplicity
PL relationship-role-source
PL ejb-nameRoles/ejb-name
PL /relationship-role-source
PL cmr-field
PL cmr-field-nameusers/cmr-field-name
PL cmr-field-typejava.util.Set/cmr-field-type
PL /cmr-field
PL /ejb-relationship-role
PL /ejb-relation

PL My understanding of how to do this is via this entry in
jbosscmp-jdbc.xml:

PL ejb-relation
PL ejb-relation-nameUser-Roles/ejb-relation-name
PL relation-table-mapping
PL table-nameUser_Role/table-name
PL /relation-table-mapping

PL ejb-relationship-role
PL
ejb-relationship-role-nameRole-Belongs-To-User/ejb-relationship-role-name

PL key-fields
PL key-field
PL field-nameusers/field-name
PL column-nameuser_name/column-name
PL /key-field
PL /key-fields
PL /ejb-relationship-role
PL ejb-relationship-role
PL
ejb-relationship-role-nameUser-has-multiple-Roles/ejb-relationship-role-n
ame
PL key-fields
PL key-field
PL field-nameroles/field-name
PL column-namerole_name/column-name
PL /key-field
PL /key-fields
PL /ejb-relationship-role
PL /ejb-relation


PL But the problem is that jboss complains ~ It doesn't seam to be able to
PL locate the users or roles field-name's that i've declared. Here's
the
PL summary error:
PL [ObjectName: jboss.j2ee:service=EJB,jndiName=myBEAN
PL  state: FAILED
PL  I Depend On:
PL  Depends On Me: org.jboss.deployment.DeploymentException: CMP field for
PL key not found: field name=roles, ObjectName:
PL jboss.j2ee:service=EJB,jndiName=myBEAN

PL with the following exception:

PL 17:34:33,434 WARN  [ServiceController] Problem starting service
PL jboss.j2ee:service=EJB,jndiName=myBEAN
PL org.jboss.deployment.DeploymentException: CMP field for key not found:
PL field name=roles
PL at
PL
org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCRelationshipRoleMetaData.loadKey
Fields(JDBCRe
PL lationshipRoleMetaData.java:374)
PL at
PL
org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCRelationshipRoleMetaData.init(JD
BCRelationshi
PL pRoleMetaData.java:157)
PL at
PL
org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCRelationMetaData.init(JDBCRela
tionMetaData.
PL java:308)
PL at
PL
org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCApplicationMetaData.init(JDBCA
pplicationMet
PL aData.java:383)
PL at
PL
org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCXmlFileLoader.load(JDBCXmlFileLo
ader.java:75)

PL at
PL
org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.loadJDBCEntityMetaData(JDBCS
toreManager.j
PL ava:677)
PL at
PL
org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.initStoreManager(JDBCStoreMa
nager.java:38
PL 9)
PL at
PL
org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.start(JDBCStoreManager.java:
339)
PL at
PL
org.jboss.ejb.plugins.CMPPersistenceManager.start(CMPPersistenceManager.java
:198)
PL at org.jboss.ejb.EntityContainer.start(EntityContainer.java:376)
PL at 

Re: [JBoss-user] CMR local interfaces

2002-07-31 Thread Julien Viet



You can't use relationship outside the deployment 
(i.e ejb-jar.xml) scope
which has defined it.

The common solution is to use value objects to 
export data for client :

simple java classes that reflects 
beans

class DogVO { ... }
class OwnerVO { ... DogVo 
dog;...}

and usually you put an accessor for getting VO in 
an session bean
like :

OwnerVO getOwner(int ownerId) { ... }

Julien

  - Original Message - 
  From: 
  Sebastien 
  CHAUSSON 
  To: [EMAIL PROTECTED] 
  
  Sent: Wednesday, July 31, 2002 10:59 
  AM
  Subject: [JBoss-user] CMR  local 
  interfaces
  
  Hi,
  
  I am a newbie in EJB 2.0, and I don't understand 
  how to
  access to my relations from the client side 
  (because 
  relationships seem to work with local interfaces 
  only)
  
  I have 2 entity bean : 'owner' and 'dog', and a 
  one-to-one
  relationship between themselves : a dog has one 
  owner, and 
  one owner has (only) onedog.
  
  In my OwnerBean class, I define a getDog() method 
  which
  return a DogLocal interface, so I can't get it 
  from my client !
  
  How can I do ?
  
  Thanks
  
  Sebastien 
CHAUSSON


[JBoss-user] test

2002-07-31 Thread Michaël Michaël

test



_
Affichez, modifiez et partagez gratuitement vos photos en ligne: 
http://photos.msn.com/support/worldwide.aspx



---
This sf.net email is sponsored by: Dice - The leading online job board
for high-tech professionals. Search and apply for tech jobs today!
http://seeker.dice.com/seeker.epl?rel_code=31
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] iiop-service

2002-07-31 Thread Francisco Reverbel

The iiop-service makes EJBs available to IIOP clients. It allows
CORBA clients or RMI/IIOP clients to invoke methods on EJBs. 

You do not need the iiop-service to do the reverse thing (an EJB
calling an external CORBA server).

Regards,

Francisco


On Mon, 29 Jul 2002, Kamel Haddouche wrote:

 Hello,
 
 I want to use iiop-service for connecting to corba service from a
 sessionBean.
 I have no idea how to use it. how to configure the url and port of the corba
 service?
 Is that possible to call a corba service from an sessionBean?
 
 thank's.
 
 
 
 ---
 This sf.net email is sponsored by: Dice - The leading online job board
 for high-tech professionals. Search and apply for tech jobs today!
 http://seeker.dice.com/seeker.epl?rel_code=31
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user
 



---
This sf.net email is sponsored by: Dice - The leading online job board
for high-tech professionals. Search and apply for tech jobs today!
http://seeker.dice.com/seeker.epl?rel_code=31
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re[2]: [JBoss-user] JBossCMP Change Column Names in CMR

2002-07-31 Thread Alex Loubyansky

AFAIK, DD's are correct (with my remark). Do you really have in the
beans abstract accessors for cmr users and roles?

Wednesday, July 31, 2002, 6:47:55 PM, you wrote:


LP I actually tried that and it didn't work either. 
LP The only difference is that instead of complaining that it couldn't find
LP roles, now it complains that it can't find users.

LP Any other ideas?

LP thanks.
LP .peter

LP -Original Message-
LP From: Alex Loubyansky [mailto:[EMAIL PROTECTED]]
LP Sent: Wednesday, July 31, 2002 1:11 AM
LP To: Peter Luttrell
LP Subject: Re: [JBoss-user] JBossCMP Change Column Names in CMR


LP You need to interchange key-fields for ejb-relationship-role's in
LP jbosscmp-jdbc.xml.

LP I.e.
LP ejb-relationship-role-nameRole-Belongs-To-User/ejb-relationship-role-name

LPkey-fields
LP   key-field
LP  field-nameroles/field-name
LP  column-namerole_name/column-name
LP   /key-field
LP/key-fields
LP ...

LP alex

LP Wednesday, July 31, 2002, 1:45:57 AM, you wrote:

PL How do you change the column names for a table generated by a
LP MANY-to-MANY
PL CMR?

PL Here's an example of what i've tried:

PL ejb-jar.xml:

PL ejb-relation
PL ejb-relation-nameUser-Roles/ejb-relation-name
PL ejb-relationship-role
PL
LP ejb-relationship-role-nameUser-has-multiple-Roles/ejb-relationship-role-n
ame
PL multiplicityMany/multiplicity
PL relationship-role-source
PL ejb-nameUsers/ejb-name
PL /relationship-role-source
PL cmr-field
PL cmr-field-nameroles/cmr-field-name
PL cmr-field-typejava.util.Set/cmr-field-type
PL /cmr-field
PL /ejb-relationship-role
PL ejb-relationship-role
PL
LP ejb-relationship-role-nameRole-Belongs-To-User/ejb-relationship-role-name

PL multiplicityMany/multiplicity
PL relationship-role-source
PL ejb-nameRoles/ejb-name
PL /relationship-role-source
PL cmr-field
PL cmr-field-nameusers/cmr-field-name
PL cmr-field-typejava.util.Set/cmr-field-type
PL /cmr-field
PL /ejb-relationship-role
PL /ejb-relation

PL My understanding of how to do this is via this entry in
LP jbosscmp-jdbc.xml:

PL ejb-relation
PL ejb-relation-nameUser-Roles/ejb-relation-name
PL relation-table-mapping
PL table-nameUser_Role/table-name
PL /relation-table-mapping

PL ejb-relationship-role
PL
LP ejb-relationship-role-nameRole-Belongs-To-User/ejb-relationship-role-name

PL key-fields
PL key-field
PL field-nameusers/field-name
PL column-nameuser_name/column-name
PL /key-field
PL /key-fields
PL /ejb-relationship-role
PL ejb-relationship-role
PL
LP ejb-relationship-role-nameUser-has-multiple-Roles/ejb-relationship-role-n
ame
PL key-fields
PL key-field
PL field-nameroles/field-name
PL column-namerole_name/column-name
PL /key-field
PL /key-fields
PL /ejb-relationship-role
PL /ejb-relation


PL But the problem is that jboss complains ~ It doesn't seam to be able to
PL locate the users or roles field-name's that i've declared. Here's
LP the
PL summary error:
PL [ObjectName: jboss.j2ee:service=EJB,jndiName=myBEAN
PL  state: FAILED
PL  I Depend On:
PL  Depends On Me: org.jboss.deployment.DeploymentException: CMP field for
PL key not found: field name=roles, ObjectName:
PL jboss.j2ee:service=EJB,jndiName=myBEAN

PL with the following exception:

PL 17:34:33,434 WARN  [ServiceController] Problem starting service
PL jboss.j2ee:service=EJB,jndiName=myBEAN
PL org.jboss.deployment.DeploymentException: CMP field for key not found:
PL field name=roles
PL at
PL
LP org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCRelationshipRoleMetaData.loadKey
LP Fields(JDBCRe
PL lationshipRoleMetaData.java:374)
PL at
PL
LP org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCRelationshipRoleMetaData.init(JD
LP BCRelationshi
PL pRoleMetaData.java:157)
PL at
PL
LP org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCRelationMetaData.init(JDBCRela
LP tionMetaData.
PL java:308)
PL at
PL
LP org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCApplicationMetaData.init(JDBCA
LP pplicationMet
PL aData.java:383)
PL at
PL
LP org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCXmlFileLoader.load(JDBCXmlFileLo
LP ader.java:75)

PL at
PL
LP org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.loadJDBCEntityMetaData(JDBCS
LP toreManager.j
PL ava:677)
PL at
PL
LP org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.initStoreManager(JDBCStoreMa
LP nager.java:38
PL 

[JBoss-user] Re: standalone Tomcat

2002-07-31 Thread Jon Swinth

Connecting from Tomcat without the -nonaming option looks like this:

Properties props = new Properties();
props.setProperty(Context.INITIAL_CONTEXT_FACTORY,org.jnp.interfaces.NamingContextFactory);
props.setProperty(Context.URL_PKG_PREFIXES, org.jnp.interfaces);
props.setProperty(Context.PROVIDER_URL, jboss-server:1099);
InitialContext jndiContext = new InitialContext(props);

Be careful NOT to use UserTransaction from Tomcat when connecting in this 
way.  There is an outstanding bug:

http://sourceforge.net/tracker/?func=detailaid=574130group_id=22866atid=376685

Of course you will also need to include the JBoss client JAR files in the 
class path for Tomcat.

 Date: Wed, 31 Jul 2002 16:49:09 +0300
 From: Maris Orbidans [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: [JBoss-user] standalone Tomcat
 Reply-To: [EMAIL PROTECTED]


 hello

 I would like to know how to find JBoss from a WEB app. that runs under =
 standalone Tomcat that is NOT run with -nonaming option.

 The reason for this is that I want to use Environment properties from my =
 WEB app.

 Maris Orbidans


---
This sf.net email is sponsored by: Dice - The leading online job board
for high-tech professionals. Search and apply for tech jobs today!
http://seeker.dice.com/seeker.epl?rel_code=31
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] JBossMQ with firewalls

2002-07-31 Thread Michael Mattox

I'm trying to get JBossMQ working with a server and a client, both
connected to the internet and both behind firewalls.  I have full access
to configure the firewalls however I want.  I can open any ports
necessary.  The problem is I have no idea which ports I should open.  So
here's what I've done:  I have JBoss and JBossMQ running on my computer
at work. The client works fine. I then put the client on my home
computer (both computers are connected to the internet with DSL, and
both have simple Barricade firewalls). It doesn't work at home. I opened
up all the ports I could find in the JBoss config files, including 1099,
, 8090, and 8091. I did this for both computers. It still doesn't
work. I even put them both in the DMZ.  Here is the line of code and the
exception:

TopicConnectionFactory topicConnectionFactory = (TopicConnectionFactory)
jndiContext.lookup(ConnectionFactory);

javax.naming.CommunicationException: Receive timed out. Root exception
is java.
net.SocketTimeoutException: Receive timed out
at java.net.PlainDatagramSocketImpl.receive(Native Method)
at java.net.DatagramSocket.receive(DatagramSocket.java:671)
at org.jnp.interfaces.NamingContext.discoverServer(NamingContext.java:91
9)
at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:997)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:436)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:429)
at javax.naming.InitialContext.lookup(InitialContext.java:347)
at com.x.detector.Detector.receiveEvents(Detector.java:83)
at com.x.detector.Detector.main(Detector.java:49)

Again, this client works perfectly 100% of the time when I run it on the
same computer as the server. I'm sure this is related to the firewall /
NAT. Unfortunately I can't disable this at work to prove it.

If anyone has any ideas on getting this to work I'd greatly appreciate
it.

Thanks,
Michael



---
This sf.net email is sponsored by: Dice - The leading online job board
for high-tech professionals. Search and apply for tech jobs today!
http://seeker.dice.com/seeker.epl?rel_code=31
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] JBossMQ with firewalls

2002-07-31 Thread Dave Smith

In your jndi.properties did you add
java.naming.provider.url=remote machine

This will tell JNDI to make a network lookup via RMI.

Note that on the office firewall you will have to forward ports 1099 and
 to the machine hosting jboss. 

I would suggest get freeswan(www.freeswan.org) VPN running between the
two networks. Saves having to dealing with the firewalls. Also  once you
forward those ports they  will be open to the entire world.



On Wed, 2002-07-31 at 12:26, Michael Mattox wrote:
 I'm trying to get JBossMQ working with a server and a client, both
 connected to the internet and both behind firewalls.  I have full access
 to configure the firewalls however I want.  I can open any ports
 necessary.  The problem is I have no idea which ports I should open.  So
 here's what I've done:  I have JBoss and JBossMQ running on my computer
 at work. The client works fine. I then put the client on my home
 computer (both computers are connected to the internet with DSL, and
 both have simple Barricade firewalls). It doesn't work at home. I opened
 up all the ports I could find in the JBoss config files, including 1099,
 , 8090, and 8091. I did this for both computers. It still doesn't
 work. I even put them both in the DMZ.  Here is the line of code and the
 exception:
 
 TopicConnectionFactory topicConnectionFactory = (TopicConnectionFactory)
 jndiContext.lookup(ConnectionFactory);
 
 javax.naming.CommunicationException: Receive timed out. Root exception
 is java.
 net.SocketTimeoutException: Receive timed out
 at java.net.PlainDatagramSocketImpl.receive(Native Method)
 at java.net.DatagramSocket.receive(DatagramSocket.java:671)
 at org.jnp.interfaces.NamingContext.discoverServer(NamingContext.java:91
 9)
 at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:997)
 at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:436)
 at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:429)
 at javax.naming.InitialContext.lookup(InitialContext.java:347)
 at com.x.detector.Detector.receiveEvents(Detector.java:83)
 at com.x.detector.Detector.main(Detector.java:49)
 
 Again, this client works perfectly 100% of the time when I run it on the
 same computer as the server. I'm sure this is related to the firewall /
 NAT. Unfortunately I can't disable this at work to prove it.
 
 If anyone has any ideas on getting this to work I'd greatly appreciate
 it.
 
 Thanks,
 Michael
 
 
 
 ---
 This sf.net email is sponsored by: Dice - The leading online job board
 for high-tech professionals. Search and apply for tech jobs today!
 http://seeker.dice.com/seeker.epl?rel_code=31
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user




---
This sf.net email is sponsored by: Dice - The leading online job board
for high-tech professionals. Search and apply for tech jobs today!
http://seeker.dice.com/seeker.epl?rel_code=31
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] MBean depends

2002-07-31 Thread Michael Stanley

What is the reasoning to make depends a full ObjectName?  Why not 
support the use of a pattern?

**This also relates back to the use of semantic names instead of 
ObjectNames.  Depending on Semantic Names (or Role) rather than the 
implementation.



-- 
Mike/




---
This sf.net email is sponsored by: Dice - The leading online job board
for high-tech professionals. Search and apply for tech jobs today!
http://seeker.dice.com/seeker.epl?rel_code=31
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



RE: Re[2]: [JBoss-user] JBossCMP Change Column Names in CMR

2002-07-31 Thread Luttrell, Peter


Yep, here's the snipped out of my ejb-jar.xml:

ejb-relation
ejb-relation-nameUser-Roles/ejb-relation-name
ejb-relationship-role
 
ejb-relationship-role-nameUser-has-multiple-Roles/ejb-relationship-role-n
ame
multiplicityMany/multiplicity
relationship-role-source
ejb-nameUsers/ejb-name
/relationship-role-source
cmr-field
cmr-field-nameroles/cmr-field-name
cmr-field-typejava.util.Set/cmr-field-type
/cmr-field
/ejb-relationship-role
ejb-relationship-role
 
ejb-relationship-role-nameRole-Belongs-To-User/ejb-relationship-role-name

multiplicityMany/multiplicity
relationship-role-source
ejb-nameRoles/ejb-name
/relationship-role-source
cmr-field
cmr-field-nameusers/cmr-field-name
cmr-field-typejava.util.Set/cmr-field-type
/cmr-field
/ejb-relationship-role
/ejb-relation

Do I need todo something else here to make the other work?

It's deployed fine and the code works perfectly. I only run into problems
when i added the section in the jbosscmp-jdbc.xml to attempt to change the
column-names.

thanks.
.peter

-Original Message-
From: Alex Loubyansky [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 31, 2002 11:13 AM
To: Luttrell, Peter
Subject: Re[2]: [JBoss-user] JBossCMP Change Column Names in CMR


AFAIK, DD's are correct (with my remark). Do you really have in the
beans abstract accessors for cmr users and roles?

Wednesday, July 31, 2002, 6:47:55 PM, you wrote:


LP I actually tried that and it didn't work either. 
LP The only difference is that instead of complaining that it couldn't find
LP roles, now it complains that it can't find users.

LP Any other ideas?

LP thanks.
LP .peter

LP -Original Message-
LP From: Alex Loubyansky [mailto:[EMAIL PROTECTED]]
LP Sent: Wednesday, July 31, 2002 1:11 AM
LP To: Peter Luttrell
LP Subject: Re: [JBoss-user] JBossCMP Change Column Names in CMR


LP You need to interchange key-fields for ejb-relationship-role's in
LP jbosscmp-jdbc.xml.

LP I.e.
LP
ejb-relationship-role-nameRole-Belongs-To-User/ejb-relationship-role-name

LPkey-fields
LP   key-field
LP  field-nameroles/field-name
LP  column-namerole_name/column-name
LP   /key-field
LP/key-fields
LP ...

LP alex

LP Wednesday, July 31, 2002, 1:45:57 AM, you wrote:

PL How do you change the column names for a table generated by a
LP MANY-to-MANY
PL CMR?

PL Here's an example of what i've tried:

PL ejb-jar.xml:

PL ejb-relation
PL ejb-relation-nameUser-Roles/ejb-relation-name
PL ejb-relationship-role
PL
LP
ejb-relationship-role-nameUser-has-multiple-Roles/ejb-relationship-role-n
ame
PL multiplicityMany/multiplicity
PL relationship-role-source
PL ejb-nameUsers/ejb-name
PL /relationship-role-source
PL cmr-field
PL cmr-field-nameroles/cmr-field-name
PL cmr-field-typejava.util.Set/cmr-field-type
PL /cmr-field
PL /ejb-relationship-role
PL ejb-relationship-role
PL
LP
ejb-relationship-role-nameRole-Belongs-To-User/ejb-relationship-role-name

PL multiplicityMany/multiplicity
PL relationship-role-source
PL ejb-nameRoles/ejb-name
PL /relationship-role-source
PL cmr-field
PL cmr-field-nameusers/cmr-field-name
PL cmr-field-typejava.util.Set/cmr-field-type
PL /cmr-field
PL /ejb-relationship-role
PL /ejb-relation

PL My understanding of how to do this is via this entry in
LP jbosscmp-jdbc.xml:

PL ejb-relation
PL ejb-relation-nameUser-Roles/ejb-relation-name
PL relation-table-mapping
PL table-nameUser_Role/table-name
PL /relation-table-mapping

PL ejb-relationship-role
PL
LP
ejb-relationship-role-nameRole-Belongs-To-User/ejb-relationship-role-name

PL key-fields
PL key-field
PL field-nameusers/field-name
PL column-nameuser_name/column-name
PL /key-field
PL /key-fields
PL /ejb-relationship-role
PL ejb-relationship-role
PL
LP
ejb-relationship-role-nameUser-has-multiple-Roles/ejb-relationship-role-n
ame
PL key-fields
PL key-field
PL field-nameroles/field-name
PL column-namerole_name/column-name
PL /key-field
PL /key-fields
PL /ejb-relationship-role
PL 

[JBoss-user] Complex relationships involving relationships to M-to-M EJB relationships

2002-07-31 Thread Allan Kamau

I’d like to know how I can create an EJB relationship
involving an EJB and a pre-existing relationship (of
many to many) of two EJB.
I have the following scenario: I have User, Group and
Department objects/entities. A User belongs to zero or
more groups and a group contains zero or more users.
The association of a user and group is then to be
associated to one or more departments. 
In a nutshell a User is given rights and privileges
depending on the group they are in. Then the user may
then participate in a department’s activities
depending on the group they belong to. 
The problem I am facing is that how can I get to treat
the association EJB (User-Group) as an EJB so I may
then create a many to many relationship between it and
the Department EJB using Set collections on the
relationship tag (in the ejb-jar.xml) of both the
EJBs.
Any suggestions are welcomed on how I should model the
association between the department and the User-Group,
including how my relationship tag in the deployment
descriptor may look like.
Thanks in advance.
Allan.


__
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com


---
This sf.net email is sponsored by: Dice - The leading online job board
for high-tech professionals. Search and apply for tech jobs today!
http://seeker.dice.com/seeker.epl?rel_code=31
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] MBean depends

2002-07-31 Thread David Jencks

We've talked about this, but no one has had the time to implement it yet
and make sure it actually works.

david jencks

On 2002.07.31 13:23:36 -0400 Michael Stanley wrote:
 What is the reasoning to make depends a full ObjectName?  Why not 
 support the use of a pattern?
 
 **This also relates back to the use of semantic names instead of 
 ObjectNames.  Depending on Semantic Names (or Role) rather than the 
 implementation.
 
 
 
 -- 
 Mike/
 
 
 
 
 ---
 This sf.net email is sponsored by: Dice - The leading online job board
 for high-tech professionals. Search and apply for tech jobs today!
 http://seeker.dice.com/seeker.epl?rel_code=31
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user
 
 


---
This sf.net email is sponsored by: Dice - The leading online job board
for high-tech professionals. Search and apply for tech jobs today!
http://seeker.dice.com/seeker.epl?rel_code=31
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Trying to connect

2002-07-31 Thread Enrique Vetere



Hi,
 
I'm unable to connect to a datasource from a client. I think this setup was 
previously working, the only difference is that I installed jdk 
1.4

The jndi.properties 
is:

 
java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
 
java.naming.provider.url=localhost:1099
 
java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces

But I keep getting 
Name not bound, eve

the lookup("java:/MSSQLDS") fails with 


 
javax.naming.NameNotFoundException: MSSQLDS not 
bound
even when I can see 
the name under java: Namespace in the JNDIView.

Any 
idea?

Enrique 
Vetere---Baufesthttp://www.baufest.comPhone: 
11-4807-8080Av. Las Heras 3257(C1425ASJ) Buenos Aires - 
Argentina---



RE: Re[2]: [JBoss-user] JBossCMP Change Column Names in CMR

2002-07-31 Thread Luttrell, Peter

I found the solution to my problem, so i thought i'd post it in case anyone
else runs into the same problem.

In the jbosscmp-jdbc.xml file, for the field-name fields, instead of the cmr
fields that i was specifying, you need to specify the primarykey fields for
the related beans. 

Thus this:

ejb-relation
ejb-relation-nameUser-Roles/ejb-relation-name
relation-table-mapping
table-nameUser_Role/table-name
/relation-table-mapping

ejb-relationship-role
 
ejb-relationship-role-nameRole-Belongs-To-User/ejb-relationship-role-name

key-fields
key-field
field-nameroles/field-name
column-namerole_name/column-name
/key-field
/key-fields
/ejb-relationship-role
ejb-relationship-role
 
ejb-relationship-role-nameUser-has-multiple-Roles/ejb-relationship-role-n
ame
key-fields
key-field
field-nameusers/field-name
column-nameuser_name/column-name
/key-field
/key-fields
/ejb-relationship-role
/ejb-relation

Becomes this:

ejb-relation
ejb-relation-nameUser-Roles/ejb-relation-name
relation-table-mapping
table-nameUser_Role/table-name
/relation-table-mapping

ejb-relationship-role
 
ejb-relationship-role-nameRole-Belongs-To-User/ejb-relationship-role-name

key-fields
key-field
field-namename/field-name
column-namerole_name/column-name
/key-field
/key-fields
/ejb-relationship-role
ejb-relationship-role
 
ejb-relationship-role-nameUser-has-multiple-Roles/ejb-relationship-role-n
ame
key-fields
key-field
field-nameuserName/field-name
column-nameuser_name/column-name
/key-field
/key-fields
/ejb-relationship-role
/ejb-relation


To figure it out, I used middlegen to reverse engineer my dbschema, at which
point i noticed that the field-names weren't what I was doing.

.peter

-Original Message-
From: Alex Loubyansky [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 31, 2002 11:13 AM
To: Luttrell, Peter
Subject: Re[2]: [JBoss-user] JBossCMP Change Column Names in CMR


AFAIK, DD's are correct (with my remark). Do you really have in the
beans abstract accessors for cmr users and roles?

Wednesday, July 31, 2002, 6:47:55 PM, you wrote:


LP I actually tried that and it didn't work either. 
LP The only difference is that instead of complaining that it couldn't find
LP roles, now it complains that it can't find users.

LP Any other ideas?

LP thanks.
LP .peter

LP -Original Message-
LP From: Alex Loubyansky [mailto:[EMAIL PROTECTED]]
LP Sent: Wednesday, July 31, 2002 1:11 AM
LP To: Peter Luttrell
LP Subject: Re: [JBoss-user] JBossCMP Change Column Names in CMR


LP You need to interchange key-fields for ejb-relationship-role's in
LP jbosscmp-jdbc.xml.

LP I.e.
LP
ejb-relationship-role-nameRole-Belongs-To-User/ejb-relationship-role-name

LPkey-fields
LP   key-field
LP  field-nameroles/field-name
LP  column-namerole_name/column-name
LP   /key-field
LP/key-fields
LP ...

LP alex

LP Wednesday, July 31, 2002, 1:45:57 AM, you wrote:

PL How do you change the column names for a table generated by a
LP MANY-to-MANY
PL CMR?

PL Here's an example of what i've tried:

PL ejb-jar.xml:

PL ejb-relation
PL ejb-relation-nameUser-Roles/ejb-relation-name
PL ejb-relationship-role
PL
LP
ejb-relationship-role-nameUser-has-multiple-Roles/ejb-relationship-role-n
ame
PL multiplicityMany/multiplicity
PL relationship-role-source
PL ejb-nameUsers/ejb-name
PL /relationship-role-source
PL cmr-field
PL cmr-field-nameroles/cmr-field-name
PL cmr-field-typejava.util.Set/cmr-field-type
PL /cmr-field
PL /ejb-relationship-role
PL ejb-relationship-role
PL
LP
ejb-relationship-role-nameRole-Belongs-To-User/ejb-relationship-role-name

PL multiplicityMany/multiplicity
PL relationship-role-source
PL ejb-nameRoles/ejb-name
PL /relationship-role-source
PL cmr-field
PL cmr-field-nameusers/cmr-field-name
PL cmr-field-typejava.util.Set/cmr-field-type
PL /cmr-field
PL /ejb-relationship-role
PL /ejb-relation

PL My understanding of how to do this is via this entry in
LP jbosscmp-jdbc.xml:

PL ejb-relation
PL

RE: [JBoss-user] problems with multiple login modules.

2002-07-31 Thread Brian Topping

Is this fixed?  I'm running 3.0.1RC1 and also having a problem.  Is it me?
Possibly.  Probably... 

Config:

application-policy name=OracleDbRealm
authentication
login-module
code=org.jboss.security.auth.spi.UsersRolesLoginModule flag=sufficient/
/authentication
authentication
login-module
code=org.jboss.security.auth.spi.DatabaseServerLoginModule
flag=sufficient
module-option
name=dsJndiNamejava:/OracleDS/module-option
module-option name=principalsQueryselect
password from Userz where username=?/module-option
module-option name=rolesQueryselect role,
roleGroup from Role r, Userz u where r.user_id=u.id and
u.username=?/module-option
/login-module
/authentication
/application-policy

When DatabaseServerLoginModule is taken out of login-config, it works fine.
When the DatabaseServerLoginModule is put in, UsersRolesLoginModule fails.
The error message is DEBUG [UsersRolesLoginModule] Bad password for
username=wanker.  

Why would UsersRolesLoginModule fail just because the application-policy/
contains another authentication/?  Is it jealous or something?  Wiggo!

btw, DatabaseServerLoginModule has been tested and works fine, but
UsersRolesLoginModule has one entry only and is there for bootstrapping the
tables that DatabaseServerLoginModule looks at, hence the reason for using
'sufficient'.

TIA!

-b

 -Original Message-
 From: Scott M Stark [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, July 10, 2002 10:40 AM
 To: [EMAIL PROTECTED]
 Subject: Re: [JBoss-user] problems with multiple login modules.
 
 
 In 3.0.0 the flag attribute was not parsed correctly and 
 always defaulted
 to required. This should be fixed in 3.0.1RC1.
 
 
 Scott Stark
 Chief Technology Officer
 JBoss Group, LLC
 
 - Original Message -
 From: Dag Kilskar Naess [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Wednesday, July 10, 2002 6:54 AM
 Subject: [JBoss-user] problems with multiple login modules.
 
 
  Hi all.
  I have problems combining 2 login modules. First I wrote 2 
 custom login
  modules which individually work fine. But when I combine 
 them like this:
 
  application-policy name = connectClientDomain
 authentication
  login-module code = 
 no.boostcom.security.MedlemsregisterLoginModule
   flag = sufficient
  module-option name
 unauthenticatedIdentityanybody/module-option
/login-module
 
  login-module code = no.boostcom.security.AdminLoginModule
  flag = required
   module-option name =
 unauthenticatedIdentityanybody/module-option
/login-module
 /authentication
/application-policy
 
  They suddenly do not work. Which I found very strange. I 
 treid sveral
  combinations of login-module flags like (optional, 
 optional), (sufficient,
  required), (sufficient, optional), (sufficient, sufficient) 
 and so on
 whitout
  any visible effedt. Next I tried swithing login modules 
 from  my custom
 login
  modules to trivial UsersRolesLoginModules, which also work fine
 individually
  but combined they still fail if one of them fails no matter 
 how you set
 the
  flags. I've also tried swithing VM from sun's 1.4.0 to 
 IBM1.3 but the
 result
  is still the same:
 
 
 
 
 ---
 This sf.net email is sponsored by:ThinkGeek
 Two, two, TWO treats in one.
 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: Dice - The leading online job board
for high-tech professionals. Search and apply for tech jobs today!
http://seeker.dice.com/seeker.epl?rel_code1
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Type mapping

2002-07-31 Thread Enrique Vetere



In 
standardjbosscmp-jdbc.xml the java-type BigDecimal is mapped to VARCHAR in MS 
SQLServer and 2000.
Why?
Whereis the 
map for "decimal" type of SQLServer?
Where is the jdbc 
type's "int" map?


Enrique 
Vetere---Baufesthttp://www.baufest.comPhone: 
11-4807-8080Av. Las Heras 3257(C1425ASJ) Buenos Aires - 
Argentina---



Re: [JBoss-user] application security configuration

2002-07-31 Thread Gary S. Cuozzo

Ok, I got my app to work!  Had some minor configuration problems on both 
client  server side that I had to work through.  But, this definately 
led me on the right track.  Now I just have to formalize my security 
policies and implement them 100%.

Thanks for the help.  :-)
gary.


Scott M Stark wrote:

Any methods without permissions are equivalent to defining the methods
to be in the exclude-list and not invokable by anyone. When a
security-domain
is defined the default is no access. You have to explicity define what
should
be accessible. You also cannot make calls to unchecked methods from
an unsecured servlet. There still has to be a principal without roles. See
the
security chapter in the admin and devel book.


Scott Stark
Chief Technology Officer
JBoss Group, LLC

- Original Message -
From: Gary S. Cuozzo [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, July 31, 2002 7:08 AM
Subject: Re: [JBoss-user] application security configuration


In my ejb-jar.xml file I have:

  method-permission 
 descriptiondescription not supported yet by
ejbdoclet/description
 unchecked/
 method 
descriptiondescription not supported yet by
ejbdoclet/description
ejb-nameClientSessionBean/ejb-name
method-name*/method-name
 /method
  /method-permission

and other ones like:

   method-permission 
  descriptiondescription not supported yet by

ejbdoclet/description

  unchecked/
  method 
 description![CDATA[]]/description
 ejb-nameClientSessionBean/ejb-name
 method-intfRemote/method-intf
 method-nameauthenticate/method-name
 method-params
method-paramjava.lang.String/method-param
method-paramjava.lang.String/method-param
method-paramjava.lang.String/method-param
 /method-params
  /method
   /method-permission

Is my syntax wrong?  Oddly enough, I've even tried removing ALL the
method permissions but leaving the security domain enabled, and still
cannot call into the bean.  I'm doing something else wrong I think.
 Now, to find out what it is!  :)

gary.





---
This sf.net email is sponsored by: Dice - The leading online job board
for high-tech professionals. Search and apply for tech jobs today!
http://seeker.dice.com/seeker.epl?rel_code=31
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user





---
This sf.net email is sponsored by: Dice - The leading online job board
for high-tech professionals. Search and apply for tech jobs today!
http://seeker.dice.com/seeker.epl?rel_code=31
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Trying to connect

2002-07-31 Thread David Jencks

This never worked using jboss.  You need to be in the same vm to look up
anything in java:

david jencks

On 2002.07.31 14:32:02 -0400 Enrique Vetere wrote:
 Hi,
 I'm unable to connect to a datasource from a client. I think this
 setup
 was previously working, the only difference is that I installed jdk 1.4
 
 The jndi.properties is:
 
 java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
 java.naming.provider.url=localhost:1099
 java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
 
 But I keep getting Name not bound, eve
 
 the lookup(java:/MSSQLDS) fails with
 javax.naming.NameNotFoundException: MSSQLDS not bound
 
 even when I can see the name under java: Namespace in the JNDIView.
 
 Any idea?
 
 Enrique Vetere
 ---
 Baufest
 http://www.baufest.com
 Phone: 11-4807-8080
 Av. Las Heras 3257
 (C1425ASJ) Buenos Aires - Argentina
 ---
 
 
 
 ---
 Outgoing mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.351 / Virus Database: 197 - Release Date: 19/04/02
 
 !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN
 HTMLHEAD
 META content=text/html; charset=iso-8859-1 http-equiv=Content-Type
 META content=MSHTML 5.00.2919.6307 name=GENERATOR/HEAD
 BODY
 DIVFONT face=Arial size=2SPAN 
 class=840112618-31072002Hi,/SPAN/FONT/DIV
 DIVFONT face=Arial size=2SPAN class=840112618-31072002nbsp;nbsp;nbsp;
 
 I'm unable to connect to a datasource from a client. I think this setup
 was 
 previously working, the only difference is that I installed jdk 
 1.4/SPAN/FONT/DIV
 DIVFONT face=Arial size=2SPAN 
 class=840112618-31072002/SPAN/FONTnbsp;/DIV
 DIVFONT face=Arial size=2SPAN class=840112618-31072002The
 jndi.properties 
 is:/SPAN/FONT/DIV
 DIVSPAN class=840112618-31072002nbsp;/DIV
 DIVFONT size=2FONT face=ArialSPAN 
 class=840112618-31072002nbsp;nbsp;nbsp; 
 
/SPANjava.naming.factory.initial=org.jnp.interfaces.NamingContextFactory/FONT/FONT/DIV
 DIVFONT size=2FONT face=ArialSPAN 
 class=840112618-31072002nbsp;nbsp;nbsp; 
 /SPANjava.naming.provider.url=localhost:1099/FONT/FONT/DIV
 DIVFONT size=2FONT face=ArialSPAN 
 class=840112618-31072002nbsp;nbsp;nbsp; 
 
/SPANjava.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces/FONT/FONT/DIV
 DIV/SPANnbsp;/DIV
 DIVFONT face=Arial size=2SPAN class=840112618-31072002But I keep
 getting 
 Name not bound, eve/SPAN/FONT/DIV
 DIVnbsp;/DIV
 DIVFONT face=Arial size=2SPAN class=840112618-31072002the
 lookup(FONT 
 color=#2a00ff size=2FONT color=#00/FONTjava:/MSSQLDS) fails
 with 
 /FONT/SPAN/FONT/DIV
 DIVSPAN class=840112618-31072002
 PFONT size=2FONT color=#ffFONT face=ArialSPAN 
 class=840112618-31072002nbsp;nbsp;nbsp; 
 /SPANjavax.naming.NameNotFoundException: MSSQLDS not 
 bound/FONT/FONT/FONT/P/SPAN/DIV
 DIVFONT face=Arial size=2SPAN class=840112618-31072002even when I
 can see 
 the name under java: Namespace in the JNDIView./SPAN/FONT/DIV
 DIVFONT face=Arial size=2SPAN 
 class=840112618-31072002/SPAN/FONTnbsp;/DIV
 DIVFONT face=Arial size=2SPAN class=840112618-31072002Any 
 idea?/SPAN/FONT/DIV
 DIVFONT face=Arial size=2SPAN 
 class=840112618-31072002/SPAN/FONTnbsp;/DIV
 DIVFONT face=Arial size=2SPAN class=840112618-31072002/SPAN/FONTFONT
 
 face=Arial size=2Enrique 
 
VetereBR---BRBaufestBRA
 
 href=http://www.baufest.com/;http://www.baufest.com/ABRPhone: 
 11-4807-8080BRAv. Las Heras 3257BR(C1425ASJ) Buenos Aires - 
 
ArgentinaBR---BR/DIV/FONT
 DIVnbsp;/DIV/BODY/HTML
 


---
This sf.net email is sponsored by: Dice - The leading online job board
for high-tech professionals. Search and apply for tech jobs today!
http://seeker.dice.com/seeker.epl?rel_code=31
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] FireBird JBoss

2002-07-31 Thread Stephen Davidson


OoookkkKkkaayyy.  When did that rar file disappear from my deploy directory?  I put it 
there! Honest!

Thanks, David.  That seems to have been the last issue.

Many of my relatives live in Fl, so I occasionally wander around that state.

-Steve

David Jencks wrote:

 Are you sure after all the changes you've made that the firebirdsql.rar is
 still being deployed?  This line suggests it isn't:
 
 ObjectName: jboss.jca:service=XaTxDS,name=FirebirdDS
   state: CONFIGURED
   I Depend On:   jboss.jca:service=RARDeployment,name=Firebird Database
 Connector
 
 
 (BTW I currently live in south florida, not too close to Toronto;-)
 
 david jencks
 
 On 2002.07.30 14:46:09 -0400 Stephen Davidson wrote:
 
Hi David.

Tried both of your suggestions, and several variations.

As I will eventually be creating/dropping databases with some of the
applications that are going to be getting used, I would very much like to
have the FBManager running.

Attached is the last attempt I made to get this to work.  I think I must
be having a Low-IQ day today, because I am still getting errors.

Your help is appreciated.  Next time I am in the Toronto Area, I owe you
a lunch or dinner (you are in Toronto, right?).
Steve

13:39:43,285 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
Packages waiting for a deployer:
   none
Incompletely deployed packages:
   none
MBeans waiting for classes:
   none
MBeans waiting for other MBeans:
[ObjectName: jboss.jca:service=XaTxCM,name=FirebirdDS
  state: CONFIGURED
  I Depend On:   jboss.jca:service=RARDeployer
   jboss.jca:service=XaTxDS,name=FirebirdDS
   jboss.jca:service=XaTxPool,name=FirebirdDS
   jboss.jca:service=CachedConnectionManager
   jboss.security:service=JaasSecurityManager

  Depends On Me: , ObjectName: jboss.jca:service=XaTxDS,name=FirebirdDS
  state: CONFIGURED
  I Depend On:   jboss.jca:service=RARDeployment,name=Firebird Database
Connector

  Depends On Me:   jboss.jca:service=XaTxCM,name=FirebirdDS
]
13:39:43,290 INFO  [URLDeploymentScanner] Started
13:39:43,291 INFO  [MainDeployer] Deployed package:
file:/home/jboss/jboss-all/build/output/jboss-3.0.1RC1/server/default/conf/jboss-service.xml
13:39:43,296 ERROR [Server] start failed
Incomplete Deployment listing:
Packages waiting for a deployer:
   none
Incompletely deployed packages:
   none
MBeans waiting for classes:
   none
MBeans waiting for other MBeans:
[ObjectName: jboss.jca:service=XaTxCM,name=FirebirdDS
  state: CONFIGURED
  I Depend On:   jboss.jca:service=RARDeployer
   jboss.jca:service=XaTxDS,name=FirebirdDS
   jboss.jca:service=XaTxPool,name=FirebirdDS
   jboss.jca:service=CachedConnectionManager
   jboss.security:service=JaasSecurityManager

  Depends On Me: , ObjectName: jboss.jca:service=XaTxDS,name=FirebirdDS
  state: CONFIGURED
  I Depend On:   jboss.jca:service=RARDeployment,name=Firebird Database
Connector

  Depends On Me:   jboss.jca:service=XaTxCM,name=FirebirdDS
]
 at 
org.jboss.deployment.MainDeployer.checkIncompleteDeployments(MainDeployer.java:1091)
 at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:583)
 at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:565)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at 
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
 at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491)
 at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:319)
 at org.jboss.system.server.ServerImpl.start(ServerImpl.java:216)
 at org.jboss.Main.boot(Main.java:142)
 at org.jboss.Main$1.run(Main.java:375)
 at java.lang.Thread.run(Thread.java:536)
13:39:43,313 ERROR [STDERR] Incomplete Deployment listing:
Packages waiting for a deployer:
   none
Incompletely deployed packages:
   none
MBeans waiting for classes:
   none
MBeans waiting for other MBeans:
[ObjectName: jboss.jca:service=XaTxCM,name=FirebirdDS
  state: CONFIGURED
  I Depend On:   jboss.jca:service=RARDeployer
   jboss.jca:service=XaTxDS,name=FirebirdDS
   jboss.jca:service=XaTxPool,name=FirebirdDS
   jboss.jca:service=CachedConnectionManager
   jboss.security:service=JaasSecurityManager

  Depends On Me: , ObjectName: jboss.jca:service=XaTxDS,name=FirebirdDS
  state: CONFIGURED
  I Depend On:   jboss.jca:service=RARDeployment,name=Firebird Database
Connector

  Depends On Me:   jboss.jca:service=XaTxCM,name=FirebirdDS
]
13:39:43,314 ERROR [STDERR] at 
org.jboss.deployment.MainDeployer.checkIncompleteDeployments(MainDeployer.java:1091)
13:39:43,314 ERROR [STDERR] at 
org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:583)
13:39:43,314 ERROR [STDERR] at 

[JBoss-user] Session bean (client and server side) security question

2002-07-31 Thread Fee Ling Chin

Hi,

What is the best way to access a session bean with 2 different security
domains?  Let's say I want external clients to authenticate and get
authorization to call a session bean method but I don't want to impose any
security for other server components to access the same session bean.
Basically I want to secure the bean for client applications but not on the
server.

I am familiar with setting up JBoss security and I probably can create a
private and public session beans to do this but I think there is a better
approach than this solution.

Thanks in advance.
Fee


---
This sf.net email is sponsored by: Dice - The leading online job board
for high-tech professionals. Search and apply for tech jobs today!
http://seeker.dice.com/seeker.epl?rel_code=31
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Session bean (client and server side) security question

2002-07-31 Thread Scott M Stark

Deploy the bean twice, one with a security domain and one without.
Specify the home interfaces for the unsecured bean to be under the
java: JNDI context so that they are only usable from inside of the server.


Scott Stark
Chief Technology Officer
JBoss Group, LLC

- Original Message -
From: Fee Ling Chin [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, July 31, 2002 2:13 PM
Subject: [JBoss-user] Session bean (client and server side) security
question


 Hi,

 What is the best way to access a session bean with 2 different security
 domains?  Let's say I want external clients to authenticate and get
 authorization to call a session bean method but I don't want to impose any
 security for other server components to access the same session bean.
 Basically I want to secure the bean for client applications but not on the
 server.

 I am familiar with setting up JBoss security and I probably can create a
 private and public session beans to do this but I think there is a better
 approach than this solution.

 Thanks in advance.
 Fee


 ---
 This sf.net email is sponsored by: Dice - The leading online job board
 for high-tech professionals. Search and apply for tech jobs today!
 http://seeker.dice.com/seeker.epl?rel_code=31
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user




---
This sf.net email is sponsored by: Dice - The leading online job board
for high-tech professionals. Search and apply for tech jobs today!
http://seeker.dice.com/seeker.epl?rel_code=31
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] RE: Database queries

2002-07-31 Thread Burkhard Vogel

Hi,
we came accross a comarable issue and stuffed all queries into a dbtable.
Using CMP for this and using the driver meta-data to track down the
manufacture left use with a simpe call of getQuery(String UniqueQueryName)
which retrieved any apropriate querystring.
Just a thought.
Burkhard
- Original Message -
From: Craig Johannsen [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, July 13, 2002 11:46 AM
Subject: [JBoss-user] RE: Database queries


 Hi Dimitri,

 In my opinion, you will end up with too many classes
 using a class per query approach.  I would recommend
 instead the following approach:
 1.) Define an interface for all queries
(e.g., ProjectManagementSQL_IF).
 Each query would be a function in this interface
 (e.g., getProjectDeletionSQL())
 2.) Define an abstract base class
 (e.g., ProjectManagementSQL_Base)
 to implement SQL operations that are common
 to many if not all DBMS that you will support.
 For example, getProjectDeletionSQL() would return
 DELETE FROM tbl_project WHERE ID=?.  That is,
 use prepared statements.
 3.) From this base class, derive a class for each
 supported DBMS (e.g., ProjectManagementSQL_Oracle,
 ProjectManagementSQL_DB2, etc.) to implement any
 DBMS-specific SQL.
 4.) Define a factory class
 (e.g., ProjectManagementSQL_Factory)
 that permits you to specify
 the desired DBMS implementation.
 For example,
 ProjectManagementSQL_IF pmsql =
   ProjectManagementSQL_Factory.getDbmsImplementation(ORACLE);
 String projDelSQL = pmsql.getProjectDeletionSQL();
 5.) If ProjectManagementSQL_IF becomes too large,
 you can refactor it into a separate interface
 for each functional domain in your application.
 For example,
 a.)  ProjectManagementAdminSQL_IF
 b.)  ProjectManagementReportSQL_IF
 c.)  ProjectManagementExportSQL_IF

 Regards,
 Craig

 --- Original Message ---
 Message: 4
 From: Dimitri PISSARENKO [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Date: Sat, 13 Jul 2002 14:43:42 +0200
 Subject: [JBoss-user] Database queries
 Reply-To: [EMAIL PROTECTED]

 Hello!

 In my application I have a lot of SQL queries to the database. I want
 to implement them in a way, which in future should allow an easy
 migration to another database (I'm using bean-managed-persistence).

 One of the problems of database migration are slight differences in
 the syntax of SQL queries at different DBMS.

 Now I have a special class for each query, so instead of writing



 Statement statement =3D conn.createStatement();
 statement.executeUpdate(DELETE FROM tbl_project WHERE ID=3D + 1);


 I write

 Statement statement =3D conn.createStatement();
 ProjectDeletionQuery query =3D new ProjectDeletionQuery(1);
 statement.executeUpdate(query.toString());



 where ProjectDeletionQuery is defined as



 public class ProjectDeletionQuery
 {
 public ProjectDeletionQuery(int pk)
 {
 this.primaryKey =3D pk;
 }
 public String toString()
 {
 return DELETE FROM tbl_project WHERE ID=3D + this.primaryKey;
 }

 private int primaryKey;
 }



 I would like to know whether there are more elegant ways to separate
 SQL query syntax from the code (perhaps a special Java library or a
 tool).

 Thanks in advance

 Dimitri Pissarenko



 ---
 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: Dice - The leading online job board
for high-tech professionals. Search and apply for tech jobs today!
http://seeker.dice.com/seeker.epl?rel_code=31
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Date Comparison with JBossQL

2002-07-31 Thread Hunter Hillegas

Does JBossQL allow date comparisons in the WHERE clause? Looking at the
manual, it looks like not...

If I want that, will I have to go with DeclaredSQL instead?

Just want to confirm...

Thanks,
Hunter



---
This sf.net email is sponsored by: Dice - The leading online job board
for high-tech professionals. Search and apply for tech jobs today!
http://seeker.dice.com/seeker.epl?rel_code=31
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Thinking about subclassing JRMPInvoker

2002-07-31 Thread Gerald Turner

I'm working on a project with JBoss which has a few odd requirements I
think would be nice to implement with JMS/MDBs and some JBoss hackery:

Auditing of particular entity bean setters.

It'd be cool if transacted messages (containing bean name, method name,
old value, new value, and Principal) were produced onto a Topic so that
a MDB could pick them up, check if they're interesting (because system
admins will want to shut off auditing of certain beans or setters), and
optionally do what it takes to audit (execute a SQL insert into some
audit table, or perhaps ejbCreate an Audit bean).

Problem is the beans are CMP, so I can't simply produce messages by
writing some code on the setters because they're abstract, AFAIK it must
be done through some interceptor.  The JBossSX SecurityProxy came to
mind, but I don't think it will participate with the transaction context
(it's just an interface afterall), in other words, if the transactions
where these setters are being invoked get rolled back, the auditing will
still occur.

So I've been thinking about setting jboss.xml bean-invoker elements for
these entity beans to my own subclass of JRMPInvoker (that's what they
default to FWICT) that overrides 'invoke', calls 'super.invoke()', and
produces messages...  I've never touched MBeans before, so I'm quite
uncertain that any of this will work, or perhaps there's a better way -
I thought I'd ask the list before I dive into JBoss internals.

Any advice would be greatly appreciated!


There are a couple more EJB-rule-breaking things I'd like to try such as
the message selector equivalent of Dynamic QL, but that comes much
later.

-- 
Gerald TurnerEmail: [EMAIL PROTECTED]Phone: (503) 788-1720
GPG: 0xFA8CD6D5  21D9 B2E8 7FE7 F19E 5F7D  4D0C 3FA0 810F FA8C D6D5


---
This sf.net email is sponsored by: Dice - The leading online job board
for high-tech professionals. Search and apply for tech jobs today!
http://seeker.dice.com/seeker.epl?rel_code=31
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Gerçek adres

2002-07-31 Thread Bilgehan Teacher

Kaliteli pornonun adresi: http://www.noseks.com
Binlerce porno resim ve film.
Yasanmis gerçek hikayeler.
Türk ünlülerin kaçamak ve gizli resimleri.
Adult oyunlar.
Telekizlar.
Hepsi http://www.noseks.com adresinde. sadece tiklayin




†+,~w­zf¢–+,¦‰ì¢·o 
âqäázWšv)à¢ybèèmº­×è® †×œ†šè}ë,Š‰Ú–Äžj·!jwZ¦™r~ŠíyÈc¡»-¡Ö²†ÛiÿûzG«v'r‰¿±ç¤z·©–·¥r‡^ßRA¢Ë.±êæj)bž
  
b²ÒA¢Ë.±êåŠËl²‹«qç讧zØm¶›?þX¬¶Ë(º·~Šàzw­þX¬¶ÏåŠËbú?º,²ë


Re: [JBoss-user] Thinking about subclassing JRMPInvoker

2002-07-31 Thread David Jencks

I recommend an interceptor.  As regards transactional behavior, if you need
it completely transactional, send the messages as the setter invocations go
by in the tx context (make sure your interceptor is after the tx
interceptor so the thread gets the right tx).  If you only need 95% (??)
reliability you can accumulate the messages in a list in the interceptor,
register a synchronization object with the tx, and send them all
(non-transactionally) on afterCompletion(true) or not if the tx rolls back.

In the setup methods (probably start, maybe init) you can examine  the
methods of your ejb and make a set of methods that you want to respond to. 
Then, when an invocation goes by, you get the method object out, see if
it's in your set, and decide whether to audit it.

I don't understand how your jrmp invoker idea would work.  For one thing,
it won't necessarily have the correct tx context, so there may be no way
whatsoever to get the messages transactional.


If you want fancier behavior you could encourage me to finish the rule
engine plugin I wrote which works on more or less this principle and would
let you apply fancy rules to deciding whether or not to send the message.

david jencks

On 2002.07.31 21:00:30 -0400 Gerald Turner wrote:
 I'm working on a project with JBoss which has a few odd requirements I
 think would be nice to implement with JMS/MDBs and some JBoss hackery:
 
 Auditing of particular entity bean setters.
 
 It'd be cool if transacted messages (containing bean name, method name,
 old value, new value, and Principal) were produced onto a Topic so that
 a MDB could pick them up, check if they're interesting (because system
 admins will want to shut off auditing of certain beans or setters), and
 optionally do what it takes to audit (execute a SQL insert into some
 audit table, or perhaps ejbCreate an Audit bean).
 
 Problem is the beans are CMP, so I can't simply produce messages by
 writing some code on the setters because they're abstract, AFAIK it must
 be done through some interceptor.  The JBossSX SecurityProxy came to
 mind, but I don't think it will participate with the transaction context
 (it's just an interface afterall), in other words, if the transactions
 where these setters are being invoked get rolled back, the auditing will
 still occur.
 
 So I've been thinking about setting jboss.xml bean-invoker elements for
 these entity beans to my own subclass of JRMPInvoker (that's what they
 default to FWICT) that overrides 'invoke', calls 'super.invoke()', and
 produces messages...  I've never touched MBeans before, so I'm quite
 uncertain that any of this will work, or perhaps there's a better way -
 I thought I'd ask the list before I dive into JBoss internals.
 
 Any advice would be greatly appreciated!
 
 
 There are a couple more EJB-rule-breaking things I'd like to try such as
 the message selector equivalent of Dynamic QL, but that comes much
 later.
 
 -- 
 Gerald TurnerEmail: [EMAIL PROTECTED]Phone: (503) 788-1720
 GPG: 0xFA8CD6D5  21D9 B2E8 7FE7 F19E 5F7D  4D0C 3FA0 810F FA8C D6D5
 
 
 ---
 This sf.net email is sponsored by: Dice - The leading online job board
 for high-tech professionals. Search and apply for tech jobs today!
 http://seeker.dice.com/seeker.epl?rel_code=31
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user
 
 


---
This sf.net email is sponsored by: Dice - The leading online job board
for high-tech professionals. Search and apply for tech jobs today!
http://seeker.dice.com/seeker.epl?rel_code=31
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] JBoss.Net Question

2002-07-31 Thread Greg Turner

I have deployed a web service that exposes a method of a simple class.
I am able to access the web service with a client program with no
problem and I am also able to browse the wsdl.

I have deployed a second web service that exposes a method of a session
bean.  I am also able to access this web service with a client program.
However, I am unable to browse the wsdl.  When I try to do so, I get an
Axis error, java.lang.ClassCastException $Proxy23.

Here is my deployment descriptor for this web service.  Can anyone tell
what I am doing wrong that prevents me from browsing the wsdl at
http://localhost:8080/axis/services/Hello?wsdl  Thanks

deployment
 xmlns=http://xml.apache.org/axis/wsdd/;
 targetNamespace=http://net.jboss.org/hello;
 xmlns:hello=http://net.jboss.org/hello;
 xmlns:java=http://xml.apache.org/axis/wsdd/providers/java;

 service name=Hello provider=Handler
  parameter name=handlerClass
value=org.jboss.net.axis.server.EJBProvider/
parameter name=beanJndiName value=HelloEjb/
parameter name=homeInterfaceName value=HelloLocalHome/
  parameter name=allowedMethods value=*/

requestFlow name=HelloRequest
 handler name =TransactionRequestHandler
type=java:org.jboss.net.axis.server.TransactionRequestHandler/
/requestFlow

responseFlow name=HelloResponse
 handler name=SerialisationResponseHandler
type=java:org.jboss.net.axis.server.SerialisationResponseHandler/
 handler name=TransactionResponseHandler
type=java:org.jboss.net.axis.server.TransactionResponseHandler/
/responseFlow

  /service
/deployment


Greg




---
This sf.net email is sponsored by: Dice - The leading online job board
for high-tech professionals. Search and apply for tech jobs today!
http://seeker.dice.com/seeker.epl?rel_code=31
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user