I don't know if this is the right newsgroup for this. I am attempting to move an otherwise working XUL application from indivdual http servered files to a single signed http servered JAR file.
When the user opens the app there is some dynamic information the application needs. I solved this by having a server side program issue a redirect (Location http header) to the jar file and appending the data to the url.
The redirect ends up looking like this: jar:https://my.domain.com:440/db/ec4.jar!/ec4.xul?blah=blah
There is some hitch in the redirect that is tripping up Mozilla. It does not look in the jar file for any of the script files or the style sheet. However if I enter the jar URL directly or just hit reload it works fine.
When it fails I see these hits in the server access log: GET /cgi-bin/ec4 -- This issues the redirect GET /db/ec4.jar GET /cgi-bin/ec4.css GET /cgi-bin/ec4.js GET /cgi-bin/ec4lib.js GET /cgi-bin/ec4fldtypes.js GET /cgi-bin/ec4listings.js GET /cgi-bin/ec4remote.js GET /cgi-bin/ec4search.js GET /cgi-bin/ec4history.js
None of the .js or .css files exists in cgi-bin on the server and for each .js file I see a syntax error in the javascript console as it tries to parse the 'Not Found' response. The style sheet is not set and all events trigger not defined messages in the JS console.
When I hit reload I see this in the server access log:
GET /db/ec4.jar
GET /db/ec4.jar
GET /db/ec4.jar
GET /db/ec4.jar
GET /db/ec4.jar
GET /db/ec4.jar
GET /db/ec4.jar
GET /db/ec4.jar
GET /db/ec4.jar
I also think it is odd that it hits the server for the jar once for each file jar file member. Even if it is just checking the cache this seems a waste of time.
At this point the application functions normally.
Here is the relevent fragement of the XUL file: ---------------------------------------------------- <?xml version="1.0"?> <?xml-stylesheet href="ec4.css" type="text/css"?> <window id="ec4window" xmlns:html="http://www.w3.org/1999/xhtml" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" xmlns:ec="http://arcamax.com/ec" orient="vertical" title="EC4" onload="OnLoad()" onunload="OnUnload()" >
<script src="ec4.js"/> <script src="ec4lib.js"/> <script src="ec4fldtypes.js"/> <script src="ec4listings.js"/> <script src="ec4remote.js"/> <script src="ec4search.js"/> <script src="ec4history.js"/> -----------------------------------------------------
I can work around the problem by using absolute urls to the jar file components like this:
<script src="jar:https://my.domain.com:440/db/ec4.jar!/ec4.js"/>
This means I have to change these URLs as I move the app from our test to production.
Perhaps n.p.m.netlib is more appropriate for this...
-- Warning: May contain traces of nuts.
_______________________________________________ Mozilla-netlib mailing list [EMAIL PROTECTED] http://mail.mozilla.org/listinfo/mozilla-netlib