AnsweredAssumed Answered

The specified resource was not found, or you do not have permission to access it.

Question asked by hp0042491 on Oct 5, 2017
Latest reply on Nov 14, 2017 by shane

Hello everyone,

 

Updating one of our B2 permissions to comply with Preparing Your Building Blocks For Learn SaaS and Newer Learn Versions .
I have found that when removing permission

 

<permission type="java.io.FilePermission" name="BB_HOME/-" actions="read,write,delete"/>

 

we get the error :

Not Found: The specified resource was not found, or you do not have permission to access it.

I have done some debugging and have found that when I remove the specific permission, the actual exception that is thrown is a:

NoClassDefFoundError: Could not initialize class org.apache.commons.httpclient.methods.PostMethod

 

This is thrown when we try to do:

PostMethod postRequest = new PostMethod("/api.asp");

 

This is a very old plugin that is using old style jsp pages. The actual class that cannot be found exists in the plugin directory under the

/WEB-INF/lib

folder.

 

Has anyone else encountered this issue? Do we need to give the plugin access to BB_HOME/- to be able to load classes in the plugin/WEB-INF/libs folder? Any pointers are truly appreciated.

 

Kind regards,

 

Harry

 

Message was edited by: Harry Perperidis

Outcomes