7 Replies Latest reply on Jan 26, 2011 2:59 AM by Nicklas Karlsson

    URL handler on jboss 6

    Vladimir Seprak Newbie

      Hello,

       

      I was using JBoss 4.2.3 for some time and now I'm migrating my application to JBoss 6.0.0.Final. For storing files on different file storages (dms, filesystem, ..) i was using URL handlers. On jboss 6.0.0.Final I'm getting following error

       

      13:38:09,078 ERROR [STDERR] java.net.UnknownServiceException: protocol doesn't support output
      13:38:09,078 ERROR [STDERR]     at java.net.URLConnection.getOutputStream(URLConnection.java:792)
      

       

      when executing code:

       

          URLConnection connection = storeUrl.openConnection();
          connection.setDoOutput(true);
          connection.connect();
          OutputStream os = new BufferedOutputStream(connection.getOutputStream());
      

       

      storeUrl is something like this file:/c:/folder/file.ftl. On Jboss 4.2.3 this was working fine. How can I get writable connection on JBoss 6?

      Any help appriciated.