Install probelm with Lucee on Tomcat/Win10

#1

I am trying to install Lucee 5.2.3.35 on Tomcat 8.5 on Windows 10.

I have deployed the WAR but when I navigate to the context path to see how it went I get an error. (see below). I also tried setting up the host in server.xml and the vhost in apache 2.4 as I usually do (and that works for other devs sites) and still got the same error when navigating to the URL;

No changes have been made to the lucee set up. just deployed.

This is the error message from tomca about it:

HTTP Status [500] – [Internal Server Error]

Type Exception Report

Message java.lang.NullPointerException

Description The server encountered an unexpected condition that prevented it from fulfilling the request.

Exception

javax.servlet.ServletException: java.lang.NullPointerException
	lucee.loader.engine.CFMLEngineFactory.initEngine(CFMLEngineFactory.java:386)
	lucee.loader.engine.CFMLEngineFactory.initEngineIfNecessary(CFMLEngineFactory.java:279)
	lucee.loader.engine.CFMLEngineFactory.getInstance(CFMLEngineFactory.java:175)
	lucee.loader.engine.CFMLEngineFactory.getInstance(CFMLEngineFactory.java:213)
	lucee.loader.servlet.CFMLServlet.init(CFMLServlet.java:42)
	org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:80)
	org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342)
	org.apache.coyote.ajp.AjpProcessor.service(AjpProcessor.java:486)
	org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
	org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:861)
	org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1455)
	org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
	java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
	java.lang.Thread.run(Unknown Source)

Root Cause

java.lang.NullPointerException
	lucee.loader.osgi.BundleUtil.installBundle(BundleUtil.java:90)
	lucee.loader.osgi.BundleUtil.addBundle(BundleUtil.java:81)
	lucee.loader.osgi.BundleUtil.addBundle(BundleUtil.java:49)
	lucee.loader.osgi.BundleLoader.loadBundles(BundleLoader.java:153)
	lucee.loader.engine.CFMLEngineFactory.initEngine(CFMLEngineFactory.java:367)
	lucee.loader.engine.CFMLEngineFactory.initEngineIfNecessary(CFMLEngineFactory.java:279)
	lucee.loader.engine.CFMLEngineFactory.getInstance(CFMLEngineFactory.java:175)
	lucee.loader.engine.CFMLEngineFactory.getInstance(CFMLEngineFactory.java:213)
	lucee.loader.servlet.CFMLServlet.init(CFMLServlet.java:42)
	org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:80)
	org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342)
	org.apache.coyote.ajp.AjpProcessor.service(AjpProcessor.java:486)
	org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
	org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:861)
	org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1455)
	org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
	java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
	java.lang.Thread.run(Unknown Source)

Note The full stack trace of the root cause is available in the server logs.
Apache Tomcat/8.5.15

Thanks for any help.
Magnus

#2

What I am wondering is what, if anything, is this message telling me so I can take some steps to get it working?

Update lucee to java 8 problem
#3

does http://localhost:8888/lucee/admin/server.cfm work?

#4

That gets me an “Unable to Connect” message. I should clarify that I have deployed with the WAR on top of Tomcat and not used the installer.

#5

try this

  1. shut down apache and tomcat,
  2. purge all the various log file directories
  3. start apache and tomcat
  4. make a request

then have a look in the fresh set of logs for errors

#6

Stopped and restarted tomcat and apache, cleared the logs and made a new request.

There are numerous instances of this error. Other instances reference the other sites running on the server and sometimes the CFMLServet or the RESTServlet. (The server is also running OpenBD sites)

12-Oct-2017 21:21:09.802 SEVERE [earshot.local-startStop-1] org.apache.catalina.core.StandardContext.loadOnStartup Servlet [LuceeServlet] in web application [/lucee.local] threw load() exception
java.lang.NullPointerException
at lucee.loader.osgi.BundleUtil.installBundle(BundleUtil.java:90)
at lucee.loader.osgi.BundleUtil.addBundle(BundleUtil.java:81)
at lucee.loader.osgi.BundleUtil.addBundle(BundleUtil.java:49)
at lucee.loader.osgi.BundleLoader.loadBundles(BundleLoader.java:153)
at lucee.loader.engine.CFMLEngineFactory.initEngine(CFMLEngineFactory.java:367)
at lucee.loader.engine.CFMLEngineFactory.initEngineIfNecessary(CFMLEngineFactory.java:279)
at lucee.loader.engine.CFMLEngineFactory.getInstance(CFMLEngineFactory.java:175)
at lucee.loader.engine.CFMLEngineFactory.getInstance(CFMLEngineFactory.java:213)
at lucee.loader.servlet.LuceeServlet.init(LuceeServlet.java:42)
at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1183)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1099)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:989)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4931)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5241)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:752)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:728)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:952)
at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1823)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

#7

I ran across this exception after a Windows 2016 installation and it was due to inadequate file system permissions. I was running the Tomcat/Lucee service as a specific user (good practice) but hadn’t given it sufficient permissions on the Lucee/JDK/application folders.