I am trying to launch a server using ColdFusion 10 using CommandBox 5.4.2+00453 however when I do, I get an error.
ERROR (5.4.2+00453)
Server process returned failing exit code [1]
Yes, I know CF10 is woefully out of date, but there is nothing I can do about that at this time. I get similar errors in CF 11. I can get CF 2016 running, but the codebase (that is not mine) needs some major updates before it is ready for that.
I have used CommandBox with CF10 for quite a while. I recently updated CommandBox, but I cannot say with any certainty the issue started at that time.
Has anyone seen issues like this?
I started the server with --debug and this is the result (pathing has been scrubbed).
box server start stroz-fs --debug
√ | Starting Server
|------------------------------
| start server in - { path to project }y\
| server name - stroz-fs
| server config file - { path to project }y\/server-stroz-fs.json
| Contacting ForgeBox to determine the latest & greatest version of [adobe 10.0.21]... Use an exact 'cfengine' ver
| sion to skip this check.
| OK, [adobe 10.0.21+300068] it is!
| WAR/zip archive already installed.
| Server start command:
| D:\Sites\tools\CommandBox\jre\bin\java.exe
| -jar { path to CommandBox }.CommandBox\lib\runwar-4.5.2.jar
| --background=true
| --host 127.0.0.1
| --stop-port 63778
| --processname stroz-fs [adobe 10.0.21+300068]
| --log-dir { path to CommandBox }.CommandBox/server/6731B043CF70325DFCC9EF20EC5E15C0-stroz-fs/adobe-10.0.21.300068/lo
| gs
| --server-name stroz-fs
| --tray-enable true
| --dock-enable true
| --directoryindex true
| --timeout 240
| --proxy-peeraddress true
| --cookie-secure false
| --cookie-httponly false
| --pid-file { path to CommandBox }.CommandBox/server/6731B043CF70325DFCC9EF20EC5E15C0-stroz-fs/adobe-10.0.21.300068/.
| pid.txt
| --tray-icon { path to CommandBox }.CommandBox\cfml\system\config\server-icons\trayicon-cf10-32px.png
| --tray-config { path to CommandBox }.CommandBox/server/6731B043CF70325DFCC9EF20EC5E15C0-stroz-fs/adobe-10.0.21.30006
| 8/.trayOptions.json
| --debug true
| --gzip-enable true
| --cfengine-name adobe
| -war { path to project }y\
| --web-xml-path { path to CommandBox }.CommandBox/server/6731B043CF70325DFCC9EF20EC5E15C0-stroz-fs/adobe-10.0.21.3000
| 68/WEB-INF/web.xml
| --http-enable true
| --ssl-enable false
| --ajp-enable false
| --http2-enable true
| --open-browser true
| --open-url http://127.0.0.1:54437
| --port 54437
| --urlrewrite-enable false
| --predicate-file { path to CommandBox }.CommandBox/server/6731B043CF70325DFCC9EF20EC5E15C0-stroz-fs/adobe-10.0.21.30
| 0068/.predicateFile.txt
| The server for { path to project }y\ is starting on http://127.0.0.1:54437 ...
|------------------------------
| √ | Setting Server Profile to [development]
| |------------------------------------------------------
| | Profile set from server bound to localhost
| | Block CF Admin disabled
| | Block Sensitive Paths enabled
| | Block Flash Remoting enabled
| | Directory Browsing enabled
| |------------------------------------------------------
| √ | Loading CFConfig into server
| |-------------------------------------------
| | Found CFConfig JSON in ".cfconfig.json" file in web root by convention.
| | Importing adobe config from [D:/Sites/AFS-Work/FlighSafety/.cfconfig.json]
| | Config transferred!
| |-------------------------------------------
[INFO ] Runwar: Enabling URL rewrite log level: DEBUG
[DEBUG] Runwar: Server Mode: war
[INFO ] Runwar: Starting RunWAR 4.5.2
[DEBUG] Runwar: Starting Server: 127.0.0.1
[DEBUG] Runwar: HOST to be bound:127.0.0.1
[DEBUG] Runwar: Requisitioning ports 127.0.0.1:54437 (http) 127.0.0.1:63778 (stop)
[DEBUG] Runwar: SERVER BUILDER:true
[DEBUG] Runwar: Server Builder - PORT:54437 HOST:127.0.0.1
[INFO ] Runwar: HTTP2 Enabled:true
[INFO ] Runwar: HTTP sslEnable:false
[INFO ] Runwar: HTTP ajpEnable:false
[INFO ] Runwar: HTTP warFile exists:true
[INFO ] Runwar: HTTP warFile isDirectory:true
[INFO ] Runwar: Starting background stroz-fs [adobe 10.0.21+300068] from: /{ path to CommandBox }.CommandBox/lib/runwar-4.5.2.jar
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by runwar.LaunchUtil (file:/{ path to CommandBox }.CommandBox/lib/runwar-4.5.2.jar) to method java.lang.ProcessImpl.pid()
WARNING: Please consider reporting this to the maintainers of runwar.LaunchUtil
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
[DEBUG] Runwar: launching background process as PID [26480] with these args:
[DEBUG] Runwar: args ->
{ install path}\CommandBox\jre\bin\java.exe
-jar { path to CommandBox }.CommandBox\lib\runwar-4.5.2.jar
--processname stroz-fs [adobe 10.0.21+300068]
--log-dir { path to CommandBox }.CommandBox/server/6731B043CF70325DFCC9EF20EC5E15C0-stroz-fs/adobe-10.0.21.300068/logs
--server-name stroz-fs
--tray-enable true
--dock-enable true
--directoryindex true
--timeout 240
--proxy-peeraddress true
--cookie-secure false
--cookie-httponly false
--pid-file { path to CommandBox }.CommandBox/server/6731B043CF70325DFCC9EF20EC5E15C0-stroz-fs/adobe-10.0.21.300068/.pid.txt
--tray-icon { path to CommandBox }.CommandBox\cfml\system\config\server-icons\trayicon-cf10-32px.png
--tray-config { path to CommandBox }.CommandBox/server/6731B043CF70325DFCC9EF20EC5E15C0-stroz-fs/adobe-10.0.21.300068/.trayOptions.json
--debug true
--gzip-enable true
--cfengine-name adobe
-war { path to project }y\
--web-xml-path { path to CommandBox }.CommandBox/server/6731B043CF70325DFCC9EF20EC5E15C0-stroz-fs/adobe-10.0.21.300068/WEB-INF/web.xml
--http-enable true
--ssl-enable false
--ajp-enable false
--http2-enable true
--open-browser true
--open-url http://127.0.0.1:54437
--urlrewrite-enable false
--predicate-file { path to CommandBox }.CommandBox/server/6731B043CF70325DFCC9EF20EC5E15C0-stroz-fs/adobe-10.0.21.300068/.predicateFile.txt
--host 127.0.0.1
--background false
--port 54437
--stop-port 63778
[DEBUG] Runwar: timeout of 240 seconds
[INFO ] Starting in background -
[INFO ] Runwar: Enabling URL rewrite log level: DEBUG
[DEBUG] Runwar: Server Mode: war
[INFO ] Runwar: Starting RunWAR 4.5.2
[DEBUG] Runwar: Starting Server: 127.0.0.1
[DEBUG] Runwar: HOST to be bound:127.0.0.1
[DEBUG] Runwar: Requisitioning ports 127.0.0.1:54437 (http) 127.0.0.1:63778 (stop)
[DEBUG] Runwar: SERVER BUILDER:true
[DEBUG] Runwar: Server Builder - PORT:54437 HOST:127.0.0.1
[INFO ] Runwar: HTTP2 Enabled:true
[INFO ] Runwar: HTTP sslEnable:false
[INFO ] Runwar: HTTP ajpEnable:false
[INFO ] Runwar: HTTP warFile exists:true
[INFO ] Runwar: HTTP warFile isDirectory:true
[INFO ] Runwar: HTTP background:false
[INFO ] Runwar: Adding additional lib dir of: { path to CommandBox }.CommandBox\server\6731B043CF70325DFCC9EF20EC5E15C0-stroz-fs\adobe-10.0.21.300068\WEB-INF/lib
[DEBUG] Runwar: Initializing classloader with 17 libraries
[DEBUG] Runwar: Server Mode: war
[INFO ] Runwar: ******************************************************************************
[INFO ] Runwar: Starting - port:54437 stop-port:63778 warpath:file:{ path to project }
[INFO ] Runwar: context: / - version: 4.5.2
[INFO ] Runwar: web-dirs: ["{ project web root }"]
[DEBUG] Runwar: no aliases configured
[INFO ] Runwar: Log Directory: { path to CommandBox }.CommandBox\server\6731B043CF70325DFCC9EF20EC5E15C0-stroz-fs\adobe-10.0.21.300068\logs
[INFO ] Runwar: ******************************************************************************
[DEBUG] Runwar: Added shutdown hook
[DEBUG] Runwar: Transfer Min Size: 100
[INFO ] Runwar: XNIO-Option CONNECTION_LOW_WATER:1000000
[INFO ] Runwar: XNIO-Option WORKER_TASK_CORE_THREADS:30
[INFO ] Runwar: XNIO-Option CORK:true
[INFO ] Runwar: XNIO-Option TCP_NODELAY:true
[INFO ] Runwar: XNIO-Option WORKER_IO_THREADS:8
[INFO ] Runwar: XNIO-Option CONNECTION_HIGH_WATER:1000000
[INFO ] Runwar: XNIO-Option WORKER_TASK_MAX_THREADS:30
[DEBUG] Runwar: Setting coldfusion.home: '{ path to CommandBox }.CommandBox/server/6731B043CF70325DFCC9EF20EC5E15C0-stroz-fs/adobe-10.0.21.300068/WEB-INF/cfusion'
[DEBUG] Runwar: Setting coldfusion.classpath: '{ path to CommandBox }.CommandBox/server/6731B043CF70325DFCC9EF20EC5E15C0-stroz-fs/adobe-10.0.21.300068/WEB-INF/cfusion/lib/updates,{ path to CommandBox }.CommandBox/server/6731B043CF70325DFCC9EF20EC5E15C0-stroz-fs/adobe-10.0.21.300068/WEB-INF/cfusion/lib/,{ path to CommandBox }.CommandBox/server/6731B043CF70325DFCC9EF20EC5E15C0-stroz-fs/adobe-10.0.21.300068/WEB-INF/cfusion/lib/axis2,{ path to CommandBox }.CommandBox/server/6731B043CF70325DFCC9EF20EC5E15C0-stroz-fs/adobe-10.0.21.300068/WEB-INF/cfusion/gateway/lib/,{ path to CommandBox }.CommandBox/server/6731B043CF70325DFCC9EF20EC5E15C0-stroz-fs/adobe-10.0.21.300068/WEB-INF/cfusion/../cfform/jars,{ path to CommandBox }.CommandBox/server/6731B043CF70325DFCC9EF20EC5E15C0-stroz-fs/adobe-10.0.21.300068/WEB-INF/cfusion/../flex/jars,{ path to CommandBox }.CommandBox/server/6731B043CF70325DFCC9EF20EC5E15C0-stroz-fs/adobe-10.0.21.300068/WEB-INF/cfusion/lib/oosdk/lib,{ path to CommandBox }.CommandBox/server/6731B043CF70325DFCC9EF20EC5E15C0-stroz-fs/adobe-10.0.21.300068/WEB-INF/cfusion/lib/oosdk/classes'
[DEBUG] Runwar: Setting flex.dir (cfform): '{ path to CommandBox }.CommandBox/server/6731B043CF70325DFCC9EF20EC5E15C0-stroz-fs/adobe-10.0.21.300068/WEB-INF/cfform'
[DEBUG] Runwar: found WEB-INF: '{ path to CommandBox }.CommandBox\server\6731B043CF70325DFCC9EF20EC5E15C0-stroz-fs\adobe-10.0.21.300068\WEB-INF'
[INFO ] Runwar: Parsing '{ path to CommandBox }.CommandBox\server\6731B043CF70325DFCC9EF20EC5E15C0-stroz-fs\adobe-10.0.21.300068\WEB-INF\web.xml'
[DEBUG] Runwar: Setting coldfusion.compiler.outputDir: '{ path to CommandBox }.CommandBox\server\6731B043CF70325DFCC9EF20EC5E15C0-stroz-fs\adobe-10.0.21.300068\WEB-INF\cfclasses'
[DEBUG] Runwar: {cfx.registry.nativelibrary=cfregistry, coldfusion.compiler.outputDir={ path to CommandBox }.CommandBox\server\6731B043CF70325DFCC9EF20EC5E15C0-stroz-fs\adobe-10.0.21.300068\WEB-INF\cfclasses, cfx.report.nativelibrary=cfreport, cf.lib.path=./WEB-INF/cfusion/lib, cftags=/WEB-INF/cftags, cf.class.path=./WEB-INF/cfusion/lib/updates,./WEB-INF/cfusion/lib,./WEB-INF/cfusion/gateway/lib,./WEB-INF/flex/jars,./WEB-INF/cfform/jars,./WEB-INF/cfusion/lib/axis2}
[DEBUG] Runwar: URL rewriting is disabled
[DEBUG] Runwar: enabling path_info filter
[DEBUG] Runwar: File cache is disabled
[INFO ] Runwar: Extensions allowed by the default servlet for static files: 3gp,3gpp,7z,ai,aif,aiff,asf,asx,atom,au,avi,bin,bmp,btm,cco,crt,css,csv,deb,der,dmg,doc,docx,eot,eps,flv,font,gif,hqx,htc,htm,html,ico,img,ini,iso,jad,jng,jnlp,jpeg,jpg,js,json,kar,kml,kmz,m3u8,m4a,m4v,map,mid,midi,mml,mng,mov,mp3,mp4,mpeg,mpeg4,mpg,msi,msm,msp,ogg,otf,pdb,pdf,pem,pl,pm,png,ppt,pptx,prc,ps,psd,ra,rar,rpm,rss,rtf,run,sea,shtml,sit,svg,svgz,swf,tar,tcl,tif,tiff,tk,ts,ttf,txt,wav,wbmp,webm,webp,wmf,wml,wmlc,wmv,woff,woff2,xhtml,xls,xlsx,xml,xpi,xspf,zip,aifc,aac,apk,bak,bk,bz2,cdr,cmx,dat,dtd,eml,fla,gz,gzip,ipa,ia,indd,hey,lz,maf,markdown,md,mkv,mp1,mp2,mpe,odt,ott,odg,odf,ots,pps,pot,pmd,pub,raw,sdd,tsv,xcf,yml,yaml
[INFO ] Runwar: welcome pages in deployment manager: [index.cfm, index.html, index.htm]
[DEBUG] Runwar: Added websocket context
[INFO ] 01/22 10:57:30 INFO License Service: Flex 1.5 CF Edition enabled
[INFO ] 01/22 10:57:30 INFO Starting Flex 1.5 CF Edition
[INFO ] 01/22 10:57:30 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.core.DeploymentManagerImpl.start(DeploymentManagerImpl.java:601)
[ERROR] at runwar.Server.startServer(Server.java:522)
[ERROR] at runwar.Start.main(Start.java:123)
[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.core.DeploymentManagerImpl.start(DeploymentManagerImpl.java:601)
[ERROR] at runwar.Server.startServer(Server.java:522)
[ERROR] at runwar.Start.main(Start.java:123)
[ERROR] Caused by: java.lang.NullPointerException
[ERROR] at coldfusion.CfmServlet.init(CfmServlet.java:97)
[ERROR] at coldfusion.bootstrap.ClassloaderHelper.initServletClass(ClassloaderHelper.java:121)
[ERROR] ... 11 more
[DEBUG] Runwar: Running shutdown hook
[DEBUG] Runwar: shutdown hook:stopServer()
[INFO ] Runwar: ******************************************************************************
[INFO ] Runwar: *** stopping server 'stroz-fs' (socket 63778)
[INFO ] Runwar: ******************************************************************************
[ERROR] java.lang.NullPointerException
[ERROR] at coldfusion.server.j2ee.CFStartUpServlet.destroy(CFStartUpServlet.java:92)
[ERROR] at coldfusion.bootstrap.BootstrapServlet.destroy(BootstrapServlet.java:107)
[ERROR] at io.undertow.servlet.core.LifecyleInterceptorInvocation.proceed(LifecyleInterceptorInvocation.java:115)
[ERROR] at io.undertow.servlet.core.ManagedServlet$DefaultInstanceStrategy.invokeDestroy(ManagedServlet.java:332)
[ERROR] at io.undertow.servlet.core.ManagedServlet$DefaultInstanceStrategy.stop(ManagedServlet.java:324)
[ERROR] at io.undertow.servlet.core.ManagedServlet.stop(ManagedServlet.java:158)
[ERROR] at io.undertow.servlet.core.DeploymentManagerImpl$3.call(DeploymentManagerImpl.java:617)
[ERROR] at io.undertow.servlet.core.DeploymentManagerImpl$3.call(DeploymentManagerImpl.java:612)
[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.core.DeploymentManagerImpl.stop(DeploymentManagerImpl.java:626)
[ERROR] at runwar.Server.stopServer(Server.java:839)
[ERROR] at runwar.Server$3.run(Server.java:788)
[ERROR] io.undertow.servlet: UT015019: Failed to destroy ServletInfo{mappings=[], servletClass=class coldfusion.bootstrap.BootstrapServlet, name='ColdFusionStartUpServlet'}
java.lang.RuntimeException
at coldfusion.bootstrap.BootstrapServlet.destroy(BootstrapServlet.java:111)
at io.undertow.servlet.core.LifecyleInterceptorInvocation.proceed(LifecyleInterceptorInvocation.java:115)
at io.undertow.servlet.core.ManagedServlet$DefaultInstanceStrategy.invokeDestroy(ManagedServlet.java:332)
at io.undertow.servlet.core.ManagedServlet$DefaultInstanceStrategy.stop(ManagedServlet.java:324)
at io.undertow.servlet.core.ManagedServlet.stop(ManagedServlet.java:158)
at io.undertow.servlet.core.DeploymentManagerImpl$3.call(DeploymentManagerImpl.java:617)
at io.undertow.servlet.core.DeploymentManagerImpl$3.call(DeploymentManagerImpl.java:612)
at io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:42)
at io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43)
at io.undertow.servlet.core.DeploymentManagerImpl.stop(DeploymentManagerImpl.java:626)
at runwar.Server.stopServer(Server.java:839)
at runwar.Server$3.run(Server.java:788)
[DEBUG] Runwar: All deployments undeployed and underlying Undertow servers stopped
[DEBUG] Runwar: Stopped server
[DEBUG] Runwar: shutdown hook joining main thread
[DEBUG] Runwar: Shutdown hook finished
[DEBUG] Runwar: [DEBUG] runwar.server: Shutdown hook finished
[ERROR] [DEBUG] runwar.server: Shutdown hook finished
[DEBUG] Runwar: Server exit code is: 1