Monday, May 7, 2012


It has been a while since I used SpringSource Tool Suite. This has been a terrible mistake on my side as I was forced to use other IDEs. As I was finally giving a choice to re-start using it, I came across an issue that I thought will write about. I'm sure most people already know about this: XSD (for the Spring beans) are no longer included in the distribution. This means that if you are using STS from version 2.7.0 and above, you have to include the proper jar (including the XSD inside the jar) into the classpath. I think this is a good move on SpringSource as I can see why it would make sense for the IDE to help you resolve based on your classpath (i.e. what you are building).

In order to ensure this works, make sure you also do the following:
  1. Go to Properties/Spring/Beans Support/Namespaces
  2. Check the "Use highest XSD version that is available on the project's classpath"
  3. Check the "Load NamespaceHandlers and XSDs from project's classpath"
These did the trick for me. Hope these helps!

No comments: