- This topic has 6 replies, 3 voices, and was last updated 9 years, 8 months ago by support-swapna.
-
AuthorPosts
-
zjohnsonMemberI have an application using Spring 4 that was originally put together in regular Eclipse but I want to use it in MyEclipse for Spring (I’m on version 10.6.0, employer-mandated). It has version-less Spring schema references in the application context xml, like so:
<beans:beans xmlns:mvc="http://www.springframework.org/schema/mvc" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:beans="http://www.springframework.org/schema/beans" xmlns:context="http://www.springframework.org/schema/context" xsi:schemaLocation=" http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc.xsd http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd">
In regular Eclipse that’s just fine, but in MyEclipse I get an error, “Referenced file contains errors (http://www.springframework.org/schema/beans/spring-beans-4.0.xsd).”
It’s only on the spring-beans.xsd, and if I add the version number it goes away. So this works:
http://www.springframework.org/schema/beans/spring-beans-4.0.xsd
, but this doesn’t:
http://www.springframework.org/schema/beans/spring-beans.xsd
.
I haven’t been able to find anything on why that particular schema seems to require an explicit version in MyEclipse. I have no cached versions of it and works fine in Eclipse Kepler 4.3.1.
I’d like to keep the original intent of using version-less schema references, but I can’t make it work. Any suggestions?
support-pradeepMemberzjohnson,
We couldn’t replicate the issue at our end on MyEclipse for Spring 10.6.0.
> Can you try removing the cache from Window > Preferences > MyEclipse > Internet tools > Cache and check if you are seeing the issue ?
> Can you please switch to a new workspace and check if you can replicate the issue ?
> Can you please attach the whole application-context.xml file to help us replicate the issue at our end ?
> Can you please copy paste the full error that you are seeing to help us investigate further ? If possible please attach a screenshot of the issue to help us visualise the issue ?
zjohnsonMemberThanks for looking into this by the way, I appreciate it! 🙂
> cache has been removed, problem persists
> switched to a new workspace, problem persists
> application context xml attached
> screenshot of error:
http://imageshack.com/a/img594/3559/urqr.png
Attachments:
You must be logged in to view attached files.
support-pradeepMemberzjohnson,
Thanks for the details provided. I could replicate the issue at our end and I have filed a bug report for the dev team to investigate on this issue.
To remove the validation error, can you please disable ‘Honour all XML schema locations’ option under Window > Preferences> MyEclipse > Validation > XML ?
Sorry for the inconvenience caused and let us know if you see any issues in MyEclipse.
zjohnsonMemberAwesome, thanks! Disabling “Honour all XML schema locations” takes care of that validation error. Thanks for you help on this, much appreciated!
support-pradeepMemberzjohnson,
Glad that you got it solved.
Do let us know if you see any issues in MyEclipse.
support-swapnaModeratorzjohnson,
The fix is out with the latest MyEclipse 2015 release. Please update to MyEclipse 2015 Stable or MyEclipse 2015 CI 11, if you are comfortable working with a continuous integration stream.
You can also download the latest installer from here : https://www.genuitec.com/products/myeclipse/download/
If you are already working with MyEclipse 2015, go to Help > Check for updates and update to the latest release.
Let us know if you see any issues.
-
AuthorPosts