Hello, Yes I ran into this problem again later the same day. It seems that the problem occours sometimes if there is an error in your code. Resin then deletes the class file and won´t recomile the java file again until the error in your code is corrected.
I believe this is an serious error in JDK1.5? Sandeep Raja Rao-2 wrote: > > >> Message: 1 >> Date: Thu, 12 Jul 2007 01:29:31 -0700 (PDT) >> From: SommerJack <[EMAIL PROTECTED]> >> Subject: Re: [Resin-interest] Suddenly a >> java.lang.NoClassDefFoundError >> To: email@example.com >> Message-ID: <[EMAIL PROTECTED]> >> Content-Type: text/plain; charset=us-ascii >> >> >> I removed my webapplication and my classpaths and set it up again and now >> it >> seems to work... Strange but fine. >> > > We were facing the same problem and this is what we understood. > Resin 3.1 > > In one of the JSP page we have > > <jsp:useBean class="xxx.xxx.application.payment.Payment" id="payment" > scope="session"/> > > We were trying to change the java file in the web app directory > itself. While doing so Resin restarted and we started getting > NoClassDefFoundError. > > We revert the code, it used to work. > > When we analyzed the code by oversight we had missed to enclose > rs.close() and ps.close() within a try block. We did the correction and > everything worked fine. > > Sandeep > >> >> SommerJack wrote: >> >>> Hello, >>> >>> I made some changes to a java file and just after saving the file I got >>> the following error: >>> >>> [18:02:19.375] In-place class redefinition (HotSwap) is available >>> [18:02:20.343] D://programmer/resin-3.1/conf/app-default.xml:236: >>> java.lang.NoCl >>> assDefFoundError: module/batch/CustomerDBData >>> [18:02:20.343] >>> [18:02:20.343] 234: <mime-mapping extension=".z" >>> mime-type="application/octet- >>> stream"/> >>> [18:02:20.343] 235: >>> [18:02:20.343] 236: <resin:import path="WEB-INF/web.xml" >>> optional="true"/> >>> [18:02:20.343] 237: <resin:import path="WEB-INF/resin-web.xml" >>> optional="true"/> >>> [18:02:20.343] 238: </web-app-default> >>> [18:02:20.343] >>> >>> There is no class file visible for the file called CustomerDBData. And >>> what is strange is that I even tried to remove the java file called >>> CustomerDBData but the error stills occours?! >>> >>> P.S. I am using resin 3.1 and JDK 1.5. >>> >>> Afterwards I installed resin 3.0.23 and then this error occours: >>> >>> [19:40:58.718] com.caucho.config.LineConfigException: >>> WEB-INF/web.xml:814: >>> java. >>> lang.NoClassDefFoundError: module/batch/CustomerDBData >>> >>> >> >> > > > > _______________________________________________ > resin-interest mailing list > firstname.lastname@example.org > http://maillist.caucho.com/mailman/listinfo/resin-interest > > -- View this message in context: http://www.nabble.com/Suddenly-a-java.lang.NoClassDefFoundError-tf4062834.html#a11575893 Sent from the Resin mailing list archive at Nabble.com. _______________________________________________ resin-interest mailing list email@example.com http://maillist.caucho.com/mailman/listinfo/resin-interest