Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8495649
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T23:37:52+00:00 2026-06-10T23:37:52+00:00

Basing on http://www.subshell.com/en/subshell/blog/article-Publishing-Webservices-with-Java-6-and-Spring-WS100.html I try to run Webservice using SimpleJaxWsServiceExporter on Tomcat 7. localhost:8081/WSTest/TourWS?wsdl

  • 0

Basing on http://www.subshell.com/en/subshell/blog/article-Publishing-Webservices-with-Java-6-and-Spring-WS100.html I try to run Webservice using SimpleJaxWsServiceExporter on Tomcat 7.

localhost:8081/WSTest/TourWS?wsdl in browser causes Error 404.

TourWS.java

@WebService
@SOAPBinding(style=Style.DOCUMENT)
public interface TourWS {
@WebMethod
public void declareTours(ArrayList<TourWSEntity> tours);
@WebMethod
public void declareTour(TourWSEntity tour);
@WebMethod
public String whoAmI();

}

TourWSImpl.java

@WebService(serviceName="TourWS")
public class TourWSImpl implements TourWS {
public TourWSImpl(){}

@Override
public void declareTours(ArrayList<TourWSEntity> tours) {
    // impl
}

@Override
public void declareTour(TourWSEntity tour) {
    // impl
}

@Override
public String whoAmI(){
    return "JAX-WS Web Service - TourWS";
}

spring-ws-servlet.xml

<beans ...>
<bean class="org.springframework.remoting.jaxws.SimpleJaxWsServiceExporter">
    <property name="baseAddress" value="http://localhost:8081/" />
</bean>
<bean id="tourWSImpl" class="tour.spring.ws.impl.TourWSImpl" />
</beans>

web.xml

<web-app ...>
<servlet>
    <servlet-name>spring-ws</servlet-name>
    <servlet-class>org.springframework.ws.transport.http.MessageDispatcherServlet</servlet-class>
</servlet>

<servlet-mapping>
    <servlet-name>spring-ws</servlet-name>
    <url-pattern>/*</url-pattern>
</servlet-mapping>
</web-app>

pom.xml

<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-web</artifactId>
<version>3.1.0.RELEASE</version>
</dependency>
<dependency>
<groupId>org.springframework.ws</groupId>
<artifactId>spring-ws-core</artifactId>
<version>2.0.5.RELEASE</version>
</dependency>

Console output:

2012-06-17 22:29:52 org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jdk\bin;.;...
2012-06-17 22:29:52 org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:WSSpring' did not find a matching property.
2012-06-17 22:29:52 org.apache.coyote.AbstractProtocolHandler init
INFO: Initializing ProtocolHandler ["http-bio-8080"]
2012-06-17 22:29:52 org.apache.coyote.AbstractProtocolHandler init
INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
2012-06-17 22:29:52 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 572 ms
2012-06-17 22:29:52 org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
2012-06-17 22:29:52 org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.6
2012-06-17 22:29:53 org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory docs
2012-06-17 22:29:53 org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory examples
2012-06-17 22:29:53 org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
2012-06-17 22:29:53 org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
2012-06-17 22:29:53 org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory host-manager
2012-06-17 22:29:53 org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory manager
2012-06-17 22:29:53 org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory ROOT
2012-06-17 22:29:53 org.apache.coyote.AbstractProtocolHandler start
INFO: Starting ProtocolHandler ["http-bio-8080"]
2012-06-17 22:29:53 org.apache.coyote.AbstractProtocolHandler start
INFO: Starting ProtocolHandler ["ajp-bio-8009"]
2012-06-17 22:29:53 org.apache.catalina.startup.Catalina start
INFO: Server startup in 799 ms
2012-06-17 22:29:54 org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring FrameworkServlet 'spring-ws'
2012-06-17 22:29:54 org.springframework.web.servlet.FrameworkServlet initServletBean
INFO: FrameworkServlet 'spring-ws': initialization started
2012-06-17 22:29:54 org.springframework.context.support.AbstractApplicationContext prepareRefresh
INFO: Refreshing WebApplicationContext for namespace 'spring-ws-servlet': startup date [Sun Jun 17 22:29:54 CEST 2012]; root of context hierarchy
2012-06-17 22:29:54 org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
INFO: Loading XML bean definitions from ServletContext resource [/WEB-INF/spring-ws-servlet.xml]
2012-06-17 22:29:55 org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons
INFO: Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@3ca754: defining beans [org.springframework.remoting.jaxws.SimpleJaxWsServiceExporter#0,tourWSImpl]; root of factory hierarchy
2012-06-17 22:29:55 com.sun.xml.internal.ws.model.RuntimeModeler getRequestWrapperClass
INFO: Dynamically creating request wrapper Class tour.spring.ws.impl.jaxws.DeclareTours
2012-06-17 22:29:55 com.sun.xml.internal.ws.model.RuntimeModeler getResponseWrapperClass
INFO: Dynamically creating response wrapper bean Class tour.spring.ws.impl.jaxws.DeclareToursResponse
2012-06-17 22:29:55 com.sun.xml.internal.ws.model.RuntimeModeler getRequestWrapperClass
INFO: Dynamically creating request wrapper Class tour.spring.ws.impl.jaxws.DeclareTour
2012-06-17 22:29:55 com.sun.xml.internal.ws.model.RuntimeModeler getResponseWrapperClass
INFO: Dynamically creating response wrapper bean Class tour.spring.ws.impl.jaxws.DeclareTourResponse
2012-06-17 22:29:55 com.sun.xml.internal.ws.model.RuntimeModeler getRequestWrapperClass
INFO: Dynamically creating request wrapper Class tour.spring.ws.impl.jaxws.WhoAmI
2012-06-17 22:29:55 com.sun.xml.internal.ws.model.RuntimeModeler getResponseWrapperClass
INFO: Dynamically creating response wrapper bean Class tour.spring.ws.impl.jaxws.WhoAmIResponse
2012-06-17 22:29:55 org.springframework.ws.soap.saaj.SaajSoapMessageFactory afterPropertiesSet
INFO: Creating SAAJ 1.3 MessageFactory with SOAP 1.1 Protocol
2012-06-17 22:29:55 org.springframework.web.servlet.FrameworkServlet initServletBean
INFO: FrameworkServlet 'spring-ws': initialization completed in 1125 ms

Please, suggest me what could be wrong.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T23:37:54+00:00Added an answer on June 10, 2026 at 11:37 pm

    Try this: localhost:8081/TourWS?wsdl
    So remove WSTest from the address.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Telerik's RADGrid, basing on their example on http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/programaticlinqupdates/defaultcs.aspx Problem: I can insert and delete,
I am trying to implement jquery jqmodal at http://communitychessclub.com/test-me.php and am basing my effort
The references (GOF Design Patterns, Head First Design Patterns, http://www.dofactory.com/Patterns/PatternObserver.aspx ) that I've read
I am using jQuery UI for the sidebar navigation here: http://www.imadesign.com/dev/work/ I would like
here is a link to what im basing my code off of....but i want
I am trying to write my own Protobuf frame decoder and I'm basing it
I need to combine lines in two files, basing in the condition, that in
What I'm trying to accomplish is to auto-generate tags/keywords for a file upload, basing
I've been implementing my own version of a red-black tree, mostly basing my algorithms
When i try baking with console .. cake bake model After choosing which table

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.