[JBoss-user] [Security & JAAS/JBoss] - Re: JBoss JAAS x Tomcat's

2004-08-19 Thread dev2gosoft
Security context is propagated in JBoss-Tomcat. I use the databaseserverloginmodule to 
authenticate and i can use methods like reqest.isUserInRole etc. 

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3845607#3845607

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3845607


---
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Re: EJB Deployment Failure in Jboss 4.0RC1

2004-08-04 Thread dev2gosoft
Scott,
I was not able to find an option to add a attachment to the bug report??

Am I missing something???

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3844153#3844153

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3844153


---
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. www.ostg.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Re: EJB Deployment Failure in Jboss 4.0RC1

2004-08-04 Thread dev2gosoft
Scott,
Sorry I did not understand u,... did u mean the actual jar file or the portion of the 
deployment descriptor???

thanks so much in advance

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3844132#3844132

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3844132


---
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. www.ostg.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Re: EJB Deployment Failure in Jboss 4.0RC1

2004-08-04 Thread dev2gosoft
here is the portion of ejb-jar.xml for servercontrollerbean

  |   
  |   
  |  
  | 
  |  ServerController
  | 
  |  com.togosoft.ht.service.server.ServerControllerHome
  |  com.togosoft.ht.service.server.ServerController
  |  
com.togosoft.ht.service.server.ServerControllerLocalHome
  |  com.togosoft.ht.service.server.ServerControllerLocal
  |  com.togosoft.ht.service.server.ServerControllerBean
  |  Stateless
  |  Container
  | 
  |  
  | ejb/ServerController
  | Session
  | com.togosoft.ht.service.server.ServerControllerHome
  | com.togosoft.ht.service.server.ServerController
  | ServerController
  |  
  | 
  |   

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3844130#3844130

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3844130


---
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. www.ostg.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Re: EJB Deployment Failure in Jboss 4.0RC1

2004-08-04 Thread dev2gosoft
here is the snippet of the actual original message: 

anonymous wrote : 
  | 
  | 
  | 11:12:26,546 INFO  [BlockingServer] Remoting 'async' protocol clients will connect 
to: InvokerLocator [async://192.168.0.101:8085/?compression=-1&tcp.nodelay=true]
  | 11:12:27,406 WARN  [EJBDeployer] Verify failed; continuing
  | java.lang.NoClassDefFoundError: 
com/togosoft/ht/service/server/ServerControllerException
  | at java.lang.Class.getDeclaredMethods0(Native Method)
  | at java.lang.Class.privateGetDeclaredMethods(Class.java:1655)
  | at java.lang.Class.privateGetPublicMethods(Class.java:1778)
  | at java.lang.Class.getMethods(Class.java:832)
  | at 
org.jboss.verifier.strategy.EJBVerifier20.verifySessionRemote(EJBVerifier20.java:825)
  | at 
org.jboss.verifier.strategy.EJBVerifier20.checkSession(EJBVerifier20.java:98)
  | at org.jboss.verifier.BeanVerifier.verify(BeanVerifier.java:162)
  | at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:537)
  | at org.jboss.deployment.MainDeployer.create(MainDeployer.java:817)
  | at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:673)
  | at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:637)
  | at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:324)
  | at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
  | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
  | at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
  | at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:230)
  | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
  | at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
  | at $Proxy7.deploy(Unknown Source)
  | at 
org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:304)
  | at 
org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:478)
  | at 
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:201)
  | at 
org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:274)
  | at 
org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:271)
  | at 
org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:221)
  | 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.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
  | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
  | at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
  | at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:230)
  | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
  | at 
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:844)
  | at $Proxy0.start(Unknown Source)
  | at org.jboss.system.ServiceController.start(ServiceController.java:369)
  | at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:324)
  | at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
  | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
  | at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
  | at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:230)
  | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
  | at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
  | at $Proxy4.start(Unknown Source)
  | at org.jboss.deployment.SARDeployer.start(SARDeployer.java:260)
  | at org.jboss.deployment.MainDeployer.start(MainDeployer.java:863)
  | at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:674)
  | at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:637)
  | at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:621)
  | 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)

[JBoss-user] [EJB/JBoss] - Re: EJB Deployment Failure in Jboss 4.0RC1

2004-08-04 Thread dev2gosoft
Scott,

Here is what i noticedthe classes that the classloader reports as not able to find 
are exception classes thrown by business methods in a Stateless Bean. 

Actually the exception class do exist in the jar file as reported earlier...


The error message is exactly as the one reported in the above referenced bugreport #.


Let me know if u need anything else???
thx,
- Venu

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3844123#3844123

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3844123


---
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. www.ostg.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - EJB Deployment Failure in Jboss 4.0RC1

2004-08-04 Thread dev2gosoft
This issue appears to be related to issue# 967939 in the bug tracking database. 

I have trying to deploy a jar file with ejbs, that has already been successfully 
deployed and tested in jboss 3.2.5, on Jboss 4.0RC1 and I am getting a failure 
ClassNotFoundException when deploying Stateless Session Beans even though the class 
obviously exists in the jar file. 

Environment:
JBoss 4.0.0RC1 
JDK 1.4.2_05
WinXP


Any help on this issue will be deeply appreciated???


View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3844095#3844095

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3844095


---
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. www.ostg.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence & CMP/JBoss] - Re: Throughput of data low while using CMP/CMR entitybeans

2004-07-23 Thread dev2gosoft
Alexey,
Thanks again for taking time out. It makes more sense to me now. 
I used the finder and the performance improved relatively. 730 records in 12 seconds. 
I have not used Lazy-resultset-loading yet. 

However sorry to pester you with couple of yet again follow up questions:

1. Do u know the xDoclet tag for generating lazy-resultset-loading in jboss deployment 
descriptors??? I could not find one in the docs (xdoc nor jboss).

2. This is an unexpected one. Initially I have put the finder method in the OrderBean 
instead of in LineItemBean . Interesting enough I was getting a class cast exception 
when i was type casting the object retrieved from the collection returned by the 
finder to a LineItemLocal object (see ejb-ql query) and I was getting a class cast 
exception. When I moved the finder to LineItemBean then it worked. Doesn't the spec 
say that the collection returned by a  finder is determined by the SELECT OBJECT(Type) 
part of ejb-ql query???



  | /**
  | @ejb.finder method-intf = "LocalHome"
  |  * description = "Find all line Items of a order "
  |  * query = "SELECT OBJECT(lineitem) FROM LineItemSchema AS lineitem 
WHERE fooditem.order.id=?1"
  |  * signature = "java.util.Collection 
findFoodItemsOfGroup(java.lang.String orderID)" 


I apologize for pestering you. I would really appreciate if you can further clarify.

sincere thanks again,
-V

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3843079#3843079

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3843079


---
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence & CMP/JBoss] - Re: Show generated SQL statements in console

2004-07-22 Thread dev2gosoft
dho,

Actually Alexey pointed out how to turn on just the cmp queries instead of all the 
crap that gets out in the approach i mentioned.


I am posting what alexey posted in one of my topics. Hope it helps





 
Reposting XML in the code block 
Code: 

   
 
   

 
 

_
Alexey Loubyansky 
CMP Lead Developer 
JBoss, Inc 
 

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3842957#3842957

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3842957


---
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence & CMP/JBoss] - Re: Show generated SQL statements in console

2004-07-22 Thread dev2gosoft
Here is the code block. i forgot to put code tags around it


 

   
  |  
  |  





View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3842958#3842958

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3842958


---
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence & CMP/JBoss] - Re: Throughput of data low while using CMP/CMR entitybeans

2004-07-22 Thread dev2gosoft
Alexey,
Thanks For your responses. I deeply appreciate it. 
I need one small clarification or confirmation . The CMP query for generating related 
beans seems to be on each individual entity (i see ejbLoad being called for each 
entity). In a finder you specify the query to get all the entities and assoicate them 
with entity bean instances. hence using a finder will be more efficient 

Is my understanding right???

Thanks in advance,


View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3842952#3842952

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3842952


---
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence & CMP/JBoss] - Re: Throughput of data low while using CMP/CMR entitybeans

2004-07-21 Thread dev2gosoft
Thanks joachim,
how do i turn cmp logging>???

I turned on DEBUG messages in log4j.xml...i see the queries but also a deluge of 
message from all the other components


IS there a way to turn CMP Logging alone

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3842839#3842839

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3842839


---
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence & CMP/JBoss] - Re: Throughput of data low while using CMP/CMR entitybeans

2004-07-21 Thread dev2gosoft
Joachim,
Yes. All of this happens in a Session Facade api with a tx attribute of required. 

Even the finder method to find the orders has a tx attribute of required.

Is this the typical throughput that we can expect ???

I am still puzzled that only 1000 records can be retrieved per minute if you are 
assoicating the data with CMP beansthe trace shows that ejbLoad is call for each 
bean..(record)...




View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3842812#3842812

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3842812


---
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence & CMP/JBoss] - Re: Show generated SQL statements in console

2004-07-20 Thread dev2gosoft
Yes. Choose "DEBUG" (instead of "Info" )level of message in log4j.xml 
../conf directory.


You will get a whole bunch of debug level messages in the console along with generated 
sql by the cmp.


hope it helps

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3842766#3842766

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3842766


---
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence & CMP/JBoss] - Re: doing findAll on CMP bean and receiving timeout

2004-07-20 Thread dev2gosoft
I have posted a similar issue 
http://www.jboss.com/index.html?module=bb&op=viewtopic&t=52230

The solution is not to increase the tx timeout valuebut to optimize the cmp engine 
or use ejbSelect or ejbHome method to retrieve the data wihtout associating with that 
huge number of entities...

Please let us know how long does it take to retrieve this huge number of records...

thanks

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3842765#3842765

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3842765


---
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence & CMP/JBoss] - Throughput of data low while using CMP/CMR entitybeans Jbos

2004-07-20 Thread dev2gosoft
I am new to CMP . 

Env: 
JBoss 3.2.5
JDK 1.4.2
MSSqlServer 2000
Pentium 4 2.4 Ghz Hyperthreading
500 MB RAM  


I have two EntityBeans OrderBean and LineItem Bean. 

there are 23 order entities in the order table and about 6600 entities in the LineItem 
table. Both the tables are linked by a OrderID (Foreign key in LineItem table)

The Entity Beans are related by the primarykey OrderID .

When I am attempting to display a report with all the orders and their associated 
lineitems (6600)  by using the cmr field in the order bean..The transaction times out 
after 5 minutes after generating about 5000 records...

More Details: findAllOrders retrieves a collection of local component interface Order 
and for each Order I call getLineItems (CMR field)


This is way too slow than i anticipated. Obviously the CMP tries to call ejbLoad for 
each bean and hence very slow. 

The session facade api : that does all this has a transaction attribute of "required".

Obviously using a ejbSelect or ejbHome method would be more efficient 
as we can altogether avoid linking the data with EntityBeans. 

I would appreciate if someone can show how to optimize the CMP engine settings so that 
this can be done fasterI am using the default settings and i haven;t tried 
anything to fine tune the settings of CMP engine

Any help is appreciated. 


View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3842761#3842761

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3842761


---
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation & Configuration] - Re: SSL Configuration with JBoss 3.2.5 /Tomcat 5 - Help!

2004-07-19 Thread dev2gosoft
that was me :) I am glad it helped

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3842579#3842579

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3842579


---
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Security & JAAS/JBoss] - Re: With Scott Stark's example, still can't use request.isUs

2004-07-19 Thread dev2gosoft
j_security_check not only authenticates the user against a speciified realm in 
login-config.xml but also writes the necessary information (authenticated 
identity/principal) into the thread local storage (TLS) so that security context is 
propagated. 

If you do your custom login authentication, it is your responsibility to make sure 
that the above thing happens for each request (thread).

There is a workaround ...but it is still a bit painful...but not very intricate.

Java Application (thick clients do this in Jboss) by using the jboss supplied 
ClientLoginModule (that sets the SecurityAssociation (jboss specific) in TLS ). 
You can do this by logging in and out using the ClientLoginModule in a filter that is 
set to fire in for every secure request and authenticates...this will make sure every 
thread / request has the authenticated identity set in the TLS.

Hope this helps...

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3842576#3842576

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3842576


---
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Re: Problem with MDB which uses JNI and raw sockets

2004-07-11 Thread dev2gosoft
However one could isolate the access of JNI functionality in a wrapper RMI object and 
then an MDB could become a client to the RMI object and access the jni functionality 
INDIRECTLY...
Scott? can u help us if I am wrong... 
thanks in advance 
 


View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3841683#3841683

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3841683


---
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Re: Problem with MDB which uses JNI and raw sockets

2004-07-11 Thread dev2gosoft
However one could isolate the access of JNI functionality in a wrapper RMI object   
and then an MDB could become a client to the RMI object and access the jni 
functionality directly...

Scott? can u help us if I am wrong...
thanks in advance

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3841682#3841682

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3841682


---
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Re: Problem with MDB which uses JNI and raw sockets

2004-07-11 Thread dev2gosoft
HmmmIt is my understanding that EJBContainers do no allow access to JNI 
functionality...? 
Am i Wrong???
Scott??? any thoughts on this

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3841681#3841681

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3841681


---
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation & Configuration] - Re: NoSuchMethodError on 3.2.4 Deployment startup

2004-06-25 Thread dev2gosoft
I have posted how i was able to fix the problem under this new topic. 

http://www.jboss.org/index.html?module=bb&op=viewtopic&t=51178


Good luck...if you have futher questions please feel free to post them under this 
thread

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3840033#3840033

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3840033


---
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence & CMP/JBoss] - Re: NoSuchMethodError while deploying a CMP Entity Bean in J

2004-06-24 Thread dev2gosoft
Thanks for the prompt response. It is fixed now. Yours/ and Alexey's response lead me 
to inspect all the jar files in the JAVA_HOME/.../JRE/LIB/ENDORSED directory... . It 
was the xsltr.jar that had "bcel" stuff not the suspected xalan.jar. removed that jar 
file and I was able to proceed. 


Thanks to both of you for taking time out to help.



View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3839900#3839900

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3839900


---
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence & CMP/JBoss] - Re: NoSuchMethodError while deploying a CMP Entity Bean in J

2004-06-24 Thread dev2gosoft
Alexis, 
Thanks for taking time out of your response. I searched the computer for bcel.jar and 
the only two places I have found the jar file is 

/server/all/lib  
/server/default/lib

I am running the "all" configuration. 

bcel.jar in the both the places is 505kb in size. (it is of 504kb in jboss3.2.3)

I have multiple versions of xalan.jar in the jdk, jboss and each is of different size 
ranging 850kb to 2.75MB but none of them have references to bcel.jar  

Am i missing something...?

Thanks again...I appreciate it very much.





View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3839809#3839809

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3839809


---
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence & CMP/JBoss] - Re: NoSuchMethodError while deploying a CMP Entity Bean in J

2004-06-23 Thread dev2gosoft
My deployment descriptors and interfaces are generated by XDoclet (tags specified in 
the listed AccountBean.java) 


  | /*AccountLocalHome.java listing
  |  * Generated by XDoclet - Do not edit!
  |  */
  | package com.company.ht.data.account;
  | 
  | /**
  |  * Local home interface for Account.
  |  * 
  |  */
  | public interface AccountLocalHome
  |extends javax.ejb.EJBLocalHome
  | {
  |public static final String COMP_NAME="java:comp/env/ejb/AccountLocal";
  |public static final String JNDI_NAME="AccountHomeLocal";
  | 
  |public com.togosoft.ht.data.account.AccountLocal 
create(com.togosoft.ht.data.account.AccountDTO account)
  |   throws javax.ejb.CreateException;
  | 
  |public com.togosoft.ht.data.account.AccountLocal 
findAccountByActivationID(java.lang.String aID)
  |   throws javax.ejb.FinderException;
  | 
  |public com.togosoft.ht.data.account.AccountLocal 
findByPrimaryKey(java.lang.String pk)
  |   throws javax.ejb.FinderException;
  | 
  | }
  | 


  | /* AccountLocal.java listing
  |  * Generated by XDoclet - Do not edit!
  |  */
  | package com.togosoft.ht.data.account;
  | 
  | /**
  |  * Local interface for Account.
  |  */
  | public interface AccountLocal
  |extends javax.ejb.EJBLocalObject
  | {
  | 
  |public java.lang.String getLoginID(  ) ;
  | 
  |public com.togosoft.ht.data.account.AccountValue getAccountValue(  ) ;
  | 
  | }
  | 
  | 



  | Deployment descriptor portion for entitybean ejb-jar.xml listing
  | 
  |   
  |  
  | 
  |  Account
  | 
  |  com.company.ht.data.account.AccountLocalHome
  |  com.company.ht.data.account.AccountLocal
  | 
  |  com.company.ht.data.account.AccountBean
  |  Container
  |  java.lang.String
  |  False
  |  2.x
  |  Account
  |  
  | 
  | loginID
  |  
  |  loginID
  | 
  |  
  | 
  |findAccountByActivationID
  |
  |   java.lang.String
  |
  | 
  | 
  |  
  |   
  |   
  | 


  | jbosscmp-jdbc.xml listing
  | 
  | 
  | http://www.jboss.org/j2ee/dtd/jbosscmp-jdbc_3_2.dtd";>
  | 
  | 
  |
  |
  | 
  |
  | 
  |  
  | 
  |   
  |  Account
  |  java:/HealthTheaterDS
  |  MS SQLSERVER2000
  | 
  |  
  | loginID
  | LoginID
  | 
  | 
  | 
  | 
  | 
  |   
  | 
  |
  | 
  | 
  | 


  | jboss.xml listing
  | 
  | 
  | http://www.jboss.org/j2ee/dtd/jboss_3_2.dtd";>
  | 
  | 
  | 
  |
  | 
  |  
  | 
  |   
  |  Account
  |  AccountHomeLocal
  | 
  | 
  | 
  | 
  |   
  | 
  |   
  |  ServerControllerService
  |  ServerControllerService
  | 
  | 
  | 
  |   
  |   
  |  EmailAgentService
  |  EmailAgentService
  | 
  | 
  | 
  |   
  |   
  |  AccountControllerService
  |  AccountControllerService
  | 
  | 
  | 
  |   
  |   
  |  ReportDataControllerService
  |  ReportDataControllerHomeRemote
  | 
  | 
  | 
  |   
  | 
  |
  | 
  |
  |
  | 
  | 
  | 
  | 

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3839732#3839732

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3839732


---
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence & CMP/JBoss] - NoSuchMethodError while deploying a CMP Entity Bean in JBoss

2004-06-23 Thread dev2gosoft
Hi all,
I am getting this exception when a CMP Entity Bean is being deployed in JBoss 3.2.4. 
Please note that I have a whole bunch of stateless Session Beans deployed 
successfullyit is happening with CMP Entity bean only

RuntimeErrorException: java.lang.NoSuchMethodError: 
org.apache.bcel.generic.InstructionFactory.createNewArray(Lorg/apache/bcel/generic/Type;S)Lorg/apache/bcel/generic/Instruction;


I have referred to forum topic : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3838974#3838974 and still 
could not figure out a fix even though  they appear to be very similar problems. 


Environment:
Windows XP SP2 (RC2)
JDK: 1.4.2_04
Eclipse: 2.1.3


Here is my AccountBean Code:


  | package com.company.ht.data.account;
  | 
  | import javax.ejb.CreateException;
  | import javax.ejb.EntityBean;
  | 
  | 
  | /**
  |  * 
  |  * @ejb.bean 
  |  *   name="Account"
  |  *   local-jndi-name="AccountHomeLocal" 
  |  *   type="CMP"
  |  *   cmp-version="2.x"
  |  *   primkey-field="loginID"  
  |  *   view-type="local"
  |  * 
  |  * @ejb.value-object
  |  * 
  |  * @ejb.finder query="query string ..."
  |  * signature="com.togosoft.ht.data.account.Account 
findAccountByActivationID(java.lang.String aID)"
  |  *
  |  * 
  |  * @ejb.transaction type="Required"
  |  * 
  |  * @jboss.persistence datasource="java:/HealthTheaterDS"
  |  *datasource-mapping="MS SQLSERVER2000"
  |  *table-name="htCustomerAccount_tb"
  |  * 
  |  *
  |  */
  | public abstract class AccountBean implements EntityBean {
  |  
  | /**
  |  * @ejb.interface-method
  |  * @ejb.persistence column-name="LoginID"
  |  * @ejb.pk-field
  |  * @return
  |  */
  | public abstract String getLoginID();
  | public abstract void setLoginID(String id);
  | 
  | 
  | /**
  |  * @ejb.create-method
  |  * 
  |  * @param account
  |  * @return
  |  * @throws CreateException
  |  */
  | public String ejbCreate(AccountDTO account)throws CreateException{
  | this.setLoginID(account.getLoginID());
  | //TODO: implement ejbCreate further...
  | return null;
  | 
  | }
  | 
  | /**
  |  * @return
  |  * @throws CreateException
  |  */
  | public void ejbPostCreate(AccountDTO account)throws CreateException{
  | }
  | 
  | 
  | 
  | /**
  |  * @ejb.interface-method
  |  */
  | public abstract AccountValue getAccountValue();
  | 
  | }
  | 


Am I missing something???

The full exception is as follows: 


  | 
  | 10:03:24,828 WARN  [ServiceController] Problem starting service 
jboss.j2ee:jndiName=AccountHomeLocal,service=EJB
  | RuntimeErrorException: java.lang.NoSuchMethodError: 
org.apache.bcel.generic.InstructionFactory.createNewArray(Lorg/apache/bcel/generic/Type;S)Lorg/apache/bcel/generic/Instruction;
  | Cause: java.lang.NoSuchMethodError: 
org.apache.bcel.generic.InstructionFactory.createNewArray(Lorg/apache/bcel/generic/Type;S)Lorg/apache/bcel/generic/Instruction;
  | at 
org.jboss.mx.server.ReflectedDispatcher.handleInvocationExceptions(ReflectedDispatcher.java:99)
  | at 
org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:64)
  | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61)
  | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53)
  | at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
  | at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:185)
  | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
  | at 
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:837)
  | at $Proxy17.start(Unknown Source)
  | at org.jboss.system.ServiceController.start(ServiceController.java:367)
  | at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:324)
  | at 
org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
  | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61)
  | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53)
  | at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
  | at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:185)
  | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
  | at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
  | at $Proxy51.start(Unknown Source)
  | at org.jboss.ejb.EjbModule.startService(EjbModule.java:367)
  | at 
org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:271)
  | at 
org.jboss.system.ServiceMBea

[JBoss-user] [Installation & Configuration] - Re: NoSuchMethodError on 3.2.4 Deployment startup

2004-06-23 Thread dev2gosoft
Here is more details...
I have been able to deploy all the stateless Session EJBs . But when I am deploying my 
first Entity CMP EJB , I get this error.: 

RuntimeErrorException: java.lang.NoSuchMethodError: 
org.apache.bcel.generic.InstructionFactory.createNewArray(Lorg/apache/bcel/generic/Type;S)Lorg/apache/bcel/generic/Instruction;
Cause: java.lang.NoSuchMethodError: 
org.apache.bcel.generic.InstructionFactory.createNewArray(Lorg/apache/bcel/generic/Type;S)Lorg/apache/bcel/generic/Instruction;
at 
org.jboss.mx.server.ReflectedDispatcher.handleInvocationExceptions(ReflectedDispatcher.java:99)
at 
org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:64)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:185)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
at 
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:837)
at $Proxy17.start(Unknown Source)
at org.jboss.system.ServiceController.start(ServiceController.java:367)
at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at 
org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:185)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
at $Proxy51.start(Unknown Source)
at org.jboss.ejb.EjbModule.startService(EjbModule.java:367)
at 
org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:271)
at 
org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:221)
at sun.reflect.GeneratedMethodAccessor53.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at 
org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:185)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
at 
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:837)
at $Proxy17.start(Unknown Source)
at org.jboss.system.ServiceController.start(ServiceController.java:367)
at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at 
org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:185)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
at $Proxy14.start(Unknown Source)
at org.jboss.ejb.EJBDeployer.start(EJBDeployer.java:570)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:836)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:645)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:608)
at sun.reflect.GeneratedMethodAccessor17.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at 
org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke

[JBoss-user] [Installation & Configuration] - Re: NoSuchMethodError on 3.2.4 Deployment startup

2004-06-23 Thread dev2gosoft
Thanks for this message thread. I find xalan.jar with different files at java 1.4.2_04 
lib directories and they are much bigger than xalan.jar files in JBoss3.2.4...

What is the solution??? remove the xalan.jar from java_home?


thanks in advance

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3839624#3839624

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3839624


---
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Security & JAAS/JBoss] - Re: problem due to caching of roles in JaasSecurityManager,

2004-03-22 Thread dev2gosoft


Thanks Scott. We were just wondering how to access and call the 
flushAuthenticationCache in JaasSecurityManagerService.

This thread should help. Thanks again for the prompt help.



http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3826836#3826836";>View 
the original post

http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3826836>Reply 
to the post


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Security & JAAS/JBoss] - problem due to caching of roles in JaasSecurityManager, Dat

2004-03-21 Thread dev2gosoft


Hi,

We have an application that allows users to register account with an associated 
service plan (which maps to a specific role). The app uses a Form based 
authentication. 
The user is logged and authenticated/authorized against the infomration stored in 
tables which are populated from the account registration process. 

Jaas / DatabaseServerLoginModule is configured / set to make this work.

Everything works perfect. 

However once the user is logged in, he can edit his account and upgrade 
his service plan and hence changes his role. 

We recommend the user to logout and relogin so that he can be authorized against his 
new role. 

The logoutAction is very simple. 
Just invalidate session...
HttpSession ses = request.getSession(false);
ses.invalidate();

.When the user tries to login , every thing appears to be correct. except that he 
still inherits the old role (the role that existed when the server was started). 

This problem has an unacceptable workaround. Restart Jboss server. and the 
JaasSecurityManager cache is refreshed and everything works ok. 


IS there anyway that we can refresh the cache in JaasSecurityManager or invoke 
loginModule.logout() without restarting the server

I don't think that writing a custom Login Module helps. The cache seems to be deep in 
the container/server in JaasSecurityManager.

Scott??? 
Anyhelp will be deeply appreciated.

Thanks in advance.


http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3826778#3826778";>View 
the original post

http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3826778>Reply 
to the post


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user