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
Was this topic helpful?
Document Information
Modified date:
15 June 2018
UID
swg21237549