请问jaxws:endpoint标签里面的wsdlLocation属性,读取的是什么路径呢。

50 views
Skip to first unread message

寂寞 离草

unread,
Apr 12, 2012, 12:19:26 AM4/12/12
to cxf-zh
我需要把wsdl文件放在WEB-INF下面,配置如下:

<jaxws:endpoint id="SB_EAM_EAM_InquiryIndexInfoSrv"
wsdlLocation="WEB-INF/serverWsdl/sb_eam_eam_inquiryindexinfosrv/
SB_EAM_EAM_InquiryIndexInfoSrv.wsdl"
implementor="#SBEAMEAMInquiryIndexInfoSrv"
address="/sb/SB_EAM_EAM_InquiryIndexInfoSrv/1.0">
</jaxws:endpoint>


tomcat 启动的时候, 报wsdl文件找不到。。。

java.io.FileNotFoundException: D:\greenTools\tomcat6.0.33\bin\WEB-INF
\serverWsdl\sb_eam_eam_inquiryindexinfosrv
\SB_EAM_EAM_InquiryIndexInfoSrv.wsdl (系统找不到指定的路径。)

怎么会到bin 的目录下面去找的呢。。。。

Reply all
Reply to author
Forward
0 new messages