User 9fd402adb0
17-03-2008 11:52:48
Hello,
(Marvin Version 5.0.1, running on Microsoft Windows Server 2003, IIS.)
I'm struggling, even after a clean install of marvin-all-5_0_01.zip, to get MarvinSketch to output InChI. Every time I attempt it (embedded in a file search_both.php), with exportMol('inchi'); which points to
function exportMol(format) {
if(document.MSketch != null) {
var s = document.MSketch.getMol(format);
document.MolForm.mol.value = s;
} else {
alert("Cannot import molecule:\n"+
"no JavaScript to Java communication in your browser.\n");
}
}
I get the standard "Marvin caught a SecurityException" message. exportMol('smiles'), exportMol('mol'), exportMol('pdb') all work fine.
If I look at the server logs (slightly trimmed to save space, response code first to see where it's 404ing), I see this:
200: 2008-03-17 11:03:47 GET /marvin/sjars/inchi.jar
200: 2008-03-17 11:03:47 POST /marvin/examples/search_both.php
404: 2008-03-17 11:03:47 GET /marvin/META-INF/services/javax.xml.parsers.DocumentBuilderFactory
404: 2008-03-17 11:03:47 GET /marvin/META-INF/services/javax.xml.transform.TransformerFactory
404: 2008-03-17 11:03:47 GET /marvin/META-INF/services/com.sun.org.apache.xalan.internal.xsltc.dom.XSLTCDTMManager
404: 2008-03-17 11:03:47 GET /marvin/META-INF/services/javax.xml.parsers.DocumentBuilderFactory
404: 2008-03-17 11:03:47 GET /marvin/META-INF/services/javax.xml.transform.TransformerFactory
404: 2008-03-17 11:03:47 GET /marvin/META-INF/services/com.sun.org.apache.xalan.internal.xsltc.dom.XSLTCDTMManager
(I'm pretty sure the 404s aren't relevant because they also appear in the SMILES- or mol-only searches, which don't produce the SecurityException.) So it looks as if inchi.jar is trying to access something on the server that it doesn't have access to. Is it one of the inchi-native-* jars?
Do I need to add the inchi-native-* jar files to the MANIFEST.MF file in jmarvin.jar, and, if so, what are their SHA1-Digest strings?
Looking forward to your reply,
Colin Batchelor,
--
Dr Colin Batchelor MChem MRSC, Production Systems Analyst
Informatics Department,
Royal Society of Chemistry, Thomas Graham House, Cambridge UK CB4 0WF
batchelorc _at_ rsc.org t: +44 1223 432280
(Marvin Version 5.0.1, running on Microsoft Windows Server 2003, IIS.)
I'm struggling, even after a clean install of marvin-all-5_0_01.zip, to get MarvinSketch to output InChI. Every time I attempt it (embedded in a file search_both.php), with exportMol('inchi'); which points to
function exportMol(format) {
if(document.MSketch != null) {
var s = document.MSketch.getMol(format);
document.MolForm.mol.value = s;
} else {
alert("Cannot import molecule:\n"+
"no JavaScript to Java communication in your browser.\n");
}
}
I get the standard "Marvin caught a SecurityException" message. exportMol('smiles'), exportMol('mol'), exportMol('pdb') all work fine.
If I look at the server logs (slightly trimmed to save space, response code first to see where it's 404ing), I see this:
200: 2008-03-17 11:03:47 GET /marvin/sjars/inchi.jar
200: 2008-03-17 11:03:47 POST /marvin/examples/search_both.php
404: 2008-03-17 11:03:47 GET /marvin/META-INF/services/javax.xml.parsers.DocumentBuilderFactory
404: 2008-03-17 11:03:47 GET /marvin/META-INF/services/javax.xml.transform.TransformerFactory
404: 2008-03-17 11:03:47 GET /marvin/META-INF/services/com.sun.org.apache.xalan.internal.xsltc.dom.XSLTCDTMManager
404: 2008-03-17 11:03:47 GET /marvin/META-INF/services/javax.xml.parsers.DocumentBuilderFactory
404: 2008-03-17 11:03:47 GET /marvin/META-INF/services/javax.xml.transform.TransformerFactory
404: 2008-03-17 11:03:47 GET /marvin/META-INF/services/com.sun.org.apache.xalan.internal.xsltc.dom.XSLTCDTMManager
(I'm pretty sure the 404s aren't relevant because they also appear in the SMILES- or mol-only searches, which don't produce the SecurityException.) So it looks as if inchi.jar is trying to access something on the server that it doesn't have access to. Is it one of the inchi-native-* jars?
Do I need to add the inchi-native-* jar files to the MANIFEST.MF file in jmarvin.jar, and, if so, what are their SHA1-Digest strings?
Looking forward to your reply,
Colin Batchelor,
--
Dr Colin Batchelor MChem MRSC, Production Systems Analyst
Informatics Department,
Royal Society of Chemistry, Thomas Graham House, Cambridge UK CB4 0WF
batchelorc _at_ rsc.org t: +44 1223 432280