When I deploy a compiled Maven application JAR in an iFlow and the Maven application accesses files under resources in the JAR itself the files cannot be found. When I run this locally there are no problems. This is how I try to do it:
ClassLoader classLoader = Thread.currentThread().getContextClassLoader()
InputStream inStream = classLoader.getResourceAsStream("/Workday.xsd")
How can I access the resources in a Maven project deployed to CPI?
Request clarification before answering.
Hello Andre,
it works for me:
InputStream ris = getClass().getResourceAsStream("/name.txt")
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.