Page 1 of 3 123 LastLast
Results 1 to 10 of 23

Thread: Problem with maven and tutorial

  1. #1
    Join Date
    Aug 2007
    Posts
    5

    Question 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. #2
    Join Date
    Aug 2007
    Location
    Mexico city
    Posts
    3

    Default

    Have you tried configuring your maven proxy settings?

  3. #3
    Join Date
    Aug 2007
    Posts
    5

    Default

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

  4. #4
    Join Date
    Jul 2005
    Location
    Rotterdam, the Netherlands
    Posts
    1,562

    Default

    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.
    Arjen Poutsma

    Spring Web Services Dev Lead
    Please read the FAQ

  5. #5
    Join Date
    Aug 2007
    Posts
    5

    Default

    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

  6. #6

    Default

    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.

  7. #7

    Default

    Same problem here.

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

    Thanks
    jacques

  8. #8

    Default

    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.

  9. #9

    Default

    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.

  10. #10

    Default

    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

Posting Permissions

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