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

Page creation on AEM 6.5.5 author is giving 405 method not allowed issue

Avatar

Avatar
Validate 1
Level 2
gspatil11
Level 2

Likes

3 likes

Total Posts

14 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Give Back
Boost 3
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 2
gspatil11
Level 2

Likes

3 likes

Total Posts

14 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Give Back
Boost 3
Boost 1
Affirm 1
View profile
gspatil11
Level 2

29-01-2021

Page creation on AEM 6.5.5 author is giving 405 method not supported issue

 

There is small pop-up message as below
 
Error
Could not create page

And over browser/developer/network tab we could see below error. Method POST not supported

Cannot serve request to /aem-perf/bin/wcmcommand in com.day.cq.wcm.core.impl.commands.WCMCommandServlet

 

<html>
<head><title>405 Method POST not supported</title></head>
<body>
<h1>Method POST not supported</h1>
<p>Cannot serve request to /aem-perf/bin/wcmcommand in com.day.cq.wcm.core.impl.commands.WCMCommandServlet</p>

<h3>Request Progress:</h3>
<pre>

 

and also aem logs are writing: 

29.01.2021 02:59:57.101 *INFO* [sling-default-3-com.mastercard.priceless.ws.eop.client.endpoint.scheduler.InventoryCacheInvalidaitonScheduler.5404] org.apache.commons.httpclient.HttpMethodDirector Retrying request
29.01.2021 03:00:00.031 *WARN* [https-jsse-nio2-10.157.248.231-25105-exec-10] com.adobe.granite.auth.cert.impl.ClientCertAuthHandler Unable to create token credentials, setting cert for uid null
com.adobe.granite.keystore.KeyStoreNotInitialisedException: Uninitialised system trust store.
at com.adobe.granite.keystore.internal.KeyStoreServiceImpl.internalGetTrustStore(KeyStoreServiceImpl.java:456)
at com.adobe.granite.keystore.internal.KeyStoreServiceImpl.getTrustStore(KeyStoreServiceImpl.java:150)
at com.adobe.granite.auth.cert.impl.ClientCertAuthHandler.findMappedUsers(ClientCertAuthHandler.java:135)
at com.adobe.granite.auth.cert.impl.ClientCertAuthHandler.extractCredentials(ClientCertAuthHandler.java:108)

 

Is there any help i could get to resolve this issue.

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Seeker
MVP
Suraj_Kamdi
MVP

Likes

146 likes

Total Posts

157 posts

Correct Reply

41 solutions
Top badges earned
Seeker
Bedrock
Engage 1
Springboard
Validate 1
View profile

Avatar
Seeker
MVP
Suraj_Kamdi
MVP

Likes

146 likes

Total Posts

157 posts

Correct Reply

41 solutions
Top badges earned
Seeker
Bedrock
Engage 1
Springboard
Validate 1
View profile
Suraj_Kamdi
MVP

29-01-2021

Answers (2)

Answers (2)

Avatar

Avatar
Ignite 1
MVP
Ankur_Khare
MVP

Likes

159 likes

Total Posts

370 posts

Correct Reply

58 solutions
Top badges earned
Ignite 1
Validate 10
Validate 1
Give Back 50
Give Back 5
View profile

Avatar
Ignite 1
MVP
Ankur_Khare
MVP

Likes

159 likes

Total Posts

370 posts

Correct Reply

58 solutions
Top badges earned
Ignite 1
Validate 10
Validate 1
Give Back 50
Give Back 5
View profile
Ankur_Khare
MVP

24-02-2021

@gspatil11 Few questions-

1. Is it a fresh instance

2. If not have you made any changes to trustore or keystore try to recreate the truststore and keystore.

Avatar

Avatar
Validate 1
Level 2
gspatil11
Level 2

Likes

3 likes

Total Posts

14 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Give Back
Boost 3
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 2
gspatil11
Level 2

Likes

3 likes

Total Posts

14 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Give Back
Boost 3
Boost 1
Affirm 1
View profile
gspatil11
Level 2

23-02-2021

Hi All,

We have allowed POST method for all the servlets in our tomcat server's web.xml file:  /apps_01/webapps/tomcat/conf/<tomcat_server_name>/conf/web.xml as below.                                                                                        <servlet-mapping>                                                                                                                                                                                              <http-method>POST</http-method>
</servlet-mapping>                                                                                                                                                                                               Now 405 POST method issue is resolved and we are able to create pages over siteadmin and users/groups over useradmin on AEM. But we cannot continue with this setting on tomcat's web.xml which will get overwritten with Chef converge. Let us know if we can add the same configuration over aem war file's web.xml file. 
gspatil11

Root Cause: We have compared the tomcat configuration files between Stage and Pre-Production environment .

The only difference we found is below request dumper filter which is enabled on STAGE but not on Pre-PROD over /apps_01/webapps/tomcat/conf/<instance_name>/conf/web.xml.

 

<filter>

<filter-name>requestdumper</filter-name>

<filter-class> org.apache.catalina.filters.RequestDumperFilter                                                                                 

</filter-class>

</filter>

<filter-mapping>

<filter-name>requestdumper</filter-name>

<url-pattern>*</url-pattern>

</filter-mapping>                                                                                                                                     

This configuration gets enabled when we set debug to true over environment.json file as below under SAML section. This is basically sets tomcat’s server.log in debug mode to capture SAML related requests. "SAML": { "enable": true, "debug": true,     

Fix: I have set "debug": true, to "debug": false over environment json file and request dumper filter got removed from tomcat’s web.xml post subsequent chef converge. Now POST calls are working perfectly fine over AEM Author instance.