Announcement Announcement Module
Collapse

Spring Modules forum decommissioned in favor of Spring Extensions

As the Spring Modules project has been replaced by the Spring Extensions (http://www.springsource.org/extensions) project, this forum has been decommissioned in favour of Spring Extensions one at:
http://forum.springsource.org/forumdisplay.php?f=44

Please see the Spring Extensions home page for a complete list of current projects in Java, .NET and ActionScript. You can also propose one if you want.

Cheers,
Costin Leau
SpringSource - http://www.SpringSource.com- Spring Training, Consulting, and Support - "From the Source"
http://twitter.com/costinl
See more
See less
Using Valang (startup and dependency problems) Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Using Valang (startup and dependency problems)

    Hi!

    I am trying to use Valang for server-side and client-side validation, but I am unable to get it to work.
    Since we use Maven I added the following dependency:

    org.springmodules:spring-modules-validation:jar:0.6

    It fails with:

    Downloading: https://maven2-repository.dev.java.n...t-20060502.jar
    [WARNING] Unable to get resource from repository maven2-repository.dev.java.net (https://maven2-repository.dev.java.net/nonav/repository)
    Downloading: http://repo1.maven.org/maven2/javax/...t-20060502.jar
    [WARNING] Unable to get resource from repository central (http://repo1.maven.org/maven2)
    [INFO] ------------------------------------------------------------------------
    [ERROR] BUILD ERROR
    [INFO] ------------------------------------------------------------------------
    [INFO] Failed to resolve artifact.

    Missing:
    ----------
    1) javax.persistence:ejb:jar:3.0-public-draft-20060502

    Try downloading the file manually from the project website.

    Then, install it using the command:
    mvn install:install-file -DgroupId=javax.persistence -DartifactId=ejb \
    -Dversion=3.0-public-draft-20060502 -Dpackaging=jar -Dfile=/path/to/file

    Path to dependency:
    1) xxx:rmiapi:jar:1.4.0.0-SNAPSHOT
    2) org.springmodules:spring-modules-validation:jar:0.6
    3) org.hibernate:hibernate-annotations:jar:3.2.0.cr1
    4) javax.persistence:ejb:jar:3.0-public-draft-20060502

    How do I solve this issue?

    I can make it compile by excluding javax.persistence:ejb, but I figure that it might not be a very good solution in the long run..

    Also, our web application does not use Spring or Acegi (yet) and we would like to limit the number of libraries used.
    E.g. there is no reason (at least not to my knowledge) why Hibernate and Persistence is needed for validation...
    Is it possible to cut down on the dependencies even more?

    Regards,
    Jimisola

  • #2
    Originally posted by jimisola View Post
    Missing:
    ----------
    1) javax.persistence:ejb:jar:3.0-public-draft-20060502
    Hi,

    the Persistence API dependency is a transitive one and in the IVY file seems to be disabled (even if this works only with IVY 1.4 or higher, if I'm not wrong).

    I'll do the same with the POM file, hopefully tomorrow.

    Cheers,

    Sergio B.

    Comment


    • #3
      Originally posted by sbtourist View Post
      Hi,

      the Persistence API dependency is a transitive one and in the IVY file seems to be disabled (even if this works only with IVY 1.4 or higher, if I'm not wrong).

      I'll do the same with the POM file, hopefully tomorrow.

      Cheers,

      Sergio B.
      Great. Thank you.

      Is there actually an dependency on Hibernate as well? If not, I'd appreciate if that was excluded as well. Especially, since the Hibernate annotations causes some confusing as there are annotations for Hibernate and Valang and many of them with the same name (e.g. @Length).

      Regards,
      Jimisola

      Comment


      • #4
        Originally posted by jimisola View Post
        Is there actually an dependency on Hibernate as well? If not, I'd appreciate if that was excluded as well. Especially, since the Hibernate annotations causes some confusing as there are annotations for Hibernate and Valang and many of them with the same name (e.g. @Length).
        I've set the Hibernate-Annotations dependency (and also OGNL and Joda-Time ones) as "provided": this means that if you want to use it, you have to manually copy it in your lib dir.

        The Hibernate-Annotations was the one causing transitive dependency towards EJB3 API and Hibernate, so that should solve the problem.

        Just update to the 0.7 Spring Modules version and use the POM file in the CVS: https://springmodules.dev.java.net/s...dation/pom.xml

        Let us know if everything is ok.

        Thanks,
        Cheers,

        Sergio B.

        Comment


        • #5
          Originally posted by sbtourist View Post
          Just update to the 0.7 Spring Modules version and use the POM file in the CVS: https://springmodules.dev.java.net/s...dation/pom.xml

          Let us know if everything is ok.
          Sergio,

          What exactly do you mean by "update to the 0.7 Spring Modules version and use the POM file in the CVS"? Is 0.7 not deploy for usage by Maven? Perhaps not released at all?

          If not, I would suggest that you deploy a SNAPSHOT/alfa/beta version that I can try instead. We are are a team of developers and I don't want them to fiddle with 0.7 and a special POM.

          Regards,
          Jimisola

          Comment


          • #6
            Originally posted by jimisola View Post
            What exactly do you mean by "update to the 0.7 Spring Modules version and use the POM file in the CVS"? Is 0.7 not deploy for usage by Maven? Perhaps not released at all?
            The 0.7 version has been released (http://www.springframework.org/node/388), but it is not in Maven2 repositories, yet.
            So I mean just that: download the latest release and install in your maven repo theValidation module jar with the new POM checked out from the CVS.

            Originally posted by jimisola View Post
            If not, I would suggest that you deploy a SNAPSHOT/alfa/beta version that I can try instead. We are are a team of developers and I don't want them to fiddle with 0.7 and a special POM.
            I'm sorry, I understand your issue but at the moment we don't have an internal repository where to be able to deploy Maven2 bundles.
            There's a somewhat related Jira issue: http://opensource.atlassian.com/proj...browse/MOD-179
            Vote for it and stay tuned

            Cheers,

            Sergio B.

            Comment


            • #7
              Originally posted by sbtourist View Post
              The 0.7 version has been released (http://www.springframework.org/node/388), but it is not in Maven2 repositories, yet.
              So I mean just that: download the latest release and install in your maven repo theValidation module jar with the new POM checked out from the CVS.
              Ok. I might wait for 0.7 to make it to the central repo then.
              edit: How long do you think it will take for 0.7 to reach the central repo?

              Originally posted by sbtourist View Post
              I'm sorry, I understand your issue but at the moment we don't have an internal repository where to be able to deploy Maven2 bundles.
              There's a somewhat related Jira issue: http://opensource.atlassian.com/proj...browse/MOD-179
              Vote for it and stay tuned
              I've voted for it and also added minor comment. I'll add a new issue if it the original issue reporter or team developer feels that they're separate issues. I am very new to Spring and haven't gotten a clear view of it yet, but Spring and Spring Modules seem to hosted at different places. Who's responsible for the infrastructure of Spring Modules?

              Regards,
              Jimisola
              Last edited by jimisola; Dec 12th, 2006, 05:00 PM.

              Comment

              Working...
              X