[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
[Home]
feature request/bug report
BUG REPORT:
I encountered extremely annoying (+5h to isolate) and strange bug
I have RedHat 5.1 and jdk116_v5 installed. All files that
reproduce bug should be unpacked to /tmp/alek
aztoruns@bravo /tmp 0> uname -a
Linux bravo 2.0.34 #1 Fri May 8 16:05:57 EDT 1998 i586 unknown
aztoruns@bravo /tmp 0> java -version
java version "1.1.6"
aztoruns@bravo /tmp/alek 0> setenv CLASSPATH
/tmp/alek:/usr/local/src/java/jdk11/lib/classes.zip
aztoruns@bravo /tmp/alek 0> javac bwprofile/*.java
aztoruns@bravo /tmp/alek 0> javac bw_profile/*.java
I use 0.92 SUN JSP preview to validate that it is not fault of my code.
aztoruns@bravo /big1/src/java/jsp/jspref092 1> setenv CLASSPATH
/tmp/alek:/src/java/jsp/jspref092/lib/jsdk.jar:/src/java/jsp/jspref092/lib/jsp.jar:/src/java/jsp/jspref092/jsp/samples:/src/java/jsp/jspref092/lib/servlet.jar:/usr/local/src/java/jdk11/lib/classes.zip
aztoruns@bravo /big1/src/java/jsp/jspref092 0> java
sun.servlet.http.HttpServer
servletrunner starting with settings:
port = 8080
backlog = 50
max handlers = 100
timeout = 5000
servlet dir = ./servlets
document dir = ./jsp
welcome file = index.html
servlet propfile = ./servlets/servlet.properties
alias propfile = ./servlets/alias.properties
application propfile = ./servlets/application.properties
And works OK
But under JRun (in startjsm) where I use path
CLASSPATH=/tmp/alek:/usr/local/src/java/jdk11/lib/classes.zip:${JRUN_HOME}/lib/jrun.jar:${JRUN_HOME}/lib/jsp.jar:${JRUN_HOME}/examples/jni:/src/lang/java/jsp/gnu/lib/gnujsp.jar
export CLASSPATH
I can not succesfully use bean. It was really frustrating!
I tested it both against GnuJSP 0.9.5 and GNUJSP 0.9.6.
And if package name has added underscore (bw_profile) it fails
miserably.
http://bravo.mat.uni.torun.pl/alek/aa.jsp
500 Internal Server Error
jsp:
java.lang.ClassCastException: bw_profile.Bean
I have this in logs:
==> /src/java/jrun/2.2/jsm-default/services/jse/logs/error.log <==
Sun Dec 20 14:41:08 GMT+01:00 1998: Running servlet
{ (bw_profile.Bean) java.lang.ClassCastException: bw_profile.Bean
at _jsp._big1._web._BillWatch._jsp._aa_2ejsp.service(_aa_2ejsp.java:33)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at nl.nmg.jsp.JSPServlet.service(JSPServlet.java)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at com.livesoftware.jrun.JRun.runServlet(JRun.java)
at com.livesoftware.jrun.JRunGeneric.handleConnection(JRunGeneric.java)
at com.livesoftware.jrun.JRunGeneric.handleProxyConnection(JRunGeneric.java)
at
com.livesoftware.jrun.service.proxy.JRunProxyServiceHandler.handleRequest(JRunProxyServiceHandler.java)
at
com.livesoftware.jrun.service.ThreadConfigHandler.run(ThreadConfigHandler.java)
at java.lang.Thread.run(Thread.java)
}
I include also
_jsp._big1._web._BillWatch._jsp._aa_2ejsp.service
Alek
P.S> Consider bug as solved.
When I was copying classfile I noticed starnage fing
classfiles/bw_profile
classfiles/bw_profile/Bean.class
I have really no idea how thise files got there :-)
I am pretty sure I did not compile *anything* in
directory classfiles. So it it is maybe a bug -
needs investigating...
Therefore request for feature - please add
possiblity of logging what is happennig insied GNUJSP
both when compiling and when loading/executing class
(here would be useful to be able to watch classloader activity).
That is now quite good program I hope that it will get better!
--
In theory, there is no difference between theory and practice.
But, in practise, there is. -- Jan L.A. van de Snepscheut