Link to home
Start Free TrialLog in
Avatar of BlueKnight66
BlueKnight66Flag for United States of America

asked on

Installing Lucee Server as ROOT app in Tomcat on Mac

Using Homebrew on my Mac I installed Tomcat. Next I downloaded and installed Lucee war file into webapps folder.  Lucee ran fine with the exception of images not loading due to it not being at the root.  In Tomcat manager I removed the original Root and Lucee apps.  Created a new "apps" folder, installed Lucee.war, created a ROOT.xml file in localhost folder of Tomcat pathing out the new Lucee folder.  Stopped and restarted Tomcat.  Localhost:8080 is now just a blank screen...no errors.  Open Tomcat manager, tried to start "/" in application listing.  Error message states can't start component.  Please help.  I followed these directions ( http://brianflove.com/2015/03/05/lucee-on-mac-os-x-yosemite-quick-start/ ) making all the correct changes to the newer versions of both Tomcat and Lucee.
Tomcat = 8.0.32
Lucee = 4.5.3.004
JVM = 1.8.0_74-b02
Mac OS X = 10.11.3
Avatar of gheist
gheist
Flag of Belgium image

You need to choose between two mutually exclusive options:
* auto-deply by placng war into webapps
* deploy a war file from anywhere using xml descriptor
Avatar of BlueKnight66

ASKER

gheist,
I did both, the first option worked fine BUT did not properly display the images and wasn't at the root (localhost:8080)

The second option I did resulting in a blank screen.  In the Tomcat's application manager an error would result when trying to start Lucee.

What I need help in is trying to troubleshoot why the second option you mentioned will not work when a XML descriptor was used that I am to believe was used properly and placed properly
SOLUTION
Avatar of gheist
gheist
Flag of Belgium image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thank you for your replies.  Okay, I did as you asked.  Found the following error in Catalina.out:

26-Feb-2016 09:43:27.357 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDescriptor Deploying configuration descriptor /usr/local/Cellar/tomcat/8.0.32/libexec/conf/Catalina/localhost/ROOT.xml
26-Feb-2016 09:43:27.360 SEVERE [localhost-startStop-1] org.apache.tomcat.util.digester.Digester.fatalError Parse Fatal Error at line 2 column 93: Element type "Context" must be followed by either attribute specifications, ">" or "/>".
 org.xml.sax.SAXParseException; lineNumber: 2; columnNumber: 93; Element type "Context" must be followed by either attribute specifications, ">" or "/>".

The following is the ROOT.xml (only 2 lines):

<?xml version="1.0" encoding="UTF-8"?>
<Context docBase="/usr/local/Cellar/tomcat/8.0.32/libexec/apps/lucee-4.5.3.004” reloadable="true"/>

I did add both path="" and path="/" but still no change.

Thank you
catalina_out.pdf
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I just came home 24h after my first posting and find you solved everything. Good job ;)
gheist pointed me in the direction to look so I could troubleshoot my own problem.  He gave me the tools and I fixed it on my own.