Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

ACS AEM Commons - Class not found by acs-aem-commons-bundle

Avatar

Avatar
Validate 10
Level 2
SurendraKonatha
Level 2

Likes

5 likes

Total Posts

63 posts

Correct Reply

6 solutions
Top badges earned
Validate 10
Validate 1
Boost 5
Boost 3
Boost 1
View profile

Avatar
Validate 10
Level 2
SurendraKonatha
Level 2

Likes

5 likes

Total Posts

63 posts

Correct Reply

6 solutions
Top badges earned
Validate 10
Validate 1
Boost 5
Boost 3
Boost 1
View profile
SurendraKonatha
Level 2

17-09-2018

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

Replies

Avatar

Avatar
Validate 1
Level 2
atulj76172708
Level 2

Likes

8 likes

Total Posts

34 posts

Correct Reply

6 solutions
Top badges earned
Validate 1
Ignite 3
Ignite 1
Give Back 5
Give Back 3
View profile

Avatar
Validate 1
Level 2
atulj76172708
Level 2

Likes

8 likes

Total Posts

34 posts

Correct Reply

6 solutions
Top badges earned
Validate 1
Ignite 3
Ignite 1
Give Back 5
Give Back 3
View profile
atulj76172708
Level 2

17-09-2018

Please make sure you add this dependency in bundle's pom.xml.

<dependency> 

      <groupId>com.microsoft.azure</groupId> 

      <artifactId>azure-storage</artifactId> 

</dependency>

Avatar

Avatar
Boost 1
Level 2
saurabhs6289352
Level 2

Like

1 like

Total Posts

11 posts

Correct Reply

2 solutions
Top badges earned
Boost 1
Affirm 1
View profile

Avatar
Boost 1
Level 2
saurabhs6289352
Level 2

Like

1 like

Total Posts

11 posts

Correct Reply

2 solutions
Top badges earned
Boost 1
Affirm 1
View profile
saurabhs6289352
Level 2

17-09-2018

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.

Avatar

Avatar
Boost 5
Level 3
vaibhavs7024655
Level 3

Likes

18 likes

Total Posts

28 posts

Correct Reply

6 solutions
Top badges earned
Boost 5
Boost 3
Boost 10
Boost 1
Affirm 5
View profile

Avatar
Boost 5
Level 3
vaibhavs7024655
Level 3

Likes

18 likes

Total Posts

28 posts

Correct Reply

6 solutions
Top badges earned
Boost 5
Boost 3
Boost 10
Boost 1
Affirm 5
View profile
vaibhavs7024655
Level 3

18-09-2018

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