AEM author over tomcat

Avatar

Avatar

Shallu_Rohilla

Avatar

Shallu_Rohilla

Shallu_Rohilla

19-05-2020

Hi,

I am trying to deploy AEM over Tomcat as app server. However, I have a requirement to add a custom filter class which gets gets called on every request, I have configured this in web.xml and the filter class gets called. However this has dependency on a JAR which I have put in the web-inf/lib folder, however it is not able to find the referenced class and throws class not found exception. I thought of including this a dependency but that can't be done as I need to have an actual project with pom.xml but here I have deployed aem war on Tomcat. Any pointers if someone has tried to access class from an external JAR. Any pointers how this can be done. I tried unzipping the war and checking contents, i have my JAR in lib folder but isnt getting picked.

Any pointers would be appreciated.

Regards,

Shallu

external JAR tomcat

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

berliant

Employee

Avatar

berliant

Employee

berliant
Employee

20-05-2020

It looks like you need to warp your filter as a custom bundle and deploy it to AEM.

Some generic inputs about a bundle project could be found here https://docs.adobe.com/content/help/en/experience-manager-core-components/using/developing/archetype...

Answers (1)

Answers (1)

Avatar

Avatar

Jörg_Hoh

Employee

Total Posts

3.1K

Likes

1.1K

Correct Reply

1.1K

Avatar

Jörg_Hoh

Employee

Total Posts

3.1K

Likes

1.1K

Correct Reply

1.1K
Jörg_Hoh
Employee

21-05-2020

As @berliant  already pointed out, why don't you deploy your filter into AEM? Otherwise you split up your application into multiple codebases, which barely have any relationship and it's actually much harder to share any information between these two.