Configuring Secure Socket Layers (SSL) in V5.1 throws a malformedURL exception
 Technote (troubleshooting)
 
Problem(Abstract)
You can experience a malformedURL exception if the Java® protocol handler packages are not set correctly for WebSphere security.
 
Cause
Generally, the Java protocol handler packages are defined in the java.security file. However, these packages can be overridden by other software on the system. To avoid this, set the protocol handler package in your servlet code. In one particular case, the providers were not configured in the servlet correctly due to a typo. If you add the provider handler packages into your code and still experience problems, check the syntax carefully.
 
Resolving the problem
Add the correct provider URL concatenation code in your servlet code.
For example:

Properties properties = System.getProperties();
String s1 = System.getProperty ("java.protocol.handler.pkgs");
if(s1 == null)
 properties.put("java.protocol.handler.pkgs", "com.ibm.net.ssl.internal.www.protocol");
else
 properties.put("java.protocol.handler.pkgs",
"com.ibm.net.ssl.internal.www.protocol|".concat(s1));
 
 
Cross Reference information
Segment Product Component Platform Version Edition
Application Servers Runtimes for Java Technology Java SDK
 
 


Document Information


Product categories: Software > Application Servers > Distributed Application & Web Servers > WebSphere Application Server > Security
Operating system(s): Windows
Software version: 5.0
Software edition:
Reference #: 1157759
IBM Group: Software Group
Modified date: Jan 14, 2004