wl503926 2017-05-15 01:54 采纳率: 0%
浏览 1016

webservice 后台报错 can't find the request for

百度了好多 但是依旧解决不了问题 求大神指教 下面是我的两个配置文件

web.xml
<?xml version="1.0" encoding="UTF-8"?>

CXFServer

index.html
index.htm
index.jsp
default.html
default.htm
default.jsp


CXFServlet
org.apache.cxf.transport.servlet.CXFServlet
1


CXFServlet
/services/*

applicationContext..xml
<?xml version="1.0" encoding="UTF-8"?>
<beans
xmlns="http://www.springframework.org/schema/beans"

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xmlns:jaxws="http://cxf.apache.org/jaxws"    
xmlns:jaxrs="http://cxf.apache.org/jaxrs"
xmlns:cxf="http://cxfapache/org/core"    
xsi:schemaLocation="http://www.springframework.org/schema/beans   
                    http://www.springframework.org/schema/beans/spring-beans-2.5.xsd  
                    http://www.springframework.org/schema/tx  
                    http://www.springframework.org/schema/tx/spring-tx-2.5.xsd  
                    http://www.springframework.org/schema/aop  
                    http://www.springframework.org/schema/aop/spring-aop-2.5.xsd  
                    http://cxf.apache.org/jaxws    
                    http://cxf.apache.org/schemas/jaxws.xsd    
                    http://cxf.apache.org/jaxrs    
                    http://cxf.apache.org/schemas/jaxrs.xsd">

<import resource="classpath:META-INF/cxf/cxf.xml" />  
<import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />  
<import resource="classpath:META-INF/cxf/cxf-servlet.xml" />  
<!-- 不知道为什么,这里的webservice配置,只能用bean来实现,否则 注入的service为空。但是之前有个项目却可以,百思不得其解。。 -->  
<jaxws:server id = "cxfService" address="/cxfService" serviceClass="cn.slyc.interfaces.CxfService">
    <jaxws:serviceBean>
        <bean class="cn.slyc.interfaces.impl.CxfServiceImpl"></bean>
    </jaxws:serviceBean>
    <jaxws:inInterceptors>
        <bean class="org.apache.cxf.interceptor.LoggingInInterceptor"></bean>
    </jaxws:inInterceptors>
    <jaxws:outInterceptors>
        <bean class="org.apache.cxf.interceptor.LoggingOutInterceptor"></bean>
    </jaxws:outInterceptors>
</jaxws:server>
  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 虚拟机打包apk出现错误
    • ¥30 最小化遗憾贪心算法上界
    • ¥15 用visual studi code完成html页面
    • ¥15 聚类分析或者python进行数据分析
    • ¥15 逻辑谓词和消解原理的运用
    • ¥15 三菱伺服电机按启动按钮有使能但不动作
    • ¥15 js,页面2返回页面1时定位进入的设备
    • ¥50 导入文件到网吧的电脑并且在重启之后不会被恢复
    • ¥15 (希望可以解决问题)ma和mb文件无法正常打开,打开后是空白,但是有正常内存占用,但可以在打开Maya应用程序后打开场景ma和mb格式。
    • ¥20 ML307A在使用AT命令连接EMQX平台的MQTT时被拒绝