Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@www.apache.org Received: (qmail 47067 invoked from network); 11 May 2005 08:05:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 11 May 2005 08:05:25 -0000 Received: (qmail 74380 invoked by uid 500); 11 May 2005 08:06:30 -0000 Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 74362 invoked by uid 500); 11 May 2005 08:06:29 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 74348 invoked by uid 99); 11 May 2005 08:06:29 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from workstation5.qas.com (HELO mail3.qas.com) (195.172.82.5) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 11 May 2005 01:06:29 -0700 Received: from orion.qas.com (orion.qas.com) by mail3.qas.com (Content Technologies SMTPRS 4.3.17) with ESMTP id for ; Wed, 11 May 2005 09:02:24 +0100 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-MimeOLE: Produced By Microsoft Exchange V6.0.6603.0 Subject: RE: Help needed with Hibernate persistent servlet Date: Wed, 11 May 2005 09:02:23 +0100 Message-ID: <5684A7E6FB10504393A2806C1F4C021005AF8870@orion.qas.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Help needed with Hibernate persistent servlet Thread-Index: AcVVjki2uCgq2UHOShm4+Rq1xrzApAAcSkkg From: "Allistair Crossley" To: "Tomcat Users List" X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi, Hibernate needs a bunch of other jar files too. There is a text file in the= H3 distrib indicating which are requisite and which are mandatory. You do not menion whether this HibernateUtil you are using as a servlet has= an overridden init() method that creates the SessionFactory. Finally, the way we set the Hibernate sub-system up here is to use a Contex= tListener for our application which calls HibernateUtil.init which instance= s the SessionFactory. Another way to go about Hibernate3 usage in web apps = is to use the Inversion of Control part of Spring. Cheers, Allistair. > -----Original Message----- > From: David Haynes [mailto:david.haynes2@sympatico.ca] > Sent: 10 May 2005 19:30 > To: tomcat-user@jakarta.apache.org > Subject: Help needed with Hibernate persistent servlet >=20 >=20 > I feel that I am almost there, but can't quite get the last=20 > problem out=20 > of the way. >=20 > I am using Tomcat 5.5.7, NetBeans 4.1rc2, and Hibernate 3.0.3. >=20 > I have set up the web.xml for my project to start the=20 > HibernateUtil as a=20 > load-on-startup servlet and confirmed that the proper libraries (jar=20 > files) are in place under WEB-INF/lib. I know that the servlet is=20 > running since I put the declaration into the global web.xml=20 > and got back=20 > the duplicate service error. >=20 > My problem is that I am getting NoClassDefFoundError. Looking at the=20 > java generated for my jsp, I see that the class not found is the one=20 > which references my persistent object. ( i.e. when I reference=20 > HibernateUtil.currentSession() ) >=20 > Do I need to do something else to make the persistent object=20 > visible to=20 > my jsp? The jsp does import my package containing=20 > HibernateUtil and the=20 > org.hibernate.* set as well. >=20 > Googling seems to indicate that getting this to work is an often seen=20 > problem, but there not a lot of details about how to fix this. I have=20 > checked all the fixes I can find but nothing seems to be working. >=20 > Thanks for any ideas/help. > -david- >=20 >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org >=20 >=20 =20 ------------------------------------------------------- QAS Ltd. Developers of QuickAddress Software www.qas.com Registered in England: No 2582055 Registered in Australia: No 082 851 474 ------------------------------------------------------- --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org