Final word,
I've downloaded the servlet 2.3 spec and it says:
(SRV 9.5/9.5.1, page 61)
...
The contents of the WEB-INF directory are:

� The /WEB-INF/web.xml deployment descriptor.
� The /WEB-INF/classes/ directory for servlet and
utility classes. The classes
in this directory must be available to the application
class loader.
� The /WEB-INF/lib/*.jar area for Java ARchive files.
These files contain
servlets, beans, and other utility classes useful to
the web application. The web
application class loader must be able to load classes
from any of these archive
files.
The web application classloader must load classes from
the WEB-INF/ classes
directory first, and then from library JARs in the
WEB-INF/lib directory.
...
So the library JARs is the directory /WEB-INF/lib
...
and in SRV 9.5.7, page 63:
...
SRV.9.7.2 Web Application Classloader

The classloader that a container uses to load a
servlet in a WAR must allow the
developer to load any resources contained in library
JARs within the WAR
following normal J2SE semantics using getResource. It
must not allow the WAR to
override J2SE or Java servlet API classes. It is
further recommended that the loader
not allow servlets in the WAR access to the web
container�s implementation classes.
It is recommended also that the application class
loader be implemented so
that classes and resources packaged within the WAR are
loaded in preference to
classes and resources residing in container-wide
library JARs.
...
So according to that, I understand why my .jar file
is loaded.

Thank you!
Wonder Sonic

 --- Alex Loubyansky <[EMAIL PROTECTED]> a �crit�: >
Hello wonder,
> 
> But they get in the classpath. Not sure what the
> spec says about it.
> It may just say nothing, not sure...
> If it's not a bug it could be considered as a
> request feature.
> But, logically, if you put some jar in a web-app
> module, I'd think you
> will use it in your app. So, it could be considered
> as a right
> behaviour too.
> 
> Tuesday, May 28, 2002, 4:55:50 PM, you wrote:
> 
> ws> Hmmm, the interfaces are not in a 'lib'
> directory but
> ws> in a 'data' directory... what should I do? :(
> 
> ws>  --- Alex Loubyansky <[EMAIL PROTECTED]> a
> �crit�: >
> ws> Hello Wim,
> >> 
> >> In JBoss3.x branch you shouldn't have bean's
> >> interfaces in webapp lib
> >> due to change in class loading model.
> >> 
> >> Tuesday, May 28, 2002, 4:46:14 PM, you wrote:
> >> 
> >> WP> Hello both of you,
> >> WP> I was reading this discussion on JBoss-user
> but
> >> I have the idea not every
> >> WP> mail is on it, since there is missing content
> >> after " ws> ...
> >> WP> setSessionContext of my ... " ?
> >> 
> >> WP> What is the new error you get when removing
> the
> >> client interfaces from the
> >> WP> webapp lib dir? And do you or do you _not_
> need
> >> to add those client
> >> WP> interfaces to the webapp? (I thought the
> webapp
> >> needed them always in the
> >> WP> lib but as I can read from this discussion it
> is
> >> not necessary?!)
> >> 
> >> 
> >> >> ws> Well, I'm sorry of this but I have to tell
> >> you that
> >> >> ws> once I removed the myrpg-atlasclient.jar
> file
> >> where
> >> >> ws> stands the UserSession and UserSessionHome
> >> files, an
> >> >> ws> other error occured IN the
> setSessionContext
> >> of my
> >> >> UserSession bean =>> the JNDI lookup worked!
> >> >>
> >> >> ws> Is it a bug or what???
> >> >> ws> I'm using the JBoss 3.0 RC1 + Tomcat 4.0.3
> >> version,
> >> >>
> >> >> What the error is?
> >> >>
> >> >> ws> wondersonic
> >> 
> >> -- 
> >> Best regards,
> >>  Alex Loubyansky
> >> 
> >>  
> 
> ws>
>
___________________________________________________________
> ws> Do You Yahoo!? -- Une adresse @yahoo.fr gratuite
> et en fran�ais !
> ws> Yahoo! Mail : http://fr.mail.yahoo.com
> 
> -- 
> Best regards,
>  Alex Loubyansky
> 
>  

___________________________________________________________
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en fran�ais !
Yahoo! Mail : http://fr.mail.yahoo.com

_______________________________________________________________

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

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

Reply via email to