What servlet version is used by Quercus?

114 views
Skip to first unread message

Michael Prentice

unread,
Mar 6, 2014, 3:11:24 PM3/6/14
to caucho-...@googlegroups.com
Currently, I have an application which is running Quercus 3.0.15 but we are getting issues with it when trying to run with the latest stable Jetty 9 due to it depending on javax.servlet-3.0.0.

What servlet version is used in Quercus 3.0.15? 
I can see that it specifically includes javax.servlet in the .jar for 3.0.15. Is this using Servlet 2.5 or something older?

Does the latest Quercus 4.x release use the javax-servlet-3.0.0 version? 
I can see that the Servlets in the Quercus 4.x source import javax.servlet:
import javax.servlet.ServletConfig;
import javax.servlet.ServletContext;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpServlet;

Are they compatible with the Servlet 3.0 spec?

Thank you,

Michael Prentice

Nam Nguyen

unread,
Mar 6, 2014, 3:26:39 PM3/6/14
to caucho-...@googlegroups.com
Hi Michael,

Quercus 3.0.15 is a very old release :). With Quercus 4.x, we develop
against Java EE 6, which I believe is Servlet 3.0. Quercus uses only
the basic servlet features, so it should run with Servlet 2.5. If not,
then it's a bug. What's the exact error message that you are getting?

-- Nam
> --
> You received this message because you are subscribed to the Google
> Groups "Quercus" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to caucho-quercu...@googlegroups.com
> <mailto:caucho-quercu...@googlegroups.com>.
> For more options, visit https://groups.google.com/groups/opt_out.

Michael Prentice

unread,
Mar 6, 2014, 3:55:09 PM3/6/14
to caucho-...@googlegroups.com, n...@caucho.com
I am seeing the following exception:
java.lang.SecurityException: class "javax.servlet.HttpConstraintElement"'s signer information does not match signer information of other classes in the same package

Many articles on StackOverflow and other sites indicate that this is likely due to multiple Servlet implementations being in the classpath and code being referenced from each of them.

Nam Nguyen

unread,
Mar 6, 2014, 4:01:10 PM3/6/14
to caucho-...@googlegroups.com
I see. A workaround is to remove the servlet classes from the Quercus
jar. The upcoming 4.0.39 release stops including the servlet classes.

-- Nam

On 3/6/14, 12:55 PM, Michael Prentice wrote:
> I am seeing the following exception:
> *java.lang.SecurityException: class
> "javax.servlet.HttpConstraintElement"'s signer information does not
> match signer information of other classes in the same package*
>
> Many articles on StackOverflow and other sites indicate that this is
> likely due to multiple Servlet implementations being in the classpath
> and code being referenced from each of them.
>
> On Thursday, March 6, 2014 3:26:39 PM UTC-5, Nam Nguyen wrote:
>
> Hi Michael,
>
> Quercus 3.0.15 is a very old release :). With Quercus 4.x, we develop
> against Java EE 6, which I believe is Servlet 3.0. Quercus uses only
> the basic servlet features, so it should run with Servlet 2.5. If not,
> then it's a bug. What's the exact error message that you are getting?
>
> -- Nam
>

Michael Prentice

unread,
Mar 7, 2014, 1:37:41 PM3/7/14
to caucho-...@googlegroups.com, n...@caucho.com
OK, that looks like it might work. Thank you.

I also found out what version of Servlet API Quercus 3.0.15 is checking for:
Quercus requires Servlet API 2.4+.

Nam Nguyen

unread,
Mar 7, 2014, 2:29:21 PM3/7/14
to caucho-...@googlegroups.com
Ooops, forgot that we're checking for Servlet 2.4 :).

-- Nam

On 3/7/14, 10:37 AM, Michael Prentice wrote:
> OK, that looks like it might work. Thank you.
>
> I also found out what version of Servlet API Quercus 3.0.15 is checking for:
>
> *Quercus requires Servlet API 2.4+.*
>
> *
> *
Reply all
Reply to author
Forward
0 new messages