-----------------------------
Please read the FAQ!
<http://java.apache.org/faq/>
-----------------------------

---Help please!  I thought it might benefit everyone if we put our heads
together to outline the depencies of the JDK1.2-JServ (and RMI)

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?")?

I have seen some people say that environment variables like
LD_LIBRARY_PATH need to be set in httpd.conf.  Others have said that you
need to set multiple wrapper.bin.parameters.  Others refer to
combinations of environment variables and wrapper parameters.  Things
seem waaaaayy to "hit and miss".  I have tried the following and have
had no luck with RMI (I believe due to the security model in 1.2):

1st-  Create a java.policy file that gives the servlets and the
libraries permission to do what you desire.
  grant codeBase "file:/path/to/servlet_codebase/-" {
       permission java.security.AllPermission; (not recommended, but a
good test to see if the security model is responding)
   };

  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";  
   };

Are there any other specific codebases that need to be defined here?



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
I have seen the following mentioned on this list:
#wrapper.bin.parameters="-Djava.rmi.server.codebase="/path/to/RMI/Server/Codebase"
(If you are connecting to a remote server- should this be the url:port
of the server or your local codebase?)
#wrapper.bin.parameters="-Djava.security.manager=/path/to/policy/file"
(set to the same value as the policy file???- why would this be?)

Are there any other specific parameters that need to be defined here?



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)
what about CLASSPATH or others?

I'm currently using Solaris, JDK1.2, JServ1.0, Apache 1.3.6

-Eric


-- 
Eric Grace,
Software Developer

Messagemedia, Inc.        (303) 381-7121 phone
6060 Spine Road           (303) 440-0303 fax
Boulder, CO 80301

\\\   e-mail    e-customers    e-business   \\\


--
--------------------------------------------------------------
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]

Reply via email to