Announcement Announcement Module
Collapse
No announcement yet.
Problem with maven and tutorial Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Problem with maven and tutorial

    Hi,

    I just tried to run the tutorial and therefore I executes the given maven command. But all what I get is a builderror:
    Code:
    [INFO] ------------------------------------------------------------------------
    [ERROR] BUILD ERROR
    [INFO] ------------------------------------------------------------------------
    [INFO] Failed to resolve artifact.
    
    GroupId: org.springframework.ws
    ArtifactId: spring-ws-archetype
    Version: 1.0.0
    
    Reason: Unable to download the artifact from any repository
    
    Try downloading the file manually from the project website.
    
    Then, install it using the command:
        mvn install:install-file -DgroupId=org.springframework.ws -DartifactId=sprin
    g-ws-archetype \
            -Dversion=1.0.0 -Dpackaging=jar -Dfile=/path/to/file
    Alternatively, if you host your own repository you can deploy the file there:
      mvn deploy:deploy-file -DgroupId=org.springframework.ws -DartifactId=spring-ws
    -archetype \
            -Dversion=1.0.0 -Dpackaging=jar -Dfile=/path/to/file \
             -Durl=[url] -DrepositoryId=[id]
    
    
      org.springframework.ws:spring-ws-archetype:jar:1.0.0
    
    from the specified remote repositories:
      id0 (http://s3.amazonaws.com/maven.springframework.org)
    Whats going wrong here?

    Thanks for your help and best regards,
    Andreas

  • #2
    Have you tried configuring your maven proxy settings?

    Comment


    • #3
      How do I do that? I am new to maven and Spring...

      Comment


      • #4
        Well, the thing is that the tutorial is already using the 1.0.0 version, I haven't uploaded it yet!

        Working on it though, hang tight.

        Comment


        • #5
          Hi,

          I see, but is there any version, which I can use instead of the 1.0.0?

          Thanks for your help and best regards,
          Andreas

          Have a nice weekend

          Comment


          • #6
            Hi,

            can you tell me when we will have a 1.0 version in the maven repo? I too can't get the tutorial to work as I'm getting runtime exceptions because of incorrect dependancies.

            Many thanks,

            John.

            Comment


            • #7
              Same problem here.

              How can I fix the problem myself?
              Or
              where can I find Info on how to fix the problem?

              Thanks
              jacques

              Comment


              • #8
                Hi couzteau,

                Are you having the same problem as me?

                My build runs ok until I try a request, I get the following server side exception:

                Code:
                java.lang.NoSuchMethodError: javax.xml.parsers.SAXParserFactory.getSchema()Ljavax/xml/validation/Schema;
                com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.<init>(SAXParserImpl.java:124)
                	com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl.newSAXParser(SAXParserFactoryImpl.java:98)
                	com.sun.xml.messaging.saaj.util.ParserPool.get(ParserPool.java:61)
                	com.sun.xml.messaging.saaj.soap.EnvelopeFactory.createEnvelope(EnvelopeFactory.java:78)
                	com.sun.xml.messaging.saaj.soap.ver1_1.SOAPPart1_1Impl.createEnvelopeFromSource(SOAPPart1_1Impl.java:71)
                	com.sun.xml.messaging.saaj.soap.SOAPPartImpl.getEnvelope(SOAPPartImpl.java:125)
                	org.springframework.ws.soap.saaj.Saaj13Implementation.getEnvelope(Saaj13Implementation.java:167)
                	org.springframework.ws.soap.saaj.SaajSoapMessage.toString(SaajSoapMessage.java:205)
                Heres my build dependancies:

                Code:
                <dependencies>
                        <dependency>
                            <groupId>org.springframework.ws</groupId>
                            <artifactId>spring-ws-core</artifactId>
                            <version>1.0-rc2</version>
                        </dependency>
                        <dependency>
                            <groupId>jdom</groupId>
                            <artifactId>jdom</artifactId>
                            <version>1.0</version>
                        </dependency>
                        <dependency>
                            <groupId>jaxen</groupId>
                            <artifactId>jaxen</artifactId>
                            <version>1.1</version>
                        </dependency>
                        <dependency>
                            <groupId>javax.xml.soap</groupId>
                            <artifactId>saaj-api</artifactId>
                            <version>1.3</version>
                            <scope>runtime</scope>
                        </dependency>
                        <dependency>
                            <groupId>com.sun.xml.messaging.saaj</groupId>
                            <artifactId>saaj-impl</artifactId>
                            <version>1.3</version>
                            <scope>runtime</scope>
                        </dependency>
                        <dependency>
                            <groupId>org.springframework</groupId>
                            <artifactId>spring</artifactId>
                            <version>2.0</version>
                        </dependency>
                        <dependency>
                            <groupId>javax.jws</groupId>
                            <artifactId>jsr181</artifactId>
                            <version>1.0</version>
                        </dependency>
                    </dependencies>

                As you can see I'm using 1.0-rc2. My question is will this problem be resolved with the release of 1.0 to the mvn repos, or can I fix this by tweaking my dependencies and including a different xmlparsers package?

                Many thanks for your help, I know the Spring-ws guys are working hard to get the 1.0 mvn repo up.

                John.

                Comment


                • #9
                  i was using 1.0rc2 before and had another error: downloading jta failed.

                  then I saw 1.0.0 was available and tried that. Now spring fails

                  I'm hope the issue will be resolved, soon.

                  Comment


                  • #10
                    Hi,

                    are you using maven to build? Where are you getting 1.0 from? Are you just down loading it and installing it manaully?

                    John

                    Comment


                    • #11
                      Hi again,

                      I just tried installing spring-ws-core 1.0.0 and spring-xml 1.0.0 manually into maven. The build runs but the web app wont boot up. The ContextLoaderListener wont come up.

                      Going back to the problem I had before with the java.lang.NoSuchMethodError error. I see in the FAQ this can possibly be resolved by using saaj-api and saaj-impl 1.2 instead of 1.3 but I can't find a download for 1.2 anywhere.

                      </jar-hell>

                      I think we will just have to wait for a proper spring-ws 1.0 mvn release.

                      John.

                      Comment


                      • #12
                        Hi,

                        I used the spring ws version 1.0-RC2 to runs the maven build and that works fine for me.

                        Greetings,
                        Andreas

                        Comment


                        • #13
                          Hi Andreas,

                          Can you run a request against your service and get a response back with the SoapUI ?

                          Also, can you post your pom dependancy list please so I can see exactly what other packages you are bringing into your build?

                          John.

                          Comment


                          • #14
                            trying rc2 again.

                            Comment


                            • #15
                              My rc2 problem is back again:
                              Downloading: http://repo1.maven.org/maven2/javax/...jta-1.0.1B.jar
                              [INFO] ------------------------------------------------------------------------
                              [ERROR] BUILD ERROR
                              [INFO] ------------------------------------------------------------------------
                              [INFO] Failed to resolve artifact.

                              Missing:
                              ----------
                              1) javax.transaction:jta:jar:1.0.1B

                              Try downloading the file manually from:
                              http://java.sun.com/products/jta


                              at http://java.sun.com/products/jta ther is no jta-1.0.1B.jar but only an archive with the classes. I downloaded and created my own with jar -cf jta-1.0.1B.jar javax

                              and ran mvn install:install-file -DgroupId=javax.transaction -DartifactId=jta -Dversion=1.0.1B -Dpackaging=jar -Dfile=/Users/jacques/Desktop/jta_1.0.1B/jta-1.0.1B.jar

                              I fail to understand nthe next error [INFO] ------------------------------------------------------------------------
                              [ERROR] BUILD ERROR
                              [INFO] ------------------------------------------------------------------------
                              [INFO] Error building POM (may not be this project's POM).


                              Project ID: com.agilejava.docbkx:docbkx-maven-plugin
                              POM Location: Artifact [com.agilejava.docbkx:docbkx-maven-pluginom:2.0.6]
                              Validation Messages:

                              [0] 'dependencies.dependency.version' is missing for com.agilejava.docbkx:docbkx-maven-base


                              Reason: Failed to validate POM for project com.agilejava.docbkx:docbkx-maven-plugin at Artifact [com.agilejava.docbkx:docbkx-maven-pluginom:2.0.6]


                              help is appreciated.

                              thanks
                              jacques

                              Comment

                              Working...
                              X