Using util.Log.log will not work. The methods are not static. And judging from the call, util.Log.log, no instance has been created.
My guess is that the calls from outside the util folder are picking up a util.Log class from somewhere else. The full class name of the thing you’re trying to do is DEVCLNT400.util, with Log as an inner class with the full name DEVCLNT400.util.Log
Try this on your shared tab:
public static final void log(String s) throws ServiceException
{
log(s, null, null);
}
public static final void log(String s, String s1) throws ServiceException
{
log(s, s1, null);
}
public static final void log(String s, String s1, String s2) throws ServiceException
{
Values values = new Values();
if(s != null)
values.put("message", s);
if(s1 != null)
values.put("function", s1);
if(s2 != null)
values.put("level", s2);
try
{
Service.doInvoke("pub.flow", "debugLog", values);
}
catch(Exception exception)
{
throw new ServiceException(exception.getMessage());
}
}
Note the elimination of the Log class and making all the methods static. These methods will become part of the DEVCLNT400.util class (if I understand your folder hierarchy correctly). You can call them within the util folder using util.log(“your text”); From outside the util folder, use DEVCLNT400.util.log(“your text”);
#Flow-and-Java-services#webMethods#Integration-Server-and-ESB