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" <[EMAIL PROTECTED]> 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:[EMAIL PROTECTED]]
> > 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 <[EMAIL PROTECTED]>
> wrote:
> > > Hi , So no one has any ideas for me on this?
> It's
> > > really bizzare.
> > > 
> > > --- David Makepeace <[EMAIL PROTECTED]>
> > > 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:  
> > > >
> > >
> <mailto:[EMAIL PROTECTED]>
> > > > For additional commands, e-mail:
> > > > <mailto:[EMAIL PROTECTED]>
> > > > 
> > > 
> > > 
> > >
> __________________________________________________
> > > Do You Yahoo!?
> > > HotJobs - Search Thousands of New Jobs
> > > http://www.hotjobs.com
> > > 
> > > --
> > > To unsubscribe, e-mail:  
> > >
> <mailto:[EMAIL PROTECTED]>
> > > For additional commands, e-mail:
> > > <mailto:[EMAIL PROTECTED]>
> > > 
> > 
> > 
> > __________________________________________________
> > Do You Yahoo!?
> > HotJobs - Search Thousands of New Jobs
> > http://www.hotjobs.com
> > 
> > --
> > To unsubscribe, e-mail:   
> >
> <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail: 
> > <mailto:[EMAIL PROTECTED]>
> > 
> 
> --
> To unsubscribe, e-mail:  
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> 


__________________________________________________
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to