IBM Support

An error message might display when HTTPS is specified

Troubleshooting


Problem

The following error message might occur when IBM® WebSphere® Application Server functions as a Java™ system instead of as a runtime environment, and if you specify a secure HTTPS protocol for the java.net.URL object. []java.net.MalformedURLException unknown protocol: https is thrown when https is contained in java.net.URL object[]

Cause

WebSphere Application Server Version 6.0.x, using Java™ 1.4.2, could run an application with two Java Secure Sockets Extension (JSSE) providers. However, WebSphere Application Server Version 6.1, using Java 1.5.0, can run an application with only one JSSE provider. If you specify the following java.net.URL class

java.net.URL url = new java.net.URL("https://any.url.pattern/)" ;,

the java.net.URL. class might not locate the IBM HTTPS handler.

There is a protocol handler provided for HTTPS in the package com.ibm.net.ssl.www2.protocol.https. The java.net.URL. class might not locate the IBM HTTPS handler on an HP-UX or Solaris operating system because it provides the hard-coded default prefix package sun.net.www.protocol.* for protocol handlers.

Resolving The Problem

To resolve this problem, specify the following system property:

-Djava.protocol.handler.pkgs=com.ibm.net.ssl.www2.protocol

Related Information

[{"Product":{"code":"SSEQTP","label":"WebSphere Application Server"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Java Security (JSSE\/JCE)","Platform":[{"code":"PF010","label":"HP-UX"},{"code":"PF027","label":"Solaris"}],"Version":"7.0;6.1","Edition":"Base;Express;Network Deployment","Line of Business":{"code":"LOB45","label":"Automation"}},{"Product":{"code":"SSNVBF","label":"Runtimes for Java Technology"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"Java SDK","Platform":[{"code":"","label":""}],"Version":"","Edition":"","Line of Business":{"code":"LOB36","label":"IBM Automation"}}]

Document Information

Modified date:
15 June 2018

UID

swg21237549