Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 67227 invoked from network); 19 Aug 2002 21:09:10 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 19 Aug 2002 21:09:10 -0000 Received: (qmail 1880 invoked by uid 97); 19 Aug 2002 21:08:25 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@jakarta.apache.org Received: (qmail 1834 invoked by uid 97); 19 Aug 2002 21:08:24 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: 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 1817 invoked by uid 98); 19 Aug 2002 21:08:24 -0000 X-Antivirus: nagoya (v4198 created Apr 24 2002) Message-ID: <20020819210748.55084.qmail@web10402.mail.yahoo.com> Date: Mon, 19 Aug 2002 14:07:48 -0700 (PDT) From: David Makepeace Subject: RE: Trouble de-serializing objects when running 4.0.4 as NT servi ce To: Tomcat Users List In-Reply-To: <399E1F52E73BD41194A800D0B74A08AB01E4DB25@skipper.cincom.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Thanks, It appears that the problem only occurs when I get my database connection from a JNDI datasource as described in server.xml. I am going to try using Jakarta DBCP for my connection pooling instead. The class that was not being found was in the same package as the class that was calling it (in the Web-Inf\classes\...). So I don't know what the heck's going on there. Since I was using the JNDI resource, my db driver jar was in the common\lib . I tried moving my classes there , but still got a ClassCastException. The user that starts the service is the same as the launcher of the batch file. JAVA_HOME was the same. Hopefully Jakarta DBCP will save me. Thanks for the suggestions from u and ope. --- "Cox, Charlie" wrote: > tomcat 4.x does not use the classpath unless you > have modified catalina.bat > to do so. It's unusual that the class is found when > run by .bat, but not as > a service. > > you're not using a network drive that's not mapped > when run as a service? > does user 'System' have access to the class(or jar) > files? > > does the library in question reside under tomcat in > /common/lib or > /webapps/lib? > > is JAVA_HOME set the same for both? > > did you check for other error messages before this > one? > > Charlie > > > -----Original Message----- > > From: ope [mailto:ope557@yahoo.com] > > Sent: Monday, August 19, 2002 2:28 PM > > To: Tomcat Users List > > Subject: Re: Trouble de-serializing objects when > running 4.0.4 as NT > > service > > > > > > My first guess would be that you have some > settings in > > your environment that are not present in the > system. > > Possibly the CLASSPATH. Check your Tomcat > services > > settings to see which user you are starting as and > > make sure that the user has the same environment > that > > you do. > > > > --- David Makepeace > wrote: > > > Hi , So no one has any ideas for me on this? > It's > > > really bizzare. > > > > > > --- David Makepeace > > > wrote: > > > > Hi, I'm having trouble deserializing an object > > > > (stored > > > > in a relational db) when running Tomcat 4.0.4 > as > > > an > > > > NT > > > > Service. I have no problems when running from > the > > > > startup.bat. My database is mySQL. I am using > > > > Tomcat's > > > > connection pooling. Platform win2k. Here's the > > > > exception that I'm seeing when I'm calling > > > > ResultSet.getObject(). Any idea's on how to > work > > > > around this? I really need to run this as a > > > service. > > > > > > > > > > > > java.sql.SQLException: Class not found: > > > > java.lang.ClassNotFoundException: > > > > org.sagecentral.modulecreation.Lesson while > > > reading > > > > serialized object > > > > at > org.gjt.mm.mysql.ResultSet.getObject(Unknown > > > > Source) > > > > > > > > > __________________________________________________ > > > > Do You Yahoo!? > > > > HotJobs - Search Thousands of New Jobs > > > > http://www.hotjobs.com > > > > > > > > -- > > > > To unsubscribe, e-mail: > > > > > > > > > > > > For additional commands, e-mail: > > > > > > > > > > > > > > > > > > __________________________________________________ > > > Do You Yahoo!? > > > HotJobs - Search Thousands of New Jobs > > > http://www.hotjobs.com > > > > > > -- > > > To unsubscribe, e-mail: > > > > > > > For additional commands, e-mail: > > > > > > > > > > > > __________________________________________________ > > Do You Yahoo!? > > HotJobs - Search Thousands of New Jobs > > http://www.hotjobs.com > > > > -- > > To unsubscribe, e-mail: > > > > > For additional commands, e-mail: > > > > > > -- > To unsubscribe, e-mail: > > For additional commands, e-mail: > > __________________________________________________ Do You Yahoo!? HotJobs - Search Thousands of New Jobs http://www.hotjobs.com -- To unsubscribe, e-mail: For additional commands, e-mail: