-
Oct 24th, 2007, 01:22 PM
#1
HTTP 404 Error - Issue
Have deployed our Spring-WS on Weblogic 9.2 on Windows environment. The spring-ws jars have been copied to server lib directory. The the app. is deployed at the webcontext caobshared. There were no issues while deploying. Am testing the service from a soapUI tool. The url I am using is http://localhost:7002/caobshared/services. Am getting HTTP 404 errors. I do not see any errors or any debug statements I have in the webservice methods in the server log. Believe I am missing something or specifying incorrectly.
We need to make a decision on using Spring-WS soon, based on the POC I working on. Any help or suggestions highly appreciated.
web.xml file:
<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
version="2.4">
<display-name>CAOB Shared Service</display-name>
<!-- take especial notice of the name of this servlet -->
<servlet>
<servlet-name>caob-shared</servlet-name>
<servlet-class>org.springframework.ws.transport.http.Messag eDispatcherServlet</servlet-class>
<init-param>
<param-name>transformWsdlLocations</param-name>
<param-value>true</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>caob-shared</servlet-name>
<url-pattern>/services</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>caob-shared</servlet-name>
<url-pattern>*.wsdl</url-pattern>
</servlet-mapping>
</web-app>
caob-shared-servlet.xml file:
<?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:util="http://www.springframework.org/schema/util"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schem...-beans-2.0.xsd
http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-2.0.xsd">
<!-- ===================== ENDPOINTS ===================================== -->
<!--
The marshallingEndpoint handle the messages.
-->
<bean id="documentationService" class="com.boea.caob.ws.documentation.Documentatio nService"/>
<bean id="documentationServiceEndpoint" class="com.boea.caob.ws.DocumentationServiceEndpoi nt">
<description>
This endpoint handles the DocumentService Web Service messages using JAXB2 marshalling.
</description>
<constructor-arg ref="documentationService"/>
</bean>
<bean id="marshaller" class="org.springframework.oxm.jaxb.Jaxb2Marshalle r">
<description>
The JAXB 2 Marshaller is used by the endpoints.
</description>
<property name="contextPath" value="com.boea.jaxb.caob.documentation.ws.jaxb"/>
</bean>
<!-- ===================== ENDPOINT MAPPINGS ============================== -->
<!-- ===================== ENDPOINT ADAPTERS ============================== -->
<!--
Endpoint adapters adapt from the incoming message to a specific object or method signature. Because this
example application uses three different endpoint programming models, we have to define three adapters. This
is done for illustration purposes only, typically you would use one adapter, for instance the
MarshallingMethodEndpointAdapter.
-->
<bean class="org.springframework.ws.server.endpoint.adap ter.MarshallingMethodEndpointAdapter">
<description>
This adapter allows for methods that need and returns marshalled objects. The MarshallingEndpoint
uses JAXB 2 objects.
</description>
<constructor-arg ref="marshaller"/>
</bean>
<!-- ===================== WSDL DEFINITION ============================== -->
<!-- Exposing a static WSDL -->
<!--
<bean id="documentService" class="org.springframework.ws.wsdl.wsdl11.SimpleWs dl11Definition">
<constructor-arg value="/xsd/DocumentService.wsdl"/>
</bean>
-->
<!-- Dynamically creating a WSDL from an XSD -->
<bean id="documentService" class="org.springframework.ws.wsdl.wsdl11.DynamicW sdl11Definition">
<description>
Dynamically builds a WSDL from the DocumentService.xsd.This bean definition represents the DocumentService.wsdl file found
in the root of the web application. It is used
by the WsdlDefinitionHandlerAdapter in caob-shared-servlet.xml.
</description>
<property name="builder">
<bean class="org.springframework.ws.wsdl.wsdl11.builder. XsdBasedSoap11Wsdl4jDefinitionBuilder">
<property name="schema" value="/xsd/DocumentService.xsd"/>
<property name="portTypeName" value="DocumentationPort"/>
<property name="locationUri" value="http://localhost:8080/documentation/services"/>
<property name="targetNamespace"
value="http://www.test.com/caob/webservices/documentation/definitions"/>
</bean>
</property>
</bean>
</beans>
Thanks
Sunil
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules