ColdFusion服务器启动命令在Command Box中以错误退出。

huangapple go评论42阅读模式
英文:

The Command to start Coldfusion server exits with errors in Command Box

问题

这是一个关于ColdFusion错误的描述。用户试图启动服务器时遇到了一个java.lang.NullPointerException错误。这个错误可能与ColdFusion应用程序的初始化有关,但需要更多上下文才能深入分析。

英文:

I have been all over trying to figure out what this error means. The project has been just given to me and I have never done anything with cold fusion.

Any help would be appreciated.

What happens is when I try and start the command box I get this error and the server stops.

The command I run to start this server is

server start cfengine=adobe@11 console=true
[INFO ] Runwar: ******************************************************************************
[INFO ] Runwar: Starting RunWAR 4.8.5
[INFO ] Runwar: Binding HTTP on localhost:8282
[INFO ] Runwar: Enabling HTTP/2
[INFO ] Runwar: Servlet Context: /
[INFO ] Runwar: Log Directory: C:\Users\Aaron\.CommandBox\server\DE7764989AC6E02101EEFD566DEBC404-cherokee-leaseapps\adobe-11.0.19.314546\logs
[INFO ] Runwar: ******************************************************************************
[INFO ] Runwar: Parsing 'C:\Users\Aaron\.CommandBox\server\DE7764989AC6E02101EEFD566DEBC404-cherokee-leaseapps\adobe-11.0.19.314546\WEB-INF\web.xml'
[INFO ] Runwar: Creating deployment [default] in C:\Users\Aaron\Documents\dev\cherokee-leaseapps
[INFO ] 05/31 16:08:18 INFO License Service: Flex 1.5 CF Edition enabled
[INFO ] 05/31 16:08:18 INFO Starting Flex 1.5 CF Edition
[INFO ] 05/31 16:08:18 INFO Macromedia Flex Build: 87315.134646
[ERROR] java.lang.NullPointerException
[ERROR]         at coldfusion.CfmServlet.init(CfmServlet.java:97)
[ERROR]         at coldfusion.bootstrap.ClassloaderHelper.initServletClass(ClassloaderHelper.java:121)
[ERROR]         at coldfusion.bootstrap.BootstrapServlet.init(BootstrapServlet.java:59)
[ERROR]         at io.undertow.servlet.core.LifecyleInterceptorInvocation.proceed(LifecyleInterceptorInvocation.java:117)
[ERROR]         at io.undertow.servlet.core.ManagedServlet$DefaultInstanceStrategy.start(ManagedServlet.java:309)
[ERROR]         at io.undertow.servlet.core.ManagedServlet.createServlet(ManagedServlet.java:145)
[ERROR]         at io.undertow.servlet.core.DeploymentManagerImpl$2.call(DeploymentManagerImpl.java:588)
[ERROR]         at io.undertow.servlet.core.DeploymentManagerImpl$2.call(DeploymentManagerImpl.java:559)
[ERROR]         at io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:42)
[ERROR]         at io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43)
[ERROR]         at io.undertow.servlet.api.LegacyThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44)
[ERROR]         at io.undertow.servlet.core.DeploymentManagerImpl.start(DeploymentManagerImpl.java:601)
[ERROR]         at runwar.Server.createServletDeployment(Server.java:1360)
[ERROR]         at runwar.Server.startServer(Server.java:517)
[ERROR]         at runwar.Start.main(Start.java:51)
[ERROR] javax.servlet.ServletException: java.lang.NullPointerException
[ERROR]         at coldfusion.bootstrap.ClassloaderHelper.initServletClass(ClassloaderHelper.java:129)
[ERROR]         at coldfusion.bootstrap.BootstrapServlet.init(BootstrapServlet.java:59)
[ERROR]         at io.undertow.servlet.core.LifecyleInterceptorInvocation.proceed(LifecyleInterceptorInvocation.java:117)
[ERROR]         at io.undertow.servlet.core.ManagedServlet$DefaultInstanceStrategy.start(ManagedServlet.java:309)
[ERROR]         at io.undertow.servlet.core.ManagedServlet.createServlet(ManagedServlet.java:145)
[ERROR]         at io.undertow.servlet.core.DeploymentManagerImpl$2.call(DeploymentManagerImpl.java:588)
[ERROR]         at io.undertow.servlet.core.DeploymentManagerImpl$2.call(DeploymentManagerImpl.java:559)
[ERROR]         at io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:42)
[ERROR]         at io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43)
[ERROR]         at io.undertow.servlet.api.LegacyThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44)
[ERROR]         at io.undertow.servlet.core.DeploymentManagerImpl.start(DeploymentManagerImpl.java:601)
[ERROR]         at runwar.Server.createServletDeployment(Server.java:1360)
[ERROR]         at runwar.Server.startServer(Server.java:517)
[ERROR]         at runwar.Start.main(Start.java:51)
[ERROR] Caused by: java.lang.NullPointerException
[ERROR]         at coldfusion.CfmServlet.init(CfmServlet.java:97)
[ERROR]         at coldfusion.bootstrap.ClassloaderHelper.initServletClass(ClassloaderHelper.java:121)
[ERROR]         ... 13 more
[INFO ] Runwar: ******************************************************************************
[INFO ] Runwar: *** stopping server 'cherokee-leaseapps' (socket 49490)
[INFO ] Runwar: ******************************************************************************

Server's output stream closed. It's been stopped elsewhere.

Stopping server...



ERROR (5.9.0+00721)

Server process returned failing exit code [1]

答案1

得分: 2

您正在运行ColdFusion 11,可以使用的最新Java版本是Java 8,但至少需要安装热补丁3。

https://coldfusion.adobe.com/2021/01/table-of-java-to-cf-versions/

澄清一下,CommandBox运行的是随附的Java版本。默认情况下,所有CFML服务器将使用CB使用的版本。但您可以为每个CFML引擎的实例运行特定于其的Java版本。

您需要安装最新版本的Java 7来开始。然后应用热补丁,然后安装Java 8。您可以使用正确的配置值告诉服务器实例使用特定版本的Java。

在您的CF应用程序根目录中创建一个名为server.json的文件。这是您可以在其中设置服务器值而不是在命令行上设置的地方。现在,您应该能够运行server start

{
    "name": "cf11server",
    "console": true,
    "jvm": {
        "javaHome": "c://path//to//java//8//bin",
    },
    "app": {
        "cfengine": "adobe@11",
    }
}

您可以为在CommandBox中创建的每个服务器配置很多设置

英文:

You're running ColdFusion 11, the latest version of Java that can be used is Java 8, but only with at least hotfix 3.

https://coldfusion.adobe.com/2021/01/table-of-java-to-cf-versions/

To clarify, CommandBox runs on the version of Java that came with it. By default, all CFML servers will use the version that CB uses. But you can run each instance of a CFML engine on a version of Java specific to it.

You'll have to install the latest version of Java 7 to start. Then apply the hotfixes, then install Java 8. You can tell the server instance to use a specific version of Java with the correct config values.

Create a file server.json in the root of your CF application. This is where you can set the server values instead of at the command line. Now you should be able to run server start.

{
    "name": "cf11server",
    "console": true,
    "jvm": {
        "javaHome": "c://path//to//java//8//bin",
    },
    "app": {
        "cfengine": "adobe@11",
    }
}

There are a lot of settings you can configure for each server you create in CommandBox.

huangapple
  • 本文由 发表于 2023年6月1日 05:19:30
  • 转载请务必保留本文链接:https://go.coder-hub.com/76377378.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定