Hi,
I wrote a plugin that uses spring beans. I having trouble loading these beans(xml) when deploying. I tried loading using root classpath by adding beans.xml into plugin’s classes folder, but it error out with resource not found.
I then tried a FileResource with a absolute path to load the beans.xml and get the following:
error.log: 2008.04.29 15:18:34 [org.jivesoftware.openfire.container.PluginManager.loadPlugin(PluginManager.java:506)] Error loading plugin: /opt/openfire_3_5_0/plugins/qbot-0.0.1-snapshot-openfire-plugin
error.log: org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Unable to locate Spring NamespaceHandler for XML schema namespace [http://www.springframework.org/schema/tx]
error.log: Offending resource: URL [file:/data/qbot/beans.xml]
error.log: error.log: at org.springframework.beans.factory.parsing.FailFastProblemReporter.error(FailFastProblemReporter.java:68)
My only work around to add all my dependecies(include spring.jar and my own plugin jar) into openfire’s lib directory to get it loaded.
Is there a better way?
Thanks,
Zemian Deng