Search Mailing List Archives
[protege-discussion] ClassLoader
florencia liggerini
florencialiggerini at hotmail.com
Mon Mar 9 12:13:51 PDT 2009
Hi! I just fix the problem. I´m
developing a createProject plugin in eclipse using a Object Oriented
DataBase(db4o 6.4). When I was running the application from eclipse it
was working well. But
when I was creating the jar and putting it into the plugins folder it
was throwing the following error:
Java.lang.ClassCastException: com.db4o.reflect.generic.genericObject
cannot be
cast to com.db4o.ext.Db4oDatabase.
The problem was that I was configuring the Database with the ClassLoader.getSystemClassLoader() before open it, now I use this.getClass().getClassLoader() and works perfect!Thanks a lot!Florencia
> From: tredmond at stanford.edu
> To: protege-discussion at lists.stanford.edu
> Date: Mon, 9 Mar 2009 11:11:48 -0700
> Subject: Re: [protege-discussion] ClassLoader
>
>
> It does use a special class loader [1]. But actually this is not too
> exciting - it is really mostly a URLClassLoader with the right
> classpath. What is more interesting is how the class loaders are
> connected together to reflect the plugin hierarchy.
>
> But I suspect I need to know more about what you really want from this
> classloader in order to give a better answer. If you want the plugin
> class loader mechanism, there are several tools that utilize some such
> mechanism (most web containers - tomcat, jboss,...). Perhaps you should
> consider looking as OSGi which is being used to manage plugins in
> Protege 4.
>
> -Timothy
>
> [1] http://smi-protege/repos/protege/protege-
> core/trunk/src/edu/stanford/smi/protege/util/DirectoryClassLoader.java
> [2] http://www.osgi.org/Main/HomePage
>
> On Mon, 2009-03-09 at 15:08 +0000, florencia liggerini wrote:
> > Hi!
> > I need to know if protege use some special Classloader?? And, if it
> > is yes, how can I get it? Is some method in the API?
> > Thanks!
> >
> > ______________________________________________________________________
> > Color coding for safety: Windows Live Hotmail alerts you to suspicious
> > email. Sign up today.
> > _______________________________________________
> > protege-discussion mailing list
> > protege-discussion at lists.stanford.edu
> > https://mailman.stanford.edu/mailman/listinfo/protege-discussion
> >
> > Instructions for unsubscribing: http://protege.stanford.edu/doc/faq.html#01a.03
>
> _______________________________________________
> protege-discussion mailing list
> protege-discussion at lists.stanford.edu
> https://mailman.stanford.edu/mailman/listinfo/protege-discussion
>
> Instructions for unsubscribing: http://protege.stanford.edu/doc/faq.html#01a.03
_________________________________________________________________
See how Windows® connects the people, information, and fun that are part of your life
http://clk.atdmt.com/MRT/go/119463819/direct/01/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.stanford.edu/pipermail/protege-discussion/attachments/20090309/1cadfb57/attachment.html>
More information about the protege-discussion
mailing list