|
Pete, You should be able to delete everything in /work or /temp to clean up sessions and cache. David Morris -----Original Message----- From: java400-l-bounces@xxxxxxxxxxxx [mailto:java400-l-bounces@xxxxxxxxxxxx] On Behalf Of Pete Helgren Sent: Friday, September 15, 2006 10:13 AM To: Java Programming on and around the iSeries / AS400 Subject: Re: Hibernate issues Al and David, We are using Hibernate version 3.2.0 with Tomcat 5.0.28. The box is a 520 i5 V5R3M0 (back level on CUME's and groups) . JDK 1.4. Here is what we experienced: We have several applications (.jsp) and we use Hibernate so we can map between different DB schemas a customer may have. We deployed the applications by dropping the wars into the webapps folder. All was well. The applications ran fine but we saw some errors in the job indicating some missing files. We determined that there was a library list problem (set by some Tomcat startup code) so we ended Tomcat and restarted it. After that point in time, the applications would no longer run. Upon closer inspection, we saw the following in the catalina.out log: %%%% Error Creating SessionFactory %%%% org.hibernate.InvalidMappingException: Could not parse mapping document from resource at java.lang.Throwable.<init>(Throwable.java:195) at java.lang.Exception.<init>(Exception.java:41) at java.lang.RuntimeException.<init>(RuntimeException.java:43) at org.hibernate.exception.NestableRuntimeException.<init>(NestableRuntimeE xcep at org.hibernate.HibernateException.<init>(HibernateException.java:22) at org.hibernate.MappingException.<init>(MappingException.java:14) at org.hibernate.InvalidMappingException.<init>(InvalidMappingException.jav a:16 at org.hibernate.InvalidMappingException.<init>(InvalidMappingException.jav a:32 at org.hibernate.cfg.Configuration.addResource(Configuration.java:523) at org.hibernate.cfg.Configuration.parseMappingElement(Configuration.java:1 511) at org.hibernate.cfg.Configuration.parseSessionFactory(Configuration.java:1 479) ...... Caused by: org.hibernate.DuplicateMappingException: Duplicate class/entity mapping org.edtechlabs.appselfserv.dataobjects.Answer The mapping files are fine and the weird thing is that each invocation identifies a *different* mapping file it is unhappy with. Seems almost random What session files are you referring to David? I can take a look at those. Pete
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.