[
https://issues.apache.org/jira/browse/DOSGI-52?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12874997#action_12874997
]
Julien Vey commented on DOSGI-52:
---------------------------------
Hi,
I have had a look at this issue in order to avoid DOSGI-69.
It seems that the -Dorg.apache.cxf.spring.validation.mode=VALIDATION_NONE is
used by cxf when it creates its own ApplicationContext.
String mode = SystemUtils.getSpringValidationMode(); <= here
if (null != mode) {
reader.setValidationModeName(mode);
}
In DOSGI, an OsgiBundleXMLAplicationContext is used and as far i know, i don't
see a way to specify the validationMode.
Maybe it would be possible to use a GenericXMLApplicationContext (in the 3.0.x
release of spring)
http://static.springsource.org/spring/docs/3.0.x/javadoc-api/org/springframework/context/support/GenericXmlApplicationContext.html
which has a method setValidating(boolean) to enable or not xml validation.
What do you think ?
> -Dorg.apache.cxf.spring.validation.mode=VALIDATION_NONE doesn't have an effect
> ------------------------------------------------------------------------------
>
> Key: DOSGI-52
> URL: https://issues.apache.org/jira/browse/DOSGI-52
> Project: CXF Distributed OSGi
> Issue Type: Bug
> Components: DSW, Product
> Affects Versions: 1.1
> Reporter: David Bosschaert
>
> Reported by Shulok, Thomas <[email protected]>
> http://old.nabble.com/-DOSGI--cxf-2.2.5-in-the-DOSGI-1.2-snapshot-download--td26880487.html
> When using CXF 2.2.5
> -Dorg.apache.cxf.spring.validation.mode=VALIDATION_NONE
> (the rationale for going to 2.2.5) doesn't seem to have an effect.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.