>From what I can tell rereading the code it is due to the fact that JAAS gets
initialized before the MLet which is really a mistake because it means it
doesn't work with the "ClassPathExtension" of JBoss but directly from the
pre-NPE stuff which is ... yes, the system classpath. The thread going in
the JAAS stuff from main is not loaded yet with the MLet stuff afaict. Try
moving the JAAS code after the initial MLet stuff in Main and you should be
fine.
I removed the security code from the Main altogether for the 3.0 series. It
should really be an MBean configured as such. Make sure to move the classes
after the "contextThread setting". Didn't you learn anything in class? well
at least you come up with real questions :)
regards
marcf
|-----Original Message-----
|From: [EMAIL PROTECTED]
|[mailto:[EMAIL PROTECTED]]On Behalf Of Ferguson,
|Doug
|Sent: Saturday, August 04, 2001 2:48 PM
|To: '[EMAIL PROTECTED]'
|Subject: RE: [JBoss-user] JAAS requires staticly loaded classes?
|
|
|We regardless if it is dynamic or not. JAAS somehow differentiates
|between the class gettign loaded from lib/ext and we explicitly
|putting it in the path at runtime.
|
|For instance... if my security module use javaMail.
|
|I have to do this java -classpath $CLASSPATH:mail.jar Main MY-CONFIG
|
|Why?
|
|d.
|-----Original Message-----
|From: marc fleury [mailto:[EMAIL PROTECTED]]
|Sent: Friday, August 03, 2001 11:09 PM
|To: [EMAIL PROTECTED]
|Subject: RE: [JBoss-user] JAAS requires staticly loaded classes?
|
|
|Doug,
|
|turn on the brain
|
||JAAS doesn't see any changes that are loaded dynamically with the
||classloader,
||i.e. deployment or even the loading of the lib/ext/mail.jar...
|
|not should it. as you *should* know lib/ext is not dynamic but the
|statically created MLet at the beginning of the server life.
|
||For instance I send a java mail from the module if there is a
|sever problem
||well, this
||requires me to explicitly add mail.jar to my classpath!!!!!
|
|The 3.0 series will support JSR (Java Service Archive) hot deployment, as
|service and app mbean, then you will have dynamic extensible
|services. For
|now you reboot like the rest of industry
|
|marcf
||
||d.
||
||_______________________________________________
||JBoss-user mailing list
||[EMAIL PROTECTED]
||http://lists.sourceforge.net/lists/listinfo/jboss-user
|
|
|_______________________________________________
|JBoss-user mailing list
|[EMAIL PROTECTED]
|http://lists.sourceforge.net/lists/listinfo/jboss-user
|
|_______________________________________________
|JBoss-user mailing list
|[EMAIL PROTECTED]
|http://lists.sourceforge.net/lists/listinfo/jboss-user
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user