[JBoss-user] sotring a cmr result set

2002-11-26 Thread kiuma
Hello,
is there any possibility to sort a cmr collection without putting the 
result in a SortedSet?
regards,
kiuma



---
This SF.net email is sponsored by: Get the new Palm Tungsten T 
handheld. Power & Color in a compact size! 
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] JBoss, JDK1.4, FreeBSD

2002-11-26 Thread Schnitzer, Jeff
Has anyone gotten JBoss working on any type of JDK 1.4 on FreeBSD?

If so, can you post the version numbers you are using, any special
command-line options you are passing to java, and any tricks you might
have used to make it work?

I get the horrible HotSpot Virtual Machine Error : 11 halfway through
the startup using both the sun and blackdown linux jdks, server and
client mode (although client gets farther).  I know that Java on FreeBSD
is a tough proposition, but is it a lost cause?

Thanks,
Jeff Schnitzer
[EMAIL PROTECTED]


---
This SF.net email is sponsored by: Get the new Palm Tungsten T
handheld. Power & Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] deploying war file

2002-11-26 Thread SainTiss
Hi,

I'm working without a mapping currently, but
warname/servlets/servletname is giving me a 404, just like
warname/servlet/servletname...

Hans

On Tue, 2002-11-26 at 20:10, Emerson Cargnin - SICREDI Serviços wrote:
> it depends of the mapping you created on your web.xml
> 
> if no mapping is created, the default is 
> localhost:8080/warname/servlets/sevletname
> 
> someone correct me if I'm not right.
> 
> you can use servlet mapping to take the servlets from the URL.
> 
> like :
>
>  HtmlAdaptor
>  /HtmlAdaptor
>
> 
> take a look at tomcat or jboss docs/examples to see how to do it.
> a good example can be found at :
> 
> JBOSS_HOME/server/default/deploy/jmx-console.war/WEB-INF/web.xml
> 
> SainTiss wrote:
> > Hi,
> > 
> > I'm trying to create a servlet here...
> > 
> > I've already created a .war file, and jboss says it's been deployed
> > correctly...
> > 
> > Now what is the url for the servlet?
> > 
> > localhost:8080/ is the only thing that doesn't yield an error,
> > but it doesn't execute the servlet either..
> > 
> > Thanks
> > 
> > Hans
> > 
> > 
> 
> 
> -- 
> 
> | Emerson Cargnin  |
> | Analista de Sistemas Sr. |
> | Tel : (051) 3358-4959|
> | SICREDI Serviços |
> | Porto Alegre - Brasil|
> |xx|
> 
> 
> 
> ---
> This SF.net email is sponsored by: Get the new Palm Tungsten T 
> handheld. Power & Color in a compact size! 
> http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 




signature.asc
Description: This is a digitally signed message part


[JBoss-user] Error Saving Entity with Oracle

2002-11-26 Thread Todd M Benge
Hi,

I'm running into troubles when saving an entity bean in Oracle 8.1.7. 
The same code works properly when the datasource is a MS SQL Server 
database.  The following exception is displayed in the log file.  I'd 
appreciate any tips.

Thanks.

Todd

2002-11-26 16:50:20,619 ERROR [org.jboss.ejb.GlobalTxEntityMap] Store 
failed on entity: NetworkElementBean
java.rmi.ServerException: Store failed; nested exception is:
   java.lang.ClassCastException
   at 
org.jboss.ejb.plugins.jaws.jdbc.JDBCStoreEntityCommand.execute(JDBCStoreEntityCommand.java:100)
   at 
org.jboss.ejb.plugins.jaws.JAWSPersistenceManager.storeEntity(JAWSPersistenceManager.java:301)
   at 
org.jboss.ejb.plugins.CMPPersistenceManager.storeEntity(CMPPersistenceManager.java:458)
   at 
org.jboss.resource.connectionmanager.CachedConnectionInterceptor.storeEntity(CachedConnectionInterceptor.java:388)
   at org.jboss.ejb.EntityContainer.storeEntity(EntityContainer.java:708)
   at 
org.jboss.ejb.GlobalTxEntityMap.syncEntities(GlobalTxEntityMap.java:99)
   at 
org.jboss.ejb.GlobalTxEntityMap$GlobalTxEntityMapCleanup.beforeCompletion(GlobalTxEntityMap.java:168)
   at org.jboss.tm.TxCapsule.doBeforeCompletion(TxCapsule.java:1394)
   at org.jboss.tm.TxCapsule.commit(TxCapsule.java:364)
   at org.jboss.tm.TransactionImpl.commit(TransactionImpl.java:73)
   at 
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:201)
   at 
org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:60)
   at 
org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:130)
   at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:203)
   at 
org.jboss.ejb.StatelessSessionContainer.invoke(StatelessSessionContainer.java:313)
   at org.jboss.ejb.Container.invoke(Container.java:712)
   at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
   at 
org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:381)
   at sun.reflect.GeneratedMethodAccessor38.invoke(Unknown Source)
   at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:324)
   at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261)
   at sun.rmi.transport.Transport$1.run(Transport.java:148)
   at java.security.AccessController.doPrivileged(Native Method)
   at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
   at 
sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
   at 
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
   at java.lang.Thread.run(Thread.java:536)
Caused by: java.lang.ClassCastException
   at 
oracle.jdbc.driver.OraclePreparedStatement.setObject(OraclePreparedStatement.java:1959)
   at 
oracle.jdbc.driver.OraclePreparedStatement.setObject(OraclePreparedStatement.java:2052)
   at 
org.jboss.resource.adapter.jdbc.local.LocalPreparedStatement.setObject(LocalPreparedStatement.java:607)
   at 
org.jboss.ejb.plugins.jaws.jdbc.JDBCCommand.setParameter(JDBCCommand.java:351)
   at 
org.jboss.ejb.plugins.jaws.jdbc.JDBCStoreEntityCommand.setParameters(JDBCStoreEntityCommand.java:133)
   at 
org.jboss.ejb.plugins.jaws.jdbc.JDBCCommand.jdbcExecute(JDBCCommand.java:175)
   at 
org.jboss.ejb.plugins.jaws.jdbc.JDBCStoreEntityCommand.execute(JDBCStoreEntityCommand.java:96)
   ... 27 more




---
This SF.net email is sponsored by: Get the new Palm Tungsten T 
handheld. Power & Color in a compact size! 
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Using the same JAAS user to open connections

2002-11-26 Thread Emerson Cargnin - SICREDI Serviços
That is not necessary but might be a good idea.  You do have to include tha
JaasSecurityDomain attribute with the name you give your
CallerIdentitytLoginModule

david


ok, but include where? in the
? (that's where the 
user/pass currently goes)

and i take the user/pass from there??


i uncomment and changed the following snippet :



   
  
  
   


but what woul'd be the  module-option attributes with this loginmodule?


sorry to bother so much, but it looks really tricky ...









Please report on your success.

thanks
david jencks


On 2002.11.25 15:17:48 -0500 Emerson Cargnin - SICREDI Serviços wrote:



We use Jaas Ldap LoginModule to make the authentication/authorization.
Can someone explain me (or tell me where can I find at 
forum/maillist/jboss 3.0.4 admbook) how to set the oracle-services.xml 
to use the same user that's logged at the session bean (a session
facade)?




--

| Emerson Cargnin  |
| Analista de Sistemas Sr. |
| Tel : (051) 3358-4959|
| SICREDI Serviços |
| Porto Alegre - Brasil|
|xx|



---
This SF.net email is sponsored by: Get the new Palm Tungsten T
handheld. Power & Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user





---
This SF.net email is sponsored by: Get the new Palm Tungsten T 
handheld. Power & Color in a compact size! 
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



--

| Emerson Cargnin  |
| Analista de Sistemas Sr. |
| Tel : (051) 3358-4959|
| SICREDI Serviços |
| Porto Alegre - Brasil|
|xx|



---
This SF.net email is sponsored by: Get the new Palm Tungsten T
handheld. Power & Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user






---
This SF.net email is sponsored by: Get the new Palm Tungsten T 
handheld. Power & Color in a compact size! 
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



--

| Emerson Cargnin  |
| Analista de Sistemas Sr. |
| Tel : (051) 3358-4959|
| SICREDI Serviços |
| Porto Alegre - Brasil|
|xx|



---
This SF.net email is sponsored by: Get the new Palm Tungsten T
handheld. Power & Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] CMR/CMP Primary-key/Foreign Key Question

2002-11-26 Thread Dain Sundstrom
I think Alex has this working in 4.0, but I don't think it is 
documented yet.

-dain

On Tuesday, November 26, 2002, at 01:15 PM, Eric Klimas wrote:

Hi all,

I'm trying write entity beans in Jboss 3.0.4 that have a CMR as part of
the primary key.  Is this even possible with EJB (I'd hope so).
Basically I have the following tables/objects

Tables:
Account:
  accountNum:number
  
  pk: accountNum

Userids:
  accountNum:number
  userid:String
  startdate:date
  
  pk: accountNum, userid, startdate
  fk: accountNum that refs Account table

The relationship is 1-M (accounts-userids) in case you haven't guessed,
so I used xdoclet to build the relationship between the two and I put 
an
@ejb:pk-field tag on the relationship methods but that doesn't seem to
work in looking at the generated code.

I also tried at one point to have accountNum on my UserEJB be a
persisted field and tried to have a relation at the same time, but that
didn't work for some reason either (can't remember what it was at this
point)

So my question is, is this possible in CMP 2.0, and if so, can somebody
give me some pointers/advice.

Thanks,
  Eric



---
This SF.net email is sponsored by: Get the new Palm Tungsten T
handheld. Power & Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



---
This SF.net email is sponsored by: Get the new Palm Tungsten T 
handheld. Power & Color in a compact size! 
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Using the same JAAS user to open connections

2002-11-26 Thread David Jencks
On 2002.11.26 13:23:12 -0500 Emerson Cargnin - SICREDI Serviços wrote:
> 
> 
> David Jencks wrote:
> > I admit I have never set it up and tried it...
> > 
> > In the oracle-service.xml specify a jaas security domain
> > 
> > In the jaas security domain setup in login-conf.xml use the
> > CallerIdentityLoginModule.
> > 
> > I am not entirely sure how to set up the login module so it will get
> the
> > existing user/pw from the SecurityAssociation.  The possibilities I
> would
> > try are to have a separate security domain for the caller identity
> login
> > module and also to include that login module in your primary security
> > domain. (and mention this one in your oracle-service.xml)
> > 
> 
> how to metion this one (the CallerIdentityLoginModule i suppose) at the 
> oracle-services.xml?
> 
> Do I have to take the user/pass out of the atribute 
> ManagedConnectionFactoryProperties ??

That is not necessary but might be a good idea.  You do have to include tha
JaasSecurityDomain attribute with the name you give your
CallerIdentitytLoginModule

david
> 
> 
> > Please report on your success.
> > 
> > thanks
> > david jencks
> > 
> > 
> > On 2002.11.25 15:17:48 -0500 Emerson Cargnin - SICREDI Serviços wrote:
> > 
> >>We use Jaas Ldap LoginModule to make the authentication/authorization.
> >>Can someone explain me (or tell me where can I find at 
> >>forum/maillist/jboss 3.0.4 admbook) how to set the oracle-services.xml 
> >>to use the same user that's logged at the session bean (a session
> >>facade)?
> >>
> >>
> >>
> >>
> >>-- 
> >>
> >>| Emerson Cargnin  |
> >>| Analista de Sistemas Sr. |
> >>| Tel : (051) 3358-4959|
> >>| SICREDI Serviços |
> >>| Porto Alegre - Brasil|
> >>|xx|
> >>
> >>
> >>
> >>---
> >>This SF.net email is sponsored by: Get the new Palm Tungsten T
> >>handheld. Power & Color in a compact size!
> >>http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
> >>___
> >>JBoss-user mailing list
> >>[EMAIL PROTECTED]
> >>https://lists.sourceforge.net/lists/listinfo/jboss-user
> >>
> >>
> > 
> > 
> > 
> > ---
> > This SF.net email is sponsored by: Get the new Palm Tungsten T 
> > handheld. Power & Color in a compact size! 
> > http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
> > ___
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/jboss-user
> > 
> 
> 
> -- 
> 
> | Emerson Cargnin  |
> | Analista de Sistemas Sr. |
> | Tel : (051) 3358-4959|
> | SICREDI Serviços |
> | Porto Alegre - Brasil|
> |xx|
> 
> 
> 
> ---
> This SF.net email is sponsored by: Get the new Palm Tungsten T
> handheld. Power & Color in a compact size!
> http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 
> 


---
This SF.net email is sponsored by: Get the new Palm Tungsten T
handheld. Power & Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] deploying war file

2002-11-26 Thread Emerson Cargnin - SICREDI Serviços
it depends of the mapping you created on your web.xml

if no mapping is created, the default is 
localhost:8080/warname/servlets/sevletname

someone correct me if I'm not right.

you can use servlet mapping to take the servlets from the URL.

like :
  
HtmlAdaptor
/HtmlAdaptor
  

take a look at tomcat or jboss docs/examples to see how to do it.
a good example can be found at :

JBOSS_HOME/server/default/deploy/jmx-console.war/WEB-INF/web.xml

SainTiss wrote:
Hi,

I'm trying to create a servlet here...

I've already created a .war file, and jboss says it's been deployed
correctly...

Now what is the url for the servlet?

localhost:8080/ is the only thing that doesn't yield an error,
but it doesn't execute the servlet either..

Thanks

Hans





--

| Emerson Cargnin  |
| Analista de Sistemas Sr. |
| Tel : (051) 3358-4959|
| SICREDI Serviços |
| Porto Alegre - Brasil|
|xx|



---
This SF.net email is sponsored by: Get the new Palm Tungsten T
handheld. Power & Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] deploying war file

2002-11-26 Thread SainTiss
Hi,

I'm trying to create a servlet here...

I've already created a .war file, and jboss says it's been deployed
correctly...

Now what is the url for the servlet?

localhost:8080/ is the only thing that doesn't yield an error,
but it doesn't execute the servlet either..

Thanks

Hans





signature.asc
Description: This is a digitally signed message part


Re: [JBoss-user] IllegalAccessError with package private methods in the same jar

2002-11-26 Thread Scott M Stark
Most likely this is an instance of the following bug:
[ 644289 ] ClassLoader issue with protected access and manifest refs
http://sourceforge.net/tracker/index.php?func=detail&aid=644289&group_id=22866&atid=376685

You have to move the common jar that contains the classes using package protected
access to the server/xxx/lib directory to ensure that only a single class loader it
associated with it.


Scott Stark
Chief Technology Officer
JBoss Group, LLC


- Original Message -
From: "anna schricker" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, November 26, 2002 12:52 AM
Subject: [JBoss-user] IllegalAccessError with package private methods in the same jar


Hi,

I have the following problem:

I have a servlet that calls a class derived from JUnit Testcase which again calls 
class A and class B in the same package. The
testclass, class A and class B are packaged in the same jar, the servlet is in a 
war-file and jar and war are together in an
ear-file.
 When class A calls a package private method in class B I often get an 
IllegalAccessError but not always. Sometimes when I
build and deploy the classes again it is ok.
I found that when the error occurs class A and class B are loaded by different 
classloaders.
Both classes are not referenced from any classes in the war-file.

>From what I read in the newsgroups this can occur when classes reside in different 
>jars which is not the case.
My questions:
1. Why is this happening? I found the error only when accessing the classes via 
serlvet and Testcase-class.
2. Is there a way to prevent this? Can I tell JBoss to load all classes inside a jar 
with the same classloader?

I am using JBoss 3.0.2 with jetty.

Thanks for any help,

Anna

anna schricker
virtual identity ag
grünwälder str. 10-14
79098 freiburg
[EMAIL PROTECTED]
tel.: +761-20758-404




---
This SF.net email is sponsored by: Get the new Palm Tungsten T
handheld. Power & Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



---
This SF.net email is sponsored by: Get the new Palm Tungsten T 
handheld. Power & Color in a compact size! 
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Using the same JAAS user to open connections

2002-11-26 Thread Emerson Cargnin - SICREDI Serviços


David Jencks wrote:

I admit I have never set it up and tried it...

In the oracle-service.xml specify a jaas security domain

In the jaas security domain setup in login-conf.xml use the
CallerIdentityLoginModule.

I am not entirely sure how to set up the login module so it will get the
existing user/pw from the SecurityAssociation.  The possibilities I would
try are to have a separate security domain for the caller identity login
module and also to include that login module in your primary security
domain. (and mention this one in your oracle-service.xml)



how to metion this one (the CallerIdentityLoginModule i suppose) at the 
oracle-services.xml?

Do I have to take the user/pass out of the atribute 
ManagedConnectionFactoryProperties ??


Please report on your success.

thanks
david jencks


On 2002.11.25 15:17:48 -0500 Emerson Cargnin - SICREDI Serviços wrote:


We use Jaas Ldap LoginModule to make the authentication/authorization.
Can someone explain me (or tell me where can I find at 
forum/maillist/jboss 3.0.4 admbook) how to set the oracle-services.xml 
to use the same user that's logged at the session bean (a session
facade)?




--

| Emerson Cargnin  |
| Analista de Sistemas Sr. |
| Tel : (051) 3358-4959|
| SICREDI Serviços |
| Porto Alegre - Brasil|
|xx|



---
This SF.net email is sponsored by: Get the new Palm Tungsten T
handheld. Power & Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user





---
This SF.net email is sponsored by: Get the new Palm Tungsten T 
handheld. Power & Color in a compact size! 
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



--

| Emerson Cargnin  |
| Analista de Sistemas Sr. |
| Tel : (051) 3358-4959|
| SICREDI Serviços |
| Porto Alegre - Brasil|
|xx|



---
This SF.net email is sponsored by: Get the new Palm Tungsten T
handheld. Power & Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] CMR/CMP Primary-key/Foreign Key Question

2002-11-26 Thread Eric Klimas
Hi all,

I'm trying write entity beans in Jboss 3.0.4 that have a CMR as part of
the primary key.  Is this even possible with EJB (I'd hope so). 
Basically I have the following tables/objects

Tables:
Account:
  accountNum:number
  
  pk: accountNum

Userids:
  accountNum:number
  userid:String
  startdate:date
  
  pk: accountNum, userid, startdate
  fk: accountNum that refs Account table

The relationship is 1-M (accounts-userids) in case you haven't guessed,
so I used xdoclet to build the relationship between the two and I put an
@ejb:pk-field tag on the relationship methods but that doesn't seem to
work in looking at the generated code.  

I also tried at one point to have accountNum on my UserEJB be a
persisted field and tried to have a relation at the same time, but that
didn't work for some reason either (can't remember what it was at this
point)

So my question is, is this possible in CMP 2.0, and if so, can somebody
give me some pointers/advice.

Thanks,
  Eric



---
This SF.net email is sponsored by: Get the new Palm Tungsten T 
handheld. Power & Color in a compact size! 
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] multi-threaded remote client

2002-11-26 Thread Beau Cronin
Thanks for your response.

Unfortunately, my application depends on using commit option A for 
performance reasons.

All of my remote session beans use the "Required" Tx attribute, not 
"RequiresNew".  But it seems to me that separate remote calls (from 
separate client threads) should trigger separate transactions.  How 
could these separate transactions be simultaneously accessing the same 
business methods?  Are the bean instances not thread safe?

So, is there any way to have multithreaded access from the client?  How 
does this work if there are multiple separate clients?

Beau

saroj kumar wrote:

Hi ,

1st Problem can be solved using Commit Option B/C. Refer to TX related
Stuff.

2nd Prob is due to the fact that you are iterating the CMR Collection
In a different TX. Error Message is explanatory.

Are you using TXNew Attribute in one of your methods? It may be due to
this.

Ex:

SLSB A.doSomething()  B.getX() 

A.doSomething() has TX Required And B.getX() has TX New and it returns 
You a CMR Collection.

Of Course, there may be other combinations as well.

-Saroj







-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Beau Cronin
Sent: Tuesday, November 26, 2002 3:18 AM
To: [EMAIL PROTECTED]
Subject: [JBoss-user] multi-threaded remote client


Hi all.  I've been having problems with a multi-threaded remote client. 
  I'd like to have two threads on a client accessing JBoss remotely, 
possibly the same data at the same time.  When I do this naively and 
both clients try to access the same entities, JBoss throws one of two 
errors:

13:40:57,457 ERROR [BeanLock] Application deadlock detected: 
TransactionImpl:XidImpl [FormatId=257, 
GlobalId=misosoup.ICSI.Berkeley.EDU//19663, BranchQual=] has deadlock 
conditions.  Two or more transactions contending for same resources and 
each have locks eachother need.

or

13:43:09,470 ERROR [STDERR] 
javax.ejb.TransactionRolledbackLocalException: The iterator of a CMR 
collection may only be used within the transction in which it which it 
was created

In the first case, it seems like each thread is creating its own 
transaction and that these transactions are in contention.  In the 
second, it seems like both threads are triggering calls in the same 
transaction and that these are trying to iterate over the same CMR 
Collection.

I've tried using both the same remote object and different ones; both 
situations lead to the same result.

So the question is: how do I do multithreaded remote access from a 
client to avoid this?  Note that different clients don't have this 
problem, only mutlitple threads from the same client.

Thanks,

Beau Cronin



---
This SF.net email is sponsored by: Get the new Palm Tungsten T 
handheld. Power & Color in a compact size! 
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



---
This SF.net email is sponsored by: Get the new Palm Tungsten T 
handheld. Power & Color in a compact size! 
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user







---
This SF.net email is sponsored by: Get the new Palm Tungsten T 
handheld. Power & Color in a compact size! 
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] how to export an MBean via RMI?

2002-11-26 Thread Geer, Benjamin
I have an MBean that runs within JBoss, and extends
java.rmi.server.UnicastRemoteObject.  I'd like to make it available to
RMI clients outside JBoss.  I haven't found anything specifically about
this in the JBoss documentation, but the Administration and Development
Guide gives me the impression that the JBoss NamingService MBean acts as
a kind of built-in RMI registry, since it seems to provide this service
automatically for EJBs.  Questions:

1. Can I indeed register my UnicastRemoteObject with the JBoss
NamingService, so remote clients can use it via RMI?  If so, what API
should I use in order to register it: java.rmi.Naming, or a JBoss class?
(If not, do I need to run 'rmiregistry' alongside JBoss?)

2. How should clients obtain a reference to the object?  (By doing a
traditional RMI lookup using java.rmi.Naming?  By doing a JNDI lookup in
the JBoss naming service, and then using PortableRemoteObject.narrow()
on the reference returned?)

Benjamin Geer
Misys Intl. Banking Systems


---
This SF.net email is sponsored by: Get the new Palm Tungsten T 
handheld. Power & Color in a compact size! 
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Using the same JAAS user to open connections

2002-11-26 Thread Emerson Cargnin - SICREDI Serviços
thanks, i'll try it.

David Jencks wrote:

It's for use with resource adapters/connectors, so its in the connector
module

org.jboss.resource.security.CallerIdentityLoginModule

Same place as ConfiguredIdentityLoginModule.

david jencks

On 2002.11.26 10:55:26 -0500 Emerson Cargnin - SICREDI Serviços wrote:



David Jencks wrote:


I admit I have never set it up and tried it...

In the oracle-service.xml specify a jaas security domain

In the jaas security domain setup in login-conf.xml use the
CallerIdentityLoginModule.



you mean IdentityLoginModule?? the CallerIdentityLoginModule doens't 
appear under org.jboss.security.auth.spi.


I am not entirely sure how to set up the login module so it will get


the


existing user/pw from the SecurityAssociation.  The possibilities I


would


try are to have a separate security domain for the caller identity


login


module and also to include that login module in your primary security
domain. (and mention this one in your oracle-service.xml)

Please report on your success.

thanks
david jencks


On 2002.11.25 15:17:48 -0500 Emerson Cargnin - SICREDI Serviços wrote:



We use Jaas Ldap LoginModule to make the authentication/authorization.
Can someone explain me (or tell me where can I find at 
forum/maillist/jboss 3.0.4 admbook) how to set the oracle-services.xml 
to use the same user that's logged at the session bean (a session
facade)?




--

| Emerson Cargnin  |
| Analista de Sistemas Sr. |
| Tel : (051) 3358-4959|
| SICREDI Serviços |
| Porto Alegre - Brasil|
|xx|



---
This SF.net email is sponsored by: Get the new Palm Tungsten T
handheld. Power & Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user





---
This SF.net email is sponsored by: Get the new Palm Tungsten T 
handheld. Power & Color in a compact size! 
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



--

| Emerson Cargnin  |
| Analista de Sistemas Sr. |
| Tel : (051) 3358-4959|
| SICREDI Serviços |
| Porto Alegre - Brasil|
|xx|



---
This SF.net email is sponsored by: Get the new Palm Tungsten T
handheld. Power & Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user






---
This SF.net email is sponsored by: Get the new Palm Tungsten T 
handheld. Power & Color in a compact size! 
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



--

| Emerson Cargnin  |
| Analista de Sistemas Sr. |
| Tel : (051) 3358-4959|
| SICREDI Serviços |
| Porto Alegre - Brasil|
|xx|



---
This SF.net email is sponsored by: Get the new Palm Tungsten T
handheld. Power & Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] log4j and jboss: where is log4j.properties?

2002-11-26 Thread Sebastian Hauer
Check your appender.
It probably has its threshold set to INFO.
Either remove the threshold or create a new appender with no threshold
level set and reference it from your category definition:
E.g.:

  


  

  

  


  

Sebastian


> -Original Message-
> From: Aaron Metzger [mailto:[EMAIL PROTECTED]] 
> Sent: Tuesday, November 26, 2002 11:54 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [JBoss-user] log4j and jboss: where is log4j.properties?
> 
> 
> 
> Sorry to glom onto someone else's thread, but I have a 
> related question.
> 
> After setting up your own category, as below, everything works nicely 
> for my ejbs but Servlets under Jetty don't seem to see the elevated 
> priority level when I jack my "com.xxx." priority up to DEBUG.  All 
> output from my servlets still only show at INFO and higher as if they 
> are being filtered only by JBoss category and priority levels.
> 
> Any way to get servlet output at DEBUG level?


---
This SF.net email is sponsored by: Get the new Palm Tungsten T
handheld. Power & Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Using the same JAAS user to open connections

2002-11-26 Thread David Jencks
It's for use with resource adapters/connectors, so its in the connector
module

org.jboss.resource.security.CallerIdentityLoginModule

Same place as ConfiguredIdentityLoginModule.

david jencks

On 2002.11.26 10:55:26 -0500 Emerson Cargnin - SICREDI Serviços wrote:
> 
> 
> David Jencks wrote:
> > I admit I have never set it up and tried it...
> > 
> > In the oracle-service.xml specify a jaas security domain
> > 
> > In the jaas security domain setup in login-conf.xml use the
> > CallerIdentityLoginModule.
> > 
> you mean IdentityLoginModule?? the CallerIdentityLoginModule doens't 
> appear under org.jboss.security.auth.spi.
> 
> > I am not entirely sure how to set up the login module so it will get
> the
> > existing user/pw from the SecurityAssociation.  The possibilities I
> would
> > try are to have a separate security domain for the caller identity
> login
> > module and also to include that login module in your primary security
> > domain. (and mention this one in your oracle-service.xml)
> > 
> > Please report on your success.
> > 
> > thanks
> > david jencks
> > 
> > 
> > On 2002.11.25 15:17:48 -0500 Emerson Cargnin - SICREDI Serviços wrote:
> > 
> >>We use Jaas Ldap LoginModule to make the authentication/authorization.
> >>Can someone explain me (or tell me where can I find at 
> >>forum/maillist/jboss 3.0.4 admbook) how to set the oracle-services.xml 
> >>to use the same user that's logged at the session bean (a session
> >>facade)?
> >>
> >>
> >>
> >>
> >>-- 
> >>
> >>| Emerson Cargnin  |
> >>| Analista de Sistemas Sr. |
> >>| Tel : (051) 3358-4959|
> >>| SICREDI Serviços |
> >>| Porto Alegre - Brasil|
> >>|xx|
> >>
> >>
> >>
> >>---
> >>This SF.net email is sponsored by: Get the new Palm Tungsten T
> >>handheld. Power & Color in a compact size!
> >>http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
> >>___
> >>JBoss-user mailing list
> >>[EMAIL PROTECTED]
> >>https://lists.sourceforge.net/lists/listinfo/jboss-user
> >>
> >>
> > 
> > 
> > 
> > ---
> > This SF.net email is sponsored by: Get the new Palm Tungsten T 
> > handheld. Power & Color in a compact size! 
> > http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
> > ___
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/jboss-user
> > 
> 
> 
> -- 
> 
> | Emerson Cargnin  |
> | Analista de Sistemas Sr. |
> | Tel : (051) 3358-4959|
> | SICREDI Serviços |
> | Porto Alegre - Brasil|
> |xx|
> 
> 
> 
> ---
> This SF.net email is sponsored by: Get the new Palm Tungsten T
> handheld. Power & Color in a compact size!
> http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 
> 


---
This SF.net email is sponsored by: Get the new Palm Tungsten T
handheld. Power & Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Same deployment unit?

2002-11-26 Thread David Ward
Serlvet goes in war, EJB in jar.  Servlet can use local interface to ejb 
since war and jar both in an ear (the "same deployment unit").

A Servlet can *not* use a local interface of an ejb that's on a 
different app server.  That would, by definition, imply "remote."

You can find out the nitty-gritty details by reading the J2EE, EJB, and 
Servlet specs.

Hope this helps,
David

--

SainTiss wrote:
Hi,

I've read that a servlet for example could have access to an EJB's local
interface, if the servlet is in the same deployment unit as the EJB...

Does this mean it has to be on the same application server? Or does this
mean it's got to be in the same jar? 

In the second case there seems to be a problem, since servlets seem to
go in war files and EJB's in jar files...

Thanks

Hans





---
This SF.net email is sponsored by: Get the new Palm Tungsten T 
handheld. Power & Color in a compact size! 
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] Same deployment unit?

2002-11-26 Thread SainTiss
Hi,

I've read that a servlet for example could have access to an EJB's local
interface, if the servlet is in the same deployment unit as the EJB...

Does this mean it has to be on the same application server? Or does this
mean it's got to be in the same jar? 

In the second case there seems to be a problem, since servlets seem to
go in war files and EJB's in jar files...

Thanks

Hans





signature.asc
Description: This is a digitally signed message part


Re: [JBoss-user] log4j and jboss: where is log4j.properties?

2002-11-26 Thread Aaron Metzger

Sorry to glom onto someone else's thread, but I have a related question.

After setting up your own category, as below, everything works nicely 
for my ejbs but Servlets under Jetty don't seem to see the elevated 
priority level when I jack my "com.xxx." priority up to DEBUG.  All 
output from my servlets still only show at INFO and higher as if they 
are being filtered only by JBoss category and priority levels.

Any way to get servlet output at DEBUG level?

Thanks.


saroj kumar wrote:
Hi,

Sorry for delayed reply.

You need to create a Category like :

   --- Your package hier.
 -- the level of logging you want to enable
  






---
This SF.net email is sponsored by: Get the new Palm Tungsten T 
handheld. Power & Color in a compact size! 
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Using the same JAAS user to open connections

2002-11-26 Thread Emerson Cargnin - SICREDI Serviços


David Jencks wrote:

I admit I have never set it up and tried it...

In the oracle-service.xml specify a jaas security domain

In the jaas security domain setup in login-conf.xml use the
CallerIdentityLoginModule.


you mean IdentityLoginModule?? the CallerIdentityLoginModule doens't 
appear under org.jboss.security.auth.spi.

I am not entirely sure how to set up the login module so it will get the
existing user/pw from the SecurityAssociation.  The possibilities I would
try are to have a separate security domain for the caller identity login
module and also to include that login module in your primary security
domain. (and mention this one in your oracle-service.xml)

Please report on your success.

thanks
david jencks


On 2002.11.25 15:17:48 -0500 Emerson Cargnin - SICREDI Serviços wrote:


We use Jaas Ldap LoginModule to make the authentication/authorization.
Can someone explain me (or tell me where can I find at 
forum/maillist/jboss 3.0.4 admbook) how to set the oracle-services.xml 
to use the same user that's logged at the session bean (a session
facade)?




--

| Emerson Cargnin  |
| Analista de Sistemas Sr. |
| Tel : (051) 3358-4959|
| SICREDI Serviços |
| Porto Alegre - Brasil|
|xx|



---
This SF.net email is sponsored by: Get the new Palm Tungsten T
handheld. Power & Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user





---
This SF.net email is sponsored by: Get the new Palm Tungsten T 
handheld. Power & Color in a compact size! 
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



--

| Emerson Cargnin  |
| Analista de Sistemas Sr. |
| Tel : (051) 3358-4959|
| SICREDI Serviços |
| Porto Alegre - Brasil|
|xx|



---
This SF.net email is sponsored by: Get the new Palm Tungsten T
handheld. Power & Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] jndi name of the mysql database

2002-11-26 Thread linuxman
hi,

I have a simple BMP to test jboss and mysql, but the problem is, I can 
access mysql server with the jboss specific database name java:/MySQL, 
but can not when I change to java:comp/env/jdbc/MySQL. here is my jboss.xml:

.
   
   jdbc/MySQL
   java:/MySQL
   
..

and here is my ejb-jar.xml:


   
   jdbc/MySQL
   javax.sql.DataSource
   Container
   


And here is mysql-service.xml in deploy directory:

.

 

   MySQL

   
 
   jdbc:mysql://dell:3306/jbossdb
   com.mysql.jdbc.Driver
   
   root
   mypassword
 

   
.

And I have put mysql.jdbc.jar to the deploy directory, the same as 
mysql-service.xml.

Here is the snippit that access MySQL server in the Bean class:

.
   try {
   Context c = new InitialContext();
   ds = (DataSource) c.lookup("java:comp/env/jdbc/MySQL");
   } catch (NamingException ex) {
   logger.debug( "Caught nameException in setEntityContext " + ex);
   throw new EJBException("Datasource name lookup failed. " + ex);
   }
..

I noticed that, everytime I run the test client, the console that run 
the jboss server told me that hsqldb response, but not MySQL, very strange!

When I change java:comp/env/jdbc/MySQL to java:/MySQL, then verything 
works well.

I don't know what's wrong with my configuration? or jboss does not 
support  "java:comp/env/jdbc/MySQL"? I don't think so:-)

Thanks for you kindly help in advance!

linuxman



---
This SF.net email is sponsored by: Get the new Palm Tungsten T 
handheld. Power & Color in a compact size! 
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


RE: [JBoss-user] log4j and jboss: where is log4j.properties?

2002-11-26 Thread saroj kumar
Hi,

Sorry for delayed reply.

You need to create a Category like :

   --- Your package hier.
 -- the level of logging you want to enable
  

Then you need to use either default appenders (Console and File) or
You can have your own. Refer to log4j.xml. 

If you want to get the LOG msg. in your FILE Appender then
You may have to change the "Threshold" value to your "Priority"
value,say, Debug.
And NEED to change "Append" to "true".

EXAMPLE:

 
  




HTH,
Saroj

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of linuxman
Sent: Sunday, November 24, 2002 7:04 AM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] log4j and jboss: where is log4j.properties?


Thanks first!

Yes, I noticed that in $JBOSS_HOME/server/default/conf, there is 
log4j.xml, then you mean, I can use this default properties for my jboss

application deployed in $JBOSS_HOME/server/default/deploy?

But my test application run correctly, just say nothing:-), not log to 
log/server.log. Here is some snippits of my code:

static Logger logger = Logger.getLogger(UserInfoBean.class.getName());
..
logger.debug( "UserInfoBean: entering ejbCreate");


You see, very simple.

It seemed that, my looger can not find jboss's log4j.xml. Must I use 
PropertyConfigrator to load log4j.xml? I don't think so. I just want to 
use the default one that jboss give me:-). But how to?

Any hints?

Thanks in advance!


saroj kumar ??:

>Hi,
>
>You can configure your log4j.xml in JBOSS_HOME\conf
>
>-Original Message-
>From: [EMAIL PROTECTED]
>[mailto:[EMAIL PROTECTED]] On Behalf Of linuxman
>Sent: Saturday, November 23, 2002 9:40 PM
>To: jboss ml
>Subject: [JBoss-user] log4j and jboss: where is log4j.properties?
>
>
>hi,
>
>I want to use apache log4j in my jboss j2ee application, but where 
>should I put log4j.properties? which directory?
>
>thanks in advance!
>
>linuxman
>
>
>
>  
>





---
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: Get the new Palm Tungsten T 
handheld. Power & Color in a compact size! 
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] A simple question

2002-11-26 Thread kiuma
Hello,
I was wondering In an average calculation how many dyna html pages a 
programmer can produce (sessionbean + entity + struts mvc).
I'm near to 1, but I think I'm slow. (and pages are not fully debugged)

What speed should be?

Thanks,
kiuma



---
This SF.net email is sponsored by: Get the new Palm Tungsten T 
handheld. Power & Color in a compact size! 
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


RE: [JBoss-user] multi-threaded remote client

2002-11-26 Thread saroj kumar
Hi ,

1st Problem can be solved using Commit Option B/C. Refer to TX related
Stuff.

2nd Prob is due to the fact that you are iterating the CMR Collection
In a different TX. Error Message is explanatory.

Are you using TXNew Attribute in one of your methods? It may be due to
this.

Ex:

SLSB A.doSomething()  B.getX() 

A.doSomething() has TX Required And B.getX() has TX New and it returns 
You a CMR Collection.

Of Course, there may be other combinations as well.

-Saroj







-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Beau Cronin
Sent: Tuesday, November 26, 2002 3:18 AM
To: [EMAIL PROTECTED]
Subject: [JBoss-user] multi-threaded remote client


Hi all.  I've been having problems with a multi-threaded remote client. 
  I'd like to have two threads on a client accessing JBoss remotely, 
possibly the same data at the same time.  When I do this naively and 
both clients try to access the same entities, JBoss throws one of two 
errors:

13:40:57,457 ERROR [BeanLock] Application deadlock detected: 
TransactionImpl:XidImpl [FormatId=257, 
GlobalId=misosoup.ICSI.Berkeley.EDU//19663, BranchQual=] has deadlock 
conditions.  Two or more transactions contending for same resources and 
each have locks eachother need.

or

13:43:09,470 ERROR [STDERR] 
javax.ejb.TransactionRolledbackLocalException: The iterator of a CMR 
collection may only be used within the transction in which it which it 
was created

In the first case, it seems like each thread is creating its own 
transaction and that these transactions are in contention.  In the 
second, it seems like both threads are triggering calls in the same 
transaction and that these are trying to iterate over the same CMR 
Collection.

I've tried using both the same remote object and different ones; both 
situations lead to the same result.

So the question is: how do I do multithreaded remote access from a 
client to avoid this?  Note that different clients don't have this 
problem, only mutlitple threads from the same client.

Thanks,

Beau Cronin



---
This SF.net email is sponsored by: Get the new Palm Tungsten T 
handheld. Power & Color in a compact size! 
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



---
This SF.net email is sponsored by: Get the new Palm Tungsten T 
handheld. Power & Color in a compact size! 
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Jetty - access custom JAAS Principal

2002-11-26 Thread Keysers, Wonne
Title: Jetty - access custom JAAS Principal





Hi,


I am using custom JAAS loginmodule for both my web and ejb container, which authenticates just fine. The login module creates a custom Principle with some application specific attributes.

I now want to access that custom Principal object from within my web container, but request.getUserPrincipal only returns an org.jboss.jetty.security.JBossUserRealm$JBossUserPrincipal.

How can I acces our customized principal? Is it possible?


Thanks 
Wonne





Re: [JBoss-user] sample project / deploying servlets

2002-11-26 Thread SainTiss
Thanks...

However, it seems that in this sample, the servlet deployment
descriptors (web.xml and jboss-web.xml) were already included (==
hand-written)...

Isn't there an example of them being autogenerated somehow? (using
xdoclet for example, since xdoclet is used for the EJB's, but not for
the servlets...)

Thanks

Hans

On Tue, 2002-11-26 at 15:27, Binil Thomas wrote:
> see
> http://prdownloads.sourceforge.net/jboss/JBoss.3.0TemplateAndExamples.zip?do
> wnload
> 
> 
> - Original Message -
> From: "SainTiss" <[EMAIL PROTECTED]>
> To: "JBoss Mailing" <[EMAIL PROTECTED]>
> Sent: Tuesday, November 26, 2002 7:33 PM
> Subject: [JBoss-user] sample project / deploying servlets
> 
> 
> 
> 
> 
> ---
> This SF.net email is sponsored by: Get the new Palm Tungsten T 
> handheld. Power & Color in a compact size! 
> http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 




signature.asc
Description: This is a digitally signed message part


[JBoss-user] Secure NamingContext

2002-11-26 Thread philipp . wolff
Hi, i'm new to the JBossSX module and i have to secure
the NamingContext of my JBoss instance. When i try to fetch the NamingContext
of my JBoss from another JVM without setting any security properties (e.g.
Context.SECURITY_PRINCIPAL), i'll get one, but i want to prohibit this.
So i've tried to set
"java.naming.factory.initial=org.jboss.security.jndi.LoginInitialContextFactory"
in my "server/default/conf/jndi.properties" file, but i've got a lot Exceptions
from the JBoss MBeans (FailedLoginException "password incorrect"). The path
to "auth.conf" file is set as an JVM property and i've defined the "other"
- module in that file as well. Can anybody help me ?

Kind regards & many thanks
Philipp 



__
Tiscali Mobile
NEU! Die neuesten Klingeltöne, Logos, Mailboxsprüche, Bildmitteilungen und
Screensaver für alle Handytypen.
Einfach und günstig!
Klicken Sie hier: http://www.tiscali.de/mobile/






---
This SF.net email is sponsored by: Get the new Palm Tungsten T
handheld. Power & Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] What should be in client auth.conf to enable login atserver?

2002-11-26 Thread Jonathan . O'Connor
Emerson,
Thanks for your advice. I ended up creating MyDatabaseServerLoginModule 
which gets a DB connection using DriverManager and not JNDI.
And this works nicely. I suppose the fully correct way would be to have 
the client LoginModule connect to the EJB server, and call a session bean 
to authenticate the user and password.
This way, we can prevent client access to the DB. The authentication 
session bean can be allowed to be run by anyone, and all other beans can 
insist on an authenticated user.

However, for my unit tests, I don't need to worry about access to the DB.
Ciao,
Jonathan O'Connor
Ph: +353 1 872 3305
Mob: +353 86 824 9736
Fax: +353 1 873 3612




Emerson Cargnin - SICREDI Serviços <[EMAIL PROTECTED]>
Sent by: [EMAIL PROTECTED]
25.11.2002 20:26
Please respond to jboss-user

 
To: [EMAIL PROTECTED]
cc: 
Subject:Re: [JBoss-user] What should be in client auth.conf to enable 
login at 
server?


> Symptoms:
> On the client side, lc.getSubject().getPrincipals().size() is always 0, 
> meaning we aren't logged on.
> On the client side, lc.login() with a bad password returns silently.
> On the server side, context.getCallerPrincipal() gives the correct name, 

> even if the client thinks I'm logged in.
> 
> Questions:
> 1. How can I trigger my DatabaseServerLoginModule authentication for my 
> client?
You must explicitly tell that you want the DatabaseServerLoginModule to 
be used, the ClientLoginModule just keeps the user/pass to be used in 
subsequent calls

> 2. I thought that lc.login() should throw a LoginException if the 
username 
> and password are bad. Why does this not happen?

the same answer from 1

> 3. I thought about putting the DatabaseServerLoginModule declaration 
into 
> the client auth,conf file, but I presume as this is a client, it can't 
do 
> the JNDI lookup on the DS name. Is this correct?

We use LDap login and it works right, but the client have access to the 
ldap server. Any idea at how to solve this using a datasource?


> Ciao,
> Jonathan O'Connor
> Ph: +353 1 872 3305
> Mob: +353 86 824 9736
> Fax: +353 1 873 3612
> 
> 
> ---
> This SF.net email is sponsored by: Get the new Palm Tungsten T 
> handheld. Power & Color in a compact size! 
> http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 


-- 

| Emerson Cargnin  |
| Analista de Sistemas Sr. |
| Tel : (051) 3358-4959|
| SICREDI Serviços |
| Porto Alegre - Brasil|
|xx|



---
This SF.net email is sponsored by: Get the new Palm Tungsten T 
handheld. Power & Color in a compact size! 
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user





---
This SF.net email is sponsored by: Get the new Palm Tungsten T
handheld. Power & Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] sample project / deploying servlets

2002-11-26 Thread Binil Thomas
see
http://prdownloads.sourceforge.net/jboss/JBoss.3.0TemplateAndExamples.zip?do
wnload


- Original Message -
From: "SainTiss" <[EMAIL PROTECTED]>
To: "JBoss Mailing" <[EMAIL PROTECTED]>
Sent: Tuesday, November 26, 2002 7:33 PM
Subject: [JBoss-user] sample project / deploying servlets





---
This SF.net email is sponsored by: Get the new Palm Tungsten T 
handheld. Power & Color in a compact size! 
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] sample project / deploying servlets

2002-11-26 Thread SainTiss
Hi,

In the jboss quickstart docs, there's a chapter about a sample project,
but I can't find this sample in the jboss directory... Where can I find
it?

Actually, what I'm looking for is some simple explanation on how to
deploy a servlet step-by-step... Is such available somewhere?

Thanks

Hans





signature.asc
Description: This is a digitally signed message part


[JBoss-user] Custom SocketFactory for ZIP and SSL

2002-11-26 Thread Alexander Sparkowsky
Hi,

I've seen RMI-SocketFactories for SSL or ZIPed connections. When looking
at the SSL factory there seems no way to encapsulate the encrypted
stream using a (G)ZIPInput/OutputStream or vice versa.

Does anyone know a way how I can build a RMI connection which gets (SSL)
encrypted AND compressed?

Thanks

Alex

--
Alexander Sparkowsky, Berlin, Germany




---
This SF.net email is sponsored by: Get the new Palm Tungsten T 
handheld. Power & Color in a compact size! 
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] simple Postgres CMP HOWTO?

2002-11-26 Thread Pavel Kolesnikov
On Tue, 26 Nov 2002, Matthew Hixson wrote:

> Does there exist a simple HOWTO with step by step instructions on how 
> to configure JBoss 3.0.4 CMP for use with Postgres 7.2?  I've read 
> through lots of Google search results and forum messages dealing with 
> problems and solutions for various Postgres issues, but nothing that is 
> an idiot proof HOWTO from start to finish.

I don't know about any such HOWTO, but I don't see any need for it.
We're finishing one project using Postgres database and we haven't
encountered any Postgres specific complications.

So:

- Configure your datasource according to the example in
  jboss/docs/jca/postgres-service.xml
- Configure CMP according to the UserGuide (Xdoclet is your friend)

If you encounter any specific problem, come back and try to ask
a more specific question :-)

Pavel




---
This SF.net email is sponsored by: Get the new Palm Tungsten T 
handheld. Power & Color in a compact size! 
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] simple Postgres CMP HOWTO?

2002-11-26 Thread Matthew Hixson
Does there exist a simple HOWTO with step by step instructions on how 
to configure JBoss 3.0.4 CMP for use with Postgres 7.2?  I've read 
through lots of Google search results and forum messages dealing with 
problems and solutions for various Postgres issues, but nothing that is 
an idiot proof HOWTO from start to finish.
  Could someone throw me a bone here?
  Thanks,
   -M@



---
This SF.net email is sponsored by: Get the new Palm Tungsten T 
handheld. Power & Color in a compact size! 
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] IllegalAccessError with package private methods in the same jar

2002-11-26 Thread anna schricker
Hi,

I have the following problem:

I have a servlet that calls a class derived from JUnit Testcase which again calls 
class A and class B in the same package. The testclass, class A and class B are 
packaged in the same jar, the servlet is in a war-file and jar and war are together in 
an ear-file.
 When class A calls a package private method in class B I often get an 
IllegalAccessError but not always. Sometimes when I build and deploy the classes again 
it is ok.
I found that when the error occurs class A and class B are loaded by different 
classloaders.
Both classes are not referenced from any classes in the war-file.

>From what I read in the newsgroups this can occur when classes reside in different 
>jars which is not the case.
My questions:
1. Why is this happening? I found the error only when accessing the classes via 
serlvet and Testcase-class.
2. Is there a way to prevent this? Can I tell JBoss to load all classes inside a jar 
with the same classloader?

I am using JBoss 3.0.2 with jetty.

Thanks for any help,

Anna

anna schricker
virtual identity ag
grünwälder str. 10-14
79098 freiburg
[EMAIL PROTECTED]
tel.: +761-20758-404




---
This SF.net email is sponsored by: Get the new Palm Tungsten T
handheld. Power & Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user