PDA

View Full Version : [SOLVED] Chart doesn't work under Apache Tomcat



alisyah
18 Nov 2010, 1:28 AM
Hello all,

Currently I'm working with linechart.
The linechart works well, I mean loading data from json and then displaying graphics, while it runs under weblogic server. But when I move them to work under Apache Tomcat, there is no graphic displayed.

Is there any special configuration to get them work under Apache Tomcat?
Thanks for any comments.

Alisyah.

alisyah
19 Nov 2010, 12:17 AM
That bug's already solved now :-)

Here is the explanation:
I have a function counting average as a field for my json, and as we know average result usually including comma.
I found the language of my Tomcat is Indonesian language (I'm Indonesian :-)), so I just changed it to become english.

Here is what I added into Java Options configuration of Tomcat 7:
-Duser.language=en

After that Tomcat will use a dot (.) instead of a comma when returning a double or decimal value.

Thanks all,
Alisyah.