You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by piotr_rezmer <pi...@ens.net.pl> on 2008/09/17 13:29:17 UTC
AjaxServlet is currently unavailable
Hello,
I want to add ajax connectivity to my existing application. I added
activemq-web-5.1.0.jar to \lib directory. First I wanted to check amq.js
file availability on the web server. So after entering URL like:
http://localhost:8080/myWebApp/amq/amq.js
I receive:
HTTP Status 503 - Servlet AjaxServlet is currently unavailable
There are no corresponding error messages in server console. Either no INFO
messages about AjaxServlet. My web.xml has:
<web-app>
<context-param>
<param-name>org.apache.activemq.brokerURL</param-name>
<param-value>tcp://cti:61616</param-value>
<description>The URL of the Message Broker to connect
to</description>
</context-param>
...
<servlet>
<servlet-name>AjaxServlet</servlet-name>
<servlet-class>org.apache.activemq.web.AjaxServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet>
<servlet-name>MessageServlet</servlet-name>
<servlet-class>org.apache.activemq.web.MessageServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>MessageServlet</servlet-name>
<url-pattern>/message/*</url-pattern>
</servlet-mapping>
...
<servlet-mapping>
<servlet-name>AjaxServlet</servlet-name>
<url-pattern>/amq/*</url-pattern>
</servlet-mapping>
Is it correct way to check .js file? Maybe I should use other path in URL?
I'm also worried with not seeing any INFO from AjaxServlet in server
console.
best regards
Piotr Rezmer
--
View this message in context: http://www.nabble.com/AjaxServlet-is-currently-unavailable-tp19529652p19529652.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: AjaxServlet is currently unavailable
Posted by piotr_rezmer <pi...@ens.net.pl>.
piotr_rezmer wrote:
>
> Hello,
>
> I want to add ajax connectivity to my existing application. I added
> activemq-web-5.1.0.jar to \lib directory. First I wanted to check amq.js
> file availability on the web server. So after entering URL like:
>
> http://localhost:8080/myWebApp/amq/amq.js
>
I found the reason. Jars were in /lib but in another web application on the
same server.
--
View this message in context: http://www.nabble.com/AjaxServlet-is-currently-unavailable-tp19529652p19531654.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: AjaxServlet is currently unavailable
Posted by Dejan Bosanac <de...@ttmsolutions.com>.
Hi,
It seems like your AjaxServlet did not initialize for some reason (you
should be seeing exception in a log file or console, but I don't know
how your logging system is configured).
It looks to me that you're missing some dependencies and have classpath
issues. For example, you need at least activemq-core jar to make it work
properly.
Cheers
--
Dejan Bosanac
http://www.ttmsolutions.com - get a free ActiveMQ user guide
ActiveMQ in Action - http://www.manning.com/snyder/
Scripting in Java - http://www.scriptinginjava.net
piotr_rezmer wrote:
> Hello,
>
> I want to add ajax connectivity to my existing application. I added
> activemq-web-5.1.0.jar to \lib directory. First I wanted to check amq.js
> file availability on the web server. So after entering URL like:
>
> http://localhost:8080/myWebApp/amq/amq.js
>
> I receive:
> HTTP Status 503 - Servlet AjaxServlet is currently unavailable
>
> There are no corresponding error messages in server console. Either no INFO
> messages about AjaxServlet. My web.xml has:
>
> <web-app>
> <context-param>
> <param-name>org.apache.activemq.brokerURL</param-name>
> <param-value>tcp://cti:61616</param-value>
> <description>The URL of the Message Broker to connect
> to</description>
> </context-param>
> ...
> <servlet>
> <servlet-name>AjaxServlet</servlet-name>
> <servlet-class>org.apache.activemq.web.AjaxServlet</servlet-class>
> <load-on-startup>1</load-on-startup>
> </servlet>
> <servlet>
> <servlet-name>MessageServlet</servlet-name>
>
> <servlet-class>org.apache.activemq.web.MessageServlet</servlet-class>
> <load-on-startup>1</load-on-startup>
> </servlet>
> <servlet-mapping>
> <servlet-name>MessageServlet</servlet-name>
> <url-pattern>/message/*</url-pattern>
> </servlet-mapping>
> ...
> <servlet-mapping>
> <servlet-name>AjaxServlet</servlet-name>
> <url-pattern>/amq/*</url-pattern>
> </servlet-mapping>
>
> Is it correct way to check .js file? Maybe I should use other path in URL?
> I'm also worried with not seeing any INFO from AjaxServlet in server
> console.
>
>
>
> best regards
> Piotr Rezmer
>