User: starksm
Date: 01/08/13 10:23:15
Modified: src/main/org/jboss/ejb Tag: Branch_2_4 ContainerFactory.java
Log:
Include fix for applet dynamic class loading and security exception on
access of org.jboss.security.SecurityAssociation.ThreadLocal system property
Revision Changes Path
No revision
No revision
1.77.2.2 +5 -6 jboss/src/main/org/jboss/ejb/ContainerFactory.java
Index: ContainerFactory.java
===================================================================
RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/ejb/ContainerFactory.java,v
retrieving revision 1.77.2.1
retrieving revision 1.77.2.2
diff -u -r1.77.2.1 -r1.77.2.2
--- ContainerFactory.java 2001/06/27 00:22:47 1.77.2.1
+++ ContainerFactory.java 2001/08/13 17:23:15 1.77.2.2
@@ -81,7 +81,7 @@
* @author Peter Antman ([EMAIL PROTECTED])
* @author Scott Stark([EMAIL PROTECTED])
*
-* @version $Revision: 1.77.2.1 $
+* @version $Revision: 1.77.2.2 $
*/
public class ContainerFactory
extends org.jboss.util.ServiceMBeanSupport
@@ -360,6 +360,10 @@
*/
WebClassLoader cl = new WebClassLoader( jarUrls,
Thread.currentThread().getContextClassLoader() );
app.setClassLoader( cl );
+ // Add to webserver so client can access classes through dynamic class
downloading
+ WebServiceMBean webServer = (WebServiceMBean) MBeanProxy.create(
WebServiceMBean.class, WebServiceMBean.OBJECT_NAME );
+ URL[] codebase = { webServer.addClassLoader(cl) };
+ cl.setWebURLs(codebase);
for( int i = 0; i < jarUrls.length; i++ )
deploy( app, jarUrls[ i ], cl );
@@ -373,11 +377,6 @@
while( i.hasNext() ) {
handleContainerManagement( (Container) i.next(), true );
}
-
- // Add to webserver so client can access classes through dynamic class
downloading
- WebServiceMBean webServer = (WebServiceMBean) MBeanProxy.create(
WebServiceMBean.class, WebServiceMBean.OBJECT_NAME );
- URL[] codebase = { webServer.addClassLoader(cl) };
- cl.setWebURLs(codebase);
// Done
log.log( "Deployed application: " + app.getName() );
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development