Results 1 to 3 of 3

Thread: How do I load the PetClinic project

  1. #1
    Join Date
    Nov 2011
    Posts
    2

    Default How do I load the PetClinic project

    I obtained the PetClinic project from SVN and I want to create the project in SpriongSource. I have the sources in "C:\MyWorkspaces\SpringSource\PetClinic\petcli nic" but I cannot use this as a workspace. At my new Job we create a new Java project giving the folder containing the sources, but at home a new Java project doesn't allow me to specify a directory.

    Your help will be greatly appreciated,

    Alejandro Barrero

  2. #2
    Join Date
    Sep 2008
    Location
    Hamburg, Germany
    Posts
    1,638

    Default

    Hey Alejandro!

    I guess that the PetClinic project is a Maven project that contains a pom.xml file, right? In that case you can import the project as Maven project (Import -> Existing Maven Project). Having said that, I assume you are using the SpringSource Tool Suite which has the Maven support pre-installed into your environment. If you are using plain Eclipse and have installed STS via the Marketplace or manually using the update sites, you would need to add the Maven Integration for Eclipse from the Indigo update site yourself.

    HTH,
    Martin
    Martin Lippert
    SpringSource, a division of VMware
    SpringSource Tools Team
    http://www.springsource.com
    http://twitter.com/martinlippert

  3. #3
    Join Date
    Nov 2011
    Posts
    2

    Default

    Thank you very much for your help. I imported with Maven and I am trying to run the project on Tomcat; in C:\Java\PetClinic\conf\Catalina\localhost I created the file petclinic.xml with the line
    <Context docBase="C:\MyWorkspaces\SpringSource\PetClinic Source\petclinic\src\main\webapp" privileged="true" antiResourceLocking="false" antiJARLocking="false"/>
    But after I start the server I am getting errors, first I had to add commons-login-1.1.1.jar and spring-2.5.3.jar to the serverclasspath. And then I got
    java.lang.NoClassDefFoundError: javax/servlet/ServletContextListener. I read somewhere to add el-api.jar,jsp-api.jar and servlet-api.jar from Tomcat lib to the class path, but now I am getting lots of errors.
    Is there a place where I can find out how to set up the application?

Posting Permissions

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