Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
J2EE app client class loading?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
DEBEDb  
View profile  
 More options Jun 7 2006, 12:26 pm
Newsgroups: ibm.software.websphere.application-server
Followup-To: ibm.software.websphere.application-server
From: "DEBEDb" <deb...@gmail.com>
Date: 7 Jun 2006 09:26:54 -0700
Local: Wed, Jun 7 2006 12:26 pm
Subject: J2EE app client class loading?
Hi all,

It looks like the class loading is not working for me as described at
http://publib.boulder.ibm.com/infocenter/wasinfo/v6r0/index.jsp?topic....

Here is what is happening:

I have an EAR, in which a client jar (clientlauncher.jar) resides. The
Class-Path in its Manifest.mf is as follows:

     Class-Path: plugins/framework plugins/checkservices
     plugins/transferservices plugins/alerts plugins/pr
     plugins/pr/achapps plugins/pr/wireapps
     pr-hotfix.jar pr.jar

The main class of the clientlauncher.jar, Launcher, should load
another class. But it looks like it always does that from pr.jar,
even when I put a modified version of the second class
under, say, EAR_ROOT/plugins/pr (which is first on the classpath).

Here's an experiment. I created the Launcher class as follows:

    public static void main(String[]argv) {
        String mainClass = argv[0];
        ClassLoader loader = Launcher.class.getClassLoader();
        String resource = mainClass.replaceAll("\\.", "/") + ".class";
        System.out.println(mainClass +
                                    ": " +
                                   loader.getResource(resource));
        URL url = null;
        int i = 1;
        for (Enumeration en = loader.getResources(resource);
                    en.hasMoreElements();) {
            url = (URL) en.nextElement();
            System.out.println(i + ". " + mainClass + ": " + url);
            i++;
        }

And here is what I get, when com.ph.pr.common.install.Noop class is
both in pr.jar and in plugins/pr, under the EAR:

        com.ph.pr.common.install.Noop:
jar:file:/D:/apps/wcmsuite73/installedApps/WCM73_PaymentsAndReporting.ear/p r.jar!/com/ph/pr/common/install/Noop.class

       1. com.ph.pr.common.install.Noop:
jar:file:/D:/apps/wcmsuite73/installedApps/WCM73_PaymentsAndReporting.ear/p r.jar!/com/ph/pr/common/install/Noop.class

       2. com.ph.pr.common.install.Noop:
file:/D:/apps/wcmsuite73/installedApps/WCM73_PaymentsAndReporting.ear/plugi ns/pr/com/ph/pr/common/install/Noop.class

In other words, as you can see, the JAR one gets loaded first!
(But it certainly does find the one under plugins/pr if I do
getResources()).

That is to say, it seems that the order of Class-Path: entries
in Manifest.mf is not honored...

Thanks.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Charly Oz  
View profile  
 More options Jun 8 2006, 9:22 am
Newsgroups: ibm.software.websphere.application-server
From: "Charly Oz" <charl...@hotmail.com>
Date: Thu, 8 Jun 2006 23:22:17 +1000
Local: Thurs, Jun 8 2006 9:22 am
Subject: Re: J2EE app client class loading?
If you are using WASv6, have a look in the Admin Console under
Troubleshooting. There is a class loader tool that shows what is loaded, etc
and may be of some use to you with this.

"DEBEDb" <deb...@gmail.com> wrote in message

news:1149697614.540769.181530@j55g2000cwa.googlegroups.com...


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
DEBEDb  
View profile  
 More options Jun 8 2006, 9:48 am
Newsgroups: ibm.software.websphere.application-server
From: "DEBEDb" <deb...@gmail.com>
Date: 8 Jun 2006 06:48:39 -0700
Local: Thurs, Jun 8 2006 9:48 am
Subject: Re: J2EE app client class loading?
But this is a client, where would I find it in the Admin Console? It's
running in a separate JVM, how would the AdminConsole
find that?

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
DEBEDb  
View profile  
 More options Jun 8 2006, 3:12 pm
Newsgroups: ibm.software.websphere.application-server
From: "DEBEDb" <deb...@gmail.com>
Date: 8 Jun 2006 12:12:31 -0700
Local: Thurs, Jun 8 2006 3:12 pm
Subject: Re: J2EE app client class loading?
Update: Putting a modified file inside pr-hotfix.jar works
as expected. So it's only directories in the manifest
classpath that are a problem, the JAR order works as
specified.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »