Jndi Provider Url not working

Hi,
I got the following exception message when i run the given JNDI example on Sun Java Application Server8.1.
Please help me in resolving this issue;
Exception:
javax.naming.CommunicationException: localhost:389 [Root exception is java.net.ConnectException: Connection refused: connect]
import javax.naming.*;
import java.util.*;
public class JndiExample {
public static void main(String[] args) {           
try{
Properties props = new Properties();
props.put(Context.INITIAL_CONTEXT_FACTORY,"com.sun.jndi.ldap.LdapCtxFactory");
props.put(Context.PROVIDER_URL,"ldap://localhost:389");
Context ctx = new InitialContext(props);
}catch(Exception ex) { ex.printStackTrace();}
}

Hi Ludovic,
I dont have ldap server running on my system. I thought sun application server may include ldap server (like weblogic includes t3 ) that starts as soon as app server starts
How do i know that ldap server running on 389 port. is there any way to find. i typed ldap://localhost:389 on ie browser. it did not work out.
Please reply me .
Thanks.

Similar Messages

  • WSRP Provider reg not working with https url

    Our portal is configured with https, listening to a virtual host (https://portalpilot:4443)
    In order to consume WSRP / JSR168 java portlets we
    - created a new OC4J container (wsrp_dev)
    - installed the portlet-container ( $MIDTIERHOME/j2ee/wsrp_dev/ java -jar wsrp-install.jar)
    - started the container & deployed the samples
    all OK
    but when trying to register the (tested & OK ) url https://portalpilot:4443/portalapp?WSDL
    in the Provider Registration we got an error (error in provider url)
    changing the url to the non-ssl host (http://gogol:7777) was the (pseudo) solution.
    is this behavior by design? we would like to use SSL throughout

    OOS,
    Did the info in the release notes solve your problem?
    It seems to me that the release notes address a similar but different issue. You want to run under https. The release notes are instructing you to change all references to https to http in the WSDL file. I don't see how this would fix the problem of trying to register a WSRP provider with a WSDL URL that uses https.
    The reason I ask is because I am encountering the same problem.
    Thanks.
    Message was edited by:
    user571987

  • Application URL not working properly

    We have a custom application hosted on weblogic8.1 cluster. And this is in production environment.
    What we observed was, I am using FireFox browser and works fine for me. And I noticed it did not work a few days ago only once. However, most of the other users use IE6.0 and seems not able to access this URL. So some tried using IE 7.0 and worked fine for some time. But, the problem persisted very often as few can and others cannot.
    Can anybody tell me what could be the problem or should I be modifying any files in weblogic server.
    This is working pretty fine in testing environement.

    Thank you very much for the hint, though I have not tried your suggestion. I tried a little more and found the following way might be simpler - using "java.url.*" and "java.io.*". Just a simple test:
    ============================
    URL url=new URL("ftp://usrname:password@hostname/localDirectory/filename.txt");
    InputStream is=url.openStream();
    BufferedReader in=new BufferedReader(new InputStreamReader(is));
    String line;
    while((line=in.readLine()) !=null) { System.out.println(line);
    ==========================================
    Of course, other data format would work in a similar way.
    Cheers,
    ljiang001

  • Web Cache 'Ping URL' not working.

    Hi,
    I have recently installed a Webcache clustered pair which sit in front of OHS which reverse proxys back to OUCM/Web Logic, my OWC version is 11.1.1.2 and am looking for some clarification of how the Ping URL actually works in Web Cache.
    When OHS is shutdown, Webcache detects the service is down and prevents it from servicing requests, however it will not mark the service as down when I intentionally set ping URL to a page that does not exist generating a 404, will Ping URL polling only mark a server as being down if a 500 error is generated?
    Something else I would like clarification of is 'Ping Interval', I have set this to be aggressive at '1' however I do not see any polling traffic or see any hits in OHS log that indicate polling of the Ping URL is taking place.
    Thanks in advance,
    Mark.

    Not sure I need any update to this now, I've just read through the help section 'help/edit_add_appserver.htm' and can see that a 404 is not considered a failure and also that the server only starts to poll when the failover threshold has been reached.
    This would explain why the server was not being marked as down, although I'm still not sure why I do not see the polling traffic in Apache logs but I can live with that :)
    Cheers,
    Mark.

  • Some URL not working in XI 3.1

    Hi,
    URL below which is working in XI R2
    http://serverName/businessobjects/enterprise115/desktoplaunch/opendoc/documentXML.jsp?cmdP1=reportname01wid*&token=servername%40715252JKRqBkrcZktGziHM715251JzcHaz61ShIdevCP&cmd=askPromptView&cmdBlock=all&cmdP2=lsSP22%3D1%26lsSP21%3D1%26lsSP20%3D1%26lsSP9%3D0%26lsSP8%3D1%26lsSP7%3D1%26lsSP6%3D1%26lsSP5%3D1%26lsSP4%3D1%26lsSP3%3D1%26lsSP2%3D1%26lsMRMDB%3D582%26lsSP1%3D1%26lsSP19%3D1%26lsSP18%3D1%26lsSP17%3D1%26lsSP16%3D0%26lsSP15%3D0%26lsSP14%3D0%26lsSP13%3D1%26lsSP12%3D1%26lsSP11%3D0%26lsSP10%3D1%26lsMCustomer%3D18946%26sWindow%3DNew%26sOutputFormat%3DPDF
    We recently migrated to BOXI 3.1 but the New URL i have created for XI 3.1 which is not working and show blank page and display NULL on the page..
    http://servername/PerformanceManagement/scripts/documentXML.jsp?cmdP1=reportname01wid*&token=servername%40715252JKRqBkrcZktGziHM715251JzcHaz61ShIdevCP&cmd=askPromptView&cmdBlock=all&cmdP2=lsSP22%3D1%26lsSP21%3D1%26lsSP20%3D1%26lsSP9%3D0%26lsSP8%3D1%26lsSP7%3D1%26lsSP6%3D1%26lsSP5%3D1%26lsSP4%3D1%26lsSP3%3D1%26lsSP2%3D1%26lsMRMDB%3D582%26lsSP1%3D1%26lsSP19%3D1%26lsSP18%3D1%26lsSP17%3D1%26lsSP16%3D0%26lsSP15%3D0%26lsSP14%3D0%26lsSP13%3D1%26lsSP12%3D1%26lsSP11%3D0%26lsSP10%3D1%26lsMCustomer%3D18946%26sWindow%3DNew%26sOutputFormat%3DPDF
    Can anyone please help and give me some idea ?
    Thanks in advance.

    Hi RMTuck,
    I'm sorry to hear you are having these issues with your iPad after a recent update. If you continue to have issues sending or receiving iMessages, you may find the troubleshooting steps outlined in the following article helpful:
    If you can't send or receive messages on your iPhone, iPad, or iPod touch - Apple Support
    Regards,
    - Brenden

  • MobileMe Gallery URL Not working

    All of my MobileMe Gallery URL's in iPhoto do not work and contain '(null)' as in:
    http://gallery.me.com(null)/username/100016
    If I remove '(null)' it works fine. Anyone else have this problem?
    Thanks!

    First delete the iPhoto preference file, com.apple.iPhoto.plist, that resides in your User/Library/Preferences folder, republish the galleries and see if the URL gets changed.
    If not create a new gallery with the same photos from one of the existing galleries, name it the same as the old one, delete the existing gallery and publish the new one. See if that will generate correct URLs. The URL may change so you may have to re-announce it to your friends.
    OT

  • JNDI LookUp does not work in WSAD5.0

    Hi,
    I have an independent java class which creates Data Source in WASD 5.0, and this works fine to get data source when the server is 4.0, but does not work for server 5.0, here is the code:
    public static void main(String[] args) throws NamingException {
         javax.naming.InitialContext initialContext = null;
         java.util.Hashtable htContextEnvironment = new java.util.Hashtable();
            htContextEnvironment.put(javax.naming.Context.INITIAL_CONTEXT_FACTORY, "com.ibm.websphere.naming.WsnInitialContextFactory");
            htContextEnvironment.put(javax.naming.Context.DNS_URL,"dns://127.0.0.1");
         htContextEnvironment.put(javax.naming.Context.PROVIDER_URL,"iiop://127.0.0.1:2809/");
            initialContext = new javax.naming.InitialContext(htContextEnvironment);
            System.out.println("Initial Context = " + initialContext.getNameInNamespace());
            Hashtable ht = initialContext.getEnvironment();
            DataSource ds = (DataSource) initialContext.lookup("jndi/abcd");
            System.out.println("Data Source = \n" + ds);
    }The only change which I need to make is change the port name from 2809 [5.0] to 900[4.0], the jndi name in both server is defined as "jndi/abcd"
    I always get the initial context in both cases, but can not get data source. For 5.0, I get the following exception:
    javax.naming.NameNotFoundException: jndi/abcd
         at com.ibm.ejs.ns.jndi.CNContextImpl.doLookup(CNContextImpl.java:1445)
         at com.ibm.ejs.ns.jndi.CNContextImpl.lookup(CNContextImpl.java:1129)
         at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:128)
         at javax.naming.InitialContext.lookup(InitialContext.java:359)Is there any difference in creating inital context and data source between 4.0 and 5.0 servers.
    Any help on this please.
    Thanks
    Rajender

    This did not work dear. I assume when you say [Add ur datasource], you mean the name of the datasource, and I did as you told. I was wondering though that I have an independent java class which try to get data source from WSAD server, then how does web.xml help, may be I am not understanding the connection here.
    Just to let you know, that same java class gets the datasource from 4.0 test server. I am running both servers now i.e. 4.0 test and 5.0 test server on different ports, and only data source from 4.0 workd good. Do you have any other solution, which I can try.
    Is there any difference the way data source is accessed between 4.0 and 5.0 versions.
    Thanks in advance.
    Open web.xml, There will reference tab,, then take
    Resource, Add ur datasourse on where the Cursor points
    and then JNDI Name.
    U need to restart ..

  • Link to URL not working in RH X5

    Good morning,
    A client asked me to include a hyperlink to an internal site of theirs.  After I gave them the WebHelp, they said the link doesn't work (I can't test it here as I work offsite without access to their intranet).  They said there is a space missing which would account for it not working.  The problem is I copied and pasted the URL into the project from the client's email.  Here is the URL copied from the client's email to me - you can see the 2 spaces between ACH and Forms.  :
    http://sharepoint.myfirstnet.com/TreasuryManagement/ACH%20%20Forms/Product%20Information/T raining/ACH_SEC%20Explained.doc
    When I right-click on the link in my topic and check the link properties and when I look at the code on the True Code tab, I can see the 2 spaces (not the code for the spaces, of course, but you can tell there is an extra space) so assumed all was well. Yet on the client's end there is only a single space.  And if I copy the link from the True Code tab in RH and past it here, for example, or into an email, it comes out like this:
    http://sharepoint.myfirstnet.com/TreasuryManagement/ACH Forms/Product Information/Training/ACH_SEC Explained.doc 
    The double space has been replaced with a single space.  I can't explain how or why that would be changed after I put in the hyperlink.  Is there something about HTML or RH in particular that doesn't allow double spaces so removes one?
    Thanks for any help.
    Diane

    Have you tried %20%20 in the code rather than spaces?
    Just a guess.
    See if that works in RoboHelp's viewer.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • User Login - go to previous URL not working

    Hi
    I have a user login set up using the DW server behaviour.
    The problem I have is that the redirect to the previous url doesnt work and always directs a successful login to the default successful login page.
    The problem seems to revolve around this part of the code:
                    if (isset($_SESSION['PrevUrl']) && FALSE) {
                        $MM_redirectLoginSuccess = $_SESSION['PrevUrl'];
                    header("Location: " . $MM_redirectLoginSuccess);
    and in particular the use of the && FALSE check.  I can see from my debugger that the value of $_SESSION['PrevUrl'] is properly set to the previous url.  If I remove the && FALSE check the login works as I would expect and redirects to the previous URL.  However, as this is 'out of the box' DW code I am concerned in case removing the && FALSE check may be doing some harm.  I have to admit I dont understand the logic of what the && FALSE part of the IF statement is actually checking for.
    Any advice and/or reassurance that by removing the && FALSE is not doing any harm or exposing me to any risks would be appreciated.
    Thanks

    session_start() is set
    As I step through the code and watch the variables I can see that the value of $_SESSION['PrevUrl'] is equal to the previous url but $MM_redirectLoginSuccess remains as the default success page.
    If I remove the && FALSE element from the IF statement, the value of MM_redirectLoginSuccess is changed to the the value of $_SESSION['PrevUrl'], which is what I want.
    So my question is, what is the && FALSE bit doing and why is it there and do I need it?

  • Web Viewer embedded (custom domain) and button url not work!!! (Urgent!!!)

    Many sorry for this question - we have a Web Viewer embedded (custom domain) that have all url (button with open in browser) that not work!
    On tablet (Apple + Android) the button work great but on web viewer they do not work!
    Any ideas to solve?
    I see it: Where to place add externalLinksOpen : 'window' to FrameService?
    web viewer URL links

    Any ideas to solve?

  • Hyperlinks (to URL) not working in MOS

    Hi, I have a multistate objets in which I have an image as an hyperlink to an URL in each state but they are not working. Could someone tell me what i'm doing wrong? Thank you

    I'm not sure how some of the links in one of my notes were created. 
    My thinkng is that there are many applications that can make the determination that something that starts with http:// or https:// can be made to behave as a hyperlink
    I do know that I did not purposely create a hyperlink and then paste it into my note.
    Also, the only time that I receive the Open URL option in the services is when I select text.  E.G  if i have text in my Note like  jguitar.com  and I select the text and then choose Notes > Services, the Open URL option appears and the link will open.  If I select the word jguitar all by itself/alone, the option doesn't appear, so the application can tell if it is a possible choice for opening a URL.
    Something isn't quite adding up......

  • Hyperlinks to external URL not working

    Hi folks.  I exported a CS4 indb to epub, opened it with Digital Editions, and clicked on a hyperlink.  The link activates my browser, but does not go to the actual page.   It just brings my browser to the front and displays whatever page was previously there.  It is not opening in a new tab  or in another window that is in the background.  So, as a test, I exported one of the book's indd files to pdf and clicked on the hyperlink.  This worked fine, it activated my browser AND displayed the correct page.  Any thoughts how to get Digital Editions to go directly to the URL, not just merely switch to the browser which shows whatever page was last opened?  Thanks!

    Also, just tested it in Calibre, and it worked.  Looks like a Digital Editions issue.

  • SAP BeX WAD URL not working on Black Berry Emulator

    Hi All,
    I web report which is running successfully on Windows XP browsers. But when I am going to use same url for Black Berry emulator its not working for that. Can Some one please Help me on this?
    I tried same url on Windows CE emulator also but was getting same error.
    Regards,
    Abhishek Jain

    The error that I was getting for above is "Something Didn't work quite right and we are unable to show the page you requested right now. Rest assured, Google Engineers are already springing into action to solve the problem."
    Edited by: Abhi4SAP on Jan 12, 2010 8:06 AM

  • Dynamic URL not working in email

    I have a question on dynamic URL. In my report I have a help image which has hyperlink (when you click on the image which will take you to a help PDF file on the SharePoint) . This hyperlink is working fine in the browser but when I email the report 
    my Hyperlink is not working as there will be no server name to dynamically pick up in the email. I am using Java Script can any one tell me how can I make my dynamic hyperlink work in the email without hardcoding the URL.
    My current URL:
    =”javascript:void(window.open(‘http://’+window.location.hostname+%20′/Library/Reports/Report%20Test.pdf’,'popup’,'target=_blank,resizable=1,toolbar=0,menubar=0,location=0′))”
    Thanks in advance.

    Hi Ranjith,
    Based on my test, javascript URL cannot work when we email report use MHTML format. However, it is fine when we view the email in a web browser. If we are use original URL, it is work fine no matter which format we are use. Please try to use original URL
    in the report to check if the issue is persist.
    If the issue is persist, please clarify the render format of the subscription. It is benefit for us to do further analysis.
    Regards,
    Alisa Tang
    Alisa Tang
    TechNet Community Support

  • OBIEE 11g URL not working

    hi every one,
    I got a problem regarding my presentation services
    they are upend running and all the opmnctl files are all alive but my url is not working
    http://VAMSHI-PC:7001/analytics or any other em , console etc
    i waiting like 15min and tried the url dint work
    i tried by updating the GUID in NQSconfig and Instances but dint work...
    can anyone help me out with his..
    thanks everyone

    that means the services are not running. yes that can cause this issue. make sure you enter the right credentials and check everything is up and running fine. i think your weblogic is not running(managed server,admin server) once they are up and running then you can access weblogic console and em and from em you can start the BI services.
    hope it helps.
    Thanks,
    RM

Maybe you are looking for