Oracle WebCenter Content (MOSC)

MOSC Banner

Custom Component Java not working Oracle WebCenter Content 11g

edited Sep 2, 2013 6:19AM in Oracle WebCenter Content (MOSC) 2 commentsAnswered
 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.

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center