HTTPS problem

Friends,
I am using the JSSE 1.0.2 implementation for sending a HTTPS request. I have installed it as an extension properly.(on Java2, JDK 1.2.2)
I am getting the following exception when trying to do a url.openConnection().
Exception in thread "main" java.net.SocketException: SSL implementation not avai
lable
at javax.net.ssl.DefaultSSLSocketFactory.createSocket([DashoPro-V1.2-120
198])
at com.sun.net.ssl.internal.www.protocol.https.HttpsClient.doConnect([Da
shoPro-V1.2-120198])
at com.sun.net.ssl.internal.www.protocol.https.NetworkClient.openServer(
[DashoPro-V1.2-120198])
at com.sun.net.ssl.internal.www.protocol.https.HttpClient.l([DashoPro-V1
.2-120198])
at com.sun.net.ssl.internal.www.protocol.https.HttpClient.<init>([DashoP
ro-V1.2-120198])
at com.sun.net.ssl.internal.www.protocol.https.HttpsClient.<init>([Dasho
Pro-V1.2-120198])
at com.sun.net.ssl.internal.www.protocol.https.HttpsClient.a([DashoPro-V
1.2-120198])
at com.sun.net.ssl.internal.www.protocol.https.HttpsClient.a([DashoPro-V
1.2-120198])
at com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnection.connec
t([DashoPro-V1.2-120198])
at com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnection.getOut
putStream([DashoPro-V1.2-120198])
at com.sabre.tw.shared.TWClient.postTWRequest(TWClient.java, Compiled Co
de)
at com.sabre.tw.shared.TWClient.main(TWClient.java, Compiled Code)
Can anyone tell me what could be wrong? The J2SE manual gives me the following documentation which is not too clear to me.
Cause : There was a problem with SSLContext initialization, for example due to a
corrupted keystore. (Note: One vendor has shipped a keystore in an unknown format,
and that may cause this type of error.)
Solution : Check initialization parameters. Ensure any keystores specified are valid
(e.g., by trying to use the keytool to examine them).
Thanks for your help.
Ram

I have the provider listed on my java.security file already. I also tried the addProvider but I am getting back the same problem? Any ideas?
Thanks,
Ram

Similar Messages

  • Https problems in IE, Chrome, Skype, but not Firefox

    I have a user whose account on a win2003 domain was deleted by accident (I have no idea how). I recreated the account and recovered the user profile from a local machine. The local machines all run Win7.
    Everything seems to work fine again now except that https calls through Internet Explorer and Chrome fail with error messages that seem to indicate the site is simply not available rather than a certificate error or the like. Firefox works fine to access
    the same sites. I believe Firefox only works because it doesn`t use the built in security.
    Other accounts on the same machine can make https calls without trouble. My assumption is that there is an issue in the user's profile, but moving the Chrome and IE directories from the AppData directory in the user's profile accomplished no change in behaviour.
    I found KB 813444 and attempted to follow the instructions there to some extent (they seem aimed at XP and Vista), but couldn't re-register the dlls. None of the other changes made any difference. Likely not the problem anyway as the problem does not occur
    for any other account that logs into the machine.
    There really seems to be something wrong in the user profile. Permissions too loose on a directory somewhere? But where?
    The system is a brand new HP tower with Windows 7 on it. Fresh install about a month ago and kept up to date. All other profiles on the machine work fine. Using the same profile on another machine has the same problem of being unable to connect to https
    sites. The error received is not a certificate error, but indicates that the site can't be found, which suggests to me some fundamental failure in the security setup of the user profile. However, I've been unable to find where that information might be stored.
    Clearing the SSL state from within Internet options has had no effect on this issue, nor has compatibility mode or any of the things that are possible on Windows 7 from kb813444.
    Any thoughts?
    Keith

    Hello Keith,
    If my understanding is right, you only have one account have this https problem.
    Will this issue occurs when you create an login as a new account?
    If this issue only occur in the single account, we could refer to the following article to fix the profile.
    Fix a corrupted user profile
    http://windows.microsoft.com/en-us/windows/fix-corrupted-user-profile#1TC=windows-7
    Best regards,
    Fangzhou CHEN
    Fangzhou CHEN
    TechNet Community Support

  • HTTP Problem

    hi all
    i m having 9i application server 9.0.2.0.1
    as per oracle documentation there is a problem with this version in http service
    once the service starts,it remains in the memory untill we manually kill it
    even though it becomes idle for a long time or even application closed.......
    is there any solution for that?
    can any one having the idea wht to do in this situation?
    thanx
    Viral

    Hi,
    do you have a bug number so I can look up if there is a fix?
    Frank

  • AP Telnet & http problem

    i have cisco AP 1131AG-E-K9. i am getting a problem in it, that i cant telnet the device from my pc and when i try to open in http its also not responding.
    axcept that i can update the ios of device and can give the ip to interfaces and also configured the telnet but still there is no telnet and http working.
    this erroe comes when i telnet the device.
    could not open connection to the host, on port 23: connection failed.

    i have the console connection with AP and this is the show run and show version of the AP.
    ap#show run
    Building configuration...
    Current configuration : 1414 bytes
    version 12.3
    no service pad
    service timestamps debug datetime msec
    service timestamps log datetime msec
    service password-encryption
    hostname ap
    enable secret xxx
    ip subnet-zero
    no aaa new-model
    power inline negotiation prestandard source
    username Cisco password xxx
    bridge irb
    interface Dot11Radio0
    no ip address
    no ip route-cache
    shutdown
    speed
    station-role root
    bridge-group 1
    bridge-group 1 subscriber-loop-control
    bridge-group 1 block-unknown-source
    no bridge-group 1 source-learning
    no bridge-group 1 unicast-flooding
    bridge-group 1 spanning-disabled
    interface Dot11Radio1
    no ip address
    no ip route-cache
    shutdown
    speed
    station-role root
    bridge-group 1
    bridge-group 1 subscriber-loop-control
    bridge-group 1 block-unknown-source
    no bridge-group 1 source-learning
    no bridge-group 1 unicast-flooding
    bridge-group 1 spanning-disabled
    interface FastEthernet0
    no ip address
    no ip route-cache
    duplex auto
    speed auto
    bridge-group 1
    no bridge-group 1 source-learning
    bridge-group 1 spanning-disabled
    hold-queue 160 in
    interface BVI1
    ip address 192.168.1.1 255.255.255.0
    no ip route-cache
    ip http server
    no ip http secure-server
    ip http help-path http://www.cisco.com/warp/public/779/smbiz/prodconfig/help/eag
    control-plane
    bridge 1 route ip
    line con 0
    line vty 0 4
    password xxx
    login
    end
    ap#show sh tac ecq
    ap#sh tech-support
    ------------------ show version ------------------
    Cisco IOS Software, C1130 Software (C1130-K9W7-M), Version 12.3(8)JA2, RELEASE SOFTWARE (fc1)
    Technical Support: http://www.cisco.com/techsupport
    Copyright (c) 1986-2006 by Cisco Systems, Inc.
    Compiled Tue 30-May-06 18:05 by pwade
    ROM: Bootstrap program is C1130 boot loader
    BOOTLDR: C1130 Boot Loader (C1130-BOOT-M) Version 12.3(7)JA1, RELEASE SOFTWARE (fc1)
    ap uptime is 2 minutes
    System returned to ROM by power-on
    System image file is "flash:/c1130-k9w7-mx.123-8.JA2"
    This product contains cryptographic features and is subject to United
    States and local country laws governing import, export, transfer and
    use. Delivery of Cisco cryptographic products does not imply
    third-party authority to import, export, distribute or use encryption.
    Importers, exporters, distributors and users are responsible for
    compliance with U.S. and local country laws. By using this product you
    agree to comply with applicable laws and regulations. If you are unable
    to comply with U.S. and local laws, return this product immediately.
    A summary of U.S. laws governing Cisco cryptographic products may be found at:
    http://www.cisco.com/wwl/export/crypto/tool/stqrg.html
    If you require further assistance please contact us by sending email to
    [email protected].
    cisco AIR-AP1131AG-A-K9 (PowerPCElvis) processor (revision A0) with 24566K/8192K bytes of memory.
    Processor board ID FOC09501JTE
    PowerPCElvis CPU at 262Mhz, revision number 0x0950
    Last reset from power-on
    1 FastEthernet interface
    2 802.11 Radio(s)
    32K bytes of flash-simulated non-volatile configuration memory.
    Base ethernet MAC Address: 00:16:46:F2:B3:A4
    Part Number : 73-8962-09
    PCA Assembly Number : 800-24818-08
    PCA Revision Number : A0
    PCB Serial Number : FOC09501JTE
    Top Assembly Part Number : 800-25544-06
    Top Assembly Serial Number : FHK1001C02E
    Top Revision Number : A0
    Product/Model Number : AIR-AP1131AG-A-K9
    Configuration register is 0xF

  • Mangled file downloads over http problem in 10g

    I have a web app running in an OC4J stand alone 10.1.3.3 and am having a problem with downloading files over http. Its a struts2 app whose file downloading impl is easy to use and standard code for writing to an http servlet response output stream.
    Using the firefox plugin for Live Headers I can see that the headers are correctly added to the servlet response and I do get the file I want. However the file has been mangled with binary output around the text. This is the case for txt, word, or any other file.
    This problem does not occur in Jetty or Tomcat. I've also ruled out file corruption while going in/out of the database since I can upload a file when running oc4j, turn off oc4j, start up my app in Jetty and retrieve the same file just fine.
    The mime types are all accounted for and the problem exists regardless if I use a specific content type or just application/download. My browsers (firefox and ie) also recognize all files from the content disposition value "attachment; filename=myfilename.ext". Its just the file content that some how has been wrecked on the way out of the container.
    Has anyone experienced this? I only found one or two unanswered posts elsewhere.
    How can this be mitigated?
    Thanks in advance.
    Andrew

    Figured it out when I realized it was in fact the data coming from the database that was corrupt. There were some older posts on the hibernate website that pointed to a single property that needs to go in the hibernate.properties file: hibernate.jdbc.use_streams_for_binary=true. Without it, Oracle returns the Blob locator consistently 86 bytes in length and therefore bad binary.

  • Safari https problem

    Please help! Safari will not load certain https sites. it just stopped working about a week ago, these sites have never been an issue in the past (work email and bank account). the computer is connected via ethernet cable to cable modem. If I use a wireless network at the neighbors house the sites load fine. If I use the neighbors ethernet the sites load fine. However, when we hook my wifes PC to the same ethernet cable at home (the one that doesn't work for the desired sites on the mac) the load fine. Technicians from the cable company ensure that the modem etc is fine. I even re-installed OS X 10.6.6. Why won't these sites work at home when they work in other locations, and why do they work for my wife's computer? Very frustrating, seems to be a communication problem with the modem?

    Hello Y:
    After rereading your post, it looks like a networking problem (although why your wife's system works and yours does not on the same network is a puzzle). Is her OS X configuration the same as yours?
    You might try posting in the networking forum to see if someone there can see something:
    http://discussions.apple.com/forum.jspa?forumID=1343
    I never say never, but changing Safari to open in the 32 bit mode would not seem address your issue (I access many secure sites and do not have that configuration).
    Barry

  • IDOC - HTTP Problem

    Hi All
    I have senario  IDOC - HTTP  the flow will be like this
    IDOC - HTTP - HTTPRESPONSE - IDOC AUDIT
    I  have planned to use BPM but the problem is when Creating Message interface i cannot make 
    idoc as sych so please tell me how may MI and IM will come
    Jayaraman

    Hi Prateek
    Thanks for the reply but the problem is
    1) Receiver( IDOC ) - xyz idoc -ok
    2) Tranform(idoc to http) - ok
    3) Send Sync
    The problem is here  i need to create a Syn MI that is
    IDOC - HTTP
    HTTP- AUDIT
    how to create MI and when you creat interface mapping also the problem will arise
    and when configuring Interface determination it will ask for SYNC inbound how to over come this problem
    Jayaraman

  • HTTPS problem in Header Portlet

    I have a header portlet that includes a graphic for our company logo. For some reason this particular image URL is not being transformed by the portal to use HTTPS on the login screen. All other images are being transformed, but not the one in the header portlet. I don't want to hard code it to use https all the time because that will cause me problems once my users are logged in. Anyone know how to fix this?
    Dana

    HI all,
    delete HEADER where MATERAL = ITEM-MATERIAL and
                                     Opening_balance eq 0.
    IN THIS LOGIC BOTH MATERIALS IS COMMING.
    Remaining all logic both were deleted.
    like this
    loop at ITEM where MENGE_CL = 0 AND MENGE_ADD = 0 AND
    MENGE_S = 0 AND MENGE_TO = 0 AND
    MENGE_CR = 0 AND MENGE_R = 0 AND
    MENGE_AD = 0 AND MENGE_BAL = 0 AND MENGE_O = 0.
    <b>READ TABLE HEADER WITH KEY MATERAL = ITEM-MATERIAL.
    Delete only if open balance is zero
    IF HEADER-<OPEN_BALANCE> EQ 0.
    delete HEADER where MATERAL = ITEM-MATERIAL.
    ENDIF></b>
    thanks,
    Sreedhar

  • WLC upgrade up from 5.1.151 https problem

    Hi,
    I  'm trying to upgrade WLC 4402 up from 5.1.151. After upgrade to 5.2 or higher https  interface is inaccessible. If I use any other previous version, all is  OK. Somewhere I found  recomendation to open http before upgrade and use it at first. It  works, but what to do next? To stay on http only?
    UgisD.

    Ive upgarded more than my share of WLCs and I cant say I ever had this problem. Is http/https enabled and did you save the config ?

  • Https Problem - ClosedChannelException

    Hello,
    I have a webservice that I deployed into the standalone OC4J. I then enabled https according to the instructions given in http://download.oracle.com/docs/cd/B25221_04/web.1013/b14429/configssl.htm !
    When I'm calling the webservice via Firefox or Opera everything works well.
    But when I'm using Internet Explorer, I get this Exception:
    "Exception in NIOServerSocketDriver:selectForRead" (java.nio.channels.ClosedChannelException)
    at java.nio.channels.spi.AbstractSelectableChannel.configureBlocking(AbstractSelectableChannel.java:252)
    and shortly after it the following:
    "Exception in SelectionKey cancel"
    (java.lang.NullPointerException)
    at oracle.oc4j.network.ServerSocketAcceptHandler$IdleHandlers.closeIdleHandler(ServerSocketAcceptHandler.java:583)
    Both Exceptions come randomly and every trial on different program- and timesteps, so there's no real locating of the error possible!
    Can anyone please help me to understand what happens there and how to solve this problem.
    Thank you very much!
    Sebastian

    >
    But when I'm using Internet Explorer, I get this
    Exception:
    "Exception in NIOServerSocketDriver:selectForRead"
    (java.nio.channels.ClosedChannelException)
    at
    java.nio.channels.spi.AbstractSelectableChannel.config
    ureBlocking(AbstractSelectableChannel.java:252)
    [...]- never tried Opera or Firefox, but with IE I have the same problem (ADF Faces 11 app. on OC4J 11 + Acegi security framework)
    did you ever solve this problem, and if so - how ?
    The only way I can see - is to avoid
            <dispatcher>FORWARD</dispatcher>
            <dispatcher>REQUEST</dispatcher>and use JSF <redirect/> for every possible protected URL
    So, can someone explain why this error happens, and how to avoid this in one more elegant way ?

  • Plugin and https - problems

    Hy,
    i tried to load an applet via https from server.
    without https applet starts working correctly.
    with https following printout in plugin 1.4.1 - console is done and I
    dont know were to search the problem for.
    it seems not to be my code - because there is no package of my used
    packages written out.
    I hope that anyone can help me. problem is not iexplorer-specific
    netscape is same behaviour.
    Java(TM) Plug-in: Version 1.4.0_01
    Verwendung der JRE-Version 1.4.0_01 Java HotSpot(TM) Client VM
    java.lang.ExceptionInInitializerError
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Unknown Source)
    at java.net.URL.getURLStreamHandler(Unknown Source)
    at java.net.URL.<init>(Unknown Source)
    at java.net.URL.<init>(Unknown Source)
    at java.net.URL.<init>(Unknown Source)
    at sun.plugin.AppletViewer.getDocumentBase(Unknown Source)
    at sun.plugin.AppletViewer.getCodeBase(Unknown Source)
    at sun.plugin.AppletViewer.appletInit(Unknown Source)
    at sun.plugin.viewer.LifeCycleManager.initAppletPanel(Unknown Source)
    at sun.plugin.viewer.IExplorerPluginObject$Initer.run(Unknown Source)
    Caused by: java.lang.NullPointerException
    at java.security.MessageDigest.update(Unknown Source)
    at sun.plugin.security.WSecureRandom.<init>(Unknown Source)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
    Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown
    Source)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
    Source)
    at java.lang.reflect.Constructor.newInstance(Unknown Source)
    at java.lang.Class.newInstance0(Unknown Source)
    at java.lang.Class.newInstance(Unknown Source)
    at java.security.Security.doGetImpl(Unknown Source)
    at java.security.Security.doGetImpl(Unknown Source)
    at java.security.Security.getImpl(Unknown Source)
    at java.security.SecureRandom.getInstance(Unknown Source)
    at java.security.SecureRandom.<init>(Unknown Source)
    at sun.plugin.services.WIExplorerBrowserService.getSecureRandom(Unknown
    Source)
    at sun.plugin.net.protocol.https.Handler$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.plugin.net.protocol.https.Handler.<clinit>(Unknown Source)
    ... 11 more
    java.lang.NoClassDefFoundError
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Unknown Source)
    at java.net.URL.getURLStreamHandler(Unknown Source)
    at java.net.URL.<init>(Unknown Source)
    at java.net.URL.<init>(Unknown Source)
    at sun.plugin.AppletViewer.getCodeBase(Unknown Source)
    at sun.plugin.AppletViewer.appletInit(Unknown Source)
    at sun.plugin.viewer.LifeCycleManager.initAppletPanel(Unknown Source)
    at sun.plugin.viewer.IExplorerPluginObject$Initer.run(Unknown Source)

    Getting the exact same error when trying to instantiate an applet over https with IE6, using 1.4.1_03, anyone got round this???
    load: class xms.EntryApplet.class not found.
    java.lang.ClassNotFoundException: xms.EntryApplet.class
         at sun.applet.AppletClassLoader.findClass(Unknown Source)
         at sun.plugin.security.PluginClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadCode(Unknown Source)
         at sun.applet.AppletPanel.createApplet(Unknown Source)
         at sun.plugin.AppletViewer.createApplet(Unknown Source)
         at sun.applet.AppletPanel.runLoader(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Caused by: java.io.IOException: open HTTP connection failed.
         at sun.applet.AppletClassLoader.getBytes(Unknown Source)
         at sun.applet.AppletClassLoader.access$100(Unknown Source)
         at sun.applet.AppletClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         ... 11 more

  • Remedy system to Portal - HTTPS problem

    Hello folks,
        I am integrating remedy system to portal using R/3. We are not able to consume the webservice directly from the Iview using portal services(not supporting for the remedy system). So we have created a RFM(using SOAP). Portal connects to R/3 using this RFM and R/3 connects to remedy system and returns the ticket created which is passed to the portal.
       This works fine if the webservice is HTTP based but doesn't work after enabling HTTPS. Keeps giving authentiocation/HTTP communication err. Does the webservice supports HTTPS using ABAP?.They do have an option to accept HTTPS but it's not working.(Scheme 1= HTTP , 2 = HTTPS )
    call method cl_http_client=>create
    exporting
    host = 'arsdev'
    service = '8883'
    scheme = '2'
    importing
    client = http_client.
    Has anyone encountered the same problem ? Is there anyway we can consume the webservice thru' ABAP after enabling HTTPS?
    Thanks,
    Vikram

    Hi, gurus.
    I thought you have successfully configured Solman-BMC connection before?
    Can you share some thoughts on it, especially where I can found decent documentation that tells step I should take. I've configured it for days, but I can't understand how Solman will pass message to Remedy and vice versa.
    Do you have email or messenger so I can ask about it?
    I've followed SAP guidances from service marketplace and here http://tknight.org/sdn/show/9985 but with no luck.
    Thanks gurus.

  • Http problem in 6?

    Hi:
              I just start using 6 for my application. After i deployed the ear
              file, i got this problem. Can any one tell me why and how to solve this?
              Thanks.
              minjiang
              <Jul 6, 2001 3:18:40 PM SGT> <Error> <HTTP> <HttpServer(3147622,null
              default ctx
              ,kbfServer) found no context for "GET /login.jsp HTTP/1.1". This should
              not happ
              en unless the default context failed to deploy.>
              my config.xml is like this:
              <Application Name="kbfapp"
              Path="D:\bea\wlserver6.0\config\kbf\applications">
              <WebAppComponent
              Name="kbf"
              URI="kbf.ear"
              Targets="kbfServer"
              />
              </Application>
              <Log Name="kbf"/>
              <Server AcceptBacklog="200" DefaultIIOPUser="wangminjiang"
              DefaultProtocol="https" DefaultSecureProtocol="https"
              HelpPageURL="d:/weblogic/kbfServer/public_html/docs51/adminhelp/"
              JDBCLogFileName="jdbc.log" JDBCLoggingEnabled="false"
              ListenPort="80" Name="kbfServer" NativeIOEnabled="true"
              StdoutEnabled="true" SystemPassword="apple123"
              ThreadPoolPercentSocketReaders="50" ThreadPoolSize="50"
              ZACEnabled="true">
              <Log FileMinSize="1024" FileName="kbfServer.log"
              Name="kbfServer"/>
              <ServerDebug Name="kbfServer"/>
              <SSL CertificateCacheSize="3" Enabled="true" ListenPort="443"
              Name="kbfServer"
              ServerCertificateChainFileName="config/kbf/ca.pem"
              ServerCertificateFileName="config/kbf/democert.pem"
              ServerKeyFileName="config/kbf/demokey.pem"/>
              <KernelDebug Name="kbfServer"/>
              <WebServer DefaultWebApp="kbf" HttpsKeepAliveSecs="120"
              KeepAliveSecs="60" LogFileName="access.log"
              LoggingEnabled="true" Name="kbfServer" Targets="kbfServer"/>
              </Server>
              

    Hi:
              I just start using 6 for my application. After i deployed the ear
              file, i got this problem. Can any one tell me why and how to solve this?
              Thanks.
              minjiang
              <Jul 6, 2001 3:18:40 PM SGT> <Error> <HTTP> <HttpServer(3147622,null
              default ctx
              ,kbfServer) found no context for "GET /login.jsp HTTP/1.1". This should
              not happ
              en unless the default context failed to deploy.>
              my config.xml is like this:
              <Application Name="kbfapp"
              Path="D:\bea\wlserver6.0\config\kbf\applications">
              <WebAppComponent
              Name="kbf"
              URI="kbf.ear"
              Targets="kbfServer"
              />
              </Application>
              <Log Name="kbf"/>
              <Server AcceptBacklog="200" DefaultIIOPUser="wangminjiang"
              DefaultProtocol="https" DefaultSecureProtocol="https"
              HelpPageURL="d:/weblogic/kbfServer/public_html/docs51/adminhelp/"
              JDBCLogFileName="jdbc.log" JDBCLoggingEnabled="false"
              ListenPort="80" Name="kbfServer" NativeIOEnabled="true"
              StdoutEnabled="true" SystemPassword="apple123"
              ThreadPoolPercentSocketReaders="50" ThreadPoolSize="50"
              ZACEnabled="true">
              <Log FileMinSize="1024" FileName="kbfServer.log"
              Name="kbfServer"/>
              <ServerDebug Name="kbfServer"/>
              <SSL CertificateCacheSize="3" Enabled="true" ListenPort="443"
              Name="kbfServer"
              ServerCertificateChainFileName="config/kbf/ca.pem"
              ServerCertificateFileName="config/kbf/democert.pem"
              ServerKeyFileName="config/kbf/demokey.pem"/>
              <KernelDebug Name="kbfServer"/>
              <WebServer DefaultWebApp="kbf" HttpsKeepAliveSecs="120"
              KeepAliveSecs="60" LogFileName="access.log"
              LoggingEnabled="true" Name="kbfServer" Targets="kbfServer"/>
              </Server>
              

  • Binding Endpoint to HTTPS problem

    Hi guys. I created a basic REST service that works when it is invoked over a http connection. But when I try to add SSL on top I have some problems.
    This is the code for the server creation:
    1. private HttpContext getHttpContext() { 
    2. HttpsServer server = null;
    3. try { 
    4. server = HttpsServer.create(new InetSocketAddress("localhost", 443), 5);
    5.
    6. server.setHttpsConfigurator(new HttpsConfigurator(SecureChatSslContextFactory.getServerContext()) { 
    7.
    8. public void configure(HttpsParameters params) { 
    9. SSLContext context = getSSLContext();
    10.
    11. // get the default parameters
    12. SSLParameters sslparams = context.getDefaultSSLParameters();
    13. params.setSSLParameters(sslparams);
    14. }
    15. });
    16.
    17. server.start();
    18.
    19. return server.createContext("/customerservice/customer");
    20. } catch (IOException e) { 
    21. e.printStackTrace();
    22. }
    23. return null;
    24. }
    25. Endpoint e = Endpoint.create(HTTPBinding.HTTP_BINDING, new RestSourcePayloadProvider());
    26. e.publish(getHttpContext());
    The class RestSourcePayloadProvider has the public method invoke, but it never gets called when using https insteand of http. I suppose that the reason for this behaviour is that the binding for the endpoint is HTTPBinding.HTTP_BINDING, and not HTTPS. But I didn't manage to find a way to bind to https.
    If I run the test client or the browser on "https://127.0.0.1:443/customerservice/customer" I get the same answer:
    500 Internal Server Error No handler for context
    Anyone has any idea about what's going on?
    Thanks.
    Edited by: user13793980 on Jan 19, 2011 5:47 AM

    I found the answer to my problem. I was not creating a handler for the incoming requests. I was supposed to use
    return server.createContext("/customerservice/customer", new HttpHandler(...));
    instead of
    return server.createContext("/customerservice/customer");
    It looks like the interface Endpoint is implemented by the EndpointImpl class in Apache's CFX. When calling "publish(address)" the method called in EndpointImpl creates a ServerImpl that will be the service server. If I call "publish(server context)" nothing happens, because EndpointImpl doesn't override that method also.

  • EPCF and https problem...

    I have a problem with the EPCF. I have a page with the iViews: header, main view and footer. Some times, when the main view changes, the header changes too. And there is the problem:
    - When I use it and open the Portal in http session, everything run ok!!!
    - However, when I open the Portal in https session, the main view disappears (or minimize).
    Can anybody help me? Does anybody know if I can use EPCF with https session?
    Thanks in advance

    I have a problem with the EPCF. I have a page with the iViews: header, main view and footer. Some times, when the main view changes, the header changes too. And there is the problem:
    - When I use it and open the Portal in http session, everything run ok!!!
    - However, when I open the Portal in https session, the main view disappears (or minimize).
    Can anybody help me? Does anybody know if I can use EPCF with https session?
    Thanks in advance

Maybe you are looking for

  • Z87 Mpower SP : BIOS A is dead or can be saved??

    Hi guys, I accidentally did a failed flashing and caused my board doesn't wanna boot to post but all LEDs, fans on CPU and card are working only blackscreen on monitor and there is no LED show up on Debug LED. I use MSI Z87 Mpower SP with BIOS A (dam

  • When i click on ''preview in browser'' nothing happens

    it's all in the title^^ when i try to preview in browser , it loads like 2 seconds then nothing more happens.

  • How to go from version 6 to 7?

    I somehow was using version 7.1.4 of iPhoto, then ran into problems after a OSX software update. So I deleted the 7.1.4 version and reinstalled from disk, which was version 6 something. I went thru software update to go as far up as I could, which en

  • I read a post about connecting to Vista with Finder Go

    but the guy was asking if there was a way to not use that work around.. i was hoping someone could explain how to connect to a vista PC using that Finder > Go > Connect to Server method i tried using the local IP of the PC but it didnt work am i miss

  • Oddities when serving images via NES from a servlet that is part of a WAR

    Just wanted to confirm that the following behavior is normal:           Environment:           NT 4.0 SP5           NES 3.6 SP3           WLS 5.1 SP3           jdk 1.2.2           Goal: When constructing a page that has images embedded in it from my