----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files.  Don't make us guess your problem!!!
----------------------------------------------------------------

       I am facing the following problem described while configuring the 
Apache web server with apache jserv. Below is the description of the problem 
:
        My system config is
        O System : Windows95
                   JDK 1.2.2
                   JSDK 2.0
                   Apache 1.3.12
                   Apache Jserv 1.1.2
        I configured every thing listed in the documentation provided by 
Apache Jserv installable. When I started the Apache and checked for the 
installation by invoking the default status page provided by Apache, it 
worked fine it means the Jserv module is working but when i clicked on 
"ajpv12://localhost:8007" to test the Jserv Engine The Browser showed me 
"500 Internal Server Error"
        The mod_jserv.log file in Apache Jserv log directory was found to 
have following log information :
========================================================================
  [15/08/2000 18:01:08:610] (EMERGENCY) ajp12: can not connect to host 
127.0.0.1:8007
  [15/08/2000 18:01:08:610] (EMERGENCY) ajp12: connection fail
  [15/08/2000 18:01:08:610] (ERROR) an error returned handling request via 
protocol "ajpv12"
  [15/08/2000 18:01:08:610] (ERROR) an error returned handling request via 
protocol "status"
========================================================================
  and The error.log file had following log information :
========================================================================
  ApacheJServ/1.1.2: Exception creating the server socket: java.net. 
SocketException: create (code=10106)
========================================================================
  I read  FAQ and as suggested by some programmers I edited the java.policy 
file which now looks like this :

// Standard extensions get all permissions by default

grant codeBase "file:${java.home}/lib/ext/*" {
        permission java.security.AllPermission;
};

// default permissions granted to all domains

grant {
        // Allows any thread to stop itself using the 
java.lang.Thread.stop()
        // method that takes no argument.
        // Note that this permission is granted by default only to remain
        // backwards compatible.
        // It is strongly recommended that you either remove this permission
        // from this policy file or further restrict it to code sources
        // that you specify, because Thread.stop() is potentially unsafe.
        // See "http://java.sun.com/notes" for more information.
        permission java.lang.RuntimePermission "stopThread";

        // allows anyone to listen on un-privileged ports
        permission java.net.SocketPermission "localhost:1024-", "listen";

        // "standard" properies that can be read by anyone

        permission java.util.PropertyPermission "java.version", "read";
        permission java.util.PropertyPermission "java.vendor", "read";
        permission java.util.PropertyPermission "java.vendor.url", "read";
        permission java.util.PropertyPermission "java.class.version", 
"read";
        permission java.util.PropertyPermission "os.name", "read";
        permission java.util.PropertyPermission "os.version", "read";
        permission java.util.PropertyPermission "os.arch", "read";
        permission java.util.PropertyPermission "file.separator", "read";
        permission java.util.PropertyPermission "path.separator", "read";
        permission java.util.PropertyPermission "line.separator", "read";

        permission java.util.PropertyPermission 
"java.specification.version", "read";
        permission java.util.PropertyPermission "java.specification.vendor", 
"read";
        permission java.util.PropertyPermission "java.specification.name", 
"read";

        permission java.util.PropertyPermission 
"java.vm.specification.version", "read";
        permission java.util.PropertyPermission 
"java.vm.specification.vendor", "read";
        permission java.util.PropertyPermission 
"java.vm.specification.name", "read";
        permission java.util.PropertyPermission "java.vm.version", "read";
        permission java.util.PropertyPermission "java.vm.vendor", "read";
        permission java.util.PropertyPermission "java.vm.name", "read";
};

grant codeBase "file:c:/Program Files/Apache JServ 1.1.2/ApacheJServ.jar" {
  permission java.io.FilePermission "c:\\Jsdk2.0\\lib\\jsdk.jar", "read";
  permission java.io.FilePermission "c:\\Program Files\\Apache JServ 
1.1.2\\ApacheJServ.jar", "read";
  permission java.io.FilePermission "c:\\Program 
Files\\Apache\\modules\\ApacheModuleJServ.dll", "read";
  permission java.io.FilePermission "c:\\Program Files\\Apache JServ 
1.1.2\\servlets\\zone.properties", "read";
  permission java.lang.RuntimePermission "createClassLoader";
  permission java.net.SocketPermission "*:", "accept, connect, listen, 
resolve";
};

        I will appreciate if anyone can help.

Thanks for your time.

Vishwas Basarkar

________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com



--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search Archives: 
<http://www.mail-archive.com/java-apache-users%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to