|
Hi All,
I have been trying to get an app running with both version 3 and version 2.2 to no avail. I am trying to deploy a mailet to the lib dir under SAR-INF. It seems the jar is picked up correctly in both versions and the classes loaded. The problem is that the mailet relies on a properties file for some error messages. I have created a en_US and a en_AU version of my properties files and they are packaged up in the same jar file as the mailet, but when starting james / phoenix, I get a stack trace saying the resource cannot be found –
org.apache.mailet.MailetException: Could not load mailet (SubmitSMSMailet); nested exception is: java.util.MissingResourceException: Can't find bundle for base name errorMessages, locale en_US at org.apache.james.transport.MailetLoader.getMailet(MailetLoader.java:79) etc etc etc
Is this a problem with the class laoder? Or do I need to place the properties files elsewhere so that they can be found? From what I have read, both version 2.2 and version 3 support classloading in this fashion (ie NOT repacking the .sar file each time you want to deploy)? NB that I have this mailet running under another version of james fine – but had to do the whole packaging of the sar file with my jar inside it – not a good solution in a development environment.
Cheers,
Ben
--- |
- RE: classloader and resource bundles Ben Dinnerville
- RE: classloader and resource bundles Noel J. Bergman
- RE: classloader and resource bundles Ben Dinnerville
- RE: classloader and resource bundles Noel J. Bergman
- RE: classloader and resource bundles Ben Dinnerville
- RE: classloader and resource bundles Ben Dinnerville
- RE: classloader and resource bun... Noel J. Bergman
- NullPointer Exception Michael Finney
- RE: NullPointer Exception (in Fetchmail) Noel J. Bergman
- RE: NullPointer Exception (in Fetchm... Noel J. Bergman
- RE: NullPointer Exception (in Fe... Michael Finney
