You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by yuribit <yr...@gmail.com> on 2012/03/02 19:05:51 UTC
AMQ AjaxServlet - Servlet AjaxServlet is not available
Hi,
I'm trying to develop a simple webapp that receive jms message using Ajax as
described in http://activemq.apache.org/ajax.html, but when I deploy it in
tomcat6 and go to http://localhost:8080/mywebapp/amq/ I got HTTP Status 404
- Servlet AjaxServlet is not available.
This is my firebug error:
Refused to set unsafe header "Connection"
http://10.0.0.118:8080/mywebapp/amq Failed to load resource: the server
responded with a status of 404 (Not Found)
amq_jquery_adapter.js:86
Error occurred in ajax call. HTTP result: 404, status: error
The localhost log of tomcat give me this output:
org.apache.catalina.core.StandardWrapperValve invoke
INFO: Servlet AjaxServlet is currently unavailable
Should I add something else to my web-inf.xml?
Thanks
Regards
Yuri
--
View this message in context: http://activemq.2283324.n4.nabble.com/AMQ-AjaxServlet-Servlet-AjaxServlet-is-not-available-tp4439289p4439289.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: AMQ AjaxServlet - Servlet AjaxServlet is not available
Posted by yuribit <yr...@gmail.com>.
I solved this problem adding this dependency to my pom:
<dependency>
<groupId>org.eclipse.jetty.aggregate</groupId>
<artifactId>jetty-all-server</artifactId>
<version>8.1.1.v20120215</version>
</dependency>
Maybe we can add this dependency to the user guide
(http://activemq.apache.org/ajax.html) cause it doesn't work on TomCat
servers.
regards,
Yuri
--
View this message in context: http://activemq.2283324.n4.nabble.com/AMQ-AjaxServlet-Servlet-AjaxServlet-is-not-available-tp4439289p4459713.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: AMQ AjaxServlet - Servlet AjaxServlet is not available
Posted by yuribit <yr...@gmail.com>.
Yes,
I put the mapping in the web.xml of my servlet and it works cause if I go to
http://10.0.0.118:8080/mywebapp/amq I got HTTP Status 404 - Servlet
AjaxServlet is not available
Then I add the active-mq-web dependency to include the jar. It works because
if I delete the dependency the error change to ClassNotFoundExceptions.
At last I modify the html page but I think that the problem is server-side
and not in javascript.
thanks
Yuri
--
View this message in context: http://activemq.2283324.n4.nabble.com/AMQ-AjaxServlet-Servlet-AjaxServlet-is-not-available-tp4439289p4439346.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: AMQ AjaxServlet - Servlet AjaxServlet is not available
Posted by Claudio Squarcella <sq...@dia.uniroma3.it>.
Hi,
easy questions first: you did everything that this[1] page says, right?
[1] http://activemq.apache.org/ajax.html
Claudio
On 02/03/2012 19:05, yuribit wrote:
> Hi,
> I'm trying to develop a simple webapp that receive jms message using Ajax as
> described in http://activemq.apache.org/ajax.html, but when I deploy it in
> tomcat6 and go to http://localhost:8080/mywebapp/amq/ I got HTTP Status 404
> - Servlet AjaxServlet is not available.
>
> This is my firebug error:
>
> Refused to set unsafe header "Connection"
> http://10.0.0.118:8080/mywebapp/amq Failed to load resource: the server
> responded with a status of 404 (Not Found)
> amq_jquery_adapter.js:86
> Error occurred in ajax call. HTTP result: 404, status: error
>
> The localhost log of tomcat give me this output:
> org.apache.catalina.core.StandardWrapperValve invoke
> INFO: Servlet AjaxServlet is currently unavailable
>
> Should I add something else to my web-inf.xml?
>
> Thanks
> Regards
> Yuri
>
>
> --
> View this message in context: http://activemq.2283324.n4.nabble.com/AMQ-AjaxServlet-Servlet-AjaxServlet-is-not-available-tp4439289p4439289.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
--
Claudio Squarcella
PhD student at Roma Tre University
http://www.dia.uniroma3.it/~squarcel
http://squarcella.com/