0

I'm having a problem while trying to deploy an adapter to Worklight Console.

I figured out that the adapter which is reading the worklight.properties file does not get deployed. But an adapter that does not read the worklight.properties file is able to deploy without any problem.

I looked at the WAS log and its seems that the unsuccessful adapter deployment was actually deployed, but then they got rollbacked (undeployed) immediately.

Using Worklight 5.0.6.1 with latest iFix.

Edit:

  1. Verified that both server and studio are using the same worklight version
  2. The same configuration working fine in the UAT environmenet; problem happens only in the Production environment.

The Adapter XML:

<displayName>ConfigFileAdapter</displayName>
<description>ConfigFileAdapter</description>
<connectivity>
    <connectionPolicy xsi:type="http:HTTPConnectionPolicyType">
        <protocol>${adapter.config.protocol}</protocol>
        <domain>${adapter.config.domain}</domain>
        <port>${adapter.config.port}</port> 
        <!-- Following properties used by adapter's key manager for choosing specific certificate from key store  
        <sslCertificateAlias></sslCertificateAlias> 
        <sslCertificatePassword></sslCertificatePassword>
        -->     
    </connectionPolicy>
    <loadConstraints maxConcurrentConnectionsPerNode="30" />
</connectivity>

<procedure name="getConfigData"  securityTest="adapterProtectionTest" requestTimeoutInSeconds="10" />


<procedure name="getLoggingLevel"  securityTest="adapterProtectionTest" requestTimeoutInSeconds="10" />
</wl:adapter>

Logs captured in SystemOut.log:

com.worklight.integration.services.impl.DeployServiceImpl syncAdaptersFromDB FWLSE0084I: Deployed adapter 'xxx' successfully. com.worklight.integration.services.impl.DeployServiceImpl deleteAdapterInternal FWLSE0039I: Deleted adapter 'xxx' successfully.

From the log the adapter were deleted immediate after deployed.

4

1 回答 1

0

Make sure that the .war file you have deployed to the Production environment contains a worklight.properties file that contains these adapter.config.protocol/host/port properties.

In my testing the only time I could not deploy an adapter that uses custom properties from worklight.properties was when these properties did not exist in worklight.properties. When this happened I saw this error: Failed to deploy adapter 'test.adapter'. Could not resolve placeholder 'test.idan'

于 2013-12-04T07:53:53.573 回答