关于CXF+tomcat+Apache部署的问题

最近开发用到CXF,在开发结束后将webservice程序部署到了tomcat下。访问地址类似下方:
http://localhost:8080/test/cxf/testservice?wsdl
其中test是项目名称,testservice是对外开放的服务
下面是web.xml中的cxf配置
<servlet>
		<servlet-name>CXFService</servlet-name>
		<servlet-class>org.apache.cxf.transport.servlet.CXFServlet</servlet-class>
		<load-on-startup>1</load-on-startup>
	</servlet>

	<servlet-mapping>
		<servlet-name>CXFService</servlet-name>
		<url-pattern>/cxf/*</url-pattern>
	</servlet-mapping>
	<filter>

在tomcat下部署,打开地址后可以正常访问到webservice,但是当tomcat+Apache2.2集成后,并开放35001端口,部署的test的项目就无法访问,其他项目可以正常访问,只有webservice接口无法找到 ,页面提示如下
[b]Not Found[/b]

The requested URL /test/cxf//testservice was not found on this server.

关于CXF+tomcat+Apache部署的问题

下面是apache集成tomcat的配置
</IfModule>
################TOMCT集成#########################
LoadModule jk_module modules/mod_jk.so
JKWorkersFile conf/workers.properties
JkLogFile logs/mod_jk.log
<VirtualHost *>
ServerAdmin localhost
DocumentRoot D:/java/server/Apache2.2.19/htdocs
ServerName localhost
DirectoryIndex index.html index.htm index.jsp index.action
ErrorLog logs/shsc-error_log.txt
CustomLog logs/shsc-access_log.txt common
 
JkMount /*WEB-INF ajp13
JkMount /*j_spring_security_check ajp13
JkMount /*.action ajp13
JkMount /*.htm ajp13
JkMount /servlet/* ajp13
JkMount /*.jsp ajp13
JkMount /*.do ajp13
JkMount /*.action ajp13
JkMount /cxf/* ajp13
 
JkMount /*fckeditor/editor/filemanager/connectors/*.* ajp13
JkMount /fckeditor/editor/filemanager/connectors/* ajp13
</VirtualHost>


麻烦各位帮小弟出出注意,看如何解决这个问题,谢谢了!

你可能感兴趣的:(CXF)