Mol file not loading in MSketch applet

User e17e918c3f

07-05-2008 19:01:31

We are using Marvin 4.1.7 on Windows 2003 server with JRE1.4.2 for an ASP web application with chemical structure search. The Marvin sketch is used for structure display/edit. After we migrate the application to a new web server, we have problem with Marvin applet loading with structure. The mol file has been written to a temp_mol folder under the application directory in the previous step. But when this mol file is to load in the applet panel, error message pop up:





java.io.FileNotFoundException: http://localhost/appl_folder/temp_mol/60535035.mol


at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)


at sun.plugin.net.protocol.http.HttpURLConnection.getInputStream(Unknown Source)


at chemaxon.marvin.util.MolLoader.run(Unknown Source)


at java.lang.Thread.run(Unknown Source)





even though read/write permissions are granted to IUSR.





However to load a mol file from local using 'open' from the applet panel works fine. The application folder was copied from a production server with associated permission. IIS setting looks identical too.


Would anybody suggest how to deal with this issue?





Thanks a lot in advance.





Ray Liu

ChemAxon 7c2d26e5cf

09-05-2008 17:20:42

It may be a configuration problem.


Are you sure that the refered URL is valid for the web server?


Is your browser display this URL?


http://localhost/appl_folder/temp_mol/60535035.mol


Please check the configuration of your web browser. Probably the "/appl_folder" is not mapped for the web server.


Checking the port number and host name in the config file is also recommended.


The "localhost" domain refers to the same machine where you are.


It means that this URL can work on your machine.

User 6f41ff5880

29-07-2008 14:43:58

IIS allows only filename extensions with defined MIME types.


MOL file doesn't have such definition in default IIS configuration.





Go to properties of IIS server (right click on server name-> Properties), click "MIME types".





Add new MIME type of "chemical/x-mdl-molfile" for .mol extension.





Restart IIS.

ChemAxon 7c2d26e5cf

29-07-2008 15:05:41

Thanks for sharing your experience.