I am trying to load a Spring Application Context (xml) in a HiveMQ plugin. I seem unable to load the context because it cannot find the xml configuration. The spring-context.xml
is located in "src\main\resources" and i try to load the context using:
ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext("spring-context.xml")
The error i get is the following:
java.io.FileNotFoundException: class path resource [spring-context.xml] cannot be opened because it does not exist