I have a working standalone SM Agent API Java code. I am trying to add it as a webapp and test in JBOSS i am seeing following error.
jboss error:
retcode:-1
22:03:19,519 INFO [com.ally.enterprise.idmapi.service.business.impl.JavaTestClient] (http-/127.0.0.1:4050-1) FATAL: Failed trying to connect to the Policy Server. Ensure that the Agent Name and Shared Secret in smjsdkexample.properties matches that of a pre-existing agent in the Policy Store.
smps.log
[10788/1372][Tue Jan 26 2016 22:03:19][CServer.cpp:1965][ERROR][sm-Tunnel-00010] Bad security handshake attempt. Handshake error: 3156
[10788/1372][Tue Jan 26 2016 22:03:19][CServer.cpp:1980][ERROR][sm-Tunnel-00070] Handshake error: Failed to receive client ack. Socket error 0
[10788/1372][Tue Jan 26 2016 22:03:19][CServer.cpp:2137][ERROR][sm-Server-01070] Failed handshake with 127.0.0.1:60807
I have added a module with following file and contents in JBOSS (\jboss-eap-6.4\modules)
<?xml version="1.0" encoding="UTF-8"?>
<module xmlns="urn:jboss:module:1.1" name="com.rsa">
<properties>
</properties>
<resources>
<resource-root path="cryptoj.jar"/>
<resource-root path="US_export_policy.jar"/>
<resource-root path="local_policy.jar"/>
</resources>
<dependencies>
<system export="true">
<paths>
<path name="javax/crypto"/>
<path name="sun/security"/>
<path name="com/sun"/>
</paths>
</system>
</dependencies>
</module>
webapp is not working in JBOSS but working in weblogic.
Thanks,
Maruti