Copy link to clipboard
Copied
Hi, I just rebuilt a CF 8 server and after installing and configuring reviewed the server settings. Below is a part of the JVM Details section.
User Home is set to "C:\Documents and Setting\TEMP". I want to change this to "C:\Documents and Setting\Default User" but cannot figure how to do this. Where/how does CF8 store these values. I checked all of the .config, .properties and .xml files withing the Coldfusion8 folder that was created during the install.
My server is running as a stand-alone server.
Any help would be appreciated.
| java Version | 1.6.0_04 |
| Java Vendor | Sun Microsystems Inc. |
| Java Vendor URL | http://java.sun.com/ |
| Java Home | C:\ColdFusion8\runtime\jre |
| Java File Encoding | Cp1252 |
| Java Default Locale | en_US |
| File Separator | \ |
| Path Separator | ; |
| Line Separator | Chr(13) |
| User Name | SYSTEM |
| User Home | C:\Documents and Settings\TEMP |
| User Dir | C:\ColdFusion8\runtime\bin |
| Java VM Specification Version | 1.0 |
| Java VM Specification Vendor | Sun Microsystems Inc. |
| Java VM Specification Name | Java Virtual Machine Specification |
| Java VM Version | 10.0-b19 |
| Java VM Vendor | Sun Microsystems Inc. |
| Java VM Name | Java HotSpot(TM) Server VM |
| Java Specification Version | 1.6 |
| Java Specification Vendor | Sun Microsystems Inc. |
| Java Specification Name | Java Platform API Specification |
Copy link to clipboard
Copied
In its jvm.config file, which is - by default - in the [JRun]/bin dir on a multi-server install, and... umm... somewhere else on a stand-alone install. [ColdFusion]runtime/bin rings a bell, but I never use stand-alone installs, so cannot check, I'm afraid.
--
Adam
Copy link to clipboard
Copied
Thank you for the quick response. I found a \ColdFusion8\runtime\bin\jvm.config. Below is the contents.
I don't see any of the JVM Details values in the file specifically "User Home".
#
# VM configuration
#
# Where to find JVM, if {java.home}/jre exists then that JVM is used
# if not then it must be the path to the JRE itself
java.home=C:/ColdFusion8/runtime/jre
#
# If no java.home is specified a VM is located by looking in these places in this
# order:
#
# 1) bin directory for java.dll (windows) or lib/<ARCH>/libjava.so (unix)
# 2) ../jre
# 3) registry (windows only)
# 4) JAVA_HOME env var plus jre (ie $JAVA_HOME/jre)
#
# Arguments to VM
java.args=-server -Xmx512m -Dsun.io.useCanonCaches=false -XX:MaxPermSize=192m -XX:+UseParallelGC -Dcoldfusion.rootDir={application.home}/../ -Dcoldfusion.classPath={application.home}/../lib/updates,{application.home}/../lib,{application.home}/../gateway/lib/,{application.home}/../wwwroot/WEB-INF/cfform/jars -Dcoldfusion.libPath={application.home}/../lib
#
# commas will be converted to platform specific separator and the result will be passed
# as -Djava.ext.dirs= to the VM
java.ext.dirs={jre.home}/lib/ext
#
# where to find shared libraries
java.library.path={application.home}/../lib,{application.home}/../jintegra/bin,{application.home}/../jintegra/bin/international
system.path.first=false
#
# set the current working directory - useful for Windows to control
# the default search path used when loading DLLs since it comes
# before system directory, windows directory and PATH
java.user.dir={application.home}/../../lib
# JVM classpath
java.class.path={application.home}/servers/lib,{application.home}/../lib/macromedia_drivers.jar,{application.home}/lib/cfmx_mbean.jar,{application.home}/lib
Copy link to clipboard
Copied
Yeah. That's because by default, it uses the default value, ie: it's not specified. You should just be able to set user.home just like how it's setting java.home.
--
Adam
Copy link to clipboard
Copied
Adam,
I added 'user.home=C:\Documents and Settings\Default User' under the java.home definition in /Coldfusion8/runtime/bin.jvm.config and restarted the server. No joy!
I also tried 'java.user.home=C:\Documents and Settings\Default User' similiar to the 'java.ext.dir...'
Still get the 'default' value. Which begs me to ask, where are the default values stored?
thx for you help.
pwp
Copy link to clipboard
Copied
Maybe try fwd slashes in there. Java's likely to be treating a backslash as an escape char in there.
Are you sure that's the jvm.config your CF instance is using?
--
Adam
Copy link to clipboard
Copied
Tried "user.home=C:/Documents and Settings/Default User"
No joy.
thx again.
Copy link to clipboard
Copied
Works for me if I set it as a JVM arg, eg:
-Duser.home=C:/temp/
--
Adam
Copy link to clipboard
Copied
You've got CF configured to use the default system account. Hence it grabbing the temp directory in documents and settings.
Consider assigning the CF service either a domain wide or local account to run under. It'll then get a user directory assigned to it and it'll use that one from then on.
Copy link to clipboard
Copied
The situation is is we have two identical 2003 servers running Cf8.
One of them has:
| User Name | SYSTEM |
| User Home | C:\Documents and Settings\TEMP |
| User Dir | C:\ColdFusion8\runtime\bin |
The other has:
| User Name | SYSTEM |
| User Home | C:\Documents and Settings\Default User |
| User Dir | C:\ColdFusion8\runtime\bin |
Both are using the default system account.
Why is the first set to '\TEMP while the second is set '\Default User'
I am trying to get the first to use '\Default User' but can't find where/how it is defined.
thx for you help.
Copy link to clipboard
Copied
I am trying to get the first to use '\Default User' but can't find where/how it is defined.
The default user.home setting is determined by the o/s. IIRC, there is a slighlty convoluted set of rules determining the initial value. On my XP box, it is the %USERPROFILE% value. You can dump all evironment variables from CF using:
<cfset env = createObject("Java", "java.lang.System").getEnv()>
<cfdump var="#env#">
From the java.home value it looks like you are using the default jvm and correct jvm.config file. But as mentioned, make sure you are setting that value in the JVM arguments section using: -Duser.home=.... If you are having problems because the path has a space in it, you could always try using the DOS short name: C:/DOCUME~1/DEFAUL~1
Copy link to clipboard
Copied
Thank you for the help.
I am still puzzled as to where and how CF stores and retrieves the non-specified JVM Detail values but I was able to set User Home to "C\Documents and Settings\Default User\ by enclosing it in double quotes.
I am not sure if the double quotes will cause a problem.
Can someone tell me how CF uses the User Home folder? I'd like to create test to see if it is working as required.
Thx again
pwp
Copy link to clipboard
Copied
Can someone tell me how CF uses the User Home folder? I'd
like to create test to see if it is working as required.
The home directory is often used by desktop applications like Eclipse, etcetera. for configuration purposes. I am not sure how, or if, it is used by CF. But this does raise a question .. if you are not sure how it is used, why are you concerned with changing the value?
I am still puzzled as to where and how CF stores and
retrieves the non-specified JVM Detail values
Technically, CF is not really doing any storing. What you are talking about are java system properties. Those are handled by the jvm. When the jvm starts up, it reads information from property files (ie jvm.config) and the current operating system's environment variables to determine the initial values of system properties like "user.home".
In the case of "user.home", if it is not set within jvm.config, the jvm checks the current operating system's environment variables. The jvm then applies *some* set of rules to determine the default "user.home" directory. (For example, on my XP box it uses the windows environment variable %USERPROFILE%.) If you want to know the exact details of the rules applied by the jvm .. you will have to read the java specifications.
Message was edited by: -==cfSearching==-
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more