Yeah, I used the JPDA yesterday to resolve down to that very same point -- and just to 
make myself feel better (when I saw there was a TomcatLoader) -- I integrated with 
Tomcat with no issues ;).

What platforms is openejb /known/ to work with?

Cory



-----Original Message-----
From: David Blevins [mailto:[EMAIL PROTECTED]
Sent: Friday, November 21, 2003 1:47 AM
To: Cory Wilkerson
Cc: [EMAIL PROTECTED]
Subject: Re: [OpenEJB-user] Newbie Issues


Hi Cory,

See comments below.

On Wed, Nov 19, 2003 at 04:43:21PM -0600, Cory Wilkerson wrote:
> OpenEJB looks amazingly slick -- I'm dying to get it integrated  with Resin so I can 
> drop JBoss off the back end (the crowd roars).
> 
> To that end -- all is looking well with initial testing (my beans actually /do/ get 
> deployed) but I see the following condition at startup time (and no one likes a 
> nasty looking log).  It goes without saying that I'd like to clean this up -- any 
> idea what could be going wrong?  Is this a standard newb config issue?
> 
> DEBUG err                       java.lang.ClassCastException
> DEBUG err                             at 
> org.openejb.util.ClasspathUtils$ContextLoader.addJarToPath(ClasspathUtils.java:310)


The code at 310 is the following:

    public void addJarToPath(URL jar) throws Exception {
        URLClassLoader loader = (URLClassLoader)ClasspathUtils.getContextClassLoader();
        this.addJarToPath( jar, loader );
    }

Basically, what needs to happen is that we need to find some way to get classes into 
Resin's classloader, which is obviously not a subclass of URLClassLoader.

If you can figure that out and can implement this interface, the rest should be easy.

    interface Loader {
        public void addJarsToPath(File dir) throws Exception;
        public void addJarToPath(URL dir) throws Exception;
    }

There are three implementations of this in the ClasspathUtils class; SystemLoader, 
ContextLoader, TomcatLoader.  We would need one for Resin.  You can look at the others 
for an idea of what is required.


-David



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
http://OpenEJB.sf.net
OpenEJB-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/openejb-user

Reply via email to