DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6907>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6907

jsp compiler not synchronized





------- Additional Comments From [EMAIL PROTECTED]  2002-03-06 13:52 -------
I tried to work around this problem by synchronizing access to the java 
compiler, however this only reduces the problem. since the java sourcecode
is generated again and again until it compiles. So 1 thread is busy compiling
while another is trying to overwrite the source code. Scenario:

2 clients access the same page at approximately the same time
Thread 1: Generate Java code ( class not found )
Thread 2: Generate Java code ( class not found )
Thread 1: write classfile to disk
Thread 2: write classfile to dist ( fails because file is in use )
Thread 1: Generate Java code ( source is newer because of Thread 2 )
Thread 1: Compile Java code ( again! )

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to