- This topic has 3 replies, 2 voices, and was last updated 15 years, 4 months ago by Brian Fernandes.
-
AuthorPosts
-
gatorMemberI’m trying to use Spring Security 2.0.4 with my web app, and I’ve ran into a problem.
It seems that when I’m “online” my namespace finds the schema for spring security online and everything works, but when I’m offline my <security: whatever> is highlighted as an error because it can’t find the schema.
I went to preferences, and in the xml schema catalog I do see spring-security-2.0.0 and 2.0.1, but they’re also showing a red error mark next to them as if the .xsd file doesn’t exist like all the other .xsd schemas.
Can anyone please help to guide me to getting the spring-security schema files for myEclipse?
gatorMemberI listed where the spring security schema is pointing to, but what I don’t understand is that all the other schema files for other frameworks and such have a direct path like
C:\User\etc…..xsd. so I’m guessing that these files are actually in a folder where as the spring security schema is found only by going online.Is there a way to add the spring security schema? That’s if this is the problem, but I don’t know, and I’m not an expert.
Location: platform:/plugin/org.springframework.security.core/org/springframework/security/config/spring-security-2.0.2.xsd
URI: platform:/plugin/org.springframework.security.core/org/springframework/security/config/spring-security-2.0.2.xsd
Key Type: Schema Location
Key: http://www.springframework.org/schema/security/spring-security-2.0.2.xsdThank you
gatorMemberSo I’ve narrowed it down to the xml catalog. I need to add the spring security .xsd files to the catalog, so that if I’m offline I’ll still have access to the spring security schema. The .xsd files are located in the .jar file and there’s even a catalog.xml. The question is how to add this as a new entry into the myEclipse xml catalog?
I’ve tried saving the .xsd file to my desktop them adding it, and for key I’ve put schema location, and for location I’d put the whole http://www.springfram……xsd.
It still will not work because I’m doing something wrong here. Is there a way to access the .xsd file from within the .jar?
I’ve spent so long on this, so if you have the solution I’d really appreciate it.
Brian FernandesModeratorgator,
Sorry you ran into this problem, the schema should have been available out of the box, we’ll fix this in the next release. I was able to replicate the problem and fix it with the following steps:
1) Save XSD file to your hard disk, I will assume c:\dev\spring-security-2.0.2.xsd (any location is fine)
2) Go to Window > Preferences > MyEclipse Enterprise Workbench > Files and Editors > XML > XML Catalog and choose “Add”
For the various fields, enter:
a) Location: c:\dev\spring-security-2.0.2.xsd
b) Key Type: Schema Location
c) Key: http://www.springframework.org/schema/security/spring-security-2.0.2.xsdThat should make the schema available to you even when offline, please let us know if you require further assistance.
-
AuthorPosts