Hi,
We are working on ".NET" environment having IIS server [ not Tomcat] on runtime. We have to change the 'offer' on date-time basis using 'targetting'. Any idea will b helpful.
Thanks
Manissh Khaparde.
Hi Manish,
There are OOTB time based conditions which you can use for this scenario. Also, refer the SPDev guide for executing rules on pages which are rendered via IIS. I remember you need to add <autn:xsl> and <autn:rules> tags something like that in apprearance xsl section for executing the rules.
The rule i am trying to execute is a simple 'static' image which will show this on page-preview and on runtime server. This is the rule i am trying to execute.
Rule:
<Data> <Datum ID="D01" Type="Rule" Name="My Rule"> <ContentTypes> <ContentType>$ALL</ContentType> </ContentTypes> <ActionParameters/> <Option Order="1" Selected="true"> <Display>Test Targeting Text Result</Display> <Value>targeting-heartbeat/Test Targeting Text Result.rule</Value> </Option> </Datum></Data>
But this is giving 'java.lang.RuntimeException: Failed to execute rules and externals' while previewing.
& in content-center.log. it is showing following error.
Caused by: com.interwoven.wcm.lscs.LSCSException: com.interwoven.wcm.lscs.LSCSException: <html><head><title>JBossWeb/2.0.1.GA - Error report</title><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--></style> </head><body><h1>HTTP Status 503 - </h1><HR size="1" noshade="noshade"><p><b>type</b> Status report</p><p><b>message</b> <u></u></p><p><b>description</b> <u>The requested service () is not currently available.</u></p><HR size="1" noshade="noshade"><h3>JBossWeb/2.0.1.GA</h3></body></html> at com.interwoven.wcm.lscs.impl.ClientImpl.getSuggestedMetadata(ClientImpl.java:384) at com.interwoven.ui.tagui.idol.IdolTaggerLscsClient.processContent(IdolTaggerLscsClient.java:429) ... 43 moreCaused by: com.interwoven.wcm.lscs.LSCSException: <html><head><title>JBossWeb/2.0.1.GA - Error report</title><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--></style> </head><body><h1>HTTP Status 503 - </h1><HR size="1" noshade="noshade"><p><b>type</b> Status report</p><p><b>message</b> <u></u></p><p><b>description</b> <u>The requested service () is not currently available.</u></p><HR size="1" noshade="noshade"><h3>JBossWeb/2.0.1.GA</h3></body></html> at com.interwoven.wcm.lscs.impl.JSONExtractionUtils.extractError(JSONExtractionUtils.java:177) at com.interwoven.wcm.lscs.impl.Context.fetchURIAsStream(Context.java:235) at com.interwoven.wcm.lscs.impl.ClientImpl.getSuggestedMetadata(ClientImpl.java:377) ... 44 more.
Though LSCS is enable.
Any help will b helpful
LSCS might be enabled but it doesn't mean it's running correctly. Check your lscs.log for problems.