I want to use Apache commons-io V2.4 in a java service. My code works fine in standalone (not webMethods) mode but when I put it on an IS I got an « invocationTargetException ».
After a few research I find an older (V1.4) version of this libraries in « /webMethods/v95/common/lib/ext/ ». To confirm my idea I replace this lib by the recent one and evry thing works fine. Unfortunately this solution is not acceptable as it may cause impact on others ‘apps or on the IS itself.
Is there any way to use my javaservice with the commons-io in the « /code/jar » folder instead of « /webMethods/v95/common/lib/ext/ » ‘s one ?
Packages in IS have their own class loaders, so …\code\jars\ respectively …\code\jars\static are the place to stores jars used for won coding.
/v95/common/lib/ext is for jars used across different webMethods components and shouldn’t used anyway for own coding. For jars used across different packages of IS there is still \instances<instance>\lib\jars, but this too should only be used if a jar is really needed across IS packages and do not interfere with existing ones.