Once, there are lot’s of java APIs and portlets for develop big project, But lack of module for common websites: As opposite, php have too much module which well prepared for public:
sympony ..wordpress,joomla, drupal,xoops….too much to mention….
Now, JavaScript components based framework, such as Angular and React, Which enable the java world with a new fashion of development: Using Components in Java framework.
From Grails,Spring Boot, Jhipster to Liferay, They all now aim to integrated with components based frameworkReact, Angular.
We don’t need to mention that most biggest sites using python, ruby are run on JVM with java mixed, and there are tons other JVM framework like Lift , Play!