I'm trying to write a custom class in [ACS Commons' MCP Tool][1]
Including "azure storage" api in "pom.xml" as below:
<dependency>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-storage</artifactId>
<version>8.0.0</version>
</dependency>
The build runs fine without any compile errors, but while running the program i'm seeing the below in error logs:
Sample usage:
import com.microsoft.azure.storage.CloudStorageAccount;
..
public class AzureAssetIngestor extends AssetIngestor {
private CloudStorageAccount storageAccount;
..
storageAccount = CloudStorageAccount.parse(storageConnectionString);
Error in logs while executing the program
Caused by: java.lang.ClassNotFoundException: com.microsoft.azure.storage.CloudStorageAccount not found by com.adobe.acs.acs-aem-commons-bundle
Caused by: java.lang.ClassNotFoundException: com.microsoft.azure.storage.CloudStorageAccount not found by com.adobe.acs.acs-aem-commons-bundle [521]
at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1574)
at org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.java:79)
at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:2018)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
[1]: https://adobe-consulting-services.github.io/acs-aem-commons/features/mcp-tools/index.html
Views
Replies
Total Likes
Please make sure you add this dependency in bundle's pom.xml.
<dependency>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-storage</artifactId>
</dependency>
Views
Replies
Total Likes
Please check in ~/.m2 azure-storage jar is not corrupt. It can happen you have 0KB azure storage jar. Also, you can use mvn -U clean install which will force to download the dependency.
Views
Replies
Total Likes
SurendraKonathala I would suggest you to raise this at [1] where you can get help from the community contributing to ACS Commons.
[1] Issues · Adobe-Consulting-Services/acs-aem-commons · GitHub
Views
Replies
Total Likes
Views
Likes
Replies