Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: How to install on MacOS? It doesn't work...
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!
Do I have to do something else to start the server on localhost? It doesn't work!
Daniele Assenza:
You'll need to have Java (8 or 11) installed as well.
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!
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
I have installed Java again and followed your instructions. Still not working...
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...
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...
I have installed JDK 11 (as written in the documentation guide).
This is what is in catalina.out:
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!
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!
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?
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?
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.
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.
- 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.
- 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.
There are no more logfiles. I've already checked.
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.
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.
Copyright © 2025 Liferay, Inc
• Privacy Policy
Powered by Liferay™