0 Replies Latest reply on Feb 22, 2013 2:59 PM by 870199

    How to make custom protocol handlers work on weblogic 10.3

      Hello, BEA and community!

      I have created a simple "bufferedreader" protocol handler as described in JDK documentation:

      To activate the protocol I'm explicitly setting the system property before creating the URL:

      System.setProperty("java.protocol.handler.pkgs", "sun.net.www.protocol.bufferedreader");

      I have created a unit test that runs perfectly, but when putting the same logic inside web application deployed in Weblogic 10.3 I get MallformedUrlException saying that protocol "bufferedreader" is unknown.

      I have also tried to put -Djava.protocol.handler.pkgs=sun.net.www.protocol.bufferedreader in the server's start up script, but with the same effect.

      Any ideas what could be wrong? Or any information on how WebLogic's url protocol handling is working? Is it different from standard one?

      Best regards,
      Sameer Tiwari