Are you sure the work/MainEngine/localhost directories are all rw by the normal user? These directories, the subdirectories for each context under localhost and the java source and classes derived from the JSPs must be able to be created and written by the "normal" user. So if you can't login as that user, go to the localhost subdirectory and create directories and files then the JBoss system with those user's permission won't be able to either.
Hope that helps.
Thanks for that. I checked all the JBoss directories for the normal user and they all look OK. (They've all got rw permissions)
I tried bringing up the jmc console as the normal user and got the following error;
org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: -1 in the jsp file: null
Generated servlet error:
[javac] Compiling 1 source file
[javac] Error occurred during initialization of VM
[javac] java.lang.OutOfMemoryError: unable to create new native thread
This is odd, because it works for root. Its almost as the normal user has less memory to play with.
I'll keep searching...
OK. Missed it the first time around. You've got a processes/threads limitation. You probably have some definition in /etc/security/limits.conf that is hobbling your user account from creating too many processes. The settings in there can also hobble the memory - but the data you currently show indicates a thread creation problem (in Linux one thread equates to one process).