Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
Unable to filter file under replicationFarm node
kaleemS
Hi Guys,
I am trying to filter a folder from getting deployed to one of the runtime server.
As per configuration mentioned on page 123 of "OpenDeploy Deployment Configuration Guide" I implemented following configuration.
[PHP]
[/PHP]
But it is not working and still deploying the files under "templatedata" folder to runtime.
Has anyone implemented this before ?
Am I missing anything?
Find more posts tagged with
Comments
kaleemS
Environment
TS 7.3.2 - Unix
Adam Stoller
Environment
TS 7.3.2 - Unix
So you're doing Unix to Windows deployments?
If not - something is either wrong with the above information or with the original posting of the deployment specification.
Beyond that - the problem is that you seem to want to filter files from the
source
side, but you're adding filters to the
target
side.
If you filter files from the source side only, they're treated as potential deletions to the target side.
If you filter files from the target side only, and they're part of the list of files to be deployed (list or diff), then they will always be deployed because it is as-if the files don't exist on the target side.
You want to either filter the files on the source side, or on
both
the source
and
target side - and you cannot filter files on the source side from the nodeRef elements - you have to do it within the source portion of the deployment definition in the deployment configuration file.
kaleemS
Yes, I am deploying files from Unix to windows server.
Also, I am able to filter the folder by adding it on the source side as per below:
[PHP]
[/PHP]
And this is filtering the folder for all replicationFarm LSCSRuntime_PROD,LSCSRuntime_STAGING and LSCSRuntime_REVIEW
But I want to filter it only for one replicationFarm (which is LSCSRuntime_PROD)
and it is possible as per the "OpenDeploy Deployment Configuration Guide"
so I configure it as per below:
[PHP]
[/PHP]
The syntax is correct and not showing any error while executing using iwodcmd start command.
However, it doesn't filter the folder.
Is there any other way to filter the folder for specific replicationFarm ?
DynamicCrosstabQuery_wip.rptdesign
Adam Stoller
You are either misunderstanding the documentation (I'm not looking at it right now) or there is an error in the documentation.
The filters placed within the nodeRef elements are TARGET-SIDE filters - and thus
do not
affect the
sending
of files from the source side.
For your situation you need to create multiple
definition
s - one that filters the files on the source side and one that doesn't - and, either multiple execDeploymentTask's (one for each definition) - or a single execDeploymentTask that uses a passed-in parameter to determine which definition it exec's, and that definition would use a parameter to determine which replicationFarm it uses.
kaleemS
Thank you ghoti for your quick reply.
If I add multiple definition one for production and remaining parameter based then it is working fine if we run it from command line ( ./iwodstart )
[PHP]
[/PHP]
However, if we add multiple definition in commit-deploy-plc.xml then it doesn't work.
I tried with following configuration
[PHP]
async="no" logLevel="DEBUG" />
[/PHP]
Getting following error on plc workflow
"Error during task execution: Could not invoke method: deployFiles, reason: null"
And Error log
[PHP]
2013-11-26 10:39:37,346 INFO [STDOUT] [ INFO] 10:39:37 PrePostCommandTransformer - Time taken to execute command [ inprocess:com.hcsc.workflow.util.WorkflowMod 3 millis ]
2013-11-26 10:39:45,233 INFO [STDOUT] [ERROR] 10:39:45 OpenDeploymentServiceAdapter - obtained target LiveSiteRuntime1
for/default/main/bcbs/WORKAREA/shared
2013-11-26 10:39:45,243 INFO [STDOUT] [ERROR] 10:39:45 DeploymentWebTask - Error during task execution: Could not invoke method: deployFiles, reason: null
java.lang.RuntimeException: Could not invoke method: deployFiles, reason: null
at com.interwoven.livesite.workflow.web.task.AbstractDispatchWebTask.handleExecution(AbstractDispatchWebTask.java:105)
at com.interwoven.livesite.workflow.web.task.AbstractAjaxWebTask.execute(AbstractAjaxWebTask.java:72)
at com.interwoven.livesite.workflow.web.action.CSWebTaskAction.execute(CSWebTaskAction.java:110)
at org.springframework.web.struts.DelegatingActionProxy.execute(DelegatingActionProxy.java:113)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.interwoven.livesite.spring.hibernate.web.filter.OpenSessionsInViewFilter.doFilterInternal(OpenSessionsInViewFilter.java:108)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)
at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:259)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.interwoven.ui.base.impl.auth.AuthenticationFilter.doFilter(AuthenticationFilter.java:203)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.interwoven.ui.base.util.SetRequestEncodingFilter.doFilter(SetRequestEncodingFilter.java:106)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.interwoven.livesite.workflow.web.task.AbstractDispatchWebTask.handleExecution(AbstractDispatchWebTask.java:94)
... 39 more
Caused by: java.lang.NullPointerException
at java.lang.String.(String.java:147)
at com.interwoven.livesite.lscs.processor.LSCSContentHelper.replaceParamWithValues(LSCSContentHelper.java:230)
at com.interwoven.livesite.lscs.processor.LSCSContentHelper.updateContent(LSCSContentHelper.java:167)
at com.interwoven.livesite.lscs.impl.LSCSDeploymentServiceAdapter.buildDeployment(LSCSDeploymentServiceAdapter.java:240)
at com.interwoven.livesite.lscs.impl.LSCSDeploymentServiceAdapter.buildDeployments(LSCSDeploymentServiceAdapter.java:133)
at com.interwoven.livesite.deployment.impl.BaseDeploymentService.buildDeploymentList(BaseDeploymentService.java:178)
at com.interwoven.livesite.deployment.impl.BaseDeploymentService.deployFiles(BaseDeploymentService.java:326)
at com.interwoven.livesite.workflow.web.task.DeploymentWebTask.deployFiles(DeploymentWebTask.java:133)
... 44 more
[\PHP]
Any Idea sugesstion to resolve this ?