cancel
Showing results for 
Search instead for 
Did you mean: 

SDM Deploy substitution parameter

Former Member
0 Kudos
192

I do not succeed in using substitution parameter during SDM deploy.

I have done following settings:

1/ add new substitution parameter in SDM repository.

-> sdm getsubstvars return following xml :

<SubstVars>

<ParamContainer>

....

<Param type="String" hide="false" name="com.sap.systemdir" displayName="Display Name Parameter ${com.sap.systemdir}">

<![CDATA[D:\usr\sap\J2E\SYS\global]]>

</Param>

<Param type="String" hide="false" name="var1" displayName="NULL">

<![CDATA[test]]>

</Param>

</ParamContainer>

</SubstVars>

"var1" parameter seems to have value = test

2/ I have referenced "var1" in a web.xml :

...

<init-param>

<param-name>CONF_VALUE</param-name>

<param-value>$</param-value>

</init-param>

...

I get following error during SDM Deploy of the ear including the web.xml

:

05/07/27 09:52:20 - com.sap.engine.deploy.manager.MissingSubstitutionException: Missing substitution value for variable [var1].

at com.sap.engine.deploy.manager.DeployManagerImpl.makeTempEar(DeployManagerImpl.java:3727)

at com.sap.engine.deploy.manager.DeployManagerImpl.makeNewEar1(DeployManagerImpl.java:3695)

at com.sap.engine.deploy.manager.DeployManagerImpl.deployUpdateAction(DeployManagerImpl.java:523)

at com.sap.engine.deploy.manager.DeployManagerImpl.update(DeployManagerImpl.java:512)

at com.sap.sdm.serverext.servertype.inqmy.extern.EngineApplOnlineDeployerImpl.performDeployment(EngineApplOnlineDeployerImpl.java:196)

at com.sap.sdm.serverext.servertype.inqmy.extern.EngineDeployerImpl.deploy(EngineDeployerImpl.java:96)

at com.sap.sdm.serverext.servertype.inqmy.EngineProcessor.executeAction(EngineProcessor.java:224)

at com.sap.sdm.app.proc.deployment.impl.PhysicalDeploymentActionExecutor.execute(PhysicalDeploymentActionExecutor.java:60)

at com.sap.sdm.app.proc.deployment.impl.DeploymentActionImpl.execute(DeploymentActionImpl.java:186)

at com.sap.sdm.app.proc.deployment.controllers.internal.impl.DeploymentExecutorImpl.execute(DeploymentExecutorImpl.java:46)

at com.sap.sdm.app.proc.deployment.states.eventhandler.ExecuteDeploymentHandler.executeAction(ExecuteDeploymentHandler.java:83)

at com.sap.sdm.app.proc.deployment.states.eventhandler.ExecuteDeploymentHandler.handleEvent(ExecuteDeploymentHandler.java:60)

at com.sap.sdm.app.proc.deployment.states.StateBeforeNextDeployment.processEvent(StateBeforeNextDeployment.java:127)

at com.sap.sdm.app.proc.deployment.states.InstContext.processEventServerSide(InstContext.java:73)

at com.sap.sdm.app.proc.deployment.states.InstContext.processEvent(InstContext.java:59)

at com.sap.sdm.app.sequential.deployment.impl.DeployerImpl.doPhysicalDeployment(DeployerImpl.java:127)

at com.sap.sdm.app.sequential.deployment.impl.DeployerImpl.deploy(DeployerImpl.java:96)

at com.sap.sdm.control.command.cmds.Deploy.execute(Deploy.java:182)

at com.sap.sdm.control.command.decorator.AssureStandaloneMode.execute(AssureStandaloneMode.java:53)

at com.sap.sdm.control.command.decorator.AssureOneRunningSDMOnly.execute(AssureOneRunningSDMOnly.java:61)

at com.sap.sdm.control.command.decorator.SDMInitializer.execute(SDMInitializer.java:52)

at com.sap.sdm.control.command.decorator.GlobalParamEvaluator.execute(GlobalParamEvaluator.java:60)

at com.sap.sdm.control.command.decorator.AbstractLibDirSetter.execute(AbstractLibDirSetter.java:46)

at com.sap.sdm.control.command.decorator.ExitPostProcessor.execute(ExitPostProcessor.java:48)

at com.sap.sdm.control.command.decorator.CommandNameLogger.execute(CommandNameLogger.java:49)

at com.sap.sdm.control.command.decorator.AdditionalLogFileSetter.execute(AdditionalLogFileSetter.java:65)

at com.sap.sdm.control.command.decorator.AbstractLogDirSetter.execute(AbstractLogDirSetter.java:54)

at com.sap.sdm.control.command.decorator.SyntaxChecker.execute(SyntaxChecker.java:37)

at com.sap.sdm.control.command.Command.exec(Command.java:42)

May i miss anything ?

Best Regards

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

You didn't fill in the displayname (displayName="NULL").

Fill in the following text in displaynameDisplay: "Name Parameter $(var1)"

Then try again.

Please let me know if it's working now.