Version 1

    Hi,

     

    My app is running fine in Jetty as a Grails application on Windows.

     

    I am having problem to get file located on other file system when running on jBoss AS 4.0.3.

     

         //java.net.URL yahoo = new java.net.URL("/abchost.abc.com/MDM_DEV/vendordocs/static/UTC.pdf"); //--- Not working

         java.net.URL yahoo = new java.net.URL("file","abchost.abc.com","/MDM_DEV/vendordocs/static/UTC.pdf"); //--- Not working
         java.net.URLConnection yc = yahoo.openConnection();
         java.io.InputStream is = yc.getInputStream(); // --- Throw exception when calling getInputStream().

     

     

    java.io.FileNotFoundException: /abchost.abc.com/MDM_DEV/vendordocs/static/UTC.pdf
            at org.jboss.net.protocol.file.FileURLConnection.connect(FileURLConnection.java:94)
            at org.jboss.net.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:103)
            at TermsAndConditionsRegisterController$_closure5.doCall(TermsAndConditionsRegisterController.groovy:108)
            at TermsAndConditionsRegisterController$_closure5.doCall(TermsAndConditionsRegisterController.groovy)
            at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
            at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
            at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
            at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
            at java.lang.Thread.run(Thread.java:619)

     

     

    This seems to be a problem in jBoss 4 but was fixed in jBoss 5. But my app has to be ran on Jboss 4.

     

    Is there a solution? Can I use other classes to download file instead of using URL?

     

    Thanks!

     

    G.