web应用程序[/firstws]中的Servlet[cxf]引发了load()异常。java.lang.ClassNotFoundException:org.apache.cxf.transport.servlet.CXFServlet

web应用程序[/firstws]中的Servlet[cxf]引发了load()异常。java.lang.ClassNotFoundException:org.apache.cxf.transport.servlet.CXFServlet,java,web-services,maven,tomcat,servlets,Java,Web Services,Maven,Tomcat,Servlets,我正试图在本地主机的tomcat服务器上运行web服务。有人能帮我吗 Maven清理和Maven安装成功。但在启动Tomcat服务器时,会弹出错误消息。错误消息为: War文件生成于目标目录cxf-rt-transports-http-3.0.2jar存在于该目录中 已尝试删除服务器并重新启动服务器。 此文件中有一条警告,上面写着“src/main/webapp/services not found” Index.jsp <html> <body>

我正试图在本地主机的tomcat服务器上运行web服务。有人能帮我吗

Maven清理和Maven安装成功。但在启动Tomcat服务器时,会弹出错误消息。错误消息为:

War文件生成于目标目录cxf-rt-transports-http-3.0.2jar存在于该目录中

已尝试删除服务器并重新启动服务器。 此文件中有一条警告,上面写着“src/main/webapp/services not found

Index.jsp

 <html>
   <body>
       <!--the warning is below line at href attribute--!>
       <h2>Hello World! <a href="/services"> available services </a>
      </h2>
   </body>
    </html>

org.apache.cxf
cxf rt传输http jetty
3.0.2
org.springframework
弹簧芯
3.2.0.1发布
org.springframework
spring上下文
3.2.0.1发布
org.springframework
德克萨斯州春季
3.2.0.1发布
org.springframework
春季甲虫
3.2.0.1发布
org.springframework
弹簧网
3.2.0.1发布
org.springframework
SpringWebMVC
3.2.0.1发布
org.apache.cxf
cxf rt ws-security
3.0.2
org.apache.cxf
cxf rt传输http
3.0.2
commons httpclient
commons httpclient
3.1
web.xml:

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

      <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     xmlns="http://java.sun.com/xml/ns/javaee"
     xsi:schemaLocation="http://java.sun.com/xml/ns/javaee 
     http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
       version="2.5">
   <display-name>cxf</display-name>
     <servlet>
        <description>Apache CXF Endpoint</description>
         <display-name>cxf</display-name>
         <servlet-name>cxf</servlet-name>
        <servlet-class>org.apache.cxf.transport.servlet.CXFServlet</servlet-class>
    <load-on-startup>1</load-on-startup>
  </servlet>
      <servlet-mapping>
    <servlet-name>cxf</servlet-name>
    <url-pattern>/services/*</url-pattern>
        </servlet-mapping>
    <session-config>
    <session-timeout>60</session-timeout>
   </session-config>
 </web-app>

cxf
ApacheCXF端点
cxf
cxf
org.apache.cxf.transport.servlet.CXFServlet
1.
cxf
/服务/*
60
cxf-servlet.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:cxf="http://cxf.apache.org/core" 
         xmlns:soap="http://cxf.apache.org/bindings/soap"
          xsi:schemaLocation="http://cxf.apache.org/core 
          http://cxf.apache.org/schemas/core.xsd 
          http://www.springframework.org/schema/beans 
          http://www.springframework.org/schema/beans/spring-beans.xsd 
          http://cxf.apache.org/bindings/soap 
          http://cxf.apache.org/schemas/configuration/soap.xsd 
           http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd">

        <jaxws:endpoint id="customerOrderid" address="/customerOrders"
            wsdlLocation="WEB-INF/wsdl/customerOrders.wsdl"  
            implementor="com.bharath.ws.train.imp.CustomersOrdersWS"
            serviceName="customersOrders:CustomerOrdersService" 
            xmlns:customersOrders="http://train.ws.bharath.com/" >
         </jaxws:endpoint>
    <cxf:bus>
        <cxf:features>
            <cxf:logging /> 
        </cxf:features>
    </cxf:bus>
   </beans>


确保src/main/webapp/services位于类路径中。我已将src/main/webapp/services添加到类路径中。错误保持不变。访问时向我显示HTTP状态404-/services。@Adeel Ahmed您能帮我吗。
      <?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:cxf="http://cxf.apache.org/core" 
         xmlns:soap="http://cxf.apache.org/bindings/soap"
          xsi:schemaLocation="http://cxf.apache.org/core 
          http://cxf.apache.org/schemas/core.xsd 
          http://www.springframework.org/schema/beans 
          http://www.springframework.org/schema/beans/spring-beans.xsd 
          http://cxf.apache.org/bindings/soap 
          http://cxf.apache.org/schemas/configuration/soap.xsd 
           http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd">

        <jaxws:endpoint id="customerOrderid" address="/customerOrders"
            wsdlLocation="WEB-INF/wsdl/customerOrders.wsdl"  
            implementor="com.bharath.ws.train.imp.CustomersOrdersWS"
            serviceName="customersOrders:CustomerOrdersService" 
            xmlns:customersOrders="http://train.ws.bharath.com/" >
         </jaxws:endpoint>
    <cxf:bus>
        <cxf:features>
            <cxf:logging /> 
        </cxf:features>
    </cxf:bus>
   </beans>