since ‎25-10-2018
‎10-04-2020
mohitaem
Level 1
AEM Oracle database connectivity not working
Avatar

mohitaem

mohitaem
- Adobe Experience Manager
Hi Team, I am trying to connect with Oracle database 19c. I have given JDBC configuration and used the below code. But in the below code, I am getting datasource pool as "No data source found with name 'AppCloudDB' (after asking 0 providers)". Can you please help me to find where I am doing a mistake? @SlingServlet(paths = "/bin/getDB", methods = "GET", metatype=true, label = "AppCloud Database Connectivity",description = "AppCloud Database Connectivity")public class TestingDB extends SlingAllMe...

Views

188

Likes

0

Replies

1
AEM 6.5 not working with apache 2.2
Avatar

mohitaem

mohitaem
- Adobe Experience Manager
Hi Team, We are working on upgrading our aem version from 6.3 to 6.5. Because of our internal platform team restriction we are not able to update our dispatcher apache version and we are currently using 2.2. We are not able to do dispatcher flush, we are getting 200 response when doing the dispatcher flush but the files are not getting removed inside the mentioned path in the dispatcher flush agent.

Views

889

Likes

0

Replies

1
Re: Get the resource directory in AEM
Avatar

mohitaem

mohitaem
- Adobe Experience Manager
Shekhar is trying to access "src/main/resources" folder from the java code. He want to create, write, read and delete the file in the resources folder. Since we install the java project as bundle its not possible to hardcode the path so he is finding it difficult to read the path of "src/main/resources".

Views

3.7K

Likes

0

Replies

3
Load Oracle Database Driver Jar in AEM
Avatar

mohitaem

mohitaem
- Adobe Experience Manager
Hi Team,We followed this 2 articles for using relational Database in AEM:Adobe Experience Manager Help | Injecting a DataSourcePool Service into an Adobe Experience Manager OSGi bundleAdobe Experience Manager Help | Querying and Persisting Adobe Experience Manager data into MySQLAs per the article guideline, we are able to use Oracle 12c database in AEM. But to use Oracle 12c Database we have to upload Oracle 12c Driver as a jar separately using OSGi bundle. Our production team does not allow to...

Views

1.0K

Likes

0

Replies

3
Re: Not able to load resources folder file
Avatar

mohitaem

mohitaem
- Adobe Experience Manager
Thanks so much for the quick response smacdonald2008The stackoverflow post was really useful to find the right solution. This is the code for loading the inputStream from the file which is inside the resources folder in bundle jar. Thanks,Mohit

Views

319

Likes

0

Replies

0
Not able to load resources folder file
Avatar

mohitaem

mohitaem
- Adobe Experience Manager
Hi Team,We are trying to load "geodb.mmdb" which is present in resources folder in our AEM bundle code. Maxmind uses this mmdb file. Code for loading the file:File database = new File(classLoader.getResource("geodb.mmdb").getFile());dbReader = new DatabaseReader.Builder(database).build();We are pretty sure that the file exists in the resources folder in our maven project. When we build our package and upload it in AEM we get "java.io.FileNotFoundException: \geodb.mmdb (The system cannot find the...

Views

393

Likes

0

Replies

2
Re: How to read a file from file system in AEM
Avatar

mohitaem

mohitaem
- Adobe Experience Manager
HiStill, we are not able to load the file which is present in the resources folder. Name of the file geodb.mmdb. Code for loading the file:We are trying to load the file for adding Maxmind geoip2 solution.AEM version : 6.3Java version : 1.8

Views

1.3K

Likes

0

Replies

0