We are facing a strange issue on our staging sites, after publishing the page, if there is any component link in the page then page breaks down. It discards everything from this component link in the final HTML in the browser, however, HTML seems to be correct formed in the server page. Also While previewing in CMS, I can see the complete HTML. We are using SDL web 8 , and DWT in CMS
I can see DWT code for the Component link is correct, default TBB "link resolver TBB" is also working fine as I can see correct tcdl tags in the package zip, Deployer is also working fine as I can see below correctly formed tags in final html page in the server
<tridion:ComponentLink pageURI="tcm:63-9966-64" componentURI="tcm:63-10289" templateURI="tcm:0-0-0" addAnchor="false" linkText="Contests" linkAttributes=" style="display:none" id="select1"" textOnFail="true"/>
But there is an issue in these links as my final output in the browser is not having anything which is below these links or even ignoring this component link itself. so Basically in the server, i can see below HTML in the JSP page
<div class="rightBanner">
<div class="rbTopBlank"> </div>
</div>
<tridion:ComponentLink pageURI="tcm:63-9966-64" componentURI="tcm:63-10289" templateURI="tcm:0-0-0" addAnchor="false" linkText="Contests" linkAttributes=" style="display:none" id="select1"" textOnFail="true"/>
<img src="/en/system/images/generic/select-2m.png" style="display:none;" id="image2"/>
<img src="/en/system/images/generic/select-gifts.png" style="display:none;" id="image3"/>
But in the browser, I can only see
<div class="rightBanner">
<div class="rbTopBlank"> </div>
</div>
So it is discarding everything after the component link. If I remove Component Links from Page in Tridion, then whole page loads correctly.
I can see cd_linking-8.1.1-1008.jar and cd_tags.tld files are present in the bin folder and seems there is nothing wrong in the dynamic link resolver as it is working in live. any clues ? Also i can see cd_dynamic.xml is having entries for each publication , for example :
<Publication Id="xyz"> <Host Domain="xyz.com" Port="80" Protocol="http" Path="/en" /> </Publication>
Is it a mandatory setting ? and What it indicates ? (i do not see this setting in live)
One more thing we found in the Application logs that's it is trying to resolved to the Parent Structure group. for example
<Error> <HTTP> <BEA-101214> <Included resource or file "/xyz/en/birthdays/" not found from requested resource "/xyz/en/birthdays/demoform.jsp".>
<Jan 5, 2020, 1:32:33,97 PM GST> <Error> <HTTP> <BEA-101019> <[ServletContext@703604789[app:xyz module:xyz path:null spec-version:3.1]] Servlet failed with an IOException.
java.io.FileNotFoundException: [HTTP:101214]Included resource or file "/xyz/en/birthdays/" not found from requested resource "/xyz/en/birthdays/demoform.jsp".
at weblogic.servlet.internal.NestedServletResponse.handleResourceNotFoundFromDefaultServlet(NestedServletResponse.java:181)
at weblogic.servlet.internal.NestedServletResponse.sendError(NestedServletResponse.java:130)
at weblogic.servlet.FileServlet.findSource(FileServlet.java:302)
linkAttributes
is breaking the HTML. What happens if you remove that attribute from the ComponentLink tag?