I am changing a small section in the code of huge java web application (based on struts & EJBs), and I am having a problem in a service creation. This piece of code:
PreferencesManager preferencesManager = null;
preferencesManager = (PreferencesManager)BusinessServiceFactory.getInstance().createService("com.tangoe.cmp.enterprise.business.services.preferences.PreferencesManager",
is working fine in several places of the application, but when I tried to call it from a class of mine, it caused a ServiceNotFoundException (due to an Invocation Target Exception - trying to call the create method); why do you think a service creation would be successful in a class of the application and won't work in a class of mine??