ibm mobilefirst - unable to call a java class from HTTP Adapter in Worklight Liberty server -
we developing mobilefirst hybrid banking application. implemented encryption mechanism. request mobile client encrypted , sent server , @ worklight adapter request dectypted using rsa. decryption process have used java class decryption process. http adapter method i'm directly calling java class passing request parameter following function decryptrequest(param){ var result = com.myapp.decrypt.decrypt(param); wl.logger.error("result "+result); return { result:result }; }
the above thing working fine on standalone worklight server(on desktop worklight server). problem when put java class on worklight liberty profile server(which uat box) i'm getting error
[error ] fwlse0099e: error occurred while invoking procedure [project myapp]businessadapter/parsereqestfwlse0100e: parameters: [project myapp] typeerror: cannot call property decrypt in object [javapackage com.myapp.decrypt]. not function, "object".
i have java class(on worklight studio) under server/java/com/myapp/decrypt. when take myapp.war , check war file has java class "decrypt" under "myapp.war\web-inf\classes\com\myapp\decrypt.class". updated "myapp.war" file on worklight liberty server(my uat server), i'm getting above error. can please tell me did miss do. should more make http adapter call java decrypt class method.
any appreciated. please 1 in solving problem become show stopper uat phase1 testing.
thanks in advance
this typically happens when there java version mismatch between java version set in eclipse, , used build .war file, java version installed , used in remote server deploy .war file to.
you need double-check above.
Comments
Post a Comment