-----------------------------
Please read the FAQ!
<http://java.apache.org/faq/>
-----------------------------
Eric Grace writes:
> Does someone have a list of wrapper.bin.parameters and environment
> variables that need to be set for successful operation of RMI (and no
> the posting on FAQ-O-Matic does not solve the problem- it only
> introduces another layer of "what's really going on here?")?
Here's what I have in my ApJServProperties file for the wrapper
parameters:
wrapper.bin.parameters="-Djava.rmi.server.codebase=http://myhost.name:1234/classes/"
wrapper.bin.parameters="-Djava.security.policy=/path/to/policy/file"
Don't forget the end slash for the codebase if the codebase is to a
directory. For a jar file, don't put in the slash.
I don't think any environment variables matter, as I've
gotten this to work in WinNT, where I don't have a CLASSPATH defined
when I run the server.
> 1st- Create a java.policy file that gives the servlets and the
Looks okay, although your second one is a little peculiar, as it
already has all pemissions, then you give it two extra ones:
> grant codeBase "file:/path/to/ApacheJServ.jar" {
> permission java.security.AllPermission;
> permission java.io.FilePermission "/path/to/servlet_codebase/-",
> "read";
> permission java.lang.RuntimePermission "createClassLoader";
> };
> 2nd- You need to start the jdk using the proper security policies used
> by the new jdk1.2 security manager.
> wrapper.bin.parameters=/path/to/policy/file
This won't work. See the parameters above.
> I have seen the following mentioned on this list:
>
#wrapper.bin.parameters="-Djava.rmi.server.codebase="/path/to/RMI/Server/Codebase"
Yes, you need this. And yes, it should be a URL.
> #wrapper.bin.parameters="-Djava.security.manager=/path/to/policy/file"
> (set to the same value as the policy file???- why would this be?)
This is wrong. I set this in my servlet. Maybe that's a typo, and it
should be policy, not manager? I don't know how to set this from
parameters, although as a guess, maybe you want the RMISecurityManager
(with the full name, of course).
> 3rd- What about these environment variables?
> LD_LIBRARY_PATH (what path is this to, If Jserv works without it, why do
> we need it for RMI)
I've never needed this.
> what about CLASSPATH or others?
As mentioned above.
Andrew.
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]