Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

A few days ago I had a problem with an application running on Tomcat, it wasn't able to find files in the filesystem containing accents in the name (like, for example, "reportsandonà.pdf"). I discovered that it was a "locale" problem and i solved this by changing the locale from en_GB.UTF-8 to it_IT.UTF-8

Now i'm facing another problem. Whenever i restart Tomcat with this command: "service tomcat restart" the problem is again there, and i have to restart the whole machine in order to fix it.

I'm using tomcat 7 on Centos 6 64 bit, and this is the start/stop/restart script:

#!/bin/bash
# description: Tomcat Start Stop Restart
# processname: tomcat
# chkconfig: 234 20 80
JAVA_HOME=/usr/java/latest
export JAVA_HOME
PATH=$JAVA_HOME/bin:$PATH
export PATH
CATALINA_HOME=/usr/share/tomcat

case $1 in
start)
sh $CATALINA_HOME/bin/startup.sh
;;
stop)
sh $CATALINA_HOME/bin/shutdown.sh
;;
restart)
sh $CATALINA_HOME/bin/shutdown.sh
sh $CATALINA_HOME/bin/startup.sh
;;
esac
exit 0
share|improve this question
add comment

1 Answer

up vote 0 down vote accepted

Try adding export LANG=it_IT.UTF-8 to your start/stop script.

share|improve this answer
    
It worked, thanks –  valepu Aug 8 '12 at 10:18
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.