Announcement Announcement Module
Collapse
No announcement yet.
Where is DefaultValidatorFactory in Spring 1.1.5? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Where is DefaultValidatorFactory in Spring 1.1.5?

    Hi, I downloaded Spring 1.1.5 and copied all jars in its dist directory to my WEB-INF/lib, but
    when starting my web application that uses validation, the system
    complains that org.springframework.validation.commons.DefaultVali datorFactory
    cannot be found. How could that be? Where is it?

    Thansk, Pete

  • #2
    This class can be found in spring-sandbox.jar

    HTH

    Comment


    • #3
      Thanks for your info. I looked at the exploded spring-framework-1.1.5-with-dependencies.zip, but
      I cannot find the spring-sandbox.jar. Where is it? Did I miss it? Is it
      in a separate download?

      Besides, from the source code comging with the download,
      I cannot find the code for class DefaultValidatorFactory. Could you
      please let me know why?

      Many thanks,
      Pete

      Comment


      • #4
        http://cvs.sourceforge.net/viewcvs.p...va?view=markup.
        You may checkout Spring Source from cvs and build the sandbox jar locally using:
        build sandbox.jar
        HTH

        Comment


        • #5
          Omar,

          I really appreciate your info. I never did CVS before. Could you
          please let me know how to do it? Or where can I find info regarding
          how to do it?

          Thanks,
          Pete

          Comment


          • #6
            From the top of my head....
            First of all, you need to download the CVS client from http://www.wincvs.org (if you are using Windows). You may read the documentation on using the GUI client. Below is the command line version I use (file update.cmd):
            Code:
            cvs -d:pserver:[email protected]:/cvsroot/springframework login
            You will be prompted for the password. Just press enter as anonymous password is empty.
            Code:
            cvs -z9 -d:pserver:[email protected]:/cvsroot/springframework co -P -A spring > status.log
            cvs -z9 -d:pserver:[email protected]:/cvsroot/springframework co -P -A samples >> status.log
            cvs -z9 -d:pserver:[email protected]:/cvsroot/springframework co -P -A spring-beandoc >> status.log
            cvs -z9 -d:pserver:[email protected]:/cvsroot/springframework co -P -A spring-modules >> status.log
            these commands checkout Spring modules and create a status.log file that points out the changes since the last checkout.

            now to compile Spring locally, you need to install JDK 1.4 or above and set the JAVA_HOME environment variable. Change directory to <PATH_TO_SPRING>\spring and execute:
            Code:
            build clean
            build release
            And if you need to build the sandbox jar
            Code:
            build sandbox.clean
            build sandbox.jar
            You can, also, use
            Code:
            build -projecthelp
            to get the available commands list.

            Please let me know if it worked for you.

            Comment


            • #7
              One last thing,
              Code:
              cvs -z9 -d&#58;pserver&#58;[email protected]&#58;/cvsroot/springframework co -P -A spring > status.log
              checks out the last version from CVS, this is actually 1.2 RC1. If you need to check out a previous version, let's say 1.1.5, use:
              Code:
              cvs -z9 -d&#58;pserver&#58;[email protected]&#58;/cvsroot/springframework co -P -rrelease-1-1-5 spring > status.log
              HTH

              Comment


              • #8
                Omar,

                Thank you soooooooooooooo much!

                Pete

                Comment

                Working...
                X