Your just putting the onus on the Application
programmer to work around shortcomings in the Server -
I think.....

Perhaps someone will make a pronouncement on HOW
JBoss/Jetty SHOULD behave here. Then we can figure out
how to achieve this behaviour.

 --- Rickard Öberg <[EMAIL PROTECTED]> wrote: >
Julian Gosnell wrote:
> 
> > 2. Non-compliant - only requests for system
> classes
> > are passed upwards.
> 
> 
> FWIW, Tomcat4 does the same thing, which means that
> you have to bundle 
> in jaxp.jar in your webapp, or you're going to get
> strange class-cast 
> exceptions and class-not-found exceptions. The
> solution is to bundle all 
> libraries with your app.

If you do that with Jetty in stand-alone, compliant
mode - you will simply find you are using the JAXP
that Jetty loaded to parse it's own XML configuration
files.

If you do it with Jetty in embedded, non-compliant
mode - you will find isAssignableFrom() fails.

So Jetty, at the very leat, needs to know whether it
is embedded or not, and it may be more complex than
that - I thought I would bring in the big guns at this
point !

Jules

 Jetty
> 
> > This strategy resolves the problems listed against
> (1)
> > but causes the isAssignableFrom() test mentioned
> above
> > to fail. What appears to happen is that JBoss
> passes
> > ClassLoader A to the EJB container which loads
> class X
> > then on to Jetty which creates it's WebApp
> > ClassLoader, B, as a child of A, then asks B to
> load
> > class X. B does not delegate to A, but loads class
> A
> > for a second time.
> 
> 
> So you need to put all classes in the EAR scope
> instead of in the webapp 
> scope to make things work. Right?
> 
> 
> /Rickard
> 
> 
> 
> -- 
> Rickard Öberg
>  

__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page from News and Sport to Email and Music 
Charts
http://uk.my.yahoo.com

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

Reply via email to