Hi,

I hope this is the right list.  Just wondering whether 
sun.net.www.protocol.jar.JarURLConnection is supported by OpenJDK.  I'm using 
java-1.7.0-icedtea, and when loading resources with weblets 
(https://weblets.dev.java.net) occasionally I get the exception:

java.io.FileNotFoundException: JAR entry resources/v120/dojo/runner.js not 
found in /var/lib/tomcat/webapps/dojo.webapp/WEB-INF/lib/dojo-1.2.0.jar
sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:140)
I'll post the summary posted on weblet's dev mailing list below in case it's 
interesting.

Thanks,
- Ole


SUMMARY OF WHAT WORKS AND WHAT DOES NOT:

This url works:

http://localhost/dojo.webapp/resources/javascript/dojo/dojo.js

I also sampled loading resources from dojox and dijit and those work as well.

However this one does not:

http://localhost/dojo.webapp/resources/javascript/util/doh/runner.js

I opened up the deployed jar in konquerer:

/var/lib/tomcat/webapps/dojo.webapp/WEB-INF/lib/dojo-1.2.0.jar
Just to double check that runner.js is where it should be and it is.

Another weird thing.  I copied runner.js into the dojo directory and tried this:

http://localhost/dojo.webapp/resources/javascript/dojo/runner.js

That also results in a:
========================================================================
java.io.FileNotFoundException: JAR entry resources/v120/dojo/runner.js not 
found in /var/lib/tomcat/webapps/dojo.webapp/WEB-INF/lib/dojo-1.2.0.jar
   sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:140)
========================================================================

Another thing.  If I try to load a non existing resource like this:

http://localhost/dojo.webapp/resources/javascript/nonexistingresource.js

I just get a 404 saying this:
========================================================================
HTTP Status 404 -

type Status report

message

description The requested resource () is not available.
========================================================================

Reply via email to