|
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 |
|
|
|
|
|
|