Error starting Tomcat 8 + Lucee 5.0.0.235-RC.war

I’m trying to set up a Lucee 5 deployment on Tomcat 8 on one of my
development boxes (OS X 10.11.4, Java 1.8.0_77, Tomcat 8.0.33) by deploying
the WAR (version noted in the subject line). I’ve used the same approach
I’ve always used for deploying Lucee 4.5, Railo, and Adobe ColdFusion from
WAR files. The WAR file seems to deploy fine, but when I attempt to start
Tomcat and the Lucee 5 context, it fails to start. The following is from
the catalina.out log file:

15-Apr-2016 10:20:57.694 INFO [main]
org.apache.catalina.startup.VersionLoggerListener.log Server version:
Apache Tomcat/8.0.33
15-Apr-2016 10:20:57.705 INFO [main]
org.apache.catalina.startup.VersionLoggerListener.log Server built:
Mar 18 2016 20:31:49 UTC
15-Apr-2016 10:20:57.705 INFO [main]
org.apache.catalina.startup.VersionLoggerListener.log Server number:
8.0.33.0
15-Apr-2016 10:20:57.706 INFO [main]
org.apache.catalina.startup.VersionLoggerListener.log OS Name:
Mac OS X
15-Apr-2016 10:20:57.706 INFO [main]
org.apache.catalina.startup.VersionLoggerListener.log OS Version:
10.11.4
15-Apr-2016 10:20:57.706 INFO [main]
org.apache.catalina.startup.VersionLoggerListener.log Architecture:
x86_64
15-Apr-2016 10:20:57.707 INFO [main]
org.apache.catalina.startup.VersionLoggerListener.log Java Home:
/Library/Java/JavaVirtualMachines/jdk1.8.0_77.jdk/Contents/Home/jre
15-Apr-2016 10:20:57.707 INFO [main]
org.apache.catalina.startup.VersionLoggerListener.log JVM Version:
1.8.0_77-b03
15-Apr-2016 10:20:57.708 INFO [main]
org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor:
Oracle Corporation
15-Apr-2016 10:20:57.708 INFO [main]
org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE:
/Users/ron/opt/t8i/l5
15-Apr-2016 10:20:57.709 INFO [main]
org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME:
/Users/ron/opt/t8
15-Apr-2016 10:20:57.713 INFO [main]
org.apache.catalina.startup.VersionLoggerListener.log Command line
argument: -Djava.util.logging.config.file=./conf/logging.properties
15-Apr-2016 10:20:57.714 INFO [main]
org.apache.catalina.startup.VersionLoggerListener.log Command line
argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
15-Apr-2016 10:20:57.714 INFO [main]
org.apache.catalina.startup.VersionLoggerListener.log Command line
argument: -Djava.endorsed.dirs=/Users/ron/opt/t8/endorsed
15-Apr-2016 10:20:57.714 INFO [main]
org.apache.catalina.startup.VersionLoggerListener.log Command line
argument: -Dcatalina.base=.
15-Apr-2016 10:20:57.715 INFO [main]
org.apache.catalina.startup.VersionLoggerListener.log Command line
argument: -Dcatalina.home=/Users/ron/opt/t8
15-Apr-2016 10:20:57.715 INFO [main]
org.apache.catalina.startup.VersionLoggerListener.log Command line
argument: -Djava.io.tmpdir=./temp
15-Apr-2016 10:20:57.716 INFO [main]
org.apache.catalina.core.AprLifecycleListener.lifecycleEvent The APR based
Apache Tomcat Native library which allows optimal performance in production
environments was not found on the java.library.path:
/Users/ron/Library/Java/Extensions:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java:.
15-Apr-2016 10:20:58.005 INFO [main]
org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler
[“http-nio-8080”]
15-Apr-2016 10:20:58.046 INFO [main]
org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared
selector for servlet write/read
15-Apr-2016 10:20:58.064 INFO [main]
org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler
[“ajp-nio-8009”]
15-Apr-2016 10:20:58.067 INFO [main]
org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared
selector for servlet write/read
15-Apr-2016 10:20:58.073 INFO [main]
org.apache.catalina.startup.Catalina.load Initialization processed in 1002
ms
15-Apr-2016 10:20:58.128 INFO [main]
org.apache.catalina.core.StandardService.startInternal Starting service
Catalina
15-Apr-2016 10:20:58.129 INFO [main]
org.apache.catalina.core.StandardEngine.startInternal Starting Servlet
Engine: Apache Tomcat/8.0.33
15-Apr-2016 10:20:58.877 SEVERE [localhost-startStop-1]
org.apache.catalina.core.StandardContext.startInternal Error during
ServletContainerInitializer processing
javax.servlet.ServletException: java.io.FileNotFoundException: Could not
resolve XML resource [null] with public ID [-//Railo//DTD CFML Tag Library
1.0//EN], system ID [dtd/web-cfmtaglibrary_1_0.dtd] and base URI
[file:/Users/ron/opt/t8i/l5/webapps/ROOT/WEB-INF/lucee-server/context/library/tld/charttag.tld]
to a known, local entity.
at
org.apache.jasper.servlet.JasperInitializer.onStartup(JasperInitializer.java:105)
at
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5240)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
at
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1408)
at
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1398)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.io.FileNotFoundException: Could not resolve XML resource
[null] with public ID [-//Railo//DTD CFML Tag Library 1.0//EN], system ID
[dtd/web-cfmtaglibrary_1_0.dtd] and base URI
[file:/Users/ron/opt/t8i/l5/webapps/ROOT/WEB-INF/lucee-server/context/library/tld/charttag.tld]
to a known, local entity.
at
org.apache.tomcat.util.descriptor.LocalResolver.resolveEntity(LocalResolver.java:155)
at
com.sun.org.apache.xerces.internal.util.EntityResolver2Wrapper.resolveEntity(EntityResolver2Wrapper.java:177)
at
com.sun.org.apache.xerces.internal.impl.XMLEntityManager.resolveEntityAsPerStax(XMLEntityManager.java:997)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDriver.dispatch(XMLDocumentScannerImpl.java:1157)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDriver.next(XMLDocumentScannerImpl.java:1050)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:964)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:606)
at
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:118)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:510)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:848)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:777)
at
com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141)
at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1213)
at
com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:643)
at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1451)
at org.apache.tomcat.util.descriptor.tld.TldParser.parse(TldParser.java:76)
at org.apache.jasper.servlet.TldScanner.parseTld(TldScanner.java:279)
at org.apache.jasper.servlet.TldScanner.parseTld(TldScanner.java:271)
at
org.apache.jasper.servlet.TldScanner.scanResourcePaths(TldScanner.java:241)
at
org.apache.jasper.servlet.TldScanner.scanResourcePaths(TldScanner.java:232)
at
org.apache.jasper.servlet.TldScanner.scanResourcePaths(TldScanner.java:232)
at
org.apache.jasper.servlet.TldScanner.scanResourcePaths(TldScanner.java:232)
at
org.apache.jasper.servlet.TldScanner.scanResourcePaths(TldScanner.java:232)
at org.apache.jasper.servlet.TldScanner.scan(TldScanner.java:105)
at
org.apache.jasper.servlet.JasperInitializer.onStartup(JasperInitializer.java:103)
… 8 more

15-Apr-2016 10:20:58.935 SEVERE [localhost-startStop-1]
org.apache.catalina.core.StandardContext.startInternal Context startup
failed due to previous errors
15-Apr-2016 10:20:58.974 INFO [main]
org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler
[“http-nio-8080”]
15-Apr-2016 10:20:58.983 INFO [main]
org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler
[“ajp-nio-8009”]
15-Apr-2016 10:20:58.984 INFO [main]
org.apache.catalina.startup.Catalina.start Server startup in 910 ms

The failure seems to be related to being unable resolve an XML resource
(dtd/web-cfmtaglibrary_1_0.dtd). I have verified that the noted file is not
part of what was deployed from the WAR file.

Questions:

  1. Has anyone successfully deployed the WAR for use?
  2. Is the WAR missing one or more files needed to successfully deploy and
    use Lucee 5?

Thanks for any help you might offer.–
/ron

Ron,

Not much help here except to say I have a similar environment and was able
to deploy the WAR successfully.

Good luck,

JuanOn Friday, April 15, 2016 at 12:42:04 PM UTC-4, Ron Stewart wrote:

I’m trying to set up a Lucee 5 deployment on Tomcat 8 on one of my
development boxes (OS X 10.11.4, Java 1.8.0_77, Tomcat 8.0.33) by deploying
the WAR (version noted in the subject line). I’ve used the same approach
I’ve always used for deploying Lucee 4.5, Railo, and Adobe ColdFusion from
WAR files. The WAR file seems to deploy fine, but when I attempt to start
Tomcat and the Lucee 5 context, it fails to start. The following is from
the catalina.out log file:

Yup.

After a little more testing I found that:

  1. If I delete webapps/ROOT and have Tomcat redeploy ROOT.war, the server
    will startup. BUT, if I shutdown and startup again,
    the java.io.FileNotFoundException occurs again.
  2. If I delete webapps/ROOT, have Tomcat redeploy ROOT.war, and have a Host
    node in server.xml, Lucee does not deploy to the Host. AND, if I shutdown
    and startup again, the java.io.FileNotFoundException occurs again.

Don’t know if it’s an OS X only issue.On Saturday, April 16, 2016 at 8:50:32 AM UTC-4, Ron Stewart wrote:

Thanks for the follow-up, Juan. Seems like you have encountered the same
issue. Hopefully, one of the Lucee devs can shed more light on this.

I’m starting to think this may be a Tomcat 7- vs Tomcat 8-related issue. I
also have Tomcat 7.0.68 on one of my other development boxes, and ran
through a quick deployment of the same 5.0.0.235-RC.war file there. It
deploys, but the difference is that the server will start and run there.
The Tomcat catalina.out log file contains the following warnings, which
seem to be very much related to the errors an identical deployment under
Tomcat 8 throws:

Apr 16, 2016 3:26:42 PM org.apache.catalina.startup.TldConfig
tldScanResourcePaths
WARNING: Failed to process TLD found at
[/WEB-INF/lucee-server/context/library/tld/charttag.tld]
java.io.FileNotFoundException: Could not resolve XML resource [null] with
public ID [-//Railo//DTD CFML Tag Library 1.0//EN], system ID
[dtd/web-cfmtaglibrary_1_0.dtd] and base URI [null] to a known, local
entity.
at
org.apache.tomcat.util.descriptor.LocalResolver.resolveEntity(LocalResolver.java:154)
at
com.sun.org.apache.xerces.internal.util.EntityResolver2Wrapper.resolveEntity(EntityResolver2Wrapper.java:177)
at
com.sun.org.apache.xerces.internal.impl.XMLEntityManager.resolveEntityAsPerStax(XMLEntityManager.java:997)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDriver.dispatch(XMLDocumentScannerImpl.java:1157)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDriver.next(XMLDocumentScannerImpl.java:1050)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:964)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:606)
at
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:118)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:510)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:848)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:777)
at
com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141)
at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1213)
at
com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:643)
at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1555)
at org.apache.catalina.startup.TldConfig.tldScanStream(TldConfig.java:565)
at
org.apache.catalina.startup.TldConfig.tldScanResourcePaths(TldConfig.java:416)
at
org.apache.catalina.startup.TldConfig.tldScanResourcePaths(TldConfig.java:431)
at
org.apache.catalina.startup.TldConfig.tldScanResourcePaths(TldConfig.java:431)
at
org.apache.catalina.startup.TldConfig.tldScanResourcePaths(TldConfig.java:431)
at
org.apache.catalina.startup.TldConfig.tldScanResourcePaths(TldConfig.java:431)
at org.apache.catalina.startup.TldConfig.execute(TldConfig.java:265)
at org.apache.catalina.startup.TldConfig.lifecycleEvent(TldConfig.java:590)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at
org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
at
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5472)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
at
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1572)
at
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1562)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)

Apr 16, 2016 3:26:42 PM org.apache.catalina.startup.TldConfig
tldScanResourcePaths
WARNING: Failed to process TLD found at
[/WEB-INF/lucee-server/context/library/tld/pdftag.tld]
java.io.FileNotFoundException: Could not resolve XML resource [null] with
public ID [-//Railo//DTD CFML Tag Library 1.0//EN], system ID
[dtd/web-cfmtaglibrary_1_0.dtd] and base URI [null] to a known, local
entity.
at
org.apache.tomcat.util.descriptor.LocalResolver.resolveEntity(LocalResolver.java:154)
at
com.sun.org.apache.xerces.internal.util.EntityResolver2Wrapper.resolveEntity(EntityResolver2Wrapper.java:177)
at
com.sun.org.apache.xerces.internal.impl.XMLEntityManager.resolveEntityAsPerStax(XMLEntityManager.java:997)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDriver.dispatch(XMLDocumentScannerImpl.java:1157)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDriver.next(XMLDocumentScannerImpl.java:1050)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:964)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:606)
at
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:118)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:510)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:848)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:777)
at
com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141)
at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1213)
at
com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:643)
at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1555)
at org.apache.catalina.startup.TldConfig.tldScanStream(TldConfig.java:565)
at
org.apache.catalina.startup.TldConfig.tldScanResourcePaths(TldConfig.java:416)
at
org.apache.catalina.startup.TldConfig.tldScanResourcePaths(TldConfig.java:431)
at
org.apache.catalina.startup.TldConfig.tldScanResourcePaths(TldConfig.java:431)
at
org.apache.catalina.startup.TldConfig.tldScanResourcePaths(TldConfig.java:431)
at
org.apache.catalina.startup.TldConfig.tldScanResourcePaths(TldConfig.java:431)
at org.apache.catalina.startup.TldConfig.execute(TldConfig.java:265)
at org.apache.catalina.startup.TldConfig.lifecycleEvent(TldConfig.java:590)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at
org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
at
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5472)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
at
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1572)
at
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1562)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)

Apr 16, 2016 3:26:42 PM org.apache.catalina.startup.TldConfig execute
INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable
debug logging for this logger for a complete list of JARs that were scanned
but no TLDs were found in them. Skipping unneeded JARs during scanning can
improve startup time and JSP compilation time.

Note that these are warnings, whereas Tomcat 8 seems to encounter these and
then refuses to start.

Still hoping one of the Lucee devs will weigh in on this and shed some
light on what’s amiss.On Saturday, April 16, 2016 at 10:03:55 AM UTC-6, Juan Aguilar wrote:

Yup.

After a little more testing I found that:

  1. If I delete webapps/ROOT and have Tomcat redeploy ROOT.war, the server
    will startup. BUT, if I shutdown and startup again,
    the java.io.FileNotFoundException occurs again.
  2. If I delete webapps/ROOT, have Tomcat redeploy ROOT.war, and have a
    Host node in server.xml, Lucee does not deploy to the Host. AND, if I
    shutdown and startup again, the java.io.FileNotFoundException occurs again.

Don’t know if it’s an OS X only issue.

On Saturday, April 16, 2016 at 8:50:32 AM UTC-4, Ron Stewart wrote:

Thanks for the follow-up, Juan. Seems like you have encountered the same
issue. Hopefully, one of the Lucee devs can shed more light on this.

Thanks for the follow-up, Juan. Seems like you have encountered the same
issue. Hopefully, one of the Lucee devs can shed more light on this.On Saturday, April 16, 2016 at 5:48:40 AM UTC-6, Juan Aguilar wrote:

Whoops. Spoke too soon.

Started up fine. Then stopped and added a new host to my server.xml (See
https://groups.google.com/d/msg/lucee/ZGa10NY3iqA/RWrDOe1zBwAJ).

Now I can’t restart and am getting the same error:

16-Apr-2016 07:44:26.188 INFO [localhost-startStop-1] org.apache.catalina.
startup.HostConfig.deployWAR Deploying web application archive /usr/local/
apache-tomcat-8.0.33/webapps/ROOT.war

16-Apr-2016 07:44:26.751 SEVERE [localhost-startStop-1] org.apache.
catalina.core.StandardContext.startInternal Error during
ServletContainerInitializer processing

javax.servlet.ServletException: java.io.FileNotFoundException: Could not
resolve XML resource [null] with public ID [-//Railo//DTD CFML Tag
Library 1.0//EN], system ID [dtd/web-cfmtaglibrary_1_0.dtd] and base URI
[file:/usr/local/apache-tomcat-8.0.33/webapps/ROOT/WEB-INF/lucee-server/context/library/tld/charttag.tld]
to a known, local entity.
at org.apache.jasper.servlet.JasperInitializer.onStartup(JasperInitializer
.java:105)at org.apache.jasper.servlet.JasperInitializer.onStartup(
JasperInitializer.java:105)

I tried erasing the host and starting over but that didn’t help.

So, I think LDEV-257
https://www.google.com/url?q=https%3A%2F%2Fluceeserver.atlassian.net%2Fbrowse%2FLDEV-257&sa=D&sntz=1&usg=AFQjCNFKAnckF3FrveVdEaC9grzlSNuOkQmay
still be an issue.

On Saturday, April 16, 2016 at 7:20:31 AM UTC-4, Juan Aguilar wrote:

Ron,

Not much help here except to say I have a similar environment and was
able to deploy the WAR successfully.

Good luck,

Juan

On Friday, April 15, 2016 at 12:42:04 PM UTC-4, Ron Stewart wrote:

I’m trying to set up a Lucee 5 deployment on Tomcat 8 on one of my
development boxes (OS X 10.11.4, Java 1.8.0_77, Tomcat 8.0.33) by deploying
the WAR (version noted in the subject line). I’ve used the same approach
I’ve always used for deploying Lucee 4.5, Railo, and Adobe ColdFusion from
WAR files. The WAR file seems to deploy fine, but when I attempt to start
Tomcat and the Lucee 5 context, it fails to start. The following is from
the catalina.out log file:

Whoops. Spoke too soon.

Started up fine. Then stopped and added a new host to my server.xml (See
https://groups.google.com/d/msg/lucee/ZGa10NY3iqA/RWrDOe1zBwAJ).

Now I can’t restart and am getting the same error:

16-Apr-2016 07:44:26.188 INFO [localhost-startStop-1] org.apache.catalina.
startup.HostConfig.deployWAR Deploying web application archive /usr/local/
apache-tomcat-8.0.33/webapps/ROOT.war

16-Apr-2016 07:44:26.751 SEVERE [localhost-startStop-1] org.apache.catalina.
core.StandardContext.startInternal Error during ServletContainerInitializer
processing

javax.servlet.ServletException: java.io.FileNotFoundException: Could not
resolve XML resource [null] with public ID [-//Railo//DTD CFML Tag Library
1.0//EN], system ID [dtd/web-cfmtaglibrary_1_0.dtd] and base URI
[file:/usr/local/apache-tomcat-8.0.33/webapps/ROOT/WEB-INF/lucee-server/context/library/tld/charttag.tld]
to a known, local entity.
at org.apache.jasper.servlet.JasperInitializer.onStartup(JasperInitializer.
java:105)at org.apache.jasper.servlet.JasperInitializer.onStartup(
JasperInitializer.java:105)

I tried erasing the host and starting over but that didn’t help.

So, I think LDEV-257
https://www.google.com/url?q=https%3A%2F%2Fluceeserver.atlassian.net%2Fbrowse%2FLDEV-257&sa=D&sntz=1&usg=AFQjCNFKAnckF3FrveVdEaC9grzlSNuOkQmay
still be an issue.On Saturday, April 16, 2016 at 7:20:31 AM UTC-4, Juan Aguilar wrote:

Ron,

Not much help here except to say I have a similar environment and was able
to deploy the WAR successfully.

Good luck,

Juan

On Friday, April 15, 2016 at 12:42:04 PM UTC-4, Ron Stewart wrote:

I’m trying to set up a Lucee 5 deployment on Tomcat 8 on one of my
development boxes (OS X 10.11.4, Java 1.8.0_77, Tomcat 8.0.33) by deploying
the WAR (version noted in the subject line). I’ve used the same approach
I’ve always used for deploying Lucee 4.5, Railo, and Adobe ColdFusion from
WAR files. The WAR file seems to deploy fine, but when I attempt to start
Tomcat and the Lucee 5 context, it fails to start. The following is from
the catalina.out log file:

Out of curiosity, this evening I tried deploying on my Linux system with
Java 8, Tomcat 8, and the 5.0.0.235-RC.war file. The behavior there
(successful expansion of the WAR file, failure to start) is identical to
what I have shown above on OS X. It seems that this behavior is not
specific to OS X.

If I get a chance tomorrow, I will try Tomcat 7 on that same Linux system.On Saturday, April 16, 2016 at 3:38:34 PM UTC-6, Ron Stewart wrote:

I’m starting to think this may be a Tomcat 7- vs Tomcat 8-related issue. I
also have Tomcat 7.0.68 on one of my other development boxes, and ran
through a quick deployment of the same 5.0.0.235-RC.war file there. It
deploys, but the difference is that the server will start and run there.
The Tomcat catalina.out log file contains the following warnings, which
seem to be very much related to the errors an identical deployment under
Tomcat 8 throws:

Apr 16, 2016 3:26:42 PM org.apache.catalina.startup.TldConfig
tldScanResourcePaths
WARNING: Failed to process TLD found at
[/WEB-INF/lucee-server/context/library/tld/charttag.tld]
java.io.FileNotFoundException: Could not resolve XML resource [null] with
public ID [-//Railo//DTD CFML Tag Library 1.0//EN], system ID
[dtd/web-cfmtaglibrary_1_0.dtd] and base URI [null] to a known, local
entity.
at
org.apache.tomcat.util.descriptor.LocalResolver.resolveEntity(LocalResolver.java:154)
at
com.sun.org.apache.xerces.internal.util.EntityResolver2Wrapper.resolveEntity(EntityResolver2Wrapper.java:177)
at
com.sun.org.apache.xerces.internal.impl.XMLEntityManager.resolveEntityAsPerStax(XMLEntityManager.java:997)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDriver.dispatch(XMLDocumentScannerImpl.java:1157)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDriver.next(XMLDocumentScannerImpl.java:1050)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:964)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:606)
at
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:118)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:510)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:848)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:777)
at
com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141)
at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1213)
at
com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:643)
at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1555)
at org.apache.catalina.startup.TldConfig.tldScanStream(TldConfig.java:565)
at
org.apache.catalina.startup.TldConfig.tldScanResourcePaths(TldConfig.java:416)
at
org.apache.catalina.startup.TldConfig.tldScanResourcePaths(TldConfig.java:431)
at
org.apache.catalina.startup.TldConfig.tldScanResourcePaths(TldConfig.java:431)
at
org.apache.catalina.startup.TldConfig.tldScanResourcePaths(TldConfig.java:431)
at
org.apache.catalina.startup.TldConfig.tldScanResourcePaths(TldConfig.java:431)
at org.apache.catalina.startup.TldConfig.execute(TldConfig.java:265)
at org.apache.catalina.startup.TldConfig.lifecycleEvent(TldConfig.java:590)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at
org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
at
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5472)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
at
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1572)
at
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1562)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)

Apr 16, 2016 3:26:42 PM org.apache.catalina.startup.TldConfig
tldScanResourcePaths
WARNING: Failed to process TLD found at
[/WEB-INF/lucee-server/context/library/tld/pdftag.tld]
java.io.FileNotFoundException: Could not resolve XML resource [null] with
public ID [-//Railo//DTD CFML Tag Library 1.0//EN], system ID
[dtd/web-cfmtaglibrary_1_0.dtd] and base URI [null] to a known, local
entity.
at
org.apache.tomcat.util.descriptor.LocalResolver.resolveEntity(LocalResolver.java:154)
at
com.sun.org.apache.xerces.internal.util.EntityResolver2Wrapper.resolveEntity(EntityResolver2Wrapper.java:177)
at
com.sun.org.apache.xerces.internal.impl.XMLEntityManager.resolveEntityAsPerStax(XMLEntityManager.java:997)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDriver.dispatch(XMLDocumentScannerImpl.java:1157)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDriver.next(XMLDocumentScannerImpl.java:1050)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:964)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:606)
at
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:118)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:510)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:848)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:777)
at
com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141)
at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1213)
at
com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:643)
at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1555)
at org.apache.catalina.startup.TldConfig.tldScanStream(TldConfig.java:565)
at
org.apache.catalina.startup.TldConfig.tldScanResourcePaths(TldConfig.java:416)
at
org.apache.catalina.startup.TldConfig.tldScanResourcePaths(TldConfig.java:431)
at
org.apache.catalina.startup.TldConfig.tldScanResourcePaths(TldConfig.java:431)
at
org.apache.catalina.startup.TldConfig.tldScanResourcePaths(TldConfig.java:431)
at
org.apache.catalina.startup.TldConfig.tldScanResourcePaths(TldConfig.java:431)
at org.apache.catalina.startup.TldConfig.execute(TldConfig.java:265)
at org.apache.catalina.startup.TldConfig.lifecycleEvent(TldConfig.java:590)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at
org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
at
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5472)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
at
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1572)
at
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1562)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)

Apr 16, 2016 3:26:42 PM org.apache.catalina.startup.TldConfig execute
INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable
debug logging for this logger for a complete list of JARs that were scanned
but no TLDs were found in them. Skipping unneeded JARs during scanning can
improve startup time and JSP compilation time.

Note that these are warnings, whereas Tomcat 8 seems to encounter these
and then refuses to start.

Still hoping one of the Lucee devs will weigh in on this and shed some
light on what’s amiss.

On Saturday, April 16, 2016 at 10:03:55 AM UTC-6, Juan Aguilar wrote:

Yup.

After a little more testing I found that:

  1. If I delete webapps/ROOT and have Tomcat redeploy ROOT.war, the server
    will startup. BUT, if I shutdown and startup again,
    the java.io.FileNotFoundException occurs again.
  2. If I delete webapps/ROOT, have Tomcat redeploy ROOT.war, and have a
    Host node in server.xml, Lucee does not deploy to the Host. AND, if I
    shutdown and startup again, the java.io.FileNotFoundException occurs again.

Don’t know if it’s an OS X only issue.

On Saturday, April 16, 2016 at 8:50:32 AM UTC-4, Ron Stewart wrote:

Thanks for the follow-up, Juan. Seems like you have encountered the same
issue. Hopefully, one of the Lucee devs can shed more light on this.