MaxSearchFrequencyExceededException on first Search

User 6b718aa570

22-03-2006 23:25:21

Hello,





I am using Marvin as part of the backend of the Software Package ChemicalInventory (http://chemicalinventory.org/).





When I try to use the Search function in their tomcat interface I get:


Code:



type Exception report





message





description The server encountered an internal error () that prevented it from fulfilling this request.





exception





javax.servlet.ServletException: chemaxon/jchem/db/MaxSearchFrequencyExceededException


   org.apache.jasper.servlet.JspServlet.service(JspServlet.java:272)


   javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


   org.apache.jsp.jsp.Controller_jsp._jspService(org.apache.jsp.jsp.Controller_jsp:207)


   org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)


   javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


   org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)


   org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)


   org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)


   javax.servlet.http.HttpServlet.service(HttpServlet.java:802)





root cause





java.lang.NoClassDefFoundError: chemaxon/jchem/db/MaxSearchFrequencyExceededException


   java.lang.Class.getDeclaredConstructors0(Native Method)


   java.lang.Class.privateGetDeclaredConstructors(Class.java:2328)


   java.lang.Class.getConstructor0(Class.java:2640)


     <SNIP>








At first I thought it was just because I didn't have the Academic Licence in place in the jchemproperties table... but even after updating my jchemproperties with the new Academic Licence Reg. Codes so my table reads:


(With codes changed - number of character and character type preserved)


<SNIP>


| registration.code | 1234567 | |


| registration.code.cartridge | ab12CD | |


| registration.code.cluster | 12345678 | |


<SNIP>





I am still gettting the same message and error whenever I try to search. (I have restarted mysql/tomcat/rebooted)





Is there another location I shoudl be entering my keys? Are there additional keys I need to enter?





Any advice or guidance?

ChemAxon 9c0afc9aaf

23-03-2006 09:46:50

Hi,
Quote:
java.lang.NoClassDefFoundError: chemaxon/jchem/db/MaxSearchFrequencyExceededException
This message means that the "MaxSearchFrequencyExceededException" class was not found.


So it's not a license key problem, but an installation problem.
Quote:
I am using Marvin as part of the backend of the Software Package ChemicalInventory (http://chemicalinventory.org/).
You need jchem.jar to be present in the library of our web application if you want to run DB searches.


(Copy into /share/lib to make visible for all web applications in Tomcat)


Since jchem.jar contains the necessary classes for backend use, no other ChemAxon jar files should be present in Tomcat's lib (to prevent possible version conflicts).





Best regards,





Szilard

User 6b718aa570

23-03-2006 17:33:21

Thank you for the fast reply!





You were absolutly correct. the jchem.jar file was missing. The only


change I had to make in your instructions was to put the file in


/var/lib/tomcat5/webapps/chemicalinventory/WEB-INF/lib/ rather than the


global location.





This was actually in the documenatation provided by chemicalinventory.org


but I missed it till after you had given me the solution. http://chemicalinventory.org/developer_zone/StartDeveloper.html





Thanks again!