CXF helloWorld例子在tomcat中运行的问题
悬赏:30 发布时间:2008-08-08 提问人:krisyang (初级程序员)
最近在研究cxf,运行第一个例子apache-cxf-2.0.1-incubator\samples \hello_world_code_first,用里面自带的jetty可以成功的发布helloworld,但我现在想在tomcat里发布,试了好几次了,总不成功,文件夹里的readme有部署到tomcat的说明
先执行 ant deploy -Dtomcat=true 部署到tomcat
然后启动tomcat
最后输入链接 http://localhost:8080/helloworld/services/hello_world?wsdl 页面上只是提示 No service was found.
这是什么原因呢,请对CXF有了解的人解答一下吧
该问题已经关闭: 超过15天由系统自动关闭,悬赏平分给所有参与回答的会员
先执行 ant deploy -Dtomcat=true 部署到tomcat
然后启动tomcat
最后输入链接 http://localhost:8080/helloworld/services/hello_world?wsdl 页面上只是提示 No service was found.
这是什么原因呢,请对CXF有了解的人解答一下吧
该问题已经关闭: 超过15天由系统自动关闭,悬赏平分给所有参与回答的会员
回答
今天我在调试发现也存在同样的问题。
CXF 2.1.1
其中samples\java_first_spring_support
ant
ant war生成spring_http.war文件部署到tomcat下面,成功!
http://localhost:8080/spring_http/HelloWorld?wsdl页面可以显示。
按照同样的方法samples\java_first_jaxws
ant
ant war生成helloworld.war文件部署到tomcat下面,失败
HTTP Status 404 - /helloworld/
type Status report
message /helloworld/
description The requested resource (/helloworld/) is not available.
不知道是什么原因
CXF 2.1.1
其中samples\java_first_spring_support
ant
ant war生成spring_http.war文件部署到tomcat下面,成功!
http://localhost:8080/spring_http/HelloWorld?wsdl页面可以显示。
按照同样的方法samples\java_first_jaxws
ant
ant war生成helloworld.war文件部署到tomcat下面,失败
HTTP Status 404 - /helloworld/
type Status report
message /helloworld/
description The requested resource (/helloworld/) is not available.
不知道是什么原因
irvine007 (初级程序员) 2008-08-19




