Page 2 of 2 FirstFirst 12
Results 11 to 19 of 19

Thread: Building Spring 3 Pet Clinic

  1. #11
    Join Date
    Jun 2008
    Location
    Zurich, Switzerland - Freiburg i. Breisgau, Germany
    Posts
    102

    Default

    Sorry. I cannot see "Other" under File>Import but looking in Eclipse Installation Details I can see that I have the same STS with version 2.3.2.201003230009-RELEASE

    But I have also installed Sprind IDE (2.3.2.201003220227-RELEASE). Does that interfere with STS? What is the difference between Spring IDE and STS?

    Tai
    Tai Truong
    pointsoftware.ch

  2. #12
    Join Date
    Sep 2006
    Location
    Work in New York City
    Posts
    127

    Default

    It says in the spring-framework-3.0.2.RELEASE spring-framework-reference.pdf file :

    The Spring distribution ships with the PetClinic sample, a web application that leverages the
    annotation support described in this section, in the context of simple form processing. The
    PetClinic application resides in the org.springframework.samples.petclinic
    module.
    In another place in that same reference document it says:

    Code:
    PetClinic example
    
    The PetClinic sample application included with the full Spring distribution illustrates several features of
    the Spring TestContext Framework in a JUnit 4.5+ environment
    Well I downloaded spring-framework-3.0.2.RELEASE-with-docs.zip and the PetClinic is not in it, or at least I can't find it there.
    And so I downloaded spring-framework-3.0.2.RELEASE-dependencies.zip and PetClinic is not in it either.

    So am I to understand when the reference manual says, "The PetClinic sample application included with the full Spring distribution " that it actually means I have to install STS and then do ""file" --> "import" --> "Spring Tool Suite" --> "sample" --> " ?

    Does this merit creation of a JIRA issue: either a JIRA to report PetClinic is missing from the full Spring distribution, or else a JIRA to report the Spring Reference manual does not accurately explain how to obtain the PetClinic?
    Last edited by RobertGloverJr; Apr 21st, 2010 at 11:06 AM.
    Java Developer with all the usual Sun Java certifications.

  3. #13
    Join Date
    Apr 2010
    Posts
    1

    Default

    I'm also having a little problem with the petclinic app.

    I got Spring and petclinic installed after a little difficulty along the lines of previous posts.

    I'm running hsql. I had several errors in the petclinic.script file. It didn't like the 'public' schema. It's also missing a semicolon somewhere.

    Anyway, I worked through all that. When I run the petclinic app from the SpringSource Tool Suite I get the following:

    Code:
    Data access failure: PreparedStatementCallback;
    bad SQL grammar [SELECT id, first_name, last_name, address, city, telephone FROM owners WHERE last_name like ?];
    nested exception is java.sql.SQLException:
    Table not found in statement
    [SELECT id, first_name, last_name, address, city, telephone FROM owners WHERE last_name like ?]
    org.springframework.jdbc.BadSqlGrammarException: PreparedStatementCallback;
    bad SQL grammar [SELECT id, first_name, last_name, address, city, telephone FROM owners WHERE last_name like ?];
    nested exception is java.sql.SQLException:
    Table not found in statement [SELECT id, first_name, last_name, address, city, telephone FROM owners WHERE last_name like ?] at
    org.springframework.jdbc.support.SQLErrorCodeSQLExceptionTranslator.translate(SQLErrorCodeSQLExceptionTranslator.java:276) at
    (snip)
    At this point I'm getting stuck - I'm running the hsql manager - I can see the owner table and it is populated. So I'd surmise the petclinic application is using the wrong schema. I don't know how to tell it to use 'public'. How can I determine if the 'sa' user uses the 'public' schema?

  4. #14
    Join Date
    Jan 2006
    Location
    Zürich, Switzerland
    Posts
    423

    Default

    Robert,

    Spring 3.0.x no longer comes with PetClinic. Thus if the documentation you came across (e.g., in the Spring Reference Manual) says PetClinic is included in the distribution, then yes, please open a JIRA issue so that this does not get overlooked for 3.0.3 and 3.1.x.

    Thanks,

    Sam

    p.s. FYI: sample applications are now available stand-alone in a new "sample-apps" repository. Also, the Spring team is working on a replacement for PetClinic called PetCare.

  5. #15
    Join Date
    Jun 2009
    Location
    Sarasota, FL
    Posts
    3

    Default Location of Sample App

    Hi Robert and Sam,

    I found instructions for downloading the Spring 3.0 version of PetClininc here:
    http://stackoverflow.com/questions/2...ate-backed-jpa

    Is there a better location for accessing the source than the SVN repository they list in that post?

    Best regards,
    Tim

  6. #16
    Join Date
    Sep 2006
    Location
    Work in New York City
    Posts
    127

    Default

    I'd like to open a JIRA but it's 12:44am in the morning and I have to get up for work at 6:30am.
    I tried the advice in this thread to install the PetClinic within STS 2.3.2 and it installed PetClinic but it's confusing because I'm accustomed to maven projects, but it seems to have installed as an ant project. I went to a terminal and tried issuing "ant build" but got this error message:

    Code:
    Buildfile: build.xml
    
    build:
        [javac] Compiling 32 source files to /Users/rdg/springsource/stsWs/ws2/PetClinic/.classes
    
    BUILD FAILED
    /Users/rdg/springsource/stsWs/ws2/PetClinic/build.xml:153: /Users/rdg/springsource/stsWs/lib/aspectj not found.
    I see in the "lib" directory there is a "aspectjrt.jar" but there is no "aspectj.jar".

    It was so easy in Spring 2.5.6 because Petclinic came with the download of Spring. Yet in Spring 3.0.2 the reference manual makes constant reference to PetClinic yet PetClinic is removed.

    When I have gotten enough sleep and have some free time, I wil post a JIRA about this.

    Meanwhile, I have to wonder what is going on over in Spring land. It's getting a little crazy.

    Quote Originally Posted by Sam Brannen View Post
    Robert,

    Spring 3.0.x no longer comes with PetClinic. Thus if the documentation you came across (e.g., in the Spring Reference Manual) says PetClinic is included in the distribution, then yes, please open a JIRA issue so that this does not get overlooked for 3.0.3 and 3.1.x.

    Thanks,

    Sam

    p.s. FYI: sample applications are now available stand-alone in a new "sample-apps" repository. Also, the Spring team is working on a replacement for PetClinic called PetCare.
    Java Developer with all the usual Sun Java certifications.

  7. #17
    Join Date
    Jan 2006
    Location
    Zürich, Switzerland
    Posts
    423

    Default

    Quote Originally Posted by tdc9998 View Post
    Is there a better location for accessing the source than the SVN repository they list in that post?
    No. PetClinic is currently only available in that subversion repository.

    Regard,

    Sam

  8. #18
    Join Date
    Jan 2006
    Location
    Zürich, Switzerland
    Posts
    423

    Default

    FYI: I have opened a JIRA issue regarding references to PetClinic in the Spring reference manual. So feel free to follow along here:

    https://jira.springsource.org/browse/SPR-7161

    Regards,

    Sam

  9. #19
    Join Date
    Mar 2011
    Location
    8220 N Perkins Rd, Stillwater, OK 74075
    Posts
    1

    Default

    I have just download the Spring tools Suite. But having problem while installing on Windows 7 32 bit platform. System not allow me to install the software. What should i do for it? Thanks in advance.

Posting Permissions

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