RE: How to install on MacOS? It doesn't work...

Daniele Assenza, modified 5 Years ago. New Member Posts: 5 Join Date: 1/30/20 Recent Posts
Hello, I have unzipped the Tomcat bundle and tried to start the server via startup.sh.
Do I have to do something else to start the server on localhost? It doesn't work!
thumbnail
Olaf Kock, modified 5 Years ago. Liferay Legend Posts: 6441 Join Date: 9/23/08 Recent Posts
Daniele Assenza:

Hello, I have unzipped the Tomcat bundle and tried to start the server via startup.sh.
Do I have to do something else to start the server on localhost? It doesn't work!
You'll need to have Java (8 or 11) installed as well.
Try starting from the terminal, cd into tomcat/bin and execute "./catalina.sh run", which will run Tomcat (thus Liferay) in the foreground, so that you can observe any error messages right then and there. Ctrl-C to shutdown the server in that Terminal
Daniele Assenza, modified 5 Years ago. New Member Posts: 5 Join Date: 1/30/20 Recent Posts
I have installed Java again and followed your instructions. Still not working...
thumbnail
David H Nebinger, modified 5 Years ago. Liferay Legend Posts: 14933 Join Date: 9/2/06 Recent Posts
Hi, Daniele, I do all of my work on MacOS so I know for a fact Liferay will run.

Which JDK did you install? When you are in the terminal and issue the ./startup.sh from the tomcat/bin folder, do you get any output in the terminal? Is there anything in tomcat's logs/catalina.out?


We'll need more context to understand what you're seeing and help resolve the issue...
Daniele Assenza, modified 5 Years ago. New Member Posts: 5 Join Date: 1/30/20 Recent Posts
I have installed JDK 11 (as written in the documentation guide).
This is what is in catalina.out:
02-Feb-2020 09:08:04.417 INFO [main] org.apache.catalina.startup.Catalina.load Server initialization in [24,796] milliseconds
02-Feb-2020 09:09:05.128 SEVERE [main] org.apache.catalina.core.StandardContext.startInternal One or more listeners failed to start. Full details will be found in the appropriate container log file
02-Feb-2020 09:09:05.525 SEVERE [main] org.apache.catalina.core.StandardContext.startInternal Context [] startup failed due to previous errors
02-Feb-2020 09:09:22.414 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in [77,991] milliseconds
The only thing I get is:
HTTP Status 404 – Not FoundType Status ReportMessage Not foundDescription The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.Apache Tomcat/9.0.17

Thanks in advance for your help!
thumbnail
David H Nebinger, modified 5 Years ago. Liferay Legend Posts: 14933 Join Date: 9/2/06 Recent Posts
Okay, so one thing you'll learn about Liferay, the last error you see is often not the issue.

I always start from the top of the file and work down, looking for the first error I find and tackling that.

Based on the two SEVERE lines here, I'm guessing there's a database configuration out of whack or a directory permissions issue, but those are just guesses.

What's the first error you get in the log?
Daniele Assenza, modified 5 Years ago. New Member Posts: 5 Join Date: 1/30/20 Recent Posts
It was the whole log file.
I've tried again and again.
Can you please show me all the steps to install Portal on macOS? The docs guide has not helped me too much.
Thanks.
thumbnail
Christoph Rabel, modified 5 Years ago. Liferay Legend Posts: 1555 Join Date: 9/24/09 Recent Posts
- Are there other logfiles? Maybe they contain some useful information.
- Maybe the ports are in use? Could you check?
On Linux I would use e.g. "netstat -tulpn" to get a list. Look for 8080, 8009, 8005. If these ports are already in use, you would either need to stop the services using them or change the Liferay tomcat server.xml to use other, free ports.
- Maybe try to remove the whole Liferay folder and unpack it scratch. Maybe something broke when you tried to get it running.
Daniele Assenza, modified 5 Years ago. New Member Posts: 5 Join Date: 1/30/20 Recent Posts
There are no more logfiles. I've already checked.
thumbnail
David H Nebinger, modified 5 Years ago. Liferay Legend Posts: 14933 Join Date: 9/2/06 Recent Posts
How are you starting? Like double-clicking on the startup.sh script?


Try launching from the terminal by cd'ing into the tomcat/bin folder and issuing "./startup.sh" to see what happens. If there is no log, it may be failing even before tomcat is given a chance to start.