I'm back to thinking there is definitely a bug in the Tomcat integration.
My understanding is that all of the ClassLoaders are supposed to be chained
together, right?   When Tomcat runs a servlet, it should have a CL chain of:

     The default JBoss ClassLoader
           --> URLClassLoader (jars referenced from the manifest in the ejb
jars)
                    --> AdaptiveClassLoader (contains WEB-INF/classes,
WEB-INF/lib/*)

So, if that's the case, we should be able to put classes anywhere on that
chain and have Tomcat find them -- but, it seems like you have to put
classes in both WEB-INF and in the ejb-jar ... that can't be right.
AdaptiveClassLoader looks like it correctly calls up the chain, but, for
some reason, this isn't working like it should.

org.jboss.tomcat.ContextClassLoaderInterceptor is mucking around with
Tomcat's classloader hierarchy.   org.jboss.tomcat.naming.JbossWebXmlReader
is also mucking with the classloader and I'm not so sure it should be.

Does anyone have any insight into this?  I've been trying to track this
down, but can't seem to make any progress.

-- Dewayne


----- Original Message -----
From: "Jim Archer" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, April 23, 2001 4:10 PM
Subject: Re: [JBoss-user] Tomcat-JBoss ClassNotFoundException (again)


> I definately have this working.
>
> I got that very same problem months ago and solved it at that time by
> putting the home and remote interface classes in my WAR (as well as in my
> jar). That solved it then, and I have just been doing it that way ever
> since.
>
> I don't know ifthat is the "correct" or best sollution, but ti works for
me.
>
> Jim
>
> --On Thursday, April 19, 2001 11:37 PM -0400 Bill Pfeiffer
> <[EMAIL PROTECTED]> wrote:
>
> > Has anyone successfully deployed a non trivial .ear (ie something other
> > than the example ear) under the integrated Tomcat-JBoss binary?
> >
> > I've read the docs.  I've reviewed the working sample.  I've tried what
> > seems to be every concievable permutation of .jcml, .conf, manifest
> > settings that I can come up with.  I cannot get the damn thing (my
> > servlet) to see my home interface class file.  It throws a
> > ClassNotFoundException every time.
> >
> > Offer me a setting.  I'll try it (if I haven't already).  Tell me where
to
> > put my ejb interface files (in or out of a client.jar, doesn't matter,
> > I've tried it).
> >
> > Any last words of advice before I give up?  I'd love to hear from
someone
> > who has this working and see the configuration.
> >
> > Thanks,
> >
> > Bill Pfeiffer



_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to