PDA

View Full Version : Glassfishv3 and Quercus 4.0.11


vj115
01-19-2011, 05:03 PM
Hi All,

I'm new to PHP and glassfish.

I'm trying to configure quercus with glassfish and have been failing miserably.

I've loaded Quercus 4.0.11 jar files (inject-16.jar, javamail-141.jar, resin.jar) to the lib folder of Glassfishv3.

I uploaded a very basic php file with just a simple Hello World echo statement.

all the other html statements were recognized and not php code.

then I add the below to default-web.xml

<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>
<welcome-file-list>
<welcome-file>index.php</welcome-file>
</welcome-file-list>

now I'm getting an error saying

HTTP Status 404 - Servlet Quercus Servlet is not available

type Status report

messageServlet Quercus Servlet is not available

descriptionThe requested resource (Servlet Quercus Servlet is not available) is not available.

GlassFish Server Open Source Edition 3.0.1

any help with this is appreciated.

Thanks,

Vj

domdorn
01-20-2011, 10:23 AM
we haven't tested installing quercus server wide on glassfish.
please try to install it per webapp and see if it works there.