missing jsp file

User 6d24b35814

17-09-2009 15:00:28

Hi


I've set up chemistry searching on a MySQL database as a test and deployed the example web search pages under my tomcat installation (this is on linux).


The chemistry searching works ok (well similarity searching is a bit weird but does at least return results), but I keep on getting a file not found message in catalina.out.


Is setup.jsp necessary?


Thu Sep 17 14:25:33 BST 2009
Search mode: SUBSTRUCTURE
Structure table: jchem_structure
Query: OC1=C2C=CC=CC2=CC2=C1C=CC=C2
Screened: 1144
Hits: 31
Total time: 75 ms  Screening: 18 ms
Processing threads: 4
Current / peak / maximum searches per minute: 2 / 2 / Unlimited


File not found /home/cr86686/.chemaxon/.jchemsite open setup.jsp.
File not found /home/cr86686/.chemaxon/.jchemsite open setup.jsp.
File not found /home/cr86686/.chemaxon/.jchemsite open setup.jsp.
File not found /home/cr86686/.chemaxon/.jchemsite open setup.jsp.
File not found /home/cr86686/.chemaxon/.jchemsite open setup.jsp.
File not found /home/cr86686/.chemaxon/.jchemsite open setup.jsp.


Many thanks


Ceara

ChemAxon e274e1bada

17-09-2009 23:54:53

Hi Ceara,



setup.jsp is part of the db_search example in the JChem distribution. You can set the database connection parameters and some global options for the searching with this tool, but it is not necessary for the searching. Please check if the file is existing in your JChem distribution. The path is: examples/db_search/setup.jsp


See the documentation: http://www.chemaxon.com/jchem/examples/db_search/setup.html class="postbody">


 


Regards, Edvard

ChemAxon 9c0afc9aaf

18-09-2009 02:47:20

Hi,


 


Actually the ".jchemsite" file is missing, not setup.jsp.


We will modify the message to something like this:


File not found: "/home/cr86686/.chemaxon/.jchemsite". Please open "setup.jsp" in your browser.


This file stores the connection parameters for the JSP example.


We provide setup.jsp, so one can specify these parameteres without modifying the code.


setup.jsp creates .jchemsite at the listed path.


Here is the relevant part of init.jsp:


 


try {
    props.load(new FileInputStream(propsFname));
} catch(FileNotFoundException exc) {    
           System.err.println("File not found "+propsFname+" open setup.jsp.");
} catch(IOException exc) {
        System.err.println("Cannot read properties file "+propsFname);
}
String local_driver=props.getProperty("driver");
String local_url=props.getProperty("url");
String local_username=props.getProperty("username");
String local_password=props.getProperty("password");
String local_propertyTableName=props.getProperty("propertyTableName");



Since the example works for you I assume you have modified the code, and parameters set via setup.jsp may not have effect.


If you prefer hard-coding all parameters then you may remove the part which tries to read from .jchemsite and complains.


Alternatively you may undo those changes, visit setup.jsp and specify the connection parameters and other options there (recommended). This creates the .jchemsite file.


 


Best regards,


Szilard

User 6d24b35814

18-09-2009 08:28:32

 


Ok, I understand - I was just worried that the missing file (or directory) might cause problems.


As I said the searching is working fine, and yes I do have the setup.jsp file in the examples directory.


Many thanks


Ceara