My experience with the ecosystem is the opposite. The ecosystem is so good, and so mature, it's hard to argue for other technologies at my current job.
For any fancy new language/framework, you must show you understand its performance issues, pitfalls, metrics and monitoring tools, etc. Few languages beat Java at this for serious work.
Overall I'd prefer to use just about anything else in pretty much any domain where Java would be a consideration. It may not be an inherent problem with the language itself, but its ecosystem in my experience leaves it as one of the worst general purpose languages in terms of productivity while not offering a sufficient advantage to make up for that.
All that being said, Java is still good enough most of the time.