由于我正在研究的项目,我正在弄乱我的CF11管理员中的类路径.我设法使服务器崩溃到我唯一得到的是一个漂亮的蓝屏,出现500错误.我已经检查了日志,我会在帖子底部粘贴我可以,但我希望有人会启发我所以我不必重新安装CF,因为我在亚马逊AMI实例上我不喜欢甚至不知道我能不能做到(还没有检查).
"Error","localhost-startStop-2","12/12/14","13:12:22",,""
"Error","localhost-startStop-2","12/12/14","13:12:22",,"The XML-RPC service is not available. This exception is usually caused by service startup failure. Check your server configuration."
"Error","localhost-startStop-2","12/12/14","13:12:22",,"The Metrics service is not available. This exception is usually caused by service startup failure. Check your server configuration."
"Error","localhost-startStop-2","12/12/14","13:12:22",,"The ClientScope service is not available. This exception is usually caused by service startup failure. Check your server configuration."
"Error","localhost-startStop-2","12/12/14","13:12:22",,"The Runtime service is not available. This exception is usually caused by service startup failure. Check your server configuration."
"Error","localhost-startStop-2","12/12/14","13:12:22",,"The Solr service is not available. This exception is usually caused by service startup failure. Check your server configuration."
"Error","localhost-startStop-2","12/12/14","13:12:22",,"The MailSpool service is not available. This exception is usually caused by service startup failure. Check your server configuration."
"Error","localhost-startStop-2","12/12/14","13:12:22",,"The DataSource service is not available. This exception is usually caused by service startup failure. Check your server configuration."
"Error","localhost-startStop-2","12/12/14","13:12:22",,"The Debugging service is not available. This exception is usually caused by service startup failure. Check your server configuration."
"Error","localhost-startStop-2","12/12/14","13:12:22",,"The Security service is not available. This exception is usually caused by service startup failure. Check your server configuration."
"Error","localhost-startStop-2","12/12/14","13:12:22",,""
"Error","localhost-startStop-2","12/12/14","13:12:22",,"The DotNet service is not available. This exception is usually caused by service startup failure. Check your server configuration."
"Error","localhost-startStop-2","12/12/14","13:12:22",,"The WatchService service is not available. This exception is usually caused by service startup failure. Check your server configuration."
"Error","localhost-startStop-2","12/12/14","13:12:22",,"The Monitoring service is not available. This exception is usually caused by service startup failure. Check your server configuration."
"Error","localhost-startStop-2","12/12/14","13:12:22",,"The Runtime service is not available. This exception is usually caused by service startup failure. Check your server configuration."
Run Code Online (Sandbox Code Playgroud)
这是我的jvm文件
#
# 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:\\ColdFusion11\\jre
#
# If no java.home is specified a VM is located by looking in these places in this
# order:
#
# 1) ../runtime/jre
# 2) registry (windows only)
# 3) JAVA_HOME env var plus jre (ie $JAVA_HOME/jre)
# 4) java.exe in path
#
# Arguments to VM
java.args=-server -Xms256m -Xmx1024m -XX:MaxPermSize=192m -XX:+UseParallelGC -Xbatch -Dcoldfusion.home={application.home} -Dorg.eclipse.jetty.util.log.class=org.eclipse.jetty.util.log.JavaUtilLog -Duser.language=en -Dcoldfusion.rootDir={application.home} -Dcoldfusion.libPath={application.home}/lib -Dorg.apache.coyote.USE_CUSTOM_STATUS_MSG_IN_HEADER=true -Dcoldfusion.jsafe.defaultalgo=FIPS186Random -Dcoldfusion.classPath={application.home}/lib/updates,{application.home}/lib,{application.home}/lib/axis2,{application.home}/gateway/lib/,{application.home}/wwwroot/WEB-INF/flex/jars,{application.home}/wwwroot/WEB-INF/cfform/jars,C:\\ColdFusion11\\jre\\lib
# Comma separated list of shared library path
java.library.path={application.home}/lib,{application.home}/jintegra/bin,{application.home}/jintegra/bin/international,{application.home}/lib/oosdk/classes/win
# Comma separated list of shared library path for non-windows
java.nixlibrary.path={application.home}/lib
java.class.path={application.home}/lib/oosdk/lib,{application.home}/lib/oosdk/classes
Run Code Online (Sandbox Code Playgroud)
我假设你是通过CF管理员编辑类路径的?如果是这样,请查找Adam提到的jvm.config文件,并从备份或其他库存安装中恢复它.
您似乎没有提到ColdFusion安装的类型或AMI实例的操作系统.我在Windows 7上安装的独立ColdFusion 11在这里有jvm.config:
C:\ ColdFusion11\cfusion\BIN\jvm.config
内容如下. 不要简单地复制它,因为您可能没有与我完全相同的路径或内存设置.但是,您可以将其用作比较参考点.对不起,我会把它作为评论,但文件太大了.
#
# 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:\\ColdFusion11\\jre
#
# If no java.home is specified a VM is located by looking in these places in this
# order:
#
# 1) ../runtime/jre
# 2) registry (windows only)
# 3) JAVA_HOME env var plus jre (ie $JAVA_HOME/jre)
# 4) java.exe in path
#
# Arguments to VM
java.args=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005 -server -Xms256m -Xmx512m -XX:MaxPermSize=192m -XX:+UseParallelGC -Xbatch -Dcoldfusion.home={application.home} -Dorg.eclipse.jetty.util.log.class=org.eclipse.jetty.util.log.JavaUtilLog -Djava.awt.headless=true -Duser.language=en -Dcoldfusion.rootDir={application.home} -Djava.security.policy={application.home}/lib/coldfusion.policy -Djava.security.auth.policy={application.home}/lib/neo_jaas.policy -Dcoldfusion.classPath={application.home}/lib/updates,{application.home}/lib,{application.home}/lib/axis2,{application.home}/gateway/lib/,{application.home}/wwwroot/WEB-INF/cfform/jars,{application.home}/wwwroot/WEB-INF/flex/jars,{application.home}/lib/oosdk/lib,{application.home}/lib/oosdk/classes -Dcoldfusion.libPath={application.home}/lib -Dorg.apache.coyote.USE_CUSTOM_STATUS_MSG_IN_HEADER=true -Dcoldfusion.jsafe.defaultalgo=FIPS186Random
# Comma separated list of shared library path
java.library.path={application.home}/lib,{application.home}/jintegra/bin,{application.home}/jintegra/bin/international,{application.home}/lib/oosdk/classes/win
# Comma separated list of shared library path for non-windows
java.nixlibrary.path={application.home}/lib
java.class.path={application.home}/lib/oosdk/lib,{application.home}/lib/oosdk/classes
Run Code Online (Sandbox Code Playgroud)