2 Replies Latest reply on Jun 24, 2008 8:42 AM by 666705

    How to make custom protocol handlers work on weblogic?

      Hello, BEA and community!

      I have created a simple "classpath" 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", "org.portal.content.protocols");
      I have created a unit test that runs perfectly, but when putting the same logic inside web application deployed I get MallformedUrlException saying that protocol is unknown.

      I have also tried to put jar file containing protocol handling classes in domain's lib directory, and adding -Djava.protocol.handler.pkgs=org.portal.content.protocols in the domain'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,