java.lang.ClassNotFoundException with sendLogNotification

A similar rule, but statically created at /etc/openhab2/rules/test.rule is working. The working rule is:

    import org.openhab.io.openhabcloud.NotificationAction.*

    rule "TestRule"
    when
    	System started
    then
    	sendLogNotification('TEST RULE: Hola mundo')
    end