0 Replies Latest reply on Jul 12, 2012 6:44 AM by Chaitanya Kulkarni

    java.net.MalformedURLException: unknown protocol on Jboss 7.0.2

    Chaitanya Kulkarni Newbie

      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.