Hi All,

I wrote some tests to utilize the rest service urls provided by the BPS
server.

When i build the test i wrote get this error,

deployUnDeployPackage(org.wso2.bps.integration.tests.bpmn.DeployUnDeployBPMNPackageTestCase)
 Time elapsed: 0.253 sec  <<< FAILURE!
java.lang.NoSuchMethodError:
org.apache.commons.codec.binary.Base64.<init>(I)V
at org.apache.http.impl.auth.BasicScheme.<init>(BasicScheme.java:65)
at org.apache.http.impl.auth.BasicScheme.<init>(BasicScheme.java:84)
at
org.wso2.bps.integration.common.clients.bpmn.ActivitiRestClient.deployBPMNPackage(ActivitiRestClient.java:51)
at
org.wso2.bps.integration.tests.bpmn.DeployUnDeployBPMNPackageTestCase.deployUnDeployPackage(DeployUnDeployBPMNPackageTestCase.java:17)

*The code that uses this method is as follows,*

AuthCache authCache = new BasicAuthCache();
// Generate BASIC scheme object and add it to the local
// auth cache
BasicScheme basicAuth = new BasicScheme();
authCache.put(target, basicAuth);

// Add AuthCache to the execution context
HttpClientContext localContext = HttpClientContext.create();
localContext.setAuthCache(authCache);

I researched on the error and came across some results that mentioned that
the apache common codec version should be above 1.4 to use the method. So i
updated my pom.xml with the dependency as show below :-

        <dependency>
            <groupId>commons-codec</groupId>
            <artifactId>commons-codec</artifactId>
            <version>1.10</version>
        </dependency>

When i compile this code in the IDE, it works. But when i execute "mvn
clean install" the build fails and i get the above mentioned error. Can
someone please guide me how to overcome this issue?

Is the common codec already used in the package?

Thank you
Shiva Balachandran


-- 
Shiva Balachandran
Software Engineer
WSO2 Inc.

Mobile - +94 774445788
Blog - https://shivabalachandran.wordpress.com/
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to