su and sudo are not the same tool and don't use the same configuration file.
Please change the sudo term in your manifest with /usr/locale/bin/sudo and try again
Many thanks! It works now.
But a small tip mistake: it should be /usr/local/bin/sudo :-)
good to hear you solve your problem,
but I found that there are really no point to insist to use <method_credential user='wsvws' group='jboss' /> instead of root, and need to use sudo in the start/stop method.
The reason that need to use sudo is because you don't have the root privilege, but since SMF is control by root, why you need to use sudo? because you use sudo is already act like a root.
If you said that the services is not control by SMF, just a normal script to start/stop, yes, it make scenes to use sudo
This is just my point of view, mind to share what is the reason that you insist to use sudo?
Ok, you are right. I insert the section
<method_credential user='root' group='root' />
as you recommended. This works fine.