Multiple hosts with Lucee 5 express not working

180 views
Skip to first unread message

Phil Haeusler

unread,
May 31, 2016, 4:29:16 AM5/31/16
to Lucee
I am unable to get multiple hosts working with Tomcat in the Lucee 5 express install on Mac.  This seems to have changed between 4.5 and 5

Adding a new host entry into server.conf such as

      <Host name="mysite.local" appBase="webapps">

            <Context name="" docBase="/Users/sites/mysite">
              <JarScanner scanClassPath="false"/>
            </Context>

      </Host>

results in the stacktrace below as Tomcat is trying to start the new Host.  Without the JarScanner line, Tomcat fails even earlier.

Any hints for getting multiple virtual hosts running under the Lucee 5 express install?

Thanks
Phil


31-May-2016 08:49:59.664 SEVERE [main] org.apache.catalina.startup.Catalina.start The required Server component failed to start so Tomcat is unable to start.

 org.apache.catalina.LifecycleException: Failed to start component [StandardServer[8005]]

at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)

at org.apache.catalina.startup.Catalina.start(Catalina.java:625)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:497)

at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:351)

at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:485)

Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardService[Catalina]]

at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)

at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:760)

at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)

... 7 more

Caused by: org.apache.catalina.LifecycleException: Failed to start component [org.apache.catalina.mapper.MapperListener@78c03f1f]

at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)

at org.apache.catalina.core.StandardService.startInternal(StandardService.java:450)

at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)

... 9 more

Caused by: java.lang.NullPointerException

at org.apache.catalina.mapper.Mapper.slashCount(Mapper.java:1465)

at org.apache.catalina.mapper.Mapper.addContextVersion(Mapper.java:277)

at org.apache.catalina.mapper.MapperListener.registerContext(MapperListener.java:380)

at org.apache.catalina.mapper.MapperListener.registerHost(MapperListener.java:302)

at org.apache.catalina.mapper.MapperListener.startInternal(MapperListener.java:110)

at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)

... 11 more



Michael Offner

unread,
Jun 1, 2016, 1:30:45 AM6/1/16
to lucee

Seems unreladed to Lucee, most likely a typo somewhere in the configuration, it is complaining about slashes...
Express itself has not changed between 4.5 and 5.

Micha

--
Win a ticket to dev.objective from Lucee via Twitter, see http://bit.ly/1UbTMWj for details, good luck and see you there...
---
You received this message because you are subscribed to the Google Groups "Lucee" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lucee+un...@googlegroups.com.
To post to this group, send email to lu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lucee/9e77e778-a02f-45f4-a73c-112269c9abf7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Geoff Parkhurst

unread,
Jun 2, 2016, 4:05:56 AM6/2/16
to lu...@googlegroups.com
Me too. Same error when adding a 2nd <Host> (5.0.0.252 on a mac)

Here's the Host entry:

<Host name="mysite.localhost" appBase="webapps">
<Context path="" docBase="/Users/geoff/web/ecom/wwwroot/" />
</Host>

And here's the error on startup:

02-Jun-2016 08:55:42.259 SEVERE [Catalina-startStop-1]
org.apache.catalina.core.ContainerBase.startInternal A child container
failed during start

java.util.concurrent.ExecutionException:
org.apache.catalina.LifecycleException: Failed to start component
[StandardEngine[Catalina].StandardHost[mysite.localhost].StandardContext[]]
at java.util.concurrent.FutureTask.report(FutureTask.java:122)
at java.util.concurrent.FutureTask.get(FutureTask.java:192)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:917)
at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:868)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1409)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1399)
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: org.apache.catalina.LifecycleException: Failed to start
component [StandardEngine[Catalina].StandardHost[mysite.localhost].StandardContext[]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
... 6 more
Caused by: java.lang.IllegalArgumentException: URI scheme is not "file"
at java.io.File.<init>(File.java:421)
at org.apache.tomcat.util.scan.StandardJarScanner.process(StandardJarScanner.java:318)
at org.apache.tomcat.util.scan.StandardJarScanner.scan(StandardJarScanner.java:244)
at org.apache.catalina.startup.ContextConfig.processJarsForWebFragments(ContextConfig.java:1855)
at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1119)
at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:771)
at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:305)
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:5095)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
... 6 more
> https://groups.google.com/d/msgid/lucee/CAG%2BEEBxz_SmO7PvZSME2Pr_DdSTeZ1NnxY7PLLuNt-mCtc0kbw%40mail.gmail.com.

Phil Haeusler

unread,
Jun 2, 2016, 6:45:07 PM6/2/16
to Lucee
Hi

In my tests, adding the 

<JarScanner scanClassPath="false"/>

as a child of <Context> gets past the 

Caused by: java.lang.IllegalArgumentException: URI scheme is not "file" 

exception.  But that leads to the null pointer exception i posted originally.  

Be great to find a solution
Phil

Duncan Isaksen-Loxton

unread,
Jun 17, 2016, 8:20:36 AM6/17/16
to Lucee
Phil/Geoff

Did you find a solution to this? 

I am getting the exact same issue on a clean 5.0.0.252 install. 

Thanks
Reply all
Reply to author
Forward
0 new messages