当前位置: 代码迷 >> J2EE >> activeMQ 请求AjaxServlet 返回500解决方法
  详细解决方案

activeMQ 请求AjaxServlet 返回500解决方法

热度:719   发布时间:2016-04-19 22:38:19.0
activeMQ 请求AjaxServlet 返回500
/**/amq?timeout=10 这个请求在我自己本机测试是可以的,到Linux服务器上就返回500



<script type="text/javascript" src="../amq/amq.js"></script>
<script type="text/javascript" src="../js/amq/amq_jquery_adapter.js"></script>
<script type="text/javascript">
amq.uri = '../amq';
</script>
<script type="text/javascript" src="../js/amq/amqAlarm_map.js"></script>
<script>



<context-param>
<param-name>org.apache.activemq.brokerURL</param-name>
<param-value>tcp://localhost:61616</param-value>
</context-param>

<servlet>
<servlet-name>AjaxServlet</servlet-name>
<servlet-class>org.apache.activemq.web.AjaxServlet</servlet-class>
<async-supported>true</async-supported>
</servlet>
<servlet-mapping>
<servlet-name>AjaxServlet</servlet-name>
<url-pattern>/amq/*</url-pattern>
</servlet-mapping>



------解决方案--------------------
linux下不认../..
  相关解决方案