AnsweredAssumed Answered

Building Block Dependencies - Library in libext folder exist but getting ClassNotFoundException

Question asked by rafael.canelas on Sep 23, 2016
Latest reply on Oct 25, 2016 by mb23565



I am developing three building block that depend on each others.

I am placing libraries on the /WEB-INF/libext folder on the war file, and apparently the libraries are recognized.

On the building block manifest with the dependancy i am placing the correspondant xml node:


            <bbversion value="9.1.201510"/>


                <plugin-version optional="true" min="2016.9.22.1" handle="[handle]" vendor="[Vendor]"/>




However, when i try calling the library in the libext folder, i get a ClassNotFoundException for one of the classes in the jar (the mylib.jar shown in the error).


I get an error similar to this:

java.lang.ClassNotFoundException: Could not load class my.package.MyClass from any of the allowed classloaders: [{urlPaths=[/usr/local/blackboard/content/vi/BBLEARN/plugins/[Vendor]-[handle]/libextcache/mylib.jar]}, {urlPaths=[/usr/local/blackboard/content/WEB-INF/libext/bb-content-api.jar]}]


I have tried restarting the server, and didn't work.



Can anyone help?