Lucee 5.0.0.235 on Tomcat 8.0.33 does not auto-deploy to additional host

After getting Lucee-5.0.0.235 to restart (somewhat) successfully
https://groups.google.com/d/topic/lucee/z2s6SNZH--U/discussion, I’m
moving on to my next issue, which is that Lucee (5.0.0.235) is not
auto-deploying to Tomcat (Tomcat 8.0.33) hosts specified in conf/server.xml.

Unless I’m forgetting a step, in the past, Lucee would deploy on a new host
based on the following configuration:

<Host name="www.example.com" appBase="webapps" unpackWARs="true" 
autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false">

  <Context path="" docBase="/Users/juan/Sites/www.example.com" />

  <Alias>example.com</Alias>

</Host>

Now it doesn’t.

Here’s what Tomcat tells me:

20-Apr-2016 13:40:25.853 INFO [localhost-startStop-1] 
org.apache.catalina.startup.HostConfig.deployDirectory Deploying web 
application directory /usr/local/apache-tomcat-8.0.33/webapps/ROOT

root-directory:/usr/local/apache-tomcat-8.0.33

classic-root-directory:/usr/local/apache-tomcat-8.0.33/lucee
===================================================================

SERVER CONTEXT

-------------------------------------------------------------------

- config:/usr/local/apache-tomcat-8.0.33/lucee-server/context

- loader-version:5.8

===================================================================


Wed Apr 20 13:40:29 EDT 2016-485 Start CFML Controller

===================================================================

WEB CONTEXT (30ea292ced120f73febaba0d9bc3b92d)

-------------------------------------------------------------------

- config:/usr/local/apache-tomcat-8.0.33/webapps/ROOT/WEB-INF/lucee

- webroot:/usr/local/apache-tomcat-8.0.33/webapps/ROOT/

- hash:30ea292ced120f73febaba0d9bc3b92d

- label:30ea292ced120f73febaba0d9bc3b92d

===================================================================


20-Apr-2016 13:40:31.663 INFO [localhost-startStop-1] 
org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web 
application directory /usr/local/apache-tomcat-8.0.33/webapps/ROOT has 
finished in 5,809 ms

Is this related to LDEV-257
https://luceeserver.atlassian.net/browse/LDEV-257 or am I missing a step?

(I did add <JarScanner scanClassPath="false"/> but I don’t think that’s the
issue here).

OS Mac OS X (10.11.4) 64bit
Servlet Container Apache Tomcat/8.0.33
Java 1.8.0_66 (Oracle Corporation) 64bit
Architecture 64bit

I also tested on Tomcat 7.0.69 with similar (unsuccessful) results.

Have you added the Lucee libs to the container classpath?

DeN

I believe so:

I copied lib/lucee.jar to a folder named lucee in the Tomcat root. Then I
edited conf/catalina.properties and replaced the default common.loader with:

common.loader=${catalina.base}/lib,${catalina.base}/lib/*.jar,${catalina.home}/lib,${catalina.home}/lib/*.jar,${catalina.base}/lucee,${catalina.base}/lucee/*.jar,${catalina.home}/lucee,${catalina.home}/lucee/*.jar

The step I was missing was adding the and nodes
to the global web.xml file (in tomcat/conf):

<servlet>
<servlet-name>LuceeServletGlobal</servlet-name>
<servlet-class>lucee.loader.servlet.LuceeServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>

<servlet>
<servlet-name>CFMLServletGlobal</servlet-name>
<servlet-class>lucee.loader.servlet.CFMLServlet</servlet-class>
<load-on-startup>2</load-on-startup>
</servlet>

<servlet>
<servlet-name>RESTServletGlobal</servlet-name>    
<servlet-class>lucee.loader.servlet.RestServlet</servlet-class>
<load-on-startup>3</load-on-startup>
</servlet> 

<servlet-mapping>
<servlet-name>LuceeServletGlobal</servlet-name>
<url-pattern>*.lucee</url-pattern>
<url-pattern>/index.lucee/*</url-pattern>
</servlet-mapping>

<servlet-mapping>
<servlet-name>CFMLServletGlobal</servlet-name>
<url-pattern>*.cfc</url-pattern>
<url-pattern>*.cfm</url-pattern>
<url-pattern>*.cfml</url-pattern>   
<url-pattern>/index.cfc/*</url-pattern>
<url-pattern>/index.cfm/*</url-pattern>
<url-pattern>/index.cfml/*</url-pattern>
</servlet-mapping>

<servlet-mapping>
<servlet-name>RESTServletGlobal</servlet-name>
<url-pattern>/rest/*</url-pattern>
</servlet-mapping>

<welcome-file-list>
<welcome-file>index.cfm</welcome-file>
<welcome-file>index.lucee</welcome-file>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
</welcome-file-list> 

Once I added that and restarted Tomcat then Lucee deployed to the Host.

I think it is still an issue? My Lucee 4.5 + Tomcat 8.5 has no issues with multiple web context… but it just not working on Lucee 5.2