It turns out to be pretty easy to get php running in my glassfish application. I've downloaded Quercus 4.0.18 from here: http://caucho.com/download/quercus-4.0.18.war, unpacked the war file and copied the 4 jar files from the WEB-INF/lib to my glassfish/domains/domain1/lib directory.
With the addition of a couple of lines to web.xml I have been able to serve a hello world php file:
<servlet>
<servlet-name>Quercus Servlet</servlet-name>
<servlet-class>com.caucho.quercus.servlet.QuercusServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>Quercus Servlet</servlet-name>
<url-pattern>*.php</url-pattern>
</servlet-mapping>
My question is what do I need to add to the pom.xml in order to add the required dependencies to my maven project and avoid messing about with unpacking war files etc...? I've not been using maven for long and am generally boggle eyed at anything other than the simplest configuration, so the simpler the answer the better for me.
Thanks.