Already solved? Or do you need me to run a quick test case?.
- When deploying in WCP are you sure is in the Classpath your XLS file?
- Have you tried Thread.getCurrentThread().getContextClassLoader().getResourceAsStream() instead?
- Is it fully need to be part of the PortalSharedLibrary? Cannot you load it by a call to Oracle WebCenter Content or place it in file system? You can configure a JVM startup argument to point a folder where is it or include a folder as part of the Classpath of WebCenter Portal.
1 person found this helpful
I have had this issue; and it solved with class loader,
ClassLoader will locate run root path of jar and it will find resource folder.
ClassLoader cloader = this.getClass().getClassLoader();
pXSLT = cloader.getResourceAsStream("resource/util/xslt/XSLTransform001.xslt");
Have a nice day.
Thanks for sharing this with us
Thanks much for your helps.
it is working both of