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

Thread: Petclinic: Unable to read TLD "META-INF/c.tld"

  1. #11
    Join Date
    Jun 2007
    Posts
    16

    Default

    Nope. That won't solve the problem. You are assuming that I'm using STS distro of Eclipse.

    I am using Helios + STS from the update site. As it turns out, the base distro of Eclipse does not contain the same Maven plugins as the STS distro. The default plugin for Eclipse does not seem to honor the scope of a dependency, therefore it always deploys jsp-api even if you tell it that it is "provided". This causes problems with Tomcat (or compatible servers) at runtime.

    The solution was to install "Maven Integration for Eclipse (Extras) 0.10.0.". This added the missing parts to Maven. I also installed Maven 2.2.1 on my machine and told Eclipse to use that Maven instead of the embedded one.

    This solved the problem about deployments. The <resources> element will hopefully be resolved in a future STS release.

  2. #12

    Default

    You are right. I was assuming you are using STS.

  3. #13
    Join Date
    Jan 2005
    Location
    Zurich
    Posts
    5

    Wink Torczuk got it

    Hi

    Torczuk gave me the right idea. From within the project properties/JEE Module Dependencies unselect both libraries mentioned by him and it'll work. @Torczuk: Thanks a lot! Apparently, Eclipse Maven Integration doesn't respect the Maven scope yet. Thus the manual step
    Smurve

  4. #14
    Join Date
    Nov 2010
    Posts
    1

    Default

    Another way to get it run smoothly in Eclipse Helios is to generate a new Project Configuration with mvn (the console tool, not the plugin).

    First, delete the eclipse configuration files .classpath, .project and the .settings directory, then execute mvn eclipse:eclipse -Dwtpversion=2.0 in the project directory.

    In Eclipse, then right-click the project and select "refresh". E voilá, it will run perfectly. If you take a look at Deployment Assembly in the project configuration now, you will see, that the two jars that are provided are not included anymore.

    I use this trick for other projects too, since the eclipse maven plugin still has some flaws and often fails to make a proper eclipse configuration.

Posting Permissions

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