Skip to main content
July 18, 2008
Answered

UNC Share in Class Path

  • July 18, 2008
  • 3 replies
  • 1210 views
We are in the process of migrating from CF 6.2 to CF8. In doing so we are going to a NAS share as to centralize our content across our 6 cf servers. We have a cfx that needs to write files to the folder in which it is installed so I need it to be located on the NAS. However I am unable to get the cfx registered and working when I try to use the unc path in the jvm.config file. Has anyone gotten a unc to work, if so how. Any suggestions are appreciated.
    This topic has been closed for replies.
    Correct answer Newsgroup_User
    AGICroeder wrote:
    > We have the cffile and cfdirectory issues worked out. The one remaining issue it thw unc in the class path.

    \ is an escape character in the jv.config file and make sure you have a
    trailing backslash. So to add \\nas\dir\ to the classpath, what you need
    to put in is:
    java.class.path=(..),\\\\nas\\dir\\

    Jochem


    --
    Jochem van Dieten
    Adobe Community Expert for ColdFusion

    3 replies

    July 22, 2008
    I fixed that last error. I had to add {application.home}/servers/"Server Name"/cfusion-ear/cfusion-war/WEB-INF/lib to the class path.
    July 22, 2008
    So I added the UNC path to the jvm.config file and now I get the error "com/allaire/cfx/CustomTag null". Can someone point me as to how I might fix this in a multiple instance setup?
    Inspiring
    July 18, 2008
    AGICroeder wrote:
    > We are in the process of migrating from CF 6.2 to CF8. In doing so we are going
    > to a NAS share as to centralize our content across our 6 cf servers. We have a
    > cfx that needs to write files to the folder in which it is installed so I need
    > it to be located on the NAS. However I am unable to get the cfx registered and
    > working when I try to use the unc path in the jvm.config file. Has anyone
    > gotten a unc to work, if so how. Any suggestions are appreciated.
    >


    Don't know if this applies to your CFX senario, but to use UNC paths
    with <cfile...> and <cfdirectory> type functionality you need to make
    sure the user that ColdFusion runs under has permissions to the desired
    network resource.

    By default a Windows installation of ColdFusion is installed under the
    'localSystem' user which generally has no network privileges. On Unix
    flavors ColdFusion is installed under a SysAdmin defined user, but will
    only have the permissions the SysAdmin allowed for that user.

    There maybe more to it then this for custom tags, but that is the first
    thing I would look at.

    July 18, 2008
    We have the cffile and cfdirectory issues worked out. The one remaining issue it thw unc in the class path.