2016-09-15 73 views
0

我正在使用MFP 8.0並嘗試構建適配器。以下是它的代碼:mobilefirst 8適配器xml文件架構驗證遇到錯誤

<?xml version="1.0" encoding="UTF-8"?> 
<mfp:adapter name="TestAdapter" 
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
      xmlns:mfp="http://www.ibm.com/mfp/integration" 
      xmlns:http="http://www.ibm.com/mfp/integration/http"> 

    <displayName>TestAdapter</displayName> 
    <description>TestAdapter</description> 
    <connectivity> 
     <connectionPolicy xsi:type="http:HTTPConnectionPolicyType"> 
      <protocol>http</protocol> 
      <domain>10.80.111.52</domain> 
      <port>8083</port> 
      <connectionTimeoutInMilliseconds>30000</connectionTimeoutInMilliseconds> 
      <socketTimeoutInMilliseconds>30000</socketTimeoutInMilliseconds> 
      <maxConcurrentConnectionsPerNode>50</maxConcurrentConnectionsPerNode> 
     </connectionPolicy> 
    </connectivity> 

    <procedure name="testProc" scope="restrictedResource"></procedure> 

    <JAXRSApplicationClass>com.example.UserLoginValidationApplication</JAXRSApplicationClass> 
    <securityCheckDefinition name="UserValidationSecurityCheck" class="com.example.UserLoginValidationResource"></securityCheckDefinition> 



</mfp:adapter> 

該過程在js文件中定義。當我建設有mfpdev adapter build命令我得到以下錯誤適配器:

[ERROR] Failed to execute goal com.ibm.mfp:adapter-maven-plugin:8.0.2016070421:build (default-build) on project TestAdapter: Adapter xml file schema validation encountered errors: [cvc-complex-type.2.4.a: Invalid content 
'{procedure, property, securityCheckDefinition}' is expected.] -> [Help 1] 

我使用mfpdev版本8.0.0-2016091519

回答