Hi Nicklas, Thanks for that. Yes, it was classpath-related -- I had some old versions of BASE libraries hanging around on my classpath from a previous install.
Thanks Micha ================================== Dr Micha M Bayer Bioinformatics Specialist Genetics Programme The Scottish Crop Research Institute Invergowrie Dundee DD2 5DA Scotland, UK Telephone +44(0)1382 562731 ext. 2309 Fax +44(0)1382 562426 http://www.scri.sari.ac.uk/MichaBayer.htm ============================= > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:basedb-users- > [EMAIL PROTECTED] On Behalf Of Nicklas Nordborg > Sent: 25 October 2006 10:33 > To: BASE ML > Subject: Re: [base] BASE2: Hibernate caching problem > > Micha Bayer wrote: > > Hi, > > > > We have just installed the latest version of BASE2 (2.0.2 binaries) and > > are running some of our own client code against it. BASE is running > > under Tomcat 5.5.20 and with a MySQL 5.0.22 backend. > > > > When our code calls Application.start(), the following exception is > > thrown: > > Maybe it is some classpath problem. Your classpath should contain all > JAR files in the /www/WEB-INF/lib directory as well as the > /www/WEB-INF/classes directory. See for example the /bin/includes file > which sets up the classpath for the installation and migration program. > > Caching information is partly kept in the ehcache.xml file and partly in > the hibernate.cfg.xml file (both should be located in the > /www/WEB-INF/classes directory). > > /Nicklas > > > > SEVERE: Cannot cache an unknown entity: > > net.sf.basedb.core.data.AnnotationTypeCategoryData > > net.sf.basedb.core.BaseException: Cannot cache an unknown entity: > > net.sf.basedb.core.data.AnnotationTypeCategoryData > > at net.sf.basedb.core.HibernateUtil.init(HibernateUtil.java:166) > > at net.sf.basedb.core.Application.start(Application.java:333) > > at net.sf.basedb.core.Application.start(Application.java:271) > > at > > sbrn.workflows.base.auth.BaseAuthenticator.login(BaseAuthenticator.java: > > 32) > > at > > sbrn.workflows.base.webservice.BaseWebService.getRawDataByExperimentName > > (BaseWebService.java:78) > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > at > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav > > a:39) > > at > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor > > Impl.java:25) > > at java.lang.reflect.Method.invoke(Method.java:585) > > at > > org.apache.axis.providers.java.RPCProvider.invokeMethod(RPCProvider.java > > :397) > > at > > org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.ja > > va:186) > > at > > org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:323 > > ) > > at > > org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.j > > ava:32) > > at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118) > > at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83) > > at > > org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:454) > > at org.apache.axis.server.AxisServer.invoke(AxisServer.java:281) > > at > > org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:699) > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:709) > > at > > org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.j > > ava:327) > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) > > at > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica > > tionFilterChain.java:252) > > at > > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt > > erChain.java:173) > > at > > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv > > e.java:213) > > at > > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv > > e.java:178) > > at > > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java > > :126) > > at > > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java > > :105) > > at > > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve. > > java:107) > > at > > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:1 > > 48) > > at > > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:86 > > 9) > > at > > org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.proc > > essConnection(Http11BaseProtocol.java:664) > > at > > org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint > > .java:527) > > at > > org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollow > > erWorkerThread.java:80) > > at > > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool > > .java:684) > > at java.lang.Thread.run(Thread.java:595) > > Caused by: org.hibernate.MappingException: Cannot cache an unknown > > entity: net.sf.basedb.core.data.AnnotationTypeCategoryData > > at > > org.hibernate.cfg.Configuration.setCacheConcurrencyStrategy(Configuratio > > n.java:1834) > > at > > org.hibernate.cfg.Configuration.parseSessionFactory(Configuration.java:1 > > 440) > > at > > org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1414) > > at > > org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1390) > > at > > org.hibernate.cfg.Configuration.configure(Configuration.java:1310) > > at > > org.hibernate.cfg.Configuration.configure(Configuration.java:1296) > > at net.sf.basedb.core.HibernateUtil.init(HibernateUtil.java:159) > > ... 34 more > > > > > > > > Looks to me like Hibernate is trying to cache something it has no > > knowledge of. There doesn't seem to be anything on the lists about this > > particular problem -- can anyone help with this at all? > > > > Thanks > > > > Micha > > > > ================================== > > Dr Micha M Bayer > > Bioinformatics Specialist > > Genetics Programme > > The Scottish Crop Research Institute > > Invergowrie > > Dundee > > DD2 5DA > > Scotland, UK > > Telephone +44(0)1382 562731 ext. 2309 > > Fax +44(0)1382 562426 > > http://www.scri.sari.ac.uk/MichaBayer.htm > > ============================= > > > > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > _ _ > > > > DISCLAIMER: > > > > This email is from the Scottish Crop Research Institute, but the views > > expressed by the sender are not necessarily the views of SCRI and its > > subsidiaries. This email and any files transmitted with it are > confidential > > to the intended recipient at the e-mail address to which it has been > > addressed. It may not be disclosed or used by any other than that > addressee. > > If you are not the intended recipient you are requested to preserve this > > confidentiality and you must not use, disclose, copy, print or rely on > this > > e-mail in any way. Please notify [EMAIL PROTECTED] quoting the > > name of the sender and delete the email from your system. > > > > Although SCRI has taken reasonable precautions to ensure no viruses are > > present in this email, neither the Institute nor the sender accepts any > > responsibility for any viruses, and it is your responsibility to scan > the email > > and the attachments (if any). > > > > > > ------------------------------------------------------------------------ > - > > Using Tomcat but need to do more? Need to support web services, > security? > > Get stuff done quickly with pre-integrated technology to make your job > easier > > Download IBM WebSphere Application Server v.1.0.1 based on Apache > Geronimo > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > _______________________________________________ > > The BASE general discussion mailing list > > basedb-users@lists.sourceforge.net > > unsubscribe: send a mail with subject "unsubscribe" to > > [EMAIL PROTECTED] > > > ------------------------------------------------------------------------ - > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > The BASE general discussion mailing list > basedb-users@lists.sourceforge.net > unsubscribe: send a mail with subject "unsubscribe" to > [EMAIL PROTECTED] ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ The BASE general discussion mailing list basedb-users@lists.sourceforge.net unsubscribe: send a mail with subject "unsubscribe" to [EMAIL PROTECTED]