Hi,

When you say "load", do you mean loads the new Class object into memory?

Yes.

Why do you think the 404 has anything to do with failed compilation
and/or loading? Is it possible you just have a broken URL or something?
You *have* been messing around writing your own JSP compiler...

 My JSP compiler is based on JspServletWrapper(Jasper compiler).

Why does it matter when it gets loaded into the ClassLoader? Why would
you want the JSP to be compiled during one request and then loaded in a
separate one?

My JSP compiler use JspServletWrapper ,thus, it will compile and load(ClassLoader works fine) once, here is recompiled operation,and then a new request (by JspServlet) to load that compiled JSP, the ClassLoader can't find class.ClassLoader loadClass method can find the class that it loaded before, thus I think JapserLoader should load
that class,but it can't find.

Should it pass the recompiled ClassLoader to loader ClassLoader as parent ClassLoader? :-)

Kind regards,
Mercy




Christopher Schultz 写道:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Mercy,

On 10/9/2009 1:53 PM, Mercy wrote:
* Did you mean "compiles and /executes/ the JSP"?
  No,here means compiles and loads the JSP.

When you say "load", do you mean loads the new Class object into memory?

*Huh? Are you saying that if you compile the JSP with one request then a
 second request to execute the JSP fails with a 404?
 Yes

Why do you think the 404 has anything to do with failed compilation
and/or loading? Is it possible you just have a broken URL or something?
You *have* been messing around writing your own JSP compiler...

* Please define "wrong": does it fail (and generate some type of message),
or does it not meet your requirements (please describe what way).
I need to compile Jsp on one request, and then load on another one.

Why does it matter when it gets loaded into the ClassLoader? Why would
you want the JSP to be compiled during one request and then loaded in a
separate one?

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkrPizsACgkQ9CaO5/Lv0PC9RgCggw2MTWlpEu2rmSqY7dZ5d5CZ
yS0AoKGOtn7oMpMvZpCaKBQjfsKZXry0
=xnQw
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Reply via email to