Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jasypt-spring3 XML namespace is broken with Spring 4 #1

Open
shollander opened this issue Jan 26, 2016 · 7 comments
Open

jasypt-spring3 XML namespace is broken with Spring 4 #1

shollander opened this issue Jan 26, 2016 · 7 comments

Comments

@shollander
Copy link

When using the jasypt-spring3 XML namespace (http://www.jasypt.org/schema/encryption/jasypt-spring31-encryption-1.xsd) together with the latest spring4 (4.2.4-RELEASE) context namespace (http://www.springframework.org/schema/context/spring-context-4.2.xsd), I get the following error:

Line 676 in XML document from URL [my-context.xml] is invalid; nested exception org.xml.sax.SAXParseException; systemId: http://www.jasypt.org/schema/encryption/jasypt-spring31-encryption-1.xsd; lineNumber: 676; columnNumber: 76; src-resolve: Cannot resolve the name 'context:propertyPlaceholder' to a(n) 'type definition' component.

Looking through the spring-context-4.2.xsd file it appears that Spring changed the name of the complexType from propertyPlaceholder to propertyLoading

The only way I can get the context to load is to not use the context namespace.

@rgRcks
Copy link

rgRcks commented Jan 25, 2017

Were you able to fix the issue? if yes, can you let me know the solution.

@MajewskiKrzysztof
Copy link

I would like to know that too

@shollander
Copy link
Author

I believe there are three workarounds to this issue:

  1. Use Java config.
  2. Don't use the spring-context namespace together with the jasypt-spring31-encryption namespace.
  3. Force spring to use an older version of spring-context.xsd

@abdulaleem
Copy link

See the solution as txt attachment. This text area is not allowing me to enter code here.

@abdulaleem
Copy link

springSecuritysolution.txt

@SwagMuffinMcYoloPants
Copy link

@abdulaleem Your solution seems to work. Thanks.

@chupetoide
Copy link

Hi guys, It is not working with Spring 4 because the class EncryptablePropertyPlaceholderConfigurer has been removed. I am working with Jasypt 1.9.2 and Spring 4.3.5. By the way, I use xml based configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants