Howdy.
I'm wondering if there is a known issue with running multiple instances of xalan.exe?
I'm working on a application that relies on xalan-c to perform a transformation for each web request to transform some XHTML and some XML and return the resulting HTML to the browser.
Been using this for a while in development now -- everything seemed to be working ok.
I recently started work on a frames-based page that makes 4 requests at once (4 frames) and I started to notice the xalan.exe processes "locking up".
Here's where things get a little weird. I have to "step back" in my explanation a bit. Each XHTML file contains a DOCTYPE declaration using the w3c.org URL for the xhtml DTD, like so:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
In order to save Xalan from running out to the w3c for each request, I put an entry for w3c.org pointing to localhost in my hosts file and use a DTD located on my local webserver.
Now I could have just changed the URL in the DOCTYPE declaration to http://localhost/xhtml1-transitional.dtd, BUT... this causes DreamWeaver to "freak out" and not render the pages properly in it's preview pane which is why we decided against doing this. We likely won't want to put this hosts entry on our production webservers, so some other method will be needed for prod.
Ok, so using the hosts-file/localhost DTD method is when Xalan processes seem to lock up (when multiple xalan processes are running at the same time). If I'm only processing 1 request at a time, things still run smoothly.
If I remove the hosts entry and allow Xalan to go out to w3c for it's DTD, it works fine.
That's a lot of explanation for 1 email, so I'll see if anyone bites on that. I'll be happy to provide more inforation should anyone want.
Thanks a ton - this has been a 2-day+ bug hunt so far....
_________________________________________________________________
Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail
