The weblogic.jar has the javax.management.*, it is conflict with rt.jar's

Hello guys:
I want to use JMX 1.0 to communicate with weblogic 8.1. The client should be run in the Java 1.5
It throw
java.io.InvalidClassException: javax.management.ObjectName; local class incompatible:
stream classdesc serialVersionUID = -5467795090068647408, local class serialVersionUID = 1081892073854801359
java.io.InvalidClassException: javax.management.ObjectName; local class incompatible:
stream classdesc serialVersionUID = -5467795090068647408, local class serialVersionUID = 1081892073854801359I know the reason is java 1.5 has JMX 1.2 in it.
So how can I program a class loader to load the weblogic.jar classes in? I have tried a lot of code, but failed.
Is there any sample here?
I want to use the JMX 1.0 in weblogic.jar at jdk1.5 run time
Thanks a lot,
Qiang

Thanks for your reply,
But I have tried your sugestions.
I use
Thread.currentThread().setContextClassLoader(cl);I am not sure whether it is correct.
import java.io.IOException;
import java.net.URL;
import java.net.URLClassLoader;
import java.security.AllPermission;
import java.security.CodeSource;
import java.security.PermissionCollection;
import java.security.Permissions;
import com.sun.org.apache.bcel.internal.util.ClassPath;
public class NonDelegatingClassLoader extends URLClassLoader {
     private final PermissionCollection permissions = new Permissions();
          permissions.add(new AllPermission());
     public NonDelegatingClassLoader(URL[] urls) {
          super(urls);
     @Override
     protected synchronized Class<?> loadClass(String name, boolean resolve)
               throws ClassNotFoundException {
          // Bootstrap classes must be loaded by the bootstrap ClassLoader
          if (name.startsWith("javax.management")
                    || name.startsWith("com.sun.jmx")
                    || name.startsWith("com.sun.management")
                                                                || name.startsWith("weblogic.")
               Class c = findLoadedClass(name);
               if (c == null) {
                    try {
                         c = findClass(name);
                    } catch (ClassNotFoundException e) {
                         byte[] classBytes;
                         try {
                              ClassPath cp = new ClassPath();
                              classBytes = cp.getBytes(name);
                         } catch (IOException e1) {
                              throw new ClassNotFoundException(name);
                         c = defineClass(name, classBytes, 0, classBytes.length);
               if (resolve) {
                    resolveClass(c);
               return c;
          } else {
               return getClass().getClassLoader().loadClass(name);
     protected PermissionCollection getPermissions(CodeSource codesource) {
          return permissions;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.Iterator;
import java.util.Set;
import javax.naming.Context;
import org.omg.CORBA.TIMEOUT;
import weblogic.jndi.Environment;
import weblogic.management.MBeanHome;
import weblogic.management.runtime.JVMRuntimeMBean;
public class QueryWLSThread extends Thread {
     private String m_url = "";
     private String m_username = "weblogic";
     private String m_password = "weblogic";
     private int m_heapUT = -1;
     private Timer m_timer = null;
     public QueryWLSThread(String url, String username, String password,
               int timeOut) {
          //System.setProperty("jmx.serial.form", "1.0");
          m_url = url;
          m_username = username;
          m_password = password;
          m_timer = new Timer(timeOut, this);
          try {
               URL[] urls = { new URL("file:/f:/Downloads/weblogic.jar") };
               ClassLoader cl = new NonDelegatingClassLoader(urls);
               Thread.currentThread().setContextClassLoader(cl);
          } catch (MalformedURLException e) {
               // TODO // block
               e.printStackTrace();
     }It throw out
java.lang.NoSuchMethodException: weblogic.jndi.internal.ServerNamingNode_811_WLStub.<init>(weblogic.rmi.internal.StubInfo)
     at java.lang.Class.getConstructor0(Unknown Source)
     at java.lang.Class.getConstructor(Unknown Source)
     at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:804)
     at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:790)
     at weblogic.rmi.extensions.StubFactory.getStub(StubFactory.java:79)If I do not check the name with "weblogic."
it will throw out method not found.
If I do not set the system env, it is the same I still use the jdk 1.5 classes.
I am not sure how to load my class without loading the jdk1.5's
I also use the java -xbootpath/a:
Cannot fix this currently.

Similar Messages

  • Does the "The Project Owner has the same RBS value as the User" dynamic category rule include Status Managers?

    I tested the following scenario in Project Server 2010 and 2013:
    Assume you have three users: User1, User2, and User3.
    User1 has RBS value Org.UnitA
    User2 and User3 both have RBS value Org.UnitB
    User3 belongs to a group that gets permissions to view projects from a category with "The Project Owner has the same RBS value as the User" setting enabled.
    User2 creates ProjectABC and by default becomes the project Owner. User2 creates a task in the project, and by default becomes the Status Manager of the task.
    User2 then changes the project owner to User1 and republishes the project. User2 remains the Status Manager in the project task.
    User3 can still see ProjectABC. Apparently this is because User2, who has the same RBS value as User3, is still a Status Manager of project tasks.
    If I change User2 RBS value to Org.UnitA, then User3 can no longer see ProjectABC. Note that User2 is not the project Owner at this stage, but the change in User2's RBS still affects the visibility of the project.
    It seems to me that in "The Project Owner has the same RBS value as the User" dynamic category rule, the "Owner" should be "Owner or Status Manager".
    Is this a bug or by design?

    Hi Barbara,
    Thanks for going through the trouble of reproducing the behaviour. It's interesting to know that Effective Rights in Project Online displays different results.
    The system in which I tested this scenario is updated with the December CU, so I'm guessing you'll still get the same result after updating your environment.
    In my usage scenario, a user needs to create projects on behalf of other users, and then change the Owner. Unfortunately this doesn't change the Status Manager of tasks, and consequently the visibility of the project is not what was expected.
    The user who creates the project can change the Owner, but can't change the Status Manager. The new owner would have to open the project for editing in Project Pro, change the Status Manager value of every task, and republish. Precisely the sort of extra
    work that the users want to avoid.
    Using delegation might be a workaround, but opens up a whole new can of worms in terms of information security. It's unfortunate that the "The Project Owner has the same RBS value as the User" setting doesn't do what it says, but potentially
    opens up visibility of projects to a wider audience than intended.

  • I need to get photos off a water damaged iPhone 3GS. Can I take out the component that has the photos (is this the main board?) and put it into another of the same phone to retrieve the photos? Please help

    I need to get photos off a water damaged iPhone 3GS. It spent time underwater, saltwater. I let it dry for a week, turned it on, the apple symbol came on, then it died. I need to retrieve my photos off it. Can I take out the component that has the photos (is this the main board?) and put it into another of the same phone to retrieve the photos? Please help

    You're talking about the logic board. The two most likely things to get toasted, with water damage, are the battery(it shorts out), & the logic board. The worst water damage would be salt water. I'm afraid your logic board is toast.

  • My iPhone 5 has a grey-ish blue splodge on the screen. What is it and how can I get rid of it? The place that has the spot is about the size is about 2cm,it still works where the spot is. I haven't sat on my phone or hit it to hard, not that I remember.

    The place that has the spot is about the size is about 2cm,it still works where the spot is. I haven't sat on my phone or hit it too hard, not that I remember.  I  noticed a while ago. Will it disappear? I can see the things that should be where the spot is eg it's on the keyboard and I can see the keys. Will this spread to the whole screen? How can u get rid of this?

    If you own an iPhone that is ineligible for warranty service but is eligible for Out-of-Warranty (OOW) Service, Apple will service your iPhone for the Out-of-Warranty Service fee listed below.
    iPhone model
    Out-of-Warranty Service
    iPhone 5s, iPhone 5c,
    iPhone 5
    $269
    iPhone 4s
    $199
    iPhone 4, iPhone 3GS,
    iPhone 3G, Original iPhone
    $149
    A $6.95 shipping fee will be added if service is arranged through Apple and requires shipping. All fees are in U.S. dollars and are subject to local tax.

  • When I take my phone off charge in the morning I get an info box on the front which has the sound trumpet icon with a line through it and the word Mute.  The only way to get rid of it is to reboot the phone any ideas as to how I can stop this happening?

    When I take my phone off charge in the morning I get an info box on the front which has the sound trumpet icon with a line through it and the word Mute.  The only way to get rid of it is to reboot the phone any ideas as to how I can stop this happening?

    Hello cor-el, thanks for your reply. I changed my settings for downloads to desktop and it has appeared on there. When I double click I am asked which program I want to open file. I click firefox and another box "opening install" says I have chosen to open the file which is an application and do I want to save it. This is the only real option so I press save file. I get a box saying this is an executable file which may contain viruses - do you want to run. I press ok and the final box showing C drive file name and desktop appears stating application not found.
    This happens the same whenever I try to install.
    To my untrained eye the application is not being recognised as an application and I cannot work out how to get it to do that.
    My plugin is still showing as out of date.
    Is there anything you could suggest. Thanks for your time.

  • I was wondering why the iPhone 5 has the option for a battery percentage and the iPod touch 5g doesn't? I mean... they are almost both the same thing... just the iPod does not have the phone.

    I was wondering why the iPhone 5 has the option for a battery percentage and the iPod touch 5g doesn't? I mean... they are almost both the same thing... just the iPod does not have the phone.

    One likely reason is the % battery is not that accurate because of the smaller battery capacity in the iPod compared to iPhone and iPad. Users why use a % battery app post that the % reading changes a lot.

  • I hit update on my ipod touch to the ios 6. It uploaded it then has the picture to attch to itunes. I had to download the newest version of itunes to my computer. Now the ipod still has the "connect to itunes" It says I need to restore

    When I connect to itunes. It does not recognize my ipod and said I need to restore. I have tried to restore which says will take 4 hours but it never completes. The ipod still has the picture of "connect to itunes" Please help. I have tried to figure this out for days.

    You might tell us many more things so we don't have to guess and might be able to help.
    What computer do you have?
    What iTunes are you running now?
    What OS X system are you running are your computer now? Or is this a Windows machine?
    Let us know a little more info.

  • The validity interval has the initial value as lower limit

    Hi Friends,
    When i was executing a query on Multiprovider,
    got an error like
    "The validity interval has the initial value as lower limit"
                 Actually The multiprovder has been built on two infocubes 0CFM_C10 & 0CFM_C11, in those 0CFM_C10 contains the non-cumulative values.
                Even i've checked the query also in query designere it is saying like the query is correct, in that query we are using Key Date...
    please help me onthis, awaiting for your answers
    thanks in advance

    Hi you can try using inial at the update rules

  • The toolbar which has the go back button, refresh button, etc. is gone. How do I get it back?

    The tool bar which has the url of the page I am on, go back button, refresh button, etc. is gone. How do I get it back?
    == This happened ==
    Just once or twice
    == a couple weeks ago.

    The toolbar which has the view button is also missing.

  • I'm trying to find instructions on replacing the memory module in an older MacBook (1,1). This is the model that has the battery on the back. Anybody know where I can get this info? (It's not listed in the Apple Support info)

    I'm trying to find instructions on replacing the memory module in an older MacBook (1,1). This is the model that has the removeable battery on the back. Anybody know where I can get this info? (It's not listed in the Apple Support info)

    Video of the installation here:
    http://eshop.macsales.com/installvideos/macbook_13_mem_hd/
    MtD

  • How can I log into my new (used) Ipad if the previous owner has the only log in information?  I purchased it through Glyde and have no information on the seller.

    How can I activate my new (used) Ipad if the previous owner has the only log in information?  I purchased it through Glyde and have no information on the seller.

    What you've run into is the activation lock. Previous owners are supposed to wipe their devices, and to do that they have to enter their apple ID's. If yours wasn't wiped then it was a careless owner, or the dark side is that whomever sold it, it wasn't theirs to sell.
    Regardless, what Deggie says is your only recourse. Get your money back or own an unusable brick.

  • Where does FireFox get the default value of a preference from. What is the format of the file that has the default value?

    Where does FireFox get the default value of a preference from. What is the format of the file that has the default value?. I need the actual default value for a particualr preference.
    About:config does show some default values but I need the source from which about:config picks up the default value.
    Any help in this direction is greatly appreciated.
    == User Agent ==
    Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Win64; x64; Trident/4.0; .NET CLR 2.0.50727; SLCC2; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0)

    The prefs that aren't hidden if they are the default are stored in two JavaScript text files in the Firefox program folder
    You can open them via these links in a Firefox tab:
    <code>resource:///defaults/pref/firefox.js
    resource:///greprefs/all.js
    </code>
    ([/forum/1/702598])

  • How do shutdown the weblogic server from the command line prompt using web logic 8.1

    I%u2019m currently using weblogic 6.1, but I will upgrade to weblogic 8.1. In weblogic 6.1, the following statements will shutdown the weblogic instance from the command line:
    java weblogic.Admin -url t3://hostname:port -username system -password abc SHUTDOWN
    How do I shutdown the weblogic server from the command line prompt using web logic 8.1.
    Any help will be greatly appreciated.
    Maria

    Maria <[email protected]> wrote:
    How do I shutdown the weblogic server from the
    command line prompt using weblogic 8.1?Greetings Maria! Use this document, located here:
    http://edocs.bea.com/wls/docs81/admin_ref/cli.html#1131733
    Hope this helps...
    Brian J. Mitchell
    Systems Administrator, TRX
    email: [email protected]
    office: +1 404 327 7238
    mobile: +1 678 283 6530

  • I created a photo album on my iPhone 4s - edited photos etc. but I cannot figure out how to transfer it to my pc (using Windows 8).  The only folder in the iphone drive is the one which has the Camera roll photos :( Help please - I really need the photos!

    I created a photo album on my iPhone 4s - edited photos etc. but I cannot figure out how to transfer it to my pc (using Windows 8).  The only folder in the iphone drive is the one which has the Camera roll photos Help please - I really need the photos!

    The camera roll is not part of the sync process at all.
    You should be importing these photos to your computer regularly as you would with any digital camera.  Youc an organize them on your computer and sync the to the iphone if you wish.
    The photos sync from the computer to the iphone is one way.
    The iphone mirrors the selected content of the computer to which it is synced.

  • Does the Transaction FERD has the capability to access  archived data?

    Hi All,
    Does the Transaction FERD has the capability to access  archived data?
    Regards
    Prathima

    You need to set up a Personal Hotspot account with your cell carrier for your iPhone. Once it is activated you can turn it on in Settings on your iPhone then connect your iPad either via Bluetooth or WiFi. I would recommend WiFi. The BT on the iPad can be used for tethering.

  • I had a friend replace the battery in my iphone4 and now the itunes store does not recognize it. I could put it in restore mode and then I would loose all my data. the phone just has the apple on the scree right now. any suggestions

    I had a friend replace the battery in my iphone 4 and now itunes does not recognize it. The phone just has the apple coming on and off on the scree.
    I put it into restore mode last night but did not apply it because I would lose all of my data.Any suggestions on what I can do.
    Thanks
    ted

    Make an appointment at the genius bar. Take your credit card. An out of warranty replacement is $229. It's cooked.

Maybe you are looking for

  • Can you verify I correctly went through the normalization process?

    Hi, I am creating a table, and I wanted to go through normalization to get the best design.  I followed the outline here: Normalization - Oracle FAQ Basically it is a table that will hold attributes that are based on a combination of catentry + count

  • System service not activate in managed system

    Hello, I am implementing SAP Solution Manager Diagnostics. 1. I am working in Phase 3 - Managed System Configuration 2. Connect Managed system. When I start this step, I get this error : Please import the actual support package for SAP_BASIS or activ

  • Adding a hyperlink to the email notification for leave approval

    Hi All, Is it be possible to have a hyperlink in the email notification that goes to the approver ( for a leave ) so that the approver can click on the link and be taken straight to the ESS/ MSS portal to approve/reject the leave request? Regards AK

  • How to make clip "skip" frames?

    I have a clip I would like to move jerkily, in other words, repeat a given frame 3 times, then skip the next two frames and repeat the third frame three times, etc., etc. What's the best way to accomplish this (without doing freeze frames manually)?

  • Weblogic 9.2 portal + JSF tag

    Is there a list of known issues with JSF tags when running on portal? We are facing problems with the <h:selectOneListBox> tag. When running the portal, the select box does not render correctly. Any help would be appreciated.