I'm trying to make a web client. I have a WS deployed and I pulled down the wsdl and used the WSDL2Java to make the proxy objects. I have a JSP and a servlet to be the interface. When I deploy it into Tomcat6 it can not find the service/welcome page. I'm wondering if I've set up the client wrong with the config files.
I wrote a standalone client to test the WS so I know that is not a problem. I'm not familiar enough with Spring to know if I can't do this with Spring or I'm setting it up wrong. Thank you for any help or ideas. beans.xml <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:jaxws="http://cxf.apache.org/jaxws" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=" http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.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" />--> <jaxws:client id="JavaCalculatorClient" serviceClass="com.lilly.Calculator" address=" http://dev0-royals.am.lilly.com:8080/JavaCalculator/CalculatorImpl" /> </beans> Web.xml <?xml version="1.0" encoding="UTF-8"?> <web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=" http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"> <context-param> <param-name>contextConfigLocation</param-name> <param-value>WEB-INF/beans.xml</param-value> </context-param> <listener> <listener-class> org.springframework.web.context.ContextLoaderListener </listener-class> </listener> <servlet> <servlet-name>CXFServlet</servlet-name> <servlet-class> org.apache.cxf.transport.servlet.CXFServlet </servlet-class> <load-on-startup>1</load-on-startup> </servlet> <!--<servlet> <servlet-name>ServiceClient</servlet-name> <servlet-class>com.lilly.client.ServiceClient</servlet-class> </servlet>--> <servlet-mapping> <servlet-name>CXFServlet</servlet-name> <url-pattern>/*</url-pattern> </servlet-mapping> <!-- <servlet-mapping> <servlet-name>ServiceClient</servlet-name> <url-pattern>/ServiceClient</url-pattern> </servlet-mapping>--> <session-config> <session-timeout> 30 </session-timeout> </session-config> <welcome-file-list> <welcome-file>index.jsp</welcome-file> </welcome-file-list> </web-app>
