Tomcat, Grails and vServer issues
If you wanna run a grails application on your vServer with
the little help of our friendly servlet container Tomcat,
you might run across some issues.
I did.
Maybe this page gives you some help. Given
a vServer with the following configuration:
Linux Kernel 2.6.9, Debian 4.0, 1 Gig memory, SSH root login
-
Get memory. Get more memory. Get even more memory.
Get a vServer w loads of memory. At least 1 Gig. Tried it for weeks w 384 MB. Didn´t work. Memory is definitely an issue here. -
Installing Java 5 and Tomcat 5.5 and starting the server
Piece of cake with the apt-get functionality. No issue here. Especially if you follow these instructions. -
Uploading a grails app w Web Application Manager
Loads of issues here. First go to this page and see if you can find any help. Or look into the catalina logs if your grails app doesn´t run or does not even show up in the application list. -
java.lang.OutOfMemoryError: PermGen space
Set up a setenv.sh file and put this in:
JAVA_OPTS="-XX:MaxPermSize=128m"
Or look here. Big issue. -
Security exception
Turn off security manager in Tomcat. I have no clue if was a good idea but I did it anyway.
How? Edit the /etc/default/tomcat5.5 file.
Or look here. Very big issue. -
java.io.FileNotFoundException: stacktrace.log (Permission denied)
Configure your Config.groovy and move the log4j properties to another file.
Or look here. Another big issue. -
Your war file is still not running and you have no clue
Restart your Tomcat.
/etc/init.d/tomcat5.5 restart
Sometimes this works like a dream. Small issue. -
To be continued.
Soon. Probably an issue.