Foren

Sitemap.xml - error 500

Michele Giacobazzi, geändert vor 10 Jahren.

Sitemap.xml - error 500

Junior Member Beiträge: 40 Beitrittsdatum: 09.09.11 Neueste Beiträge
Hello. I'm using Liferay 6.1.1 and I'm hosting different portal instance on the same tomcat intallation.
If I look for the sitemap.xml file (ex: liferay.com/sitemap.xml) a server error is issued:

17:34:12,839 ERROR [ajp-bio-8009-exec-97020][status_jsp:665] com.liferay.portal.LayoutSetVirtualHostException: Virtual host is associated with company 12149
com.liferay.portal.LayoutSetVirtualHostException: Virtual host is associated with company 12149
at com.liferay.portal.service.impl.LayoutSetLocalServiceImpl.getLayoutSet(LayoutSetLocalServiceImpl.java:210)


If i access the sitemap from the control panel the URL is:

https://www.example.com/sitemap.xml?groupId=10143&privateLayout=false


How can i avoid the server error on the call? I can accept a 404, but not a 500!
thumbnail
Andrew Jardine, geändert vor 8 Jahren.

RE: Sitemap.xml - error 500

Liferay Legend Beiträge: 2416 Beitrittsdatum: 22.12.10 Neueste Beiträge
Old thread but for future reference:

https://issues.liferay.com/browse/LPS-29716

It seems like as long as the groupId is in the request though it works so if you can't upgrade, either a proxy pass that does this, or a StrutsHook (for the path /layouts_admin/sitemap) could be used to patch the issue.

Also refer to this commit: https://github.com/liferay/liferay-portal/commit/a8e305adc52280a4b14bd5743d966948cc92bff8