× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



The WAS 2.0.2 classloader strategy is not well documented anywhere that
I could find.  If possible, I would open a question with SupportLine and
ask them which classloaders are involved in WAS and how do each of the
classloaders locate classes.

Are you getting a ClassNotFoundException when trying to reference things
from your java program?  If so, send along a complete stack trace and
this will have clues as to what classloaders are involved.

Also, you might want to include a

  System.err.println(getClass().getClassLoader());

statement in your java program.  This would show what class loader is
loading your java class.  From there, you might get some additional
clues.

For each classloader, you need to know:
(1) When is this classloader used to load classes?
(2) Does it attempt to delegate the classloading chores to a parent
classloader?  If so, when?  At the beginning or the end of its search?
(3) What strategy and/or environment variables or settings does this
classloader use to locate classes.

HTH,
Gary

> -----Original Message-----
> From: java400-l-admin@midrange.com
> [mailto:java400-l-admin@midrange.com] On Behalf Of Marc_Nothum@ept.lu
> Sent: Friday, February 01, 2002 2:29 AM
> To: java400-l@midrange.com
> Subject: Websphere - classpath
>
>
>
>
>
> Hi all,
>
>
> I already submitted this question some days ago, but I didn't
> get any reaction; perhaps, it was not posted correctly, or is
> it out of scope, or ?
>
> I have some questions about the classpath settings when using
> websphere.
>
> In fact, we are running jsp-pages, calling java-classes on
> Ibm-HTTP-server/Websphere-Application-server (V2.02), all on
> the local AS400. Where is the definition, setting of the
> classpath, that is used by the java-classes? When displaying
> the classpath with <System.getProperty("java.class.path")> in
> the java-program, I get a classpath, which is different than
> the Application server classpath and the reloadable servlet
> classpath, I set in Websphere/java-engine.
>
> The java-class is started in a new thread (by the jsp), but I
> think, this should not make any change on the classpath.
>
> Any help would be appreciated,
>
>
> Marc N.
>
>
> _______________________________________________
> This is the Java Programming on and around the iSeries /
> AS400 (JAVA400-L) mailing list To post a message email:
> JAVA400-L@midrange.com To subscribe, unsubscribe, or change
> list options,
> visit: http://lists.midrange.com/cgi-bin/listinfo/java400-l
> or email: JAVA400-L-request@midrange.com
> Before posting, please take a moment to review the archives
> at http://archive.midrange.com/java400-l.
>



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.