InstantDB Project
About InstantDB
Project Mail Lists
Short History
Reporting Bugs
Screen Shots
3rd Party Examples
FAQs

Software
Downloads
Documentation
CVS Repositories
Roadmap
License

About Enhydra.org
Who We Are
News, Articles & Events
Getting Involved
Contact Us

Community
Demos
Contributions
Resources
Case Studies
On The Edge! -NEW-
Commercial Vendors


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: InstantDB: RE: IDB Driver problems


Hi George,

>From within my servlet, I tried this (just to see if it could find it)

//manually instantiate it (means it's in the classpath)
idbDriver driver = new idbDriver();

//instantiate via .forName() (means I can get to it from
//the servlet classloader)
try {
	Class cl = Class.forName("org.enhydra.instantdb.jdbc.idbDriver");
	Object instance = cl.newInstance();
	Debug.println (this, 0, "Got instance");
} catch (Exception e) {
	Debug.println (this, 0, "Got error:"+e);
}

Both of these worked, which makes me think there's no fundamental reason why
it _can't_ be loaded by the servlet classloader. However, Enhydra's
StandardApplication calls StandardDatabaseManager, and it looks to me like
that class is trying to load it using the system classloader.

I don't have anything more specific than that yet... (but I'm in hot pursuit
of the details ;-)

Christian

------------------------------------------------
Christian Cryder
Software Engineer, Rocks
Lutris Technologies, Inc.
christianc@lutris.com
------------------------------------------------
       "What a great time to be a Geek"
------------------------------------------------
 http://www.lutris.com ~ http://xmlc.enhydra.org


> -----Original Message-----
> From: owner-instantDB@enhydra.org [mailto:owner-instantDB@enhydra.org]On
> Behalf Of george stewart
> Sent: Friday, November 17, 2000 7:06 AM
> To: instantDB@enhydra.org
> Subject: Re: InstantDB: RE: IDB Driver problems
>
>
> Hi Christian,
> --- Christian Cryder <christian.cryder@lutris.com>
> wrote:
> >
> > In the short term, I think I can move forward by
> > just adding it to my
> > enhydra classpath, but ultimately I'd like to figure
> > out how to access from
> > the Servlet web-inf's /lib directory. I'm guessing
> > the problem is somewhere
> > either in Enhydra or Tomcat, but I'm not fully sure
> > how to proceed...
> >
>
> Probably, the driver is instantiated with
> Class.forName("driverName").  My experience is that
> this will only find classes in Tomcat's classpath.  To
> load from Tomcat's web-inf's /lib directory you must
> specify the class loader.  Please see JDBC doc on
> Class and ClassLoader.
>
> What did you use to manually instantialte the driver?
>
> Regards, goerge
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Calendar - Get organized for the holidays!
> http://calendar.yahoo.com/
> ------------------------------------------------------------------
> -----------
> To unsubscribe from this mailing list, send email to majordomo@enhydra.org
> with the text "unsubscribe instantdb" in the body of the email.
> If you have other questions regarding this mailing list, send email to
> the list admin at owner-instantdb@enhydra.org.

-----------------------------------------------------------------------------
To unsubscribe from this mailing list, send email to majordomo@enhydra.org
with the text "unsubscribe instantdb" in the body of the email.
If you have other questions regarding this mailing list, send email to
the list admin at owner-instantdb@enhydra.org.