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

84 views
Skip to first unread message

Juan Aguilar

unread,
Apr 20, 2016, 1:45:33 PM4/20/16
to Lucee
After getting Lucee-5.0.0.235 to restart (somewhat) successfully, 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 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

Juan Aguilar

unread,
Apr 20, 2016, 4:33:32 PM4/20/16
to Lucee
I also tested on Tomcat 7.0.69 with similar (unsuccessful) results.

denstar

unread,
Apr 20, 2016, 6:53:04 PM4/20/16
to lucee

Have you added the Lucee libs to the container classpath?

DeN

--
Love Lucee? Become a supporter and be part of the Lucee project today! - http://lucee.org/supporters/become-a-supporter.html
---
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/364d481b-77d8-412e-8f33-a47fad2d785b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Juan Aguilar

unread,
Apr 21, 2016, 4:03:37 PM4/21/16
to Lucee
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

Juan Aguilar

unread,
Apr 22, 2016, 11:41:42 AM4/22/16
to Lucee
The step I was missing was adding the <servlet> and <servlet-mapping> 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.

Igal @ Lucee.org

unread,
Apr 22, 2016, 11:46:11 AM4/22/16
to lu...@googlegroups.com
yup, that will do it.  if Tomcat "doesn't know" about Lucee then Tomcat can not forward requests to Lucee.

Igal Sapir
Lucee Core Developer
Lucee.org

--
Love Lucee? Become a supporter and be part of the Lucee project today! - http://lucee.org/supporters/become-a-supporter.html
---
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.

Juan Aguilar

unread,
Apr 22, 2016, 2:13:59 PM4/22/16
to Lucee
It's worth noting that this step is missing in this guide: http://docs.lucee.org/guides/running-lucee/osx/installing-tomcat-and-lucee-on-os-x-using-the-lucee-war-file.html.

I'll try to find the time to fork the docs and improve this section.

Thanks!

Andrew Dixon

unread,
Apr 22, 2016, 2:31:05 PM4/22/16
to lu...@googlegroups.com
Hi Juan,

You don't need to fork it, you can edit it directly from the page, just click the pencil icon.

Kind regards,

Andrew

--
Love Lucee? Become a supporter and be part of the Lucee project today! - http://lucee.org/supporters/become-a-supporter.html
---
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.

Juan Aguilar

unread,
Apr 22, 2016, 3:42:01 PM4/22/16
to Lucee

Hmm... when I click the pencil icon, I get the following warning:


You need to fork this repository to propose changes.

Sorry, you’re not able to edit this repository directly— you need to fork it and propose your changes from there instead.


denstar

unread,
Apr 26, 2016, 12:16:20 AM4/26/16
to lu...@googlegroups.com
Hey, glad to see you got it sorted!

As for the forking thing, yeah, you'll see that if you don't have write
access, but it's got a smooth flow that lets you edit and do a pull
request right from the web, so it's pretty painless.

DeN

On 04/22/2016 01:42 PM, Juan Aguilar wrote:
> Hmm... when I click the pencil icon, I get the following warning:
>
>
> *You need to fork this repository to propose changes.*
>
> Sorry, you’re not able to edit this repository directly— you need to
> fork it and propose your changes from there instead.
>
>
> <https://lh3.googleusercontent.com/-7gIrzocw8cY/Vxp-O7vK9PI/AAAAAAAABBs/JQoxFcAk0cki-JhFl3AoROdzFMXigwQJACLcB/s1600/Screen%2BShot%2B2016-04-22%2Bat%2B3.39.11%2BPM.png>
>
>
> On Friday, April 22, 2016 at 2:31:05 PM UTC-4, Andrew Dixon wrote:
>
> Hi Juan,
>
> You don't need to fork it, you can edit it directly from the page,
> just click the pencil icon.
>
> Kind regards,
>
> Andrew
> about.me <http://about.me/andrew_dixon> - mso
> <http://www.mso.net> - Lucee Association Member <http://lucee.org>
>
> --
> Love Lucee? Become a supporter and be part of the Lucee project today! -
> http://lucee.org/supporters/become-a-supporter.html
> ---
> 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
> <mailto:lucee+un...@googlegroups.com>.
> To post to this group, send email to lu...@googlegroups.com
> <mailto:lu...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/lucee/d893365f-2683-40c4-a118-a743b0fa53e8%40googlegroups.com
> <https://groups.google.com/d/msgid/lucee/d893365f-2683-40c4-a118-a743b0fa53e8%40googlegroups.com?utm_medium=email&utm_source=footer>.
Reply all
Reply to author
Forward
0 new messages