Initially I wrote a custom namespace where there is only one root element in the namespace. This results in quite a large configuration that I would like to break out in separate files. It seemed to me the best way to do it is by adding the ref element extension from the beans schema. No problem there. The context XML and schema were changed to support 2 reference elements. In order to get the schema to work, I had to define 2 additional root elements for the namespace.
When I run this exception occurs:
As I recall reading, I need 2 more parsers, one for each of the additional root elements.Code:Caused by: org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Cannot locate BeanDefinitionParser for element [application-config]
I may be going down a path here that will lead nowhere...
Since the initial root element references the other root elements; the root element parser would need to call the 2 additional parsers.
I'm not sure if this can be done. If it can be done, I wouldn't know how to control the calling of the parsers.
Will the spring container just automatically handle this issue?


Reply With Quote