Andreas Reifke wrote:
> 
> Hello,
> 
> Russel is right. Can't touch the SecurityManager from within my servlet.
> Enhydra-Websever won't start if I try so. I've set up SecurityManager with
> 
> System.setSecurityManager(new RMISecurityManager());
> and placed my beans right in the classpath so that the Webserver can access
> them.
> 
> But why should I need SecurityManager for my Servlet when my standalone
> Java-program runs without em ?
> In my point of view the two different VMs can't be the reason for that
> because the standalone programm runs in a second VM, too.
> 
> The program I want to run with jBoss and Enhydra is described in Monica
> Pawlan's tutorial "Writing Enterprise Applications with Java 2 SDK,
> Enterprise Edition:
> http://developer.java.sun.com/developer/onlineTraining/J2EE/Intro/
> 
> So my questions (again):
> - Am I doing something wrong ?
> - Are there any major differences between a j2ee-server with web- and
> ejb-support and two separated servers (Enhydra + jboss) ? Maybe this example
> runs only in a server with both web- and ejb-support (with one VM) ?
> - Mayby this is a bug concerning Enhydra (I've sent my first mail to Enhydra
> mailinglist, too) or jBoss ?
> 
> Does anyone have an idea ?
> 
> Thanks for your help.
> 
> Andreas Reifke

Hi

I said to use a RMISecurityManager because doing so it will enable
dynamic downloading of classes, but if this doesn't work in a servlet...

The other alternative is to make available the home and remote classes
to the webserver. I suppose the servlet will use JNDI to locate the 
home... you will need too jnp-client.jar in the classpath of the
webserver (maybe ejb.jar too)

For every ClassNotFoundException you will know that this class has
to be included in the classpath of the webserver.

Pedro


--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to