Skip to Content

Resolve placeholders with defaults in web.xml during sca deployment

Hi,
I'm currently using some vm variables to set params in web.xml. CXF version is 2.7, so we can't set it without defining the param in web.xml (ServletExporter,java not yet available)/

It works fine in tomcat if I don't set the VM arg at all, or if I set it. However, on NW I get an error because the placeholder is not resolved (without setting anything in configtool - we want to set default to false without user config).

2019.05.10 10:01:06 INFO: [echo] 2019-05-10 10:00:12,932 INFO - Start deploying archive 'D:\my-service\setup\my-service.sca' Fri May 10 10:00:12 CEST 2019. 2019.05.10 10:01:06 INFO: [echo] 2019-05-10 10:01:03,896ERROR - Exception was thrown! Could not deploy file: my-service.sca 2019.05.10 10:01:06 INFO: [echo] com.sap.engine.services.dc.api.deploy.DeployException: [ERROR CODE DPL.DCAPI.1027] DeploymentException. 2019.05.10 10:01:06 INFO: [echo] Reason: ASJ.dpl_dc.001085 Operation [deploy] of [sap.com_my-service-sca] failed 2019.05.10 10:01:06 INFO: [echo] at com.sap.engine.services.dc.api.deploy.impl.DeployProcessorImpl.deployItems(DeployProcessorImpl.java:891) 2019.05.10 10:01:06 INFO: [echo] at com.sap.engine.services.dc.api.deploy.impl.DeployProcessorImpl.deploy(DeployProcessorImpl.java:259) 2019.05.10 10:01:06 INFO: [echo] at com.gk_software.cst.core.tools.sap_deploy.apps.DeploySAPArchive.deploy(DeploySAPArchive.java:353) 2019.05.10 10:01:06 INFO: [echo] at com.gk_software.cst.core.tools.sap_deploy.Deploy.doDeploy(Deploy.java:68) 2019.05.10 10:01:06 INFO: [echo] at com.gk_software.cst.core.tools.sap_deploy.Deploy.main(Deploy.java:42) 2019.05.10 10:01:06 INFO: [echo] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 2019.05.10 10:01:06 INFO: [echo] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) 2019.05.10 10:01:06 INFO: [echo] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) 2019.05.10 10:01:06 INFO: [echo] at java.lang.reflect.Method.invoke(Unknown Source) 2019.05.10 10:01:06 INFO: [echo] at org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:217) 2019.05.10 10:01:06 INFO: [echo] at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:152) 2019.05.10 10:01:06 INFO: [echo] at org.apache.tools.ant.taskdefs.Java.run(Java.java:771) 2019.05.10 10:01:06 INFO: [echo] at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:221) 2019.05.10 10:01:06 INFO: [echo] at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:135) 2019.05.10 10:01:06 INFO: [echo] at org.apache.tools.ant.taskdefs.Java.execute(Java.java:108) 2019.05.10 10:01:06 INFO: [echo] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292) 2019.05.10 10:01:06 INFO: [echo] at sun.reflect.GeneratedMethodAccessor22.invoke(Unknown Source) 2019.05.10 10:01:06 INFO: [echo] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) 2019.05.10 10:01:06 INFO: [echo] at java.lang.reflect.Method.invoke(Unknown Source) 2019.05.10 10:01:06 INFO: [echo] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) 2019.05.10 10:01:06 INFO: [echo] at org.apache.tools.ant.Task.perform(Task.java:348) 2019.05.10 10:01:06 INFO: [echo] at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68) 2019.05.10 10:01:06 INFO: [echo] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 2019.05.10 10:01:06 INFO: [echo] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) 2019.05.10 10:01:06 INFO: [echo] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) 2019.05.10 10:01:06 INFO: [echo] at java.lang.reflect.Method.invoke(Unknown Source) 2019.05.10 10:01:06 INFO: [echo] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) 2019.05.10 10:01:06 INFO: [echo] at org.apache.tools.ant.Task.perform(Task.java:348) 2019.05.10 10:01:06 INFO: [echo] at net.sf.antcontrib.logic.TryCatchTask.execute(TryCatchTask.java:207) 2019.05.10 10:01:06 INFO: [echo] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292) 2019.05.10 10:01:06 INFO: [echo] at sun.reflect.GeneratedMethodAccessor22.invoke(Unknown Source) 2019.05.10 10:01:06 INFO: [echo] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) 2019.05.10 10:01:06 INFO: [echo] at java.lang.reflect.Method.invoke(Unknown Source) 2019.05.10 10:01:06 INFO: [echo] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) 2019.05.10 10:01:06 INFO: [echo] at org.apache.tools.ant.Task.perform(Task.java:348) 2019.05.10 10:01:06 INFO: [echo] at org.apache.tools.ant.Target.execute(Target.java:435) 2019.05.10 10:01:06 INFO: [echo] at org.apache.tools.ant.Target.performTasks(Target.java:456) 2019.05.10 10:01:06 INFO: [echo] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393) 2019.05.10 10:01:06 INFO: [echo] at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38) 2019.05.10 10:01:06 INFO: [echo] at org.apache.tools.ant.Project.executeTargets(Project.java:1248) 2019.05.10 10:01:06 INFO: [echo] at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:440) 2019.05.10 10:01:06 INFO: [echo] at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105) 2019.05.10 10:01:06 INFO: [echo] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292) 2019.05.10 10:01:06 INFO: [echo] at sun.reflect.GeneratedMethodAccessor22.invoke(Unknown Source) 2019.05.10 10:01:06 INFO: [echo] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) 2019.05.10 10:01:06 INFO: [echo] at java.lang.reflect.Method.invoke(Unknown Source) 2019.05.10 10:01:06 INFO: [echo] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) 2019.05.10 10:01:06 INFO: [echo] at org.apache.tools.ant.Task.perform(Task.java:348) 2019.05.10 10:01:06 INFO: [echo] at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68) 2019.05.10 10:01:06 INFO: [echo] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292) 2019.05.10 10:01:06 INFO: [echo] at sun.reflect.GeneratedMethodAccessor22.invoke(Unknown Source) 2019.05.10 10:01:06 INFO: [echo] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) 2019.05.10 10:01:06 INFO: [echo] at java.lang.reflect.Method.invoke(Unknown Source) 2019.05.10 10:01:06 INFO: [echo] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) 2019.05.10 10:01:06 INFO: [echo] at org.apache.tools.ant.Task.perform(Task.java:348) 2019.05.10 10:01:06 INFO: [echo] at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:396) 2019.05.10 10:01:06 INFO: [echo] at net.sf.antcontrib.logic.ForTask.doSequentialIteration(ForTask.java:259) 2019.05.10 10:01:06 INFO: [echo] at net.sf.antcontrib.logic.ForTask.doToken(ForTask.java:268) 2019.05.10 10:01:06 INFO: [echo] at net.sf.antcontrib.logic.ForTask.doTheTasks(ForTask.java:324) 2019.05.10 10:01:06 INFO: [echo] at net.sf.antcontrib.logic.ForTask.execute(ForTask.java:244) 2019.05.10 10:01:06 INFO: [echo] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292) 2019.05.10 10:01:06 INFO: [echo] at sun.reflect.GeneratedMethodAccessor22.invoke(Unknown Source) 2019.05.10 10:01:06 INFO: [echo] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) 2019.05.10 10:01:06 INFO: [echo] at java.lang.reflect.Method.invoke(Unknown Source) 2019.05.10 10:01:06 INFO: [echo] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) 2019.05.10 10:01:06 INFO: [echo] at org.apache.tools.ant.Task.perform(Task.java:348) 2019.05.10 10:01:06 INFO: [echo] at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68) 2019.05.10 10:01:06 INFO: [echo] at net.sf.antcontrib.logic.IfTask.execute(IfTask.java:197) 2019.05.10 10:01:06 INFO: [echo] at sun.reflect.GeneratedMethodAccessor36.invoke(Unknown Source) 2019.05.10 10:01:06 INFO: [echo] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) 2019.05.10 10:01:06 INFO: [echo] at java.lang.reflect.Method.invoke(Unknown Source) 2019.05.10 10:01:06 INFO: [echo] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) 2019.05.10 10:01:06 INFO: [echo] at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:154) 2019.05.10 10:01:06 INFO: [echo] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292) 2019.05.10 10:01:06 INFO: [echo] at sun.reflect.GeneratedMethodAccessor22.invoke(Unknown Source) 2019.05.10 10:01:06 INFO: [echo] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) 2019.05.10 10:01:06 INFO: [echo] at java.lang.reflect.Method.invoke(Unknown Source) 2019.05.10 10:01:06 INFO: [echo] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) 2019.05.10 10:01:06 INFO: [echo] at org.apache.tools.ant.Task.perform(Task.java:348) 2019.05.10 10:01:06 INFO: [echo] at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68) 2019.05.10 10:01:06 INFO: [echo] at net.sf.antcontrib.logic.IfTask.execute(IfTask.java:217) 2019.05.10 10:01:06 INFO: [echo] at sun.reflect.GeneratedMethodAccessor36.invoke(Unknown Source) 2019.05.10 10:01:06 INFO: [echo] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) 2019.05.10 10:01:06 INFO: [echo] at java.lang.reflect.Method.invoke(Unknown Source) 2019.05.10 10:01:06 INFO: [echo] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) 2019.05.10 10:01:06 INFO: [echo] at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:154) 2019.05.10 10:01:06 INFO: [echo] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292) 2019.05.10 10:01:06 INFO: [echo] at sun.reflect.GeneratedMethodAccessor22.invoke(Unknown Source) 2019.05.10 10:01:06 INFO: [echo] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) 2019.05.10 10:01:06 INFO: [echo] at java.lang.reflect.Method.invoke(Unknown Source) 2019.05.10 10:01:06 INFO: [echo] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) 2019.05.10 10:01:06 INFO: [echo] at org.apache.tools.ant.Task.perform(Task.java:348) 2019.05.10 10:01:06 INFO: [echo] at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68) 2019.05.10 10:01:06 INFO: [echo] at net.sf.antcontrib.logic.IfTask.execute(IfTask.java:197) 2019.05.10 10:01:06 INFO: [echo] at sun.reflect.GeneratedMethodAccessor36.invoke(Unknown Source) 2019.05.10 10:01:06 INFO: [echo] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) 2019.05.10 10:01:06 INFO: [echo] at java.lang.reflect.Method.invoke(Unknown Source) 2019.05.10 10:01:06 INFO: [echo] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) 2019.05.10 10:01:06 INFO: [echo] at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:154) 2019.05.10 10:01:06 INFO: [echo] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292) 2019.05.10 10:01:06 INFO: [echo] at sun.reflect.GeneratedMethodAccessor22.invoke(Unknown Source) 2019.05.10 10:01:06 INFO: [echo] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) 2019.05.10 10:01:06 INFO: [echo] at java.lang.reflect.Method.invoke(Unknown Source) 2019.05.10 10:01:06 INFO: [echo] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) 2019.05.10 10:01:06 INFO: [echo] at org.apache.tools.ant.Task.perform(Task.java:348) 2019.05.10 10:01:06 INFO: [echo] at org.apache.tools.ant.Target.execute(Target.java:435) 2019.05.10 10:01:06 INFO: [echo] at org.apache.tools.ant.Target.performTasks(Target.java:456) 2019.05.10 10:01:06 INFO: [echo] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393) 2019.05.10 10:01:06 INFO: [echo] at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38) 2019.05.10 10:01:06 INFO: [echo] at org.apache.tools.ant.Project.executeTargets(Project.java:1248) 2019.05.10 10:01:06 INFO: [echo] at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:440) 2019.05.10 10:01:06 INFO: [echo] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 2019.05.10 10:01:06 INFO: [echo] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) 2019.05.10 10:01:06 INFO: [echo] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) 2019.05.10 10:01:06 INFO: [echo] at java.lang.reflect.Method.invoke(Unknown Source) 2019.05.10 10:01:06 INFO: [echo] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) 2019.05.10 10:01:06 INFO: [echo] at org.apache.tools.ant.Task.perform(Task.java:348) 2019.05.10 10:01:06 INFO: [echo] at org.apache.tools.ant.Target.execute(Target.java:435) 2019.05.10 10:01:06 INFO: [echo] at org.apache.tools.ant.Target.performTasks(Target.java:456) 2019.05.10 10:01:06 INFO: [echo] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393) 2019.05.10 10:01:06 INFO: [echo] at org.apache.tools.ant.Project.executeTarget(Project.java:1364) 2019.05.10 10:01:06 INFO: [echo] at com.izforge.izpack.event.AntAction.performAction(AntAction.java:185) 2019.05.10 10:01:06 INFO: [echo] at com.izforge.izpack.event.AntAction.performInstallAction(AntAction.java:94) 2019.05.10 10:01:06 INFO: [echo] at com.izforge.izpack.event.AntActionInstallerListener.performAllActions(AntActionInstallerListener.java:302) 2019.05.10 10:01:06 INFO: [echo] at com.izforge.izpack.event.AntActionInstallerListener.afterPack(AntActionInstallerListener.java:205) 2019.05.10 10:01:06 INFO: [echo] at com.izforge.izpack.installer.event.InstallerListeners.afterPack(InstallerListeners.java:312) 2019.05.10 10:01:06 INFO: [echo] at com.izforge.izpack.installer.unpacker.UnpackerBase.unpack(UnpackerBase.java:490) 2019.05.10 10:01:06 INFO: [echo] at com.izforge.izpack.installer.unpacker.UnpackerBase.unpack(UnpackerBase.java:299) 2019.05.10 10:01:06 INFO: [echo] at com.izforge.izpack.installer.unpacker.UnpackerBase.run(UnpackerBase.java:241) 2019.05.10 10:01:06 INFO: [echo] at java.lang.Thread.run(Unknown Source) 2019.05.10 10:01:06 INFO: [echo] Caused by: com.sap.engine.services.dc.cm.deploy.DeploymentException: ASJ.dpl_dc.001085 Operation [deploy] of [sap.com_my-service-sca] failed 2019.05.10 10:01:06 INFO: [echo] at com.sap.engine.services.dc.cm.deploy.impl.OnlineDeployProcessor.performDelivery(OnlineDeployProcessor.java:245) 2019.05.10 10:01:06 INFO: [echo] at com.sap.engine.services.dc.cm.deploy.impl.BulkOnlineDeployProcessor.deploy(BulkOnlineDeployProcessor.java:71) 2019.05.10 10:01:06 INFO: [echo] at com.sap.engine.services.dc.cm.deploy.impl.AbstractDeployProcessor$DeployProcessorHelper.visit(AbstractDeployProcessor.java:283) 2019.05.10 10:01:06 INFO: [echo] at com.sap.engine.services.dc.cm.deploy.impl.DeploymentItemImpl.accept(DeploymentItemImpl.java:84) 2019.05.10 10:01:06 INFO: [echo] at com.sap.engine.services.dc.cm.deploy.impl.AbstractDeployProcessor.deploy(AbstractDeployProcessor.java:100) 2019.05.10 10:01:06 INFO: [echo] at com.sap.engine.services.dc.cm.deploy.impl.DeployThread.run(DeployThread.java:39) 2019.05.10 10:01:06 INFO: [echo] at com.sap.engine.core.thread.execution.Executable.run(Executable.java:122) 2019.05.10 10:01:06 INFO: [echo] at com.sap.engine.core.thread.execution.Executable.run(Executable.java:101) 2019.05.10 10:01:06 INFO: [echo] at com.sap.engine.core.thread.execution.CentralExecutor$SingleThread.run(CentralExecutor.java:328) 2019.05.10 10:01:06 INFO: [echo] Caused by: com.sap.engine.services.dc.gd.DeliveryException: [ERROR CODE DPL.DC.3298] Operation [deploy] of [sap.com_my-service-sca] failed 2019.05.10 10:01:06 INFO: [echo] at com.sap.engine.services.dc.gd.impl.ApplicationDeployer.deploy(ApplicationDeployer.java:172) 2019.05.10 10:01:06 INFO: [echo] at com.sap.engine.services.dc.gd.impl.InitialApplicationDeployer.performDeployment(InitialApplicationDeployer.java:139) 2019.05.10 10:01:06 INFO: [echo] at com.sap.engine.services.dc.gd.impl.InitialGenericDeliveryImpl.deploy(InitialGenericDeliveryImpl.java:58) 2019.05.10 10:01:06 INFO: [echo] at com.sap.engine.services.dc.cm.deploy.impl.OnlineDeployProcessor.performDelivery(OnlineDeployProcessor.java:212) 2019.05.10 10:01:06 INFO: [echo] ... 8 more 2019.05.10 10:01:06 INFO: [echo] Caused by: com.sap.engine.services.deploy.server.utils.DSRemoteException: ASJ.dpl_ds.006193 Operation [deploy] of [C:\usr\sap\E21\J00\j2ee\cluster\server0\.\temp\tc~bl~deploy_controller\archives\2744\my-service_sca1557475213100\DEPLOYARCHIVES\my-service-sca.ear] failed 2019.05.10 10:01:06 INFO: [echo] at com.sap.engine.services.deploy.server.DeployServiceImpl.catchDeploymentExceptionWithDSRem(DeployServiceImpl.java:3545) 2019.05.10 10:01:06 INFO: [echo] at com.sap.engine.services.deploy.server.DeployServiceImpl.deploy(DeployServiceImpl.java:317) 2019.05.10 10:01:06 INFO: [echo] at com.sap.engine.services.dc.gd.impl.ApplicationDeployer.deploy(ApplicationDeployer.java:142) 2019.05.10 10:01:06 INFO: [echo] ... 11 more 2019.05.10 10:01:06 INFO: [echo] Caused by: com.sap.engine.services.deploy.server.validate.jlin.JLinValidationException: [JLinEE reported following erros for sap.com/my-service-sca application. 2019.05.10 10:01:06 INFO: [echo] ERRORS: 2019.05.10 10:01:06 INFO: [echo] * Web Model Builder: com.sap.engine.frame.core.configuration.NameNotFoundException: The parameter/s in String " 2019.05.10 10:01:06 INFO: [echo] http://java.sun.com/xml/ns/j2ee" xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance" 2019.05.10 10:01:06 INFO: [echo] xsi:schemaLocation=" http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" 2019.05.10 10:01:06 INFO: [echo] version="2.4">

....

complete web.xml content

...

" is/are not defined and could not be substituted., file: my-service.war#WEB-INF/web.xml, severity: error]

web.xml excerpt:

<init-param>
        <param-name>hide-service-list-page</param-name
        <param-value>${cxf.service.list.disabled}</param-value>
    </init-param>
Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

0 Answers