Xmlschema support - editing spring context files

Hi

Im giving idea a test run (5.1) and have run into a little problem while developing a simple spring application. After having entered the snippet pasted below here, I was given the option to "fetch-external resource" on the xml schema files referenced by the namespace declerations. I did that, but afterwards idea still doesnt recognize the "beans" or "bean" tags. Hovering the mouse over " ]]>

2 comments
Comment actions Permalink

I'm having the same problem. I upgraded to IDEA 6.0 hoping it would fix the issue, but it didn't. Does anyone know how to resolve this problem? Is there even a workaround?

0
Comment actions Permalink

Actually - I figured it out. It has to do with fetching external resources that are invalid. Go into your Project properties, delete all external resources. Then when you open up a Spring XML file, make sure that you only import external resources listed in the xsi:schemaLocation attribute that end with xsd. Don't tell IDEA to import resources such as "http://www.springframework.org/schema/aop" or you will get this problem.

0

Please sign in to leave a comment.