We have implemented custom protocol, code for the same is as follows
public class Handler extends URLStreamHandler {
protected URLConnection openConnection(URL u) throws IOException {
return new CustomClassName(u);
}
}
We have also added below option in standalone.conf.bat
-Djava.protocol.handler.pkgs=<package name for above handler>
But while deployment of the application it throws below error,
Caused by: java.net.MalformedURLException: unknown protocol: <protocol name>
Please help.