grails tomcat plugin deploying to liferay?
Is there a way to deploy a grails application with grails deploy
to liferay, instead of tomcat? Tomcat 6 comes with the manager
and host manager
app, which let you do a remote deployment, but Liferay is missing these applications.
This grails plug开发者_JAVA百科in seems to require the manager app running, but if I copy the folders from a vanilla tomcat instance to liferay, I get
java.lang.SecurityException: Servlet of class org.apache.catalina.manager.HTMLManagerServlet is privileged and cannot be loaded by this web application
when I try to connect to manager/html
The standard manager deployment on Tomcat also has a context definition (which it appears that you're missing) that declares the context as 'privileged' and therefore able to do privileged stuff. The problem you're going to have is that you do not deploy Liferay plugins (including portlets) to Tomcat, you need to deploy to a location watched by Liferay and let Liferay do the deployment.
In my opinion you'll need to use grails war
rather than deploy, and copy the WAR file to the Liferay/deploy directory
精彩评论