Topic
IC4NOTICE: developerWorks Community will be offline May 29-30, 2015 while we upgrade to the latest version of IBM Connections. For more information, read our upgrade FAQ.
4 replies Latest Post - ‏2013-01-31T07:38:40Z by SystemAdmin
SystemAdmin
SystemAdmin
2327 Posts
ACCEPTED ANSWER

Pinned topic Fail > Deploy application

‏2013-01-30T09:12:24Z |
I made a new project for a testing authentication.

I could find a problem during upload a wlapp file to Worklight 5.0.5 server.

Failed to deploy application 
'SecretInfoViewer-all.wlapp'. : application descriptor uses a security test:customTests. However, authentication config xml does not contain a security test element with that name.


I verified application-descriptor.xml and authenticationConfig.xml. But I couldn't find any problem.

========================applicaion-descriptor.xml==================

<android version=
"1.0" securityTest=
"customTests"> ...

========================authenticationConfig.xml==================

<securityTests> <!--        <customSecurityTest name=
"WorklightConsole"> <test realm=
"WorklightConsole" isInternalUserID=
"true"/> </customSecurityTest> <mobileSecurityTest name=
"mobileTests"> <testAppAuthenticity/> <testDeviceId provisioningType=
"none" /> <testUser realm=
"myMobileLoginForm" /> </mobileSecurityTest>   <webSecurityTest name=
"webTests"> <testUser realm=
"myWebLoginForm"/> </webSecurityTest> -->   <customSecurityTest name=
"customTests"> <test realm=
"wl_antiXSRFRealm" step=
"1"/> <test realm=
"wl_authenticityRealm" step=
"1"/> <test realm=
"wl_remoteDisableRealm" step=
"1"/> <test realm=
"wl_anonymousUserRealm" isInternalUserID=
"true" step=
"1"/> <test realm=
"wl_deviceNoProvisioningRealm" isInternalDeviceID=
"true" step=
"2"/> </customSecurityTest>   </securityTests>

I tried to upload file to old version's server(5.0.0). It was success. But, "User Authentication" field was ignored.

I don't know why it was happened.

Developement environment
1. Server
- WL 5.0.5 Customer Edition Server

2. Client
- WL 5.0.0 Customer Edition Worklight studio
- project was generated by WL5.0.5
  • IdanAdar
    IdanAdar
    741 Posts
    ACCEPTED ANSWER

    Re: Fail &gt; Deploy application

    ‏2013-01-30T09:21:02Z  in response to SystemAdmin
    IBM Worklight v5.0.0 does not have any support for the authentication framework that exists in 5.0.5.
    I see that you are mixing the two versions.

    Please try working solely with v5.0.5 and see if the problem persists.

    Idan Adar
    QA Engineer
    IBM Worklight Mobile Platform
    • SystemAdmin
      SystemAdmin
      2327 Posts
      ACCEPTED ANSWER

      Re: Fail &gt; Deploy application

      ‏2013-01-31T00:33:54Z  in response to IdanAdar
      I made a mistake.
      I used only customer edition 5.0.5 version both server and client.

      I didn't use a 5.0.0 version client.
  • IdanAdar
    IdanAdar
    741 Posts
    ACCEPTED ANSWER

    Re: Fail &gt; Deploy application

    ‏2013-01-31T05:06:06Z  in response to SystemAdmin
    Have you made sure to re-build and deploy your application after changing the application-descriptor.xml, and use the updated .wlapp to deploy on the server?
    And the same for the server, have you made sure that after changing authenticationConfig.xml, to also undeploy and re-deploy the updated .war file onto your application server?

    In addition, just to be clear, when you say Consumer Edition, do you mean that you are trying to run Worklight on an application server or using the devleopment environment (the Eclipse plug-in)?

    Idan Adar
    QA Engineer
    IBM Worklight Mobile Platform
    • SystemAdmin
      SystemAdmin
      2327 Posts
      ACCEPTED ANSWER

      Re: Fail &gt; Deploy application

      ‏2013-01-31T07:38:40Z  in response to IdanAdar
      This problem's cause is a shortage of my knowledge about worklight version 5.0.

      WL is working well. I omitted deploying war file to server.