PDA

View Full Version : Error deploying Quercus 4.0.2 + Glassfish v3 + Servlet 3.0 web.xml


domdorn
12-24-2009, 02:18 PM
Hi,

when trying to deploy a simple app, meaning

/index.php
/WEB-INF/web.xml
/WEB-INF/lib/resin.jar

with web.xml being the following:

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
version="3.0">


<description>Quercus Servlet 3.0 Test</description>


<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>
</web-app>


I get an error while deploying:

Error An error has occurred
Exception while deploying the app : java.lang.RuntimeException: WEB9033: Unable to load class with name [com.caucho.jms.queue.AbstractTopic], reason: java.lang.NoClassDefFoundError: javax/jms/Topic


When I change the heading of the web.xml to
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
"http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">

<web-app>

it works.. but I want to use the new features introduced by servlet 3.0

If necessary, I can provide the sample webapp, but all thats necessary is provided in this post.

decristo
01-04-2010, 02:06 PM
Hi,

I have the same error when using servlet 2.5
(also on glassfishv3+quercus 4.0.2)