>>>>>>>>But I obtain: Server returned HTTP response code: 401 for URL: http://localhost:8080/drools-guvnor/org.drools.guvnor.Guvnor/package/plx/LATEST/ChangeSet.xml
>>>>>>Did you remove authentication from Guvnor?
You can either remove authentication from your guvnor or pass authentication when you call applyChangeSet(URL url). I am adding the code below.
So here I am using applyChangeSet(URL url) instead of applyChangeSet(String filePath);