I see the following in your log:
com.sap.engine.services.jndi.persistent.exceptions.NoPermissionException: Exception during getInitialContext operation. Wrong security principle/credentials. [Root exception is com.sap.engine.services.security.exceptions.BaseLoginException: Cannot authenticate the user.]
I also saw https and a SAP Router string?
Also about your java_home, SMD agents will use sapjvm_6 which it is supposed to install as part of the setup; not that I think using the sapjvm_4 will cause an issue, but something to consider as I see you have a DAA for 96 and 97.