Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

UNC Share in Class Path

Guest
Jul 18, 2008 Jul 18, 2008
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.
1.2K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

LEGEND , Jul 21, 2008 Jul 21, 2008
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
Translate
LEGEND ,
Jul 18, 2008 Jul 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Jul 18, 2008 Jul 18, 2008
We have the cffile and cfdirectory issues worked out. The one remaining issue it thw unc in the class path.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jul 18, 2008 Jul 18, 2008
AGICroeder wrote:
> We have the cffile and cfdirectory issues worked out. The one remaining issue it thw unc in the class path.

I presume that means the ColdFusion user has the required permissions to
any network resources used by your code and this includes the resource
to where the custom tags are stored.

Other then this, I have never used an UNC path for a CFX custom tag
before so I can not say what issues this might entail.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jul 18, 2008 Jul 18, 2008
AGICroeder wrote:
> We have the cffile and cfdirectory issues worked out. The one remaining issue it thw unc in the class path.

You said you are having trouble using the UNC path in the jvm.config
file. Does this mean you are editing the file directly? If so, do you
have any better luck if you register the cfx tag with the CF
Administrator interface?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jul 21, 2008 Jul 21, 2008
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
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Jul 22, 2008 Jul 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?
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Jul 22, 2008 Jul 22, 2008
LATEST
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.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources