Announcement Announcement Module
Collapse
No announcement yet.
Problem importing Spring-WS-2.0.0.RELEASE samples into Eclipse Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Problem importing Spring-WS-2.0.0.RELEASE samples into Eclipse

    Hi, I have worked on Spring WS and have never had this problem before. Recently, a colleague of mine wanted to learn using Spring-WS. She downloaded the 2.0.0.RELEASE and found the "samples" directory within it. But she had a problem importing these samples into Eclipse. When I tried to follow the steps she did, I encountered the same problem even on my machine. Please have a look, and let me know if there is something wrong. Here is what we did:

    1) Downloaded the Spring-WS bundle: http://s3.amazonaws.com/dist.springf...LEASE-full.zip
    2) Imported the samples into Eclipse (File -> Import -> Maven -> Existing Maven Projects -> <location-of-samples> -> Finish).

    After completing the above steps, I get this error message in every pom.xml file:

    Project build error: Unresolveable build extension: Plugin org.springframework.build.aws:org.springframework. build.aws.maven:3.1.0.RELEASE or one of its dependencies could not be resolved: Failure to find org.springframework.build.aws:org.springframework. build.aws.maven:jar:3.1.0.RELEASE in http://repository.springsource.com/m...ndles/release/ was cached in the local repository, resolution will not be reattempted until the update interval of com.springsource.repository.bundles.release has elapsed or updates are forced

    Here is the environment I'm working in:
    JDK 1.6
    Eclipse 3.6 (running on above JDK)
    Spring Tool Suite for Eclipse (with Maven plugin)
    Maven 3 (which is used by the above plugin)
    Last edited by vithun; Feb 1st, 2011, 12:06 PM.

  • #2
    Hi,
    Follow these steps.
    1. Select Project 'spring-ws-samples' and do Maven-clean.
    2. Then Update Dependencies.

    It worked for me.

    Comment


    • #3
      Thank you Debadatta for the reply. But that did not work for me. I still got the same error.

      Comment


      • #4
        I was able to fix the problem by adding these lines to my Maven settings.xml:
        Code:
        <pluginRepository>
          <id>spring-plugins</id>
          <url>http://maven.springframework.org/release</url>
          <releases>
            <enabled>true</enabled>
          </releases>
          <snapshots>
            <enabled>true</enabled>
          </snapshots>
        </pluginRepository>

        Comment


        • #5
          Good .. Awesome.. Very good examples out there.

          Comment


          • #6
            Downgrade the version in pom.xml for o.s.build.aws.maven artifactId

            C:\Users\<<>>\.m2\repository\org\springframework\w s\spring-ws-parent\2.0.1.RELEASE\spring-ws-parent-2.0.1.RELEASE.pom

            In the above pom.xml file change

            <extensions>
            <extension>
            <groupId>org.springframework.build.aws</groupId>
            <artifactId>org.springframework.build.aws.maven</artifactId>
            <version>3.1.0.RELEASE</version>
            </extension>
            </extensions>

            to

            <extensions>
            <extension>
            <groupId>org.springframework.build.aws</groupId>
            <artifactId>org.springframework.build.aws.maven</artifactId>
            <version>3.0.0.RELEASE</version>
            </extension>
            </extensions>

            This occurs when the extension is not found in the maven repository. If you encounter any such problems visit http://mvnrepository.com to search for the plugins/extensions that are existing. If you didnt find one that your build requires, then match it to best available version.

            Just before you do this, go to .m2/repository -- delete everything underneath. And then perform mvn package.

            This should help you surpass the issue you are facing, although you may see several others....

            Comment


            • #7
              I did few more to get the build compiled with mvn package. It seems there are some know issues with this. But at least to get a couple of sample projects running, do this in C:\ctondepu\Software\Spring\SPRING WEBSERVICES\spring-ws-2.0.1.RELEASE-full\spring-ws-2.0.1.RELEASE\samples\pom.xml

              comment <!--<module>airline</module>--> and <!--<module>mtom</module>-->
              Also in airline , comment the client module.

              Now run mvn package, this should help and this is what I see.

              ================================================== ================================================== ============================================
              [INFO] ------------------------------------------------------------------------
              [INFO] Reactor Summary:
              [INFO]
              [INFO] Spring WS Samples ................................. SUCCESS [0.066s]
              [INFO] Spring WS Echo Sample ............................. SUCCESS [0.008s]
              [INFO] Spring WS Echo Sample - Server .................... SUCCESS [2.127s]
              [INFO] Spring WS Echo Sample - Clients ................... SUCCESS [0.011s]
              [INFO] Spring WS Echo Sample - SAAJ Client ............... SUCCESS [0.509s]
              [INFO] Spring WS Echo Sample - Spring-WS Client .......... SUCCESS [0.433s]
              [INFO] Spring WS Holiday Service Tutorial ................ SUCCESS [1.670s]
              [INFO] Spring WS POX Sample .............................. SUCCESS [0.007s]
              [INFO] Spring WS POX Sample - Server ..................... SUCCESS [1.595s]
              [INFO] Spring WS POX Sample - Clients .................... SUCCESS [0.008s]
              [INFO] Spring WS POX Sample - Spring-WS Client ........... SUCCESS [0.459s]
              [INFO] Spring WS Stock Quote Sample ...................... SUCCESS [0.018s]
              [INFO] Spring WS Stock Quote Sample - Server ............. SUCCESS [1.034s]
              [INFO] ------------------------------------------------------------------------
              [INFO] BUILD SUCCESS
              [INFO] ------------------------------------------------------------------------
              [INFO] Total time: 8.665s
              [INFO] Finished at: Thu Aug 11 12:39:45 EDT 2011
              [INFO] Final Memory: 7M/18M
              [INFO] ------------------------------------------------------------------------
              ================================================== ================================================== ============================================

              Comment


              • #8
                me too but isn't solved

                Originally posted by ctondepu View Post
                I did few more to get the build compiled with mvn package.

                comment <!--<module>airline</module>--> and <!--<module>mtom</module>-->
                Also in airline , comment the client module.

                Now run mvn package, this should help and this is what I see.

                ================================================== ================================================== ============================================
                [INFO] ------------------------------------------------------------------------
                [INFO] Reactor Summary:
                [INFO]
                [INFO] Spring WS Samples ................................. SUCCESS [0.066s]
                [INFO] Spring WS Echo Sample ............................. SUCCESS [0.008s]
                [INFO] Spring WS Echo Sample - Server .................... SUCCESS [2.127s]
                [INFO] Spring WS Echo Sample - Clients ................... SUCCESS [0.011s]
                [INFO] Spring WS Echo Sample - SAAJ Client ............... SUCCESS [0.509s]
                [INFO] Spring WS Echo Sample - Spring-WS Client .......... SUCCESS [0.433s]
                [INFO] Spring WS Holiday Service Tutorial ................ SUCCESS [1.670s]
                [INFO] Spring WS POX Sample .............................. SUCCESS [0.007s]
                [INFO] Spring WS POX Sample - Server ..................... SUCCESS [1.595s]
                [INFO] Spring WS POX Sample - Clients .................... SUCCESS [0.008s]
                [INFO] Spring WS POX Sample - Spring-WS Client ........... SUCCESS [0.459s]
                [INFO] Spring WS Stock Quote Sample ...................... SUCCESS [0.018s]
                [INFO] Spring WS Stock Quote Sample - Server ............. SUCCESS [1.034s]
                [INFO] ------------------------------------------------------------------------
                [INFO] BUILD SUCCESS
                [INFO] ------------------------------------------------------------------------
                [INFO] Total time: 8.665s
                [INFO] Finished at: Thu Aug 11 12:39:45 EDT 2011
                [INFO] Final Memory: 7M/18M
                [INFO] ------------------------------------------------------------------------
                ================================================== ================================================== ============================================
                Me too but i have problems, ie. on building stockquote client, so as effects artifatcs are missing and client/server have compilation error.

                -----------------------------------------------------
                [INFO] [jaxws:wsimport {execution: default}]
                [INFO] Processing: file://C:\Users\OlindoLap\Desktop\spring-ws-2.0.0.RELEASE\samples\stockquote\client\jax-ws/../../server//src/main/resources/org/springframework/ws/samples/stockquote/ws/stockquote.wsdl
                [INFO] jaxws:wsimport args: [-s, C:\Users\OlindoLap\Desktop\spring-ws-2.0.0.RELEASE\samples\stockquote\client\jax-ws\target\jaxws\wsimport\java, -d, C:\Users\OlindoLap\Desktop\spring-ws-2.0.0.RELEASE\samples\stockquote\client\jax-ws\target\classes, -p, org.springframework.ws.samples.stockquote.client.j axws, file://C:\Users\OlindoLap\Desktop\spring-ws-2.0.0.RELEASE\samples\stockquote\client\jax-ws/../../server//src/main/resources/org/springframework/ws/samples/stockquote/ws/stockquote.wsdl]
                parsing WSDL...


                [ERROR] C

                Failed to read the WSDL document: file://C:/Users/OlindoLap/Desktop/spring-ws-2.0.0.RELEASE/samples/stockquote/client/jax-ws/../../server//src/main/resources/org/springframework/ws/samples/stockquote/ws/stockquote.wsdl, because 1) could not find the document; /2) the document could not be read; 3) the root element of the document is not <wsdl:definitions>.


                [ERROR] failed.noservice=Could not find wsdl:service in the provided WSDL(s):

                At least one WSDL with at least one service definition needs to be provided.

                Comment


                • #9
                  I'm getting the same issue, and I am afraid I am new to Maven as well.

                  So I installed Maven (apache-maven-3.0.3) and it seems to work fine (well I had to jiggle around with the proxy server settings).

                  I then tried to run the mvn package from the command line for (what I am guessing is the simplest example) the echo server:

                  spring-ws-2.0.2.RELEASE\samples\echo\server>mvn pacakge

                  But I get a lot of - to me incomprehensible - errors such as:

                  [INFO] Scanning for projects...
                  [WARNING] The POM for org.springframework.build.aws:org.springframework. build.aws.maven:jar:3.1.0.RELEASE is missing, no dependency informat
                  ion available
                  [ERROR] The build could not read 1 project -> [Help 1]
                  [ERROR]
                  [ERROR] The project org.springframework.ws:echo-server:2.0.2.RELEASE (C:\gemini\aronova\spring-ws-2.0.2.RELEASE\samples\echo\server\pom.xm
                  l) has 1 error
                  [ERROR] Unresolveable build extension: Plugin org.springframework.build.aws:org.springframework. build.aws.maven:3.1.0.RELEASE or one of
                  its dependencies could not be resolved: Failure to find org.springframework.build.aws:org.springframework. build.aws.maven:jar:3.1.0.RELEASE
                  in http://repository.springsource.com/m...ndles/release/ was cached in the local repository, resolution will not be reattempted until th
                  e update interval of com.springsource.repository.bundles.release has elapsed or updates are forced -> [Help 2]
                  [ERROR]
                  [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
                  [ERROR] Re-run Maven using the -X switch to enable full debug logging.
                  [ERROR]
                  [ERROR] For more information about the errors and possible solutions, please read the following articles:
                  [ERROR] [Help 1] http://cwiki.apache.org/confluence/d...ldingException
                  [ERROR] [Help 2] http://cwiki.apache.org/confluence/d...utionException

                  What does it all mean!? What do I need to do?

                  Cheers

                  Mat

                  Comment

                  Working...
                  X