I'm using Grails 2.4.3 and I have a service returning null only in the production environment. If I run it in the Dev environment, the service responds correctly. Even if I generate a war file using Development it will work, but if I generate a war file using the production environment (the default grails war), the service will return null. I'm not sure what could be causing this to happen where the environment affects the service... ?
I've only found the issue with one specific service responding this way. All other services in the project appear to be working correctly in all environments.
--UPDATE-- To elaborate on the service in question: The service does do some database queries and saves (takes some information in the session and saves it). It is marked with @Transactional on the class. It also injects two helper services (including sessionFactory) by convention (def sessionFactory; def otherService;)
I also tried getting the bean from the application context and I get "Bean not found"