当前位置:编程学习 > JAVA >>

SpringMVC+BlazeDS报错


错误:
(0 ms) [http-8080-1] ERROR: org.springframework.flex.servlet.MessageBrokerHandlerAdapter#handle : Received invalid request for endpoint path '/Navigator/meteoforecast.jsp'.

web.xml配置如下:
  <listener>
    <listener-class>flex.messaging.HttpFlexSession</listener-class> 
  </listener>
  <listener>
      <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
  </listener>
  <servlet>
    <servlet-name>springContext</servlet-name>
    <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
    <init-param>
            <param-name>contextConfigLocation</param-name>
            <param-value>/WEB-INF/classes/configuration/*-servlet.xml</param-value>
    </init-param>
    <load-on-startup>1</load-on-startup>
  </servlet>
  <servlet-mapping>
    <servlet-name>springContext</servlet-name>
    <url-pattern>/Navigator/*</url-pattern>
  </servlet-mapping>
--------------------编程问答-------------------- org.springframework.flex.servlet.MessageBrokerHandlerAdapter和org.springframework.web.servlet.DispatcherServlet是不是都是servlet,这两个都要配置在web.xml里吗?前者放在service-config.xml里是能单独解析的
--------------------编程问答-------------------- 你确定这是因为web.xml报错的吗 --------------------编程问答-------------------- 找不到原因,,, --------------------编程问答-------------------- Received invalid request for endpoint path '/Navigator/meteoforecast.jsp'.

非法请求,是不是不应该有后面的.jsp呢 --------------------编程问答-------------------- 没有后缀也报一样的错误 --------------------编程问答-------------------- 是不是请求的时候都被org.springframework.flex.servlet.MessageBrokerHandlerAdapter拦截了
补充:Java ,  Java EE
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,