Rmi and classloader: some server instances can not find the class on server

Hi:
I want to migrate my rmi applications from JDK 1.1 to JDK1.2.2. It exists in the following environments:
- there is one authentication server and many application servers, all have binded in the main method
- dynamic loading of the server stubs and interfaces is not used; they are local on the client.
- security manager is enabled only on the server site and the policy file is created.
- all server classes, stubs and interfaces are in the same directory on server site
- the registry and the server are started as follows:
unsetenv CLASSPATH
rmiregistry 1103 &
setenv CLASSPATH ~usr/serverDir:~oracle/jdbc/lib/classes12.zip
java -Djava.rmi.server.codebase=file://~usr/serverDir/
-Djava.rmi.server.hostname=myHost -Djava.security.manager myServer
After starting the client, the rmi client connects to the server and the authentication request comes back with a list of applications.
When the user chooses one of them, the rmi sends the request to thatapplication (e.g., OMSRmiServer_Stub). The application could not find the other class on the sever directory: (the authenication server can find the same class)
java.lang.NoClassDefFoundError: JOMPrepStatement
at java.lang.Class.getFields0(Native Method)
at java.lang.Class.getFields0(Compiled Code)
at java.lang.Class.getDeclaredFields(Compiled Code)
at java.io.ObjectStreamClass$1.run(Compiled Code)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessController.doPrivileged(Compiled Code)
at java.io.ObjectStreamClass.<init>(Compiled Code)
at java.io.ObjectStreamClass.lookupInternal(Compiled Code)
at java.io.ObjectStreamClass.lookup(Compiled Code)
at java.io.ObjectStreamClass.lookupInternal(Compiled Code)
at java.io.ObjectStreamClass.lookup(Compiled Code)
at java.io.ObjectStreamClass.lookupInternal(Compiled Code)
at java.io.ObjectStreamClass.lookup(Compiled Code)
at java.io.ObjectStreamClass.lookupInternal(Compiled Code)
at java.io.ObjectOutputStream.writeObject(Compiled Code)
at sun.rmi.server.UnicastRef.marshalValue(UnicastRef.java:256)
at sun.rmi.server.UnicastRef.invoke(Compiled Code)
at OMSRmiServer_Stub.executeStringSetSelect(Unknown Source)
at OMSDeviceRmiClient.getStatusLOV(OMSDeviceRmiClient.java:196)
at OMSRmiClient.getStatusLOV(OMSRmiClient.java:76)
at OMSDevicePane.listenToTree(Compiled Code)
     at OMSDeviceContextPane.initComponents(OMSDeviceContextPane.java:107)
at OMSFrame.jomInit(Compiled Code)
at JOMCountFrame.init(JOMCountFrame.java:190)
at JOMCountFrame.run(JOMCountFrame.java:253)
at java.lang.Thread.run(Thread.java:485)
Any help is appreciated.
- Mahan.

in jdk1.2.2 no need classes12.zip in class path.
just set CLASSPATH=.;
that is enough for solving ur problem
bye
raghu

Similar Messages

  • HT2712 Network ip address keeps changing and for some reason I can't find the right settings. The diagnostics says to check with my network  administrator,  but idk whom that is being at a motel and all. I have made. New locations, & changed the ipv4 addr

    Network ip address keeps changing and for some reason I can't find the right settings. The diagnostics says to check with my network  administrator,  but idk whom that is being at a motel and all. I have made. New locations, &amp; changed the ipv4 address. Help plz

    Hmmm, is Network set to using DHCP?
    Go to System Preferences
    Click Network
    Highlight AirPort and click Configure...
    Choose “By default, join: Preferred networks”
    Select your access point and Remove your access point with the minus button.
    Launch your keychain access in Utilities and delete your access point keychain entry.
    Reboot
    Go back to the “By default, join:” page and click the plus this time to add your access point. Enter the correct password, save, reboot.
    Instead of joining your network from the list, click the WiFi icon at the top, and click join other network. Fill in everything as needed

  • Please,please help, this drives me crazy,can not find the class but...

    The story is:
    I have alot java class files under directory: c:\myproj\com\pin\sa
    in each of the file, the package signature is: package com.pin.sa
    Then I set the JavaVMInitArgs fVM_args; by setting the classpath to:c:\myproj
    then I use: cls = (*fEnv).FindClass("com/pin/sa/frameWork") to find a class file called frameWork, but failed.
    then i build a test file called test.class (it is just a simple file pls see below for the code)and put package com.pin.sa in it and put it in directory : c:\myproj\com\pin\sa, this means the test.class is under the same directory as the frameWork.class,
    then I use cls = (*fEnv).FindClass("com/pin/sa/test"), and it SUCCEEDED!!!
    I really don't understand why like this, they have same package signature and under same directory why different results.
    In frameWork file, there are some imported packages, does this matter? And there is a static main() in it.
    if you can give an example of how to set the classpath in JavaVMInitArgs fVM_args, and how to deal with the package signature, I will appreciate it very much
    ==test.java==
    package com.pin.sa;
    public class test
    public void printHello()
    System.out.println("Hello World from Java!");
    cls = (*fEnv).FindClass("com/pin/sa/test");
    cls = (*fEnv).FindClass("com/pin/sa/test");
    C:\\myProj\\resiprocate\\myAnalysis\\sipphone\\sipXphone\\main\\softphone\\lib");

    Hi Hufuman,
    What are the packages that you are using in frameWork Class. Add the class path to those classes also. Also check the name of the .class file is exactly the same as frameWork and not FrameWork or framework etc.
    Check whether you have correctly given the package declaration in the frameWork class.
    If you dont have any problem, post the frameWork class definition also here or atleast the packages imported and the classpath set for those referred packages.
    Dhamo.

  • In new iPad 4g, when sim card is not inserted, I can not find the enable 4g tap in the setting-cellular data tap, can some one please tell me if this is normal and if so, then when it appears, thanks

    In new iPad 4g, when sim card is not inserted, I can not find the enable 4g tap in the setting-cellular data tap, can some one please tell me if this is normal and if so, then when it appears, thanks

    If the SIM is out of your phone, find my phone needs a data connection, so could use wifi - IF in range of a wifi and one that it can join (ie. a known network or one that is wholly open so no login required).  Your phone could also simple be turned off, so not findable, or it may have been restored (plugged into iTunes and restored as new) again, making it permanently unfindable.  Honestly, for someone stealing an iPhone, this is likely the first thing they do - restore as new and it is theirs forever.
    Find my iPhone is tied to the users iCloud account - the find function is part of the iCloud account's services and it communicates with the iCloud servers over a data connection - either wifi or 3G.
    Have you set up your iCloud account on your replacement phone, and is it working properly on that phone?

  • Slow-Start Up and "can not find the server" dialog box

    hi there -
    2 year old Ibook G4. When I try to open either Safari or Netscape the "can not find the server" box pops up.. I have a solid connection wi-fi for the wireless signal is on full strength. I have cleared my cache. Also I am experiencing start-ups that are taking 2-3 minutes. The color wheel just keeps spinning.Also, I have done repair and I renewed the DHCD. Not sure what else to do?

    as a guess, spinning wheel could be caused by failing hard drive.
    often failing hard drives will pass all tests by the utilities.
    you may want to back up any important files just in case.
    if the iBook boots up from the OS install CD/DVD with no problems, issues could be caused by the corrupted files on the hard drive or failing drive.

  • I have a new iphone 5. After update and download some programs I can not just turn it on and shown in the LCD "iTunes" with a picture of a USB cable. - Alguine can help solve the problem. thanks

    I have a new iphone 5. After update and download some programs I can not just turn it on and shown in the LCD "iTunes" with a picture of a USB cable. - Can anyone help me solve the problem. thanks

    Its trying to tell you to connect it by usb to a computer to reflash a failed firmware flash
    You should comply

  • Safari is not able to open this page because it can not find the server.

    I too need help with this problem with my Ipod touch. Currently, I am in the Ukraine, go to a wifi cafe, access the wifi and get a clear powerful signal. Then I try to load the Google page, any page from my bookmark or write the web address in and I receive the same message; "Safari can not open this page because it can not find the server." Something is wrong with my settings and I tried to reset the options but it does not work. Can anyone help me with this problem? Thanks!!

    Hello and Welcome to Apple Discussions. 
    The 169.254.xxx.xxx address indicates that there is a problem with DHCP server in your BT Digital Hub (Home hub?) because the iPod is taking a default IP rather than been given a suitable one. At the moment the iPod is not even in the same subnet as the router so it's no wonder that Safari can't find the Internet.
    Ensure that the DHCP server is on and that you have an IP-address pool sufficiently large to serve all the devices you have. I'd expect it to be 192.168.1.1 to 192.168.1.253. If you have FON enabled you certainly need that wider range as other people may be using your router too.
    mrtotes

  • Why does it say itunes can not contact the ipod update server because you are not connected to the internet when i am connected to the internet?

    why does it say itunes can not contact the ipod update server because you are not connected to the internet when i am connected to the internet? i need to update my ipod i even changed the LAN settings and it stilll doesnt work

    Have you seen this article?
    iTunes for Windows: iTunes cannot contact the iPhone, iPad, or iPod software update server
    B-rock

  • I recently started using mail and I am always getting "can't find the server or server is busy.  I have AOL what should I do.

    I recently started using mail and I am always getting "can't find the server or server is busy.  I have AOL what should I do?

    Movies are not stored in your iCloud account unless you add them in the theater feature of iMovie version 10.

  • Hello buy a movie on apple tv, and now can not find the device tells me I should go to settings / downloads / check downloads, but that does not exist in the menu of the apple tv, please help

    Hello buy a movie on apple tv, and now can not find the device tells me I should go to settings / downloads / check downloads, but that does not exist in the menu of the apple tv, please help

    Welcome to the Apple community.
    A number of people have reported similar issues recently, many appear to have found a discrepancy of some kind in their account settings and making changes to these settings or simply resetting them has resolved the matter.
    Check your account details are correct, check that you are using the correct details for Location, Region and Time Zone. You may want to change these settings and then change them back to see if that helps.
    You might also try logging out of and then back into your iTunes account (Settings > iTunes Store > Apple ID’s > Sign Out) and restarting your router. (Some have reported that after doing this, they need to check for rentals even though it may report that there aren’t any, after which rentals once again appear in the ‘movies’ feature)
    Rentals should appear under their own heading in the ‘Movies’ feature, you might also check at Settings > iTunes Store > Check For Rentals.

  • I replaced my hard drive and lost iPhoto. Is there a way to retrieve?  I can not find the starter discs that came with my Macbook Pro.

    I replaced my hard drive and lost iPhoto. Is there a way to retrieve?  I can not find the starter discs that came with my Macbook Pro.

    Customer Service: Contacting Apple for support and service - this includes international calling numbers. You can purchase replacement discs from Apple.
    Or, you can upgrade to Lion or Mountain Lion:
    Upgrading from Snow Leopard to Lion or Mountain Lion
    You can upgrade to Mountain Lion from Lion or directly from Snow Leopard. Mountain Lion can be downloaded from the Mac App Store for $19.99.
    If you sign into the App Store and try to purchase Mountain Lion but the App Store says your computer is not compatible then you may still be able to upgrade to Lion per the following information.
    A. Upgrading to Mountain Lion
    To upgrade to Mountain Lion you must have Snow Leopard 10.6.8 or Lion installed. Purchase and download Mountain Lion from the App Store. Sign in using your Apple ID. Mountain Lion is $19.99 plus tax. The file is quite large, over 4 GBs, so allow some time to download. It would be preferable to use Ethernet because it is nearly four times faster than wireless.
         OS X Mountain Lion - System Requirements
           Macs that can be upgraded to OS X Mountain Lion
             1. iMac (Mid 2007 or newer) - Model Identifier 7,1 or later
             2. MacBook (Late 2008 Aluminum, or Early 2009 or newer) - Model Identifier 5,1 or later
             3. MacBook Pro (Mid/Late 2007 or newer) - Model Identifier 3,1 or later
             4. MacBook Air (Late 2008 or newer) - Model Identifier 2,1 or later
             5. Mac mini (Early 2009 or newer) - Model Identifier 3,1 or later
             6. Mac Pro (Early 2008 or newer) - Model Identifier 3,1 or later
             7. Xserve (Early 2009) - Model Identifier 3,1 or later
    To find the model identifier open System Profiler in the Utilities folder. It's displayed in the panel on the right.
         Are my applications compatible?
             See App Compatibility Table - RoaringApps.
         For a complete How-To introduction from Apple see Upgrade to OS X Mountain Lion.
    B. Upgrading to Lion
    If your computer does not meet the requirements to install Mountain Lion, it may still meet the requirements to install Lion.
    You can purchase Lion by contacting Customer Service: Contacting Apple for support and service - this includes international calling numbers. The cost is $19.99 (as it was before) plus tax.  It's a download. You will get an email containing a redemption code that you then use at the Mac App Store to download Lion. Save a copy of that installer to your Downloads folder because the installer deletes itself at the end of the installation.
         Lion System Requirements
           1. Mac computer with an Intel Core 2 Duo, Core i3, Core i5, Core i7,
               or Xeon processor
           2. 2GB of memory
           3. OS X v10.6.6 or later (v10.6.8 recommended)
           4. 7GB of available space
           5. Some features require an Apple ID; terms apply.

  • HT4414 I accidentally deleted garageband and I can not find the disks how to recover it?

    I accidentally deleted garageband and I can not find the disks how to recover it?

    Replacement System Discs can be obtained from Apple's Customer Support - US (800) 767-2775 for a nominal fee. You'll need to have the model and serial number of your Mac available. 
    If you're not in the US, you may need to go through the regional Apple Store that serves your location to find the contact number - http://store.apple.com/Catalog/US/Images/intlstoreroutingpage.html

  • After rescue and recovery, I can not find the documents

    After rescue and recovery, I can not find the documents created after the restore point date.
    Moderator note: subject line adjusted for clarity.

    Hi,
    not sure, what exactly the description should tell me, but I guess, that your scenario is like this:
    - you captured some RnR backup
    - made some changes to the system
    - restored the backup
    and now the changes, that you have mde afte the backup was captured are gone.
    If this is your case, then this is a correct situation.
    The backup will restore the whole system back to the stage, as you selected, while it will remove/modify the packages, that have been changed/created  after the time, when the backup was captured.
    In the stage, where you have restored the system, you had the chance to save some files, but as it looks, this did not happened.
    Please correct me if I understod it wrongly.
    Cheers

  • TS3988 My icloud account is not verifying it says check my mail witch I have done and I get a message say your iPhone for has been used to set up and Icloud account but still can not use the icloud can anybody help me.

    My icloud account is not verifying it says check my mail witch I have done and I get a message say your iPhone for has been used to set up and Icloud account but still can not use the icloud can anybody help me.

    Be sure you are checking the email account that you used to set up the Apple ID you used to create the iCloud account.  Also, be sure to check your spam/junk folder as well as your inbox.  The email you should receive looks like the image below.  When you get it, click the Verify Now link.
    If it still isn't there, try going to https://appleid.apple.com, click Manage your Apple ID, sign in, click on Name, ID and Email addresses on the left, then to the right look for a link to resend the verification email.

  • I have 10.6.8 and have installed two new printers HP 8610 and an Epson 7880 and can not find the Page Set-up menu anywhere in the applications I a trying to print from. There are no page sizes, paper types, appearsto be locked on a 13x19 size but It.

    Hi to the Mac Folks,
    I have 10.6.8 and have installed two new printers HP 8610 and an Epson 7880 and can not find the Page Set-up menu anywhere in the applications I a trying to print from. This is regardless of either printer selected.
    I primarily print photos from Photoshop CS5.  The term Page Set-up has gone missing in the file pull down menu. Can't make any choices  There are no page sizes, paper types, appearsto be locked on a 13x19 size paper format. Either being too large or too small.
    Saw a 2008 locked issue about this however none of the help fit my situation, options discussed are not available to me.
    Preview has no "Page Setup" - or does it?
    Does the constant struggle with computer compatability weirdness issues ever end or is it a enslavement scheme?
    Woody

    Hey,
    if you know the name(s) of the root folder(s) you want to access (eg. by making a note on the Windows side) then you can make them appear by just doing Shift-Command-G in Finder ("Go to Folder…"), and entering the full path to the required folders.  You can then navigate all the contents as normal.
    HTH,
    S.

Maybe you are looking for