cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Status 404 on smartedit

Former Member
4,779

Hi,

While accessing smartedit the Pages are not loading on dev app server because of below 404 error on UI console :

https://abc-d-fr-app-001.hybrishosting.com:9002/previewServlet?site=abc&cmsTicketId=6477647871223440... - 404

We are using smartedit OOTB which is working fine in local but this issue is only in dev

Please let me know if anybody has solution for this.

Accepted Solutions (0)

Answers (4)

Answers (4)

former_member683533
Discoverer
0 Likes

Hi All,

Please check the below link for reference:

https://answers.sap.com/answers/13050145/view.html

Regards,

Vivek

Former Member
0 Likes

Hi Stefan,

Thanks for getting back.

These are the steps I followed :

  • Added the following in local extensions.xml

<extension name="cmsbackoffice" />

<extension name="cmssmartedit" />

<extension name="cmssmarteditwebservices" />

<extension name="cmswebservices" />

<extension name="permissionswebservices" />

<extension name="previewwebservices" />

<extension name="npmancillary" />

<extension name="smartedit" />

<extension name="smarteditaddon" />

<extension name="smarteditwebservices" />

  • Install smartedit add on to the storefront

ant addoninstall -Daddonnames="smarteditaddon" -DaddonStorefront.yacceleratorstorefront="<mystorefrontname>"

  • ant initialize
  • ant updatesystem
  • ant customize clean all
  • server start
  • Added below in the spring security XML in the store front project

<security:headers>

<security:frame-options disabled="true"/>

</security:headers>

  • Added this to strorefront project.properties.

mystorefront.additionalWebSpringConfigs.smarteditaddon=classpath:/smarteditaddon/web/spring/smarteditaddon-web-spring.xml

  • Build and server start

Issue : When I am trying to access any page or storefront I am getting 404 Page not Found. There is no error in Console but in the browser console I am seeing this error :

GET https://localhost:9002/cx-preview?site=mysitename&cmsTicketId=647781142411691276792eb4-9ba3-4cea-99c... 404

StefanKruk
Active Participant

Is the site the default site provided by Hybris?
Can you check if the previewURL is set on the CMSSite Object?

Also did you provide a URLPattern for the Site?

phoude
Participant
0 Likes

I am having the same problem. Did you find out the cause?

StefanKruk
Active Participant
0 Likes

Did you install the smarteditaddon (which is required for smartedit to work properly) on the storefront?

Further smartedit is an own Extension.

I do not think your problem is with smartedit, but with the perviewServlet?

https://localhost:9002/smartedit should not thrown an 404 in the first place and your URL is indicating that a problem is with the previewServlet.

Also to see some Pages like Category or Product Pages you need to configure the preview URL, as well as preview objects on the CMSSite in Backoffice.

If you have still issues after checking all these points. Please describe what you did, how you have installed Hybris and Smartedit and provide a full error log so that we can reproduce the Issue if possible.

Former Member
0 Likes

I am facing the same issue in my local. Is this issue resolved ?