tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Makepeace <david_makepe...@yahoo.com>
Subject RE: Trouble de-serializing objects when running 4.0.4 as NT servi ce
Date Mon, 19 Aug 2002 21:07:48 GMT
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" <ccox@cincom.com> 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 <david_makepeace@yahoo.com>
> wrote:
> > > Hi , So no one has any ideas for me on this?
> It's
> > > really bizzare.
> > > 
> > > --- David Makepeace <david_makepeace@yahoo.com>
> > > 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:tomcat-user-unsubscribe@jakarta.apache.org>
> > > > For additional commands, e-mail:
> > > > <mailto:tomcat-user-help@jakarta.apache.org>
> > > > 
> > > 
> > > 
> > >
> __________________________________________________
> > > Do You Yahoo!?
> > > HotJobs - Search Thousands of New Jobs
> > > http://www.hotjobs.com
> > > 
> > > --
> > > To unsubscribe, e-mail:  
> > >
> <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> > > For additional commands, e-mail:
> > > <mailto:tomcat-user-help@jakarta.apache.org>
> > > 
> > 
> > 
> > __________________________________________________
> > Do You Yahoo!?
> > HotJobs - Search Thousands of New Jobs
> > http://www.hotjobs.com
> > 
> > --
> > To unsubscribe, e-mail:   
> >
> <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> > For additional commands, e-mail: 
> > <mailto:tomcat-user-help@jakarta.apache.org>
> > 
> 
> --
> To unsubscribe, e-mail:  
> <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
> <mailto:tomcat-user-help@jakarta.apache.org>
> 


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

--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message