I am setting up a web page with the ability to load local files as  
well as external files (for example, files coming from the pdb)

When I run the page locally, the applet is able to load any local  
file, but sends an error message (Jmol 11.6.RC8, Mac OSX, Safari):
java.security.AccessControlException: access denied  
(java.net.SocketPermission www.rcsb.org:80 connect,resolve)
openFile(http://www.rcsb.org/pdb/files/1gzx.pdb): 61 ms
eval ERROR: java.security.AccessControlException: access denied  
(java.net.SocketPermission www.rcsb.org:80 connect,resolve)
----line 1 command 1 of  file null:
          load >> "http://www.rcsb.org/pdb/files/1gzx.pdb"; <<

When the page is loaded from a webserver, the applet is unable to  
load any local file, as well as remote files coming from elsewhere  
than the webserver :
FileManager.openFile(''file:////Users/paul/Desktop/ 
ac.pdb'') //''file:////Users/paul/Desktop/ac.pdb''
FileManager opening http://ordinateur-de-judith-ciosi.local/~paul/ 
JMolUSc/''file:////Users/paul/Desktop/ac.pdb''
file ERROR: http://ordinateur-de-judith-ciosi.local/~paul/ 
JMolUSc/''file:////Users/paul/Desktop/ac.pdb''
java.io.FileNotFoundException: http://ordinateur-de-judith- 
ciosi.local/~paul/JMolUSc/''file:////Users/paul/Desktop/ac.pdb''
openFile(''file:////Users/paul/Desktop/ac.pdb''): 3 ms
eval ERROR: java.io.FileNotFoundException: http://ordinateur-de- 
judith-ciosi.local/~paul/JMolUSc/''file:////Users/paul/Desktop/ac.pdb''
----line 1 command 1 of  file null:
          load >> "''file:////Users/paul/Desktop/ac.pdb''" <<

I searched the mailing list archive for this issue and found a one  
year old thread, which stated that this behavior is linked to the  
inability to accept loading external files when the command is issued  
by an unsigned javascript. A workaround is to reload the jmol applet  
with the new file.
I would like to know if there is any other solution to make the  
signed applet accept an external file ? I am also wondering at how  
this problem has been dealt with in jmol protein explorer ?

Thanks in advance,
Paul

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to