Impossible JDNI problem with standalone java app and WAS

I'm working with this IBM java application called Extended Search (ES) -. I know that not many people will have used it, but my problem is more to do with JNDI and JREs - becoming desperate now as I have a deadline looming! Hoping someone can help.
Anyway, I have to write a class that is loaded by Extended Search which does a JNDI lookup to an EJB running on a WAS server on the same machine.
ES runs on what looks like a cut-down version of the IBM JRE.
Despite ES itself being an EJB client, my class, within the context of ES, does not have access to naming.jar and all the other libraries I need to set the intial context and make the JNDI call.
If I run my class outside of ES from eclipse, with the required JARs as recommended by other posters to this forum, I can easily make the call. I have done versions that work with either the Sun JRE or the IBM JRE that comes with Eclipse.
In ES, I have attempted to copy in the jars I need as follows:
- ecutils.jar
- ibmorb.jar
- j2ee.jar
- lmproxy.jar
- naming.jar
- namingclient.jar
- ras.jar
- sas.jar
- wsexception.jar
- wssec.jar
I resolved all of the noclassdeffound errors I was getting on trying to make the JNDI lookup, but now it appears to be calling a method from an object in the ES cutdown JRE which does not exist:
An error occurred:
com.ibm.CORBA.iiop.ORB: method createObjectURL(Ljava/lang/String Lcom/ibm/CORBA/iiop/ObjectURL; not found
java.lang.NoSuchMethodError: com.ibm.CORBA.iiop.ORB: method createObjectURL(Ljava/lang/String Lcom/ibm/CORBA/iiop/ObjectURL; not found
at com.ibm.ws.naming.util.WsnInitCtxFactory.parseIiopUrl(WsnInitCtxFactory.java:1731)
at com.ibm.ws.naming.util.WsnInitCtxFactory.parseBootstrapURL(WsnInitCtxFactory.java:1475)
at com.ibm.ws.naming.util.WsnInitCtxFactory.getInitialContextInternal(WsnInitCtxFactory.java:371)
at com.ibm.ws.naming.util.WsnInitCtx.getContext(WsnInitCtx.java:102)
at com.ibm.ws.naming.util.WsnInitCtx.getContextIfNull(WsnInitCtx.java:408)
at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:131)
at javax.naming.InitialContext.lookup(InitialContext.java:360)
at com.ibm.bts.es.srv.links.CHIPESLink.search(CHIPESLink.java:162)
This problem is driving me nuts. I find it hard to believe that its so difficult to make a call from one bloody IBM product to another, just because JNDI seems to require the entire WAS library dir to work and I don't understand why JNDI has to be so properitary to specifc appservers (sorry, just letting my frustration show there ;)
Does anyone have any suggestions of how I can get round this? I have limited control over ES - and it won't even start up if I add the WAS lib dir to its classpath.
Many thanks for any advice
Marc

i couldn't agree more.
well, actually the core was server isn't too bad - but its ludicrous that application clients have to be this complicated. if sun can manage it with only two jars, then why does ibm need 17???
i tried adding the extra ones from the list, but same problem. i can't help thinking i've brought over older versions of the corba classes, but its hard to identify what jar is responsible for what.
i've logged a bug with ibm support now. considering ditching the ejb and placing the jdbc code directly into the extended search classes. but if i do that, i lose my connection pooling etc - performance is going to be rubbish.
i can't believe i've spent days working on one jndi call. :(

Similar Messages

  • Is anyone having problems with the Health App and Withings?

    After upgrading to ios 8.1 I am still having a problem getting my Withings Health Mate data to correctly update my Healt Dashboard. The information that does show up on the different Dashboard widgets is way off. For example, I today walked 2400 steps according to Withings, but the Health Dashboard shows 10,700 steps (720,000 in smaller print on another line). It further shows my daily average at 313,000 steps! Ridiculous.
    Walking/Running distance for the days shows 22.5 miles with a daily average of 108 miles.....I'm not Barry Allen/The Flash.

    My problems with the Healt App are all over the map. The information on Withings Health Mate is totally accurate, and updates immediately.  I have their scale (since 2011) and wireless blood pressure monitor. Also, I find the heart rate senson on the iPhone 6 to work well, every time.
    This issue for me is with Apple's Health app. I get ridiculous readings on the Dashboards. For example, it shows my daily average in steps as 170,688, and miles walked at 80. Hardly! Additionally, the Dashbord widgets will disappear/reappear for no reason. I have tried switching the priority of data sources for the steps dashboard between Withings and my iPhone 6 (because it is indicated that the top source governs the dashboard info), to no avail.
    Lastly, I don't know how to interpret the infomration on the individual dashboards. On the same line as the word "Steps" there is a number, i.e. 14,272 steps, and just under it the word "Today." However, when I switch from "Day," "Week,," "Month," and "Year," those number don't change. Below the word Today is a number (which changes all the time), and at the bottom of the widget, just above the month (October now) is the number 1,149,749. Nice.
    I would like to get the Apple Watch next year, but if the Health App cannot be fixed I may not.

  • Problem with Wifi Traveler app and ipass

    This product is causing lots of problem on my Nokia E72 phone. First it was working okay, asking me to update it, but after I installed the iPass plug in , then it manipulated my phone's internet connection and many of my apps couldn't get connected to my Home's Wifi network and load up and even this app would'nt let my Apps to use the 3G netowrk of my Provider to get connected unless I was out of the range of my Home Wireless Connection. I tried everything to enabling and disabling the Internet connection in the App, changing the Access Point , disabling the IPass , nothing worked .
     I even tried to update the app but it fails. I tried to unintall the apllication and it fails, I removed then Ipass plugin of the app , and it made it much worse...  now vice versa , my apps can never connect to 3G network, and only bring the option to get it connected to WIFi. 
    Tired to install the Ipass Plug in again , but now it doesn't get installed, it asks for Wifi Travelers to be updated first, but that one fails to be updated either. The app cannot be uninstalled too, leaving me in limbo. I tired to reinstall the application, but it fails ... does any one who how to get rid of this app or at least make it to update ? This app is just driving me nuts, Thanks
    Solved!
    Go to Solution.

    This problem with deleting protected iPass WiFi access point is SOLVED.This is the way:
    READ POINT 3c FIRST!!   After that,read from the beggining.
    1.stop any connection/ data or wifi/. -DONT touch iPass wifi app.
    2.go to psiloc world traveller -iPass wifi app - and choose DISABLED.
    3.go to settings-installations-already installed-choose REMOVE psiloc world traveller /both apps from there/..Big one and the small one-about 22kb.
    4.go to settings-connectivity-settings-network destinations-chek is the access point deleted..
    If not,you must go to little bit complicated way..
    1a.establish wifi connection-NOT by iPass Wifi app./ONLY WI FI - NOT DATA / connection.
    2b.go to psiloc world traveller-open it-go to iPass wifi app, go to UPDATE it..Make update of iPass wifi app,after that choose DISABLE.
    3c.It is recommandable -before any work on removing protected access point  - to move temporary all access points to another destination,/protected acces point cant be moved/ in order to make protected access point /iPass wifi/ be alone in the folder/destination/ INTERNET-or the folder where it is ...If it is neccessary open new destination folder...And put all other access points there..I do that before removeing this **bleep**...protected acc.point.
    4d.now,CLOSE ALL CONNECTIONS - IT IS VERY IMPORTANT - go to app manager/ installations/-REMOVE Psiloc world traveller-DONT TOUCH ANY WIFI APPS-Remove both Psiloc traveller apps..Big one and the small one.
    5e.Restart phone.
    6f.Make check,your internet acc.point destination would be empty - without iPass access point **bleep**....If it is all Ok,you must  bring back your old access point order.
    7g.remember,removing of psiloc world traveller you automatically removed protected iPass wifi access point.DONT TRY TO REMOVE iPass WIFi application itself!
    GOOD LUCK!

  • Problems with YouTube - iPad app and Safari on iPad

    Recently, I have started to encounter problems with YouTube on the iPad. The first is the desktop version of YouTube on safari. At first it worked fine, but a few days ago, whenever I try to watch a video, the playing area stays black and a message appears saying 'This video is currently unavailable.' One 'solution' I found online was to switch to the HTML5 video player in 'TestTube.' However, as the videos had been working before I didn't see why it was necessary, and anyway when I tried it only a few videos worked, with the rest showing the same message I described earlier. The mobile version of the YouTube site woks fine.
    The second problem lies with the subscriptions feature of the YouTube app. When I tap the subscriptions button, not all of them show up. I've tried finding a video by the user I want to subscribe to, tapping 'More From', followed by 'Subscribe,' but this brings up the error message 'YouTube not avaliable.' Subscribing to any other channel from the app works fine.
    Thanks - any help with either porblem would be greatly appreciated! I don't really want to go to the Apple store, and my free telephone support that came with the iPad finished some time ago.

    OMG Apple, I'm am fed up with this stupid YouTube problem I paid $500 for my iPad if not more, and I expect better! I cannot view official music videos, episodes and I can't even view 2 out of 10 videos I search for. stop trying to make people buy from your stupid iTunes store and let them be able to view all videos on YouTube. Anyone who asks me if I'd recommend and iPad, you know what I say? Its not worth the money because the reason I got an iPad was being able to have freedom just like a pc and clearly I don't have that. They ask me; can an iPad do everything a pc can do, and I say no it can't, all because I can't view videos properly on YouTube. I'm 15 and saved for an iPad and it took me 2 years, $500 I regret spending!
         Kind regards

  • I'm having problems with all my apps and it's freezing my videos on face book

    this new program by iOS 8 is really messing up all my apps it's also freezing my videos on facebook and on my apps it won't let me close some of them

    simply try doing a back up and restore
    when going thru the activation screen, select SET UP AS NEW and then test your device. if it is not shutting down then it could be 1 or more apps tht have been downloaded wch could be affecting the device
    you will then need to follow the process of eleimnation, meaning add 2 apps and then monitor your phone, if nothing happes then add another couple of them and then check
    good luck !!

  • I am having problems with my java scrip and html, I don't know if it was me or not?

    java scrip was downloaded but I cant open anything with java, also my html is not reading write. I am not sure if I did something with the plug ins or add on. Oh ya I am running on a mac with mountain lion.
    Please Advise,

    To avoid confusion:
    *http://kb.mozillazine.org/JavaScript_is_not_Java
    Make sure that JavaScript is enabled (javascript.enabled should be true) and isn't blocked.
    *http://kb.mozillazine.org/JavaScript
    Can you post a link to a publicly accessible page (i.e. no authentication or signing on required)?

  • Why does my iphone5 have problems with internet based apps and browsing after the 6.1.2 update?

    Hi,
    I am having major issues accessing the internet and loading web apps after the 6.1.2 update on my iphone 5.
    Anyone else having the same...have tried all th usual resets etc.
    So frustrating - why can't Apple test software releases properly!
    Vivek

    hi
    The problem is specifically on Wi-Fi, the apps that are persistently causing issues are:
    Safari
    Email
    Facebook
    Twitter
    You Tube
    The App store
    BBC Iplayer
    I keep restarting the phone which helps temporarily but then the Apps get timed out again. Looks like it cannot retrieve data over Wi-Fi.
    Thanks for your help so far.
    Vivek

  • I tried downloading a free app and it asked for my billing information and when i entered it, it says that there was a billing problem with a previoud purchase and i have to update it. I keep updating it and it wont let me verify it and i cant get apps

    I tried downloading a free app and it asked for my billing information and when I entered it, it said that there was a billing problem with a previous purchase and I have to update it. I keep updating it and it wont let me verify it and I cant get any apps even if they are free, and I just Deleted some apps to make room for my new upate!

    The message says: "The payment method has been denied, try another method"
    I'm living in the same country and city since I was born, so I don't think the location is the problem.
    And yes, I paid with the card a meal in Burguer King today. And nothing more.

  • HT3552 I have been trying to download apps from the app store and every time it tells me there is a problem with my previous billing and direct me to put in new billing information and every time i do that it still will not let me download any apps.

    I have been trying to download apps from the app store and every time it tells me there is a problem with my previous billing and direct me to put in new billing information and every time i do that it still will not let me download any apps.

    Have a look here >  http://support.apple.com/kb/TS1646

  • HT4009 Do you understand me ? I want money back.Because I have problem with LINE In App Purchase.And no one try to resolve this problem.And the answer of NEVER LINE JAPAN they don't have responsibility.I think it will be effect with APPLE image also.I wan

    Do you understand me ? I want money back.Because I have problem with LINE In App Purchase.And no one try to resolve this problem.And the answer of NEVER LINE JAPAN they don't have responsibility.I think it will be effect with APPLE image also.I want you to help me everyways to refound my monet back.Could you?

    Contact iTunes Store Support.

  • Hello Apple? How do i fixed my problem with my ipad apps every time i open that apps it takes 10min. to play the games ant its getting LOST MODE and the ipad system is crashing

    How do i fixed my problem with my ipad apps every time i open that apps it takes 10min. to play the games ant its getting LOST MODE and the ipad system is crashing

    We are fellow users here on these user-to-user forums, you're not talking to iTunes Support nor Apple.
    Have you tried closing all apps via the iPad's multitasking bar and then doing a soft-reset and seeing that helps ? To close all apps :
    iOS 7: double-click the home button to open the taskbar, and then swipe or drag each app's screen from there up and off the top of the screen to close it, and click the home button to close the taskbar.
    iOS 6 and below : from the home screen (i.e. not with any app 'open' on-screen) double-click the home button to bring up the taskbar, then press and hold any of the apps on the taskbar for a couple of seconds or so until they start shaking, then press the '-' in the top left of each app to close it, and touch any part of the screen above the taskbar so as to stop the shaking and close the taskbar.
    Soft-reset : press and hold both the sleep and home buttons for about 10 to 15 seconds (ignore the red slider), after which the Apple logo should appear - you won't lose any content, it's the iPad equivalent of a reboot.

  • ? I have a problem with the cloud app. i have downloaded it several times and have no problem. when it runs it then opens up but stays blank so i cant see my apps or download any HELP

    ? I have a problem with the cloud app. i have downloaded it several times and have no problem. when it runs it then opens up but stays blank so i cant see my apps or download any HELP

    >opens up but stays blank
    BLANK Cloud Screen http://forums.adobe.com/message/5484303 may help
    -and step by step http://forums.adobe.com/thread/1440508?tstart=0
    -and http://helpx.adobe.com/creative-cloud/kb/blank-white-screen-ccp.html

  • I fixed the problem with the whole 'waiting' and not loading but now some of my apps won't open, what can I do?

    I fixed the problem with the whole 'waiting' and not loading but now some of my apps won't open, what can I do?

    - Try a reset. Nothing is lost
    Reset iPod touch: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Purchase/install any new app
    - Try the remaining items of:
    iOS: Troubleshooting applications purchased from the App Store

  • HT201487 i have a problem with xcode programming app when i lunch to it it asking me to enter my password and when i enter it the program show that it is wrong but am 100% sure it's wright so please help me with this issue thanks

    i have a problem with xcode programming app when i lunch to it it asking me to enter my password and when i enter it the program show that it is wrong but am 100% sure it's wright so please help me with this issue thanks

    That's not very intuitive
    Check your mail server setup (mail>preferences>accounts>) choose your MobileMe account and select Outgoing Mail Server (SMTP) dropdown box, select Edit SMTP server list, verify that each instance of the me server has a password, if there are more than one and you only have one account then delete the one without a password.

  • HT204053 Why does it say that there was a problem with a previous purchase and not let me download apps?

    Everytime I try to download a new app it says that there was a problem with a previous purchase and then it said that my card was declined

    These are user-to-user forums, nobody on here will know what the problem with the previous purchase might be.
    Does the name and address on your credit card match exactly the name and address on your iTunes account, and have you checked with your card issuer to see if they are ones who are declining it ?  You can contact iTunes support via this page : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption

Maybe you are looking for