문제

Google bot is causing a lot of errors in my tapestry 5 application. For example, recently I have changed component id from 'select' to something else. Since that I have a lot of errors in logs (see below), but for users everything is working fine.

I'm not able to get rid off this. I have tried to play with caching, XHR request etc. Nothing seems to work. Could you please help me with this issue? Have i overlooked something? Thank you in advance.

30.11.2013 08:53:14 79499699 [TP-Processor16] ERROR TapestryModule.RequestExceptionHandler  - Processing of request failed with uncaught exception: Component profile/View:companycard.broadnavigation does not contain embedded component 'select'.
org.apache.tapestry5.ioc.util.UnknownValueException: Component profile/View:companycard.broadnavigation does not contain embedded component 'select'.
도움이 되었습니까?

해결책

You might be able to formulate a robots.txt to tell googlebot not to follow your ajax URL's. Since all ajax URL's contain a : character, you might be able to do something like:

robots.txt

User-agent: *
Disallow: \*:*

I'm not sure there's common pattern for submit URL's. I think it will be harder to tell googlebot to ignore submit URL's.

다른 팁

You could tweak tapestry's exception reporting to fail silently for googlebot and other crawlers. You can test for most bots by injecting the Request and checking the User-Agent header.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top