Hi,
I am trying to run a remote script on an endpoint and the parameters that are required to be passed are stings with spaces. I cannot seem to find a way to get quotes put around the parameters. If I put them in the Action that calls the procedure then the deployment just fails because, I believe, of the double quotes that are in the DMScript that is generated
ws_create_jdbcprovider(Server: @"${was_server}", Classpath: @""${DERBY_JDBC_DRIVER_PATH}/derby.jar"", Implementation_Type: @""XA data source"", Database_Type: @"Derby", Name: @""Logger Derby JDBC Provider (XA)"", Provider_Type: @""Derby JDBC Provider"", Description: @""Derby embedded XA JDBC Provider. This provider is only configurable in version 6.0.2 and later nodes"", Cluster: @"${was_cluster}");
return;
I can't tell what the crash actually is because when I run it from the command line dmtransfer fails with "Failed to create Target Directory". (It transfers fine when I run it from the GUI but that is another issue) So I cannot tell you where exactly it fails.
If I run it with no quotes
ws_create_jdbcprovider(Server: @"${was_server}", Classpath: @"${DERBY_JDBC_DRIVER_PATH}/derby.jar", Implementation_Type: @"XA data source", Database_Type: @"Derby", Name: @"Logger Derby JDBC Provider (XA)", Provider_Type: @"Derby JDBC Provider", Description: @"Derby embedded XA JDBC Provider. This provider is only configurable in version 6.0.2 and later nodes", Cluster: @"${was_cluster}");
return;
I get this error when it tries to run the script:
bash: -c: line 0: syntax error near unexpected token (' bash: -c: line 0:
sh -c cat - >/tmp/create_jdbcproviderws.py;/apps/ibm/websphere/appserver/v8552/bin/wsadmin.sh -lang jython -user **** -password ******** -p /export/home/walec/mysoap.client.props -f /tmp/create_jdbcproviderws.py -cluster SOACCluster -name Logger Derby JDBC Provider (XA) -description Derby embedded XA JDBC Provider. This provider is only configurable in version 6.0.2 and later nodes -impltype XA data source -providertype Derby JDBC Provider -server -databasetype Derby -classpath /derby.jar '
Pretty sure it is complaining about the bracket as part of the (XA) text which it thinks is part of the command line not part of the script parameters.
Thoughts?