You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by jaskaran <ja...@gmail.com> on 2011/07/16 13:46:38 UTC

Re: Ajax and Tomcat 6 - based on web-demo with a non embedded broker

Hi , 

I am also getting the same error on starting Tomcat:

SEVERE: Servlet.service() for servlet AjaxServlet threw exception
java.lang.IllegalStateException: !(Jetty || Servlet 3.0 ||
ContinuationFilter)
	at
org.eclipse.jetty.continuation.ContinuationSupport.getContinuation(ContinuationSupport.java:145)

I am using ActiveMQ 5.5.

Please help
Jaskaran


--
View this message in context: http://activemq.2283324.n4.nabble.com/Ajax-and-Tomcat-6-based-on-web-demo-with-a-non-embedded-broker-tp3297683p3671721.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: Ajax and Tomcat 6 - based on web-demo with a non embedded broker

Posted by jaskaran <ja...@gmail.com>.
Hi Liny,

Thanks alot for replying. If i add the settings that you mentioned. Then
will i be able to deploy the servlet on Tomcat.
I am trying to avoid setting up  a jetty server.

Thanks alot

--
View this message in context: http://activemq.2283324.n4.nabble.com/Ajax-and-Tomcat-6-based-on-web-demo-with-a-non-embedded-broker-tp3297683p4127982.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: Ajax and Tomcat 6 - based on web-demo with a non embedded broker

Posted by liny <in...@gmail.com>.
Hi,

You can add below into your application web.xml:


Don't forget put jetty jar file (mine is
jetty-all-server-7.1.6.v20100715.jar) into lib directory.

--
View this message in context: http://activemq.2283324.n4.nabble.com/Ajax-and-Tomcat-6-based-on-web-demo-with-a-non-embedded-broker-tp3297683p4082182.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: Ajax and Tomcat 6 - based on web-demo with a non embedded broker

Posted by jaskaran <ja...@gmail.com>.
Hi Dejan

Thanks alot.
I will deploy on Jetty

Thanks
jaskaran

--
View this message in context: http://activemq.2283324.n4.nabble.com/Ajax-and-Tomcat-6-based-on-web-demo-with-a-non-embedded-broker-tp3297683p3677266.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: Ajax and Tomcat 6 - based on web-demo with a non embedded broker

Posted by Dejan Bosanac <de...@nighttale.net>.
Hi,

Ajax feature is implemented using Jetty continuations so it's not possible
to use it in plain Tomcat.

Regards
-- 
Dejan Bosanac - http://twitter.com/dejanb
-----------------
The experts in open source integration and messaging - http://fusesource.com
ActiveMQ in Action - http://www.manning.com/snyder/
Blog - http://www.nighttale.net


On Sat, Jul 16, 2011 at 1:46 PM, jaskaran <ja...@gmail.com> wrote:

> Hi ,
>
> I am also getting the same error on starting Tomcat:
>
> SEVERE: Servlet.service() for servlet AjaxServlet threw exception
> java.lang.IllegalStateException: !(Jetty || Servlet 3.0 ||
> ContinuationFilter)
>        at
>
> org.eclipse.jetty.continuation.ContinuationSupport.getContinuation(ContinuationSupport.java:145)
>
> I am using ActiveMQ 5.5.
>
> Please help
> Jaskaran
>
>
> --
> View this message in context:
> http://activemq.2283324.n4.nabble.com/Ajax-and-Tomcat-6-based-on-web-demo-with-a-non-embedded-broker-tp3297683p3671721.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>