Custom Component Java not working Oracle WebCenter Content 11g
Hi,
I'm trying to reference to the classpath in a java class to access a xml file located under my component $Component_dir/component/classes/cfg/file.xml
In 10g I could access directly to the xml file with no problem.
But in 11g I'm presenting some issues because when I reference to the CLASSPATH by doing this
ctx = new ClassPathXmlApplicationContext("cfg/ucm-reception-config.xml"); in a java class and it seems is not using the classpath defined in the component I created. I think is using the classpath from the application server I'm using in my case "IBM/Websphere/AppServer/lib". I know this because I test it and what I really want is that the classpath that my class use is the one in my component dir.
I'm trying to reference to the classpath in a java class to access a xml file located under my component $Component_dir/component/classes/cfg/file.xml
In 10g I could access directly to the xml file with no problem.
But in 11g I'm presenting some issues because when I reference to the CLASSPATH by doing this
ctx = new ClassPathXmlApplicationContext("cfg/ucm-reception-config.xml"); in a java class and it seems is not using the classpath defined in the component I created. I think is using the classpath from the application server I'm using in my case "IBM/Websphere/AppServer/lib". I know this because I test it and what I really want is that the classpath that my class use is the one in my component dir.
0