Results 1 to 2 of 2
  1. #1
    kanmani16it is offline Member
    Join Date
    Sep 2011
    Posts
    1
    Rep Power
    0

    Question JAXWS and spring integration : error accessing wsdl in tomcat 7

    hi everybody,
    I am running jaxws-spring integration example.i have deployed my application in tomcat 7 but when i try to access the wsdl its giving 404 not found error..

    can anybody help me?? its urgent pls...

    here is the full code:

    //applicationContext.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:ws="http://jax-ws.dev.java.net/spring/core"
    xmlns:wss="http://jax-ws.dev.java.net/spring/servlet"
    xsi:schemaLocation="http://www.springframework.org/schema/beans
    http://www.springframework.org/schem...-beans-2.5.xsd
    http://jax-ws.dev.java.net/spring/core http://jax-ws.java.net/spring/core.xsd
    http://jax-ws.dev.java.net/spring/servlet http://jax-ws.java.net/spring/servlet.xsd" >

    <wss:binding url="/hello">
    <wss:service>
    <ws:service bean="#helloWs"/>
    </wss:service>
    </wss:binding>

    <!-- Web service methods -->
    <bean id="helloWs" class="com.mkyong.ws.HelloWorldWS">
    <property name="helloWorldBo" ref="HelloWorldBo" />
    </bean>

    <bean id="HelloWorldBo" class="com.mkyong.bo.impl.HelloWorldBoImpl" />

    </beans>

    //web.xml

    <web-app id="WebApp_ID" version="2.4"
    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">

    <display-name>Spring + JAX-WS</display-name>

    <servlet>
    <servlet-name>jaxws-servlet</servlet-name>
    <servlet-class>
    com.sun.xml.ws.transport.http.servlet.WSSpringServ let
    </servlet-class>
    </servlet>

    <!-- Register Spring Listener -->
    <listener>
    <listener-class>
    org.springframework.web.context.ContextLoaderListe ner
    </listener-class>
    </listener>

    <servlet-mapping>
    <servlet-name>jaxws-servlet</servlet-name>
    <url-pattern>/hello</url-pattern>
    </servlet-mapping>

    </web-app>

    //libraries in my web-inf /lib and in my project classpath

    /WebServicesExample/src/main/webapp/WEB-INF/lib/commons-collections-1.0.jar
    /WebServicesExample/src/main/webapp/WEB-INF/lib/commons-lang-2.6.jar
    /WebServicesExample/src/main/webapp/WEB-INF/lib/commons-logging-1.0.4.jar
    /WebServicesExample/src/main/webapp/WEB-INF/lib/dom4j-1.6.1.jar
    /WebServicesExample/src/main/webapp/WEB-INF/lib/hibernate-commons-annotations-4.0.1.Final.jar
    /WebServicesExample/src/main/webapp/WEB-INF/lib/hibernate-core-4.1.6.Final.jar
    /WebServicesExample/src/main/webapp/WEB-INF/lib/hibernate-entitymanager-4.1.6.Final.jar
    /WebServicesExample/src/main/webapp/WEB-INF/lib/hibernate-jpa-2.0-api-1.0.1.Final.jar
    /WebServicesExample/src/main/webapp/WEB-INF/lib/istack-commons-runtime-2.3.jar
    /WebServicesExample/src/main/webapp/WEB-INF/lib/jackson-core-asl-1.9.2.jar
    /WebServicesExample/src/main/webapp/WEB-INF/lib/jackson-mapper-asl-1.9.2.jar
    /WebServicesExample/src/main/webapp/WEB-INF/lib/javassist-3.15.0-GA.jar
    /WebServicesExample/src/main/webapp/WEB-INF/lib/jaxb-impl-2.1.5.jar
    /WebServicesExample/src/main/webapp/WEB-INF/lib/jaxws-rt-2.2.3.jar
    /WebServicesExample/src/main/webapp/WEB-INF/lib/jaxws-spring-1.8.jar
    /WebServicesExample/src/main/webapp/WEB-INF/lib/jboss-logging-3.1.0.GA.jar
    /WebServicesExample/src/main/webapp/WEB-INF/lib/mysql-connector-java-5.1.13-bin.jar
    /WebServicesExample/src/main/webapp/WEB-INF/lib/org.springframework.aop-3.0.1.RELEASE-A.jar
    /WebServicesExample/src/main/webapp/WEB-INF/lib/org.springframework.asm-3.0.1.RELEASE-A.jar
    /WebServicesExample/src/main/webapp/WEB-INF/lib/org.springframework.aspects-3.0.1.RELEASE-A.jar
    /WebServicesExample/src/main/webapp/WEB-INF/lib/org.springframework.beans-3.0.1.RELEASE-A.jar
    /WebServicesExample/src/main/webapp/WEB-INF/lib/org.springframework.context.support-3.0.1.RELEASE-A.jar
    /WebServicesExample/src/main/webapp/WEB-INF/lib/org.springframework.context-3.0.1.RELEASE-A.jar
    /WebServicesExample/src/main/webapp/WEB-INF/lib/org.springframework.core-3.0.1.RELEASE-A.jar
    /WebServicesExample/src/main/webapp/WEB-INF/lib/org.springframework.expression-3.0.1.RELEASE-A.jar
    /WebServicesExample/src/main/webapp/WEB-INF/lib/org.springframework.instrument.tomcat-3.0.1.RELEASE-A.jar
    /WebServicesExample/src/main/webapp/WEB-INF/lib/org.springframework.instrument-3.0.1.RELEASE-A.jar
    /WebServicesExample/src/main/webapp/WEB-INF/lib/org.springframework.jdbc-3.0.1.RELEASE-A.jar
    /WebServicesExample/src/main/webapp/WEB-INF/lib/org.springframework.jms-3.0.1.RELEASE-A.jar
    /WebServicesExample/src/main/webapp/WEB-INF/lib/org.springframework.orm-3.0.1.RELEASE-A.jar
    /WebServicesExample/src/main/webapp/WEB-INF/lib/org.springframework.oxm-3.0.1.RELEASE-A.jar
    /WebServicesExample/src/main/webapp/WEB-INF/lib/org.springframework.spring-library-3.0.1.RELEASE-A.libd
    /WebServicesExample/src/main/webapp/WEB-INF/lib/org.springframework.test-3.0.1.RELEASE-A.jar
    /WebServicesExample/src/main/webapp/WEB-INF/lib/org.springframework.transaction-3.0.1.RELEASE-A.jar
    /WebServicesExample/src/main/webapp/WEB-INF/lib/org.springframework.web.portlet-3.0.1.RELEASE-A.jar
    /WebServicesExample/src/main/webapp/WEB-INF/lib/org.springframework.web.servlet-3.0.1.RELEASE-A.jar
    /WebServicesExample/src/main/webapp/WEB-INF/lib/org.springframework.web.struts-3.0.1.RELEASE-A.jar
    /WebServicesExample/src/main/webapp/WEB-INF/lib/org.springframework.web-3.0.1.RELEASE-A.jar
    /WebServicesExample/src/main/webapp/WEB-INF/lib/postgresql-74.213.jar
    /WebServicesExample/src/main/webapp/WEB-INF/lib/saaj-api-1.3.1.jar
    /WebServicesExample/src/main/webapp/WEB-INF/lib/spring-2.0-rc1.jar
    /WebServicesExample/src/main/webapp/WEB-INF/lib/spring-2.5.6.jar
    /WebServicesExample/src/main/webapp/WEB-INF/lib/spring-ws-1.5.8-all.jar
    /WebServicesExample/src/main/webapp/WEB-INF/lib/webservices-api-2.1.jar
    /WebServicesExample/src/main/webapp/WEB-INF/lib/webservices-extra-2.1.jar
    /WebServicesExample/src/main/webapp/WEB-INF/lib/webservices-extra-api-2.1.jar
    /WebServicesExample/src/main/webapp/WEB-INF/lib/webservices-rt-2.1.jar
    /WebServicesExample/src/main/webapp/WEB-INF/lib/xbean-spring-3.0.1.jar

    //libraries in tomcat/lib/
    all jars inside jaxws-ri package
    spring-2.5.6

    Thanks in advance

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Moderator
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    9,929
    Rep Power
    16

    Default Re: JAXWS and spring integration : error accessing wsdl in tomcat 7

    Moved from a staff-only section.

    Please go through the Guide For New Members and BB Code List - Java Programming Forum and edit your post accordingly.

    db
    Why do they call it rush hour when nothing moves? - Robin Williams

Similar Threads

  1. JaxWS WSDL customization
    By Stas in forum Advanced Java
    Replies: 0
    Last Post: 11-13-2012, 10:22 AM
  2. Spring Alfresco integration...
    By nareshthota in forum Spring
    Replies: 0
    Last Post: 03-30-2012, 10:31 AM
  3. WSDL api error
    By SanderSoulwax in forum Java Applets
    Replies: 2
    Last Post: 07-26-2011, 05:21 PM
  4. Error while accessing a JSP page (Spring Framework)
    By new_coder in forum Web Frameworks
    Replies: 0
    Last Post: 12-15-2010, 04:14 PM
  5. Replies: 1
    Last Post: 08-10-2009, 11:51 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •