Is your server name really acs-pg? In the "ns/server/acs-pg/module/nsjava" section you have the server name as acs-pg, while in the "ns/server/${server}/acs/webmail" section, your server name is a tcl variable. I suspect that the two are different, and if that's the case, then the nsjava module won't load.