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

Recently, I tried upgrading my JDK1.1.5 to
JDK1.2 on an Apache/Linux machine running the
Apache Jserv. I know that there's a similar post on
using Jserv w/ the JDK1.2 in the jserv/configuration
FAQ-O-Matic section; however, after following that
particular post's suggestions on editing the java.policy
file I'm still having problems.

My problem is that whenever a .jtml page or a servlet
is called, or if I try compiling a servlet online I'm getting
the following error message:

*** panic: GC: getStickySystemClass failed: java/lang/ref/Reference
        CLASSPATH may be incorrect
SIGABRT   6*   abort (generated by abort(3) routine)
        stackpointer=0xbffff620

Full thread dump Classic VM (Linux_JDK_1.2_pre-release-v1, native threads):
    "main" (TID:0x410e51e0, sys_thread_t:0x8143670, state:R, native
ID:0x400) prio=5: pending=java.lang.OutOfMemoryError
Monitor Cache Dump:
Registered Monitor Dump:
    utf8 hash table: <unowned>
    JNI pinning lock: <unowned>
    JNI global reference lock: <unowned>
    BinClass lock: <unowned>
    Class linking lock: <unowned>
    System class loader lock: <unowned>
    Code rewrite lock: <unowned>
    Heap lock: <unowned>
    Monitor cache lock: owner "main" (0x8143670) 1 entry
    Thread queue lock: owner "main" (0x8143670) 1 entry
    Dynamic loading lock: <unowned>
    Monitor registry: owner "main" (0x8143670) 1 entry

In trying to upgrade my JDK I've...
(1) download and the JDK1.2 into usr/local/jdk1.2
(2) My wrapper.bin=/usr/local/jdk/bin/java was
originally pointing to usr/local/jdk1.1.5 ;
So, I did "rm jdk" and "ln -s jdk1.2 jdk" from my
/usr/local/ directory making "wrapper.bin=
/usr/local/jdk/bin/java" now point to the right JDK.
(3) Restarted my server. (4) After getting the above
error I tried a number of additions and substractions
of JDK1.2 and of other items with my classpaths.
What's listed below is my original classpaths before
any such editing. (5) Tried editing my java.policy file
as shown below, and restarted the server.
(6) Still getting the same error.

I would really appreciate some help, or links to docs
that has some good documentation on this kind of
problem. I've been browsing search engines,
java.apache.org, www.javasoft.org, messageboards, and
listserv archives for the past few days, and haven't
been able to nail down what I'm missing, or what I'm
doing wrong.

Copied below are snipits from my java.policy
and jserv.properties files that may be of some
service If anyone wants to try looking at them.
If I did not provide enough information below, or
the right kind of information please let me know.

Thanks,
- Larry

############# jserv.properties: #############

# The Java Virtual Machine interpreter
# Syntax: wrapper.bin=[filename]
# Default: "/usr/bin/java" for Unix systems
#          "c:\jdk\bin\java.exe" for Win32 systems
wrapper.bin=/usr/local/jdk/bin/java

## I have verified that the above is going to the
## new JDK folder and not the old one.

# Apache JServ entry point class
wrapper.class=org.apache.jserv.JServ

# CLASSPATH environment value passed to the JVM
# Syntax: wrapper.classpath=[path]
# Default: NONE (Sun's JDK/JRE already have a default classpath)
# Notes: if more than one line is supplied these will be concatenated using
#        ":" or ";" (depending wether Unix or Win32) characters.
#        JVM must be able to find JSDK and JServ classes and any
#        utility classes used by your servlets.
#wrapper.classpath=
wrapper.classpath=/usr/local/jserv/lib/ApacheJServ.jar
wrapper.classpath=/usr/local/jsdk/lib/jsdk.jar
wrapper.classpath=/usr/local/mysql/
wrapper.classpath=/usr/local/apache/data/exec/lib/mail.jar
wrapper.classpath=/usr/local/apache/data/exec/lib/activation.jar
wrapper.classpath=/usr/local/apache/data/exec/lib/gnu-regexp.jar

########## java.policy #############

  grant codeBase "file:/usr/local/jserv/lib/ApacheJServ.jar" {
        permission java.security.AllPermission;
};

grant {
//      permission java.lang.RuntimePermission "stopThread";
        permission java.land.RuntimePermission "createClassLoader";

        // allows anyone to listen on un-privileged ports
//      permission java.net.SocketPermission "localhost:1024-", "listen";
        permission java.net.SocketPermission
"*:","connect,accept,listen,resolve";
        // "standard" properies that can be read by anyone

        permission java.io.FilePermission
"/usr/local/apache/conf/zones/exec.properties" , "read";
        permission java.io.FilePermission
"/usr/local/apache/data/exec/lib/-", "read";

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



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