Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: SI webservice demo

  1. #1
    Join Date
    Apr 2008
    Posts
    6

    Default SI webservice demo

    I am trying to run SI ws demo on my Spring IDE. I would like see all the dependency third party jars required to run this demo apart from SI jars. Any Ideas?

  2. #2
    Join Date
    Oct 2005
    Location
    Boston, MA
    Posts
    2,840

    Default

    The root SVN directory for each Spring Integration module contains both a pom.xml and ivy.xml file. For example, for the samples:
    https://src.springframework.org/svn/...ation.samples/

    As far as the dependencies are concerned, for *just* the WS demo, the only dependency is Spring-WS (and transitive dependencies). The SpringSource Enterprise Bundle Repository web app provides a nice way to view all dependencies:
    http://www.springsource.com/reposito...ng+integration

    Hope that helps.

  3. #3
    Join Date
    Oct 2005
    Location
    Boston, MA
    Posts
    2,840

    Default

    By the way, you will notice the only dependencies are Spring JARS, Commons Logging, Commons XML Schema, and javax (servlet, stax, and activation).

    We have been very conscious of minimizing dependencies across all modules in Spring Integration.

  4. #4
    Join Date
    Apr 2008
    Posts
    6

    Default I am getting this error:

    Thanks Mark for your quick reply:

    Configuration problem: Unable to locate Spring NamespaceHandler for XML schema namespace [http://www.springframework.org/schem...ration/stream]
    Offending resource: class path resource [temperatureConversion.xml]

    I know I have seen a previous thread on this error.
    http://forum.springsource.org/showthread.php?t=66438
    Adding to XML Catalog does not fix it. I am really stuck here!

    As I said before I am using SpringIDE.

  5. #5
    Join Date
    Oct 2005
    Location
    Boston, MA
    Posts
    2,840

    Default

    Adding to the XML Catalog is only relevant for the tooling support (the XML editor in Eclipse). What you are seeing is a runtime error. It indicates that you do not have the JAR file on your classpath (the 'org.springframework.integration.stream' JAR in this case).

  6. #6
    Join Date
    Apr 2008
    Posts
    6

    Default Different error now

    I am sorry about that. I have all the dependencies downloaded just in case:

    Now I started getting this error:

    Caused by: org.springframework.beans.BeanInstantiationExcepti on: Could not instantiate bean class [org.springframework.integration.ws.SimpleWebServic eOutboundGateway]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: javax/xml/soap/SOAPException
    at org.springframework.beans.BeanUtils.instantiateCla ss(BeanUtils.java:115)
    at org.springframework.beans.factory.support.SimpleIn stantiationStrategy.instantiate(SimpleInstantiatio nStrategy.java:87)
    at org.springframework.beans.factory.support.Construc torResolver.autowireConstructor(ConstructorResolve r.java:248)
    ... 47 more
    Caused by: java.lang.NoClassDefFoundError: javax/xml/soap/SOAPException

  7. #7
    Join Date
    Apr 2008
    Posts
    6

    Default went further

    I had to include jboss-j2ee.jar, axis2-saaj.jar, axiom-dom etc.,

    Ending up with this error:
    Caused by: org.w3c.dom.DOMException: HIERARCHY_REQUEST_ERR: An attempt was made to insert a node where it is not permitted.

    I am really not sure if this SI WS example is really tested, if so probably need more info.

  8. #8
    Join Date
    Oct 2005
    Location
    Boston, MA
    Posts
    2,840

    Default

    The WS demo runs fine with the JARs that we define in the pom.xml. I'm not sure why you are adding the jboss JARs, but I would recommend using Maven to get the JARs (or Ant with the ivy.xml).
    Last edited by Mark Fisher; May 15th, 2009 at 02:04 PM.

  9. #9
    Join Date
    Apr 2008
    Posts
    6

    Default

    Mark: This is what I have in my class path - I have also tried the once in the dist folder too:

    <classpathentry kind="lib" path="C:/TSS/org.springframework.xml-1.5.5.A.jar"/>
    <classpathentry kind="lib" path="C:/TSS/com.springsource.javax.activation-1.1.1.jar"/>
    <classpathentry kind="lib" path="C:/TSS/com.springsource.javax.servlet-2.5.0.jar"/>
    <classpathentry kind="lib" path="C:/TSS/com.springsource.javax.xml.stream-1.0.1.jar"/>
    <classpathentry kind="lib" path="C:/TSS/com.springsource.org.aopalliance-1.0.0.jar"/>
    <classpathentry kind="lib" path="C:/TSS/com.springsource.org.apache.commons.logging-1.1.1.jar"/>
    <classpathentry kind="lib" path="C:/TSS/com.springsource.org.apache.ws.commons.schema-1.3.2.jar"/>
    <classpathentry kind="lib" path="C:/TSS/org.springframework.aop-2.5.6.SEC01.jar"/>
    <classpathentry kind="lib" path="C:/TSS/org.springframework.context-2.5.6.SEC01.jar"/>
    <classpathentry kind="lib" path="C:/TSS/org.springframework.core-2.5.6.SEC01.jar"/>
    <classpathentry kind="lib" path="C:/TSS/org.springframework.integration-1.0.2.SR1.jar"/>
    <classpathentry kind="lib" path="C:/TSS/org.springframework.integration.adapter-1.0.2.SR1.jar"/>
    <classpathentry kind="lib" path="C:/TSS/org.springframework.integration.ws-1.0.2.SR1.jar"/>
    <classpathentry kind="lib" path="C:/TSS/org.springframework.oxm-1.5.5.A.jar"/>
    <classpathentry kind="lib" path="C:/TSS/org.springframework.oxm.java5-1.5.5.A.jar"/>
    <classpathentry kind="lib" path="C:/TSS/org.springframework.transaction-2.5.6.SEC01.jar"/>
    <classpathentry kind="lib" path="C:/TSS/org.springframework.web-2.5.6.SEC01.jar"/>
    <classpathentry kind="lib" path="C:/TSS/org.springframework.web.servlet-2.5.6.SEC01.jar"/>
    <classpathentry kind="lib" path="C:/TSS/org.springframework.ws-1.5.5.A.jar"/>
    <classpathentry kind="lib" path="C:/TSS/org.springframework.beans-2.5.6.SEC01.jar"/>
    <classpathentry kind="lib" path="C:/TSS/org.springframework.beans-sources-2.5.6.SEC01.jar"/>
    <classpathentry kind="lib" path="C:/TSS/org.springframework.integration-1.0.1.RELEASE.jar"/>
    <classpathentry kind="lib" path="C:/TSS/org.springframework.integration.stream-1.0.2.RELEASE.jar"/>

    With this I get errors:


    Caused by: org.springframework.beans.BeanInstantiationExcepti on: Could not instantiate bean class [org.springframework.integration.ws.SimpleWebServic eOutboundGateway]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: javax/xml/soap/SOAPException
    at org.springframework.beans.BeanUtils.instantiateCla ss(BeanUtils.java:115)
    at org.springframework.beans.factory.support.SimpleIn stantiationStrategy.instantiate(SimpleInstantiatio nStrategy.java:87)
    at org.springframework.beans.factory.support.Construc torResolver.autowireConstructor(ConstructorResolve r.java:248)
    ... 47 more
    Caused by: java.lang.NoClassDefFoundError: javax/xml/soap/SOAPException


    This is very similar to another thread:
    http://forum.springsource.org/showthread.php?t=63043

    which doesn't go anywhere.

  10. #10
    Join Date
    Oct 2005
    Location
    Boston, MA
    Posts
    2,840

    Default

    You need to add the saaj JAR.

    Sorry... you are definitely right that we need to simplify this. We are planning to create a more user-friendly sample distribution. Thanks for helping to confirm that it will be time well spent

Posting Permissions

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