----------------------------------------------------------------
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!!!
----------------------------------------------------------------
All,
I felt compel to suspect a bug in Jserv after a day of so debugging this
problem I previous posted.I have been using Jserv for almost 9 months with
great success. Unless I made stupid mistake, I am not an novice.
Here is what I see:
a) After migrating from 1.18 of Sun JVM to 1.2.2 Sun JVM. I have a Hello
servlet. Each time I edit and recompile Hello.java , the servlet got
reloaded as usual.
b) If Hello sucks in a framework of normal Java classes, the class loader
failed to load those classes that are in the reloadable directory as
Hello.class. Those other classes are not modified and recompiled, just
Hello.java is. This is as if the entire set of other classes got swapped out
of JVM.
c) I then test on Hello.java calling couple other classes only. The reload
goes as expected. So I suspect that Jserv fails to load a large set of
classes of some number under 1.2.2 environment.
d) Note, after the crash, if I restart Jserv, everything becomes fine. So it
is not my configuration file problems.
e) My environment runs perfectly in 1.1.8
f) I suppose I don't have to recompile Jserv class library under 1.2.2 Java
compiler?
I have
a) NT4 SP4 + apache 1.39 + Jserv 1.0
b) All my classes are in d:\java\classes, which my zone file has
repositories=D:\java\classes
autoreload.classes=true
autoreload.file=true
c) I do not have anything specified in my CLASSPATH
d) My wrapper are as follows
wrapper.classpath=D:\java\lib\jserv\ApacheJServ.jar
wrapper.classpath=D:\java\lib\jsdk20\jsdk.jar
e) Just to be paranoid, I turned my java.policy file to permit all
grant {
permission java.security.AllPermission;
}
…………………………………………………………………………………………………………………
The crash logs:
java.lang.NullPointerException
java.lang.Class java.net.URLClassLoader.findClass(java.lang.String)
java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String, boolean)
java.lang.Class sun.misc.Launcher$AppClassLoader.loadClass(java.lang.String,
boolean)
java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String)
java.lang.Class java.lang.ClassLoader.findSystemClass(java.lang.String)
java.lang.Class
org.apache.java.lang.AdaptiveClassLoader.loadSystemClass(java.lang.String,
boolean)
java.lang.Class
org.apache.java.lang.AdaptiveClassLoader.loadClass(java.lang.String,
boolean)
java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String)
void classio.test.Hello.doGet(javax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse)
void
javax.servlet.http.HttpServlet.service(javax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse)
void javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest,
javax.servlet.ServletResponse)
void org.apache.jserv.JServConnection.processRequest()
void org.apache.jserv.JServConnection.run()
void java.lang.Thread.run()
Hope someone can give a pointer.
-dy
_______________________________________________________
Visit Excite Shopping at http://shopping.excite.com
The fastest way to find your Holiday gift this season
--
--------------------------------------------------------------
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]