You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Peter Smith <pe...@citadelsecure.com> on 2010/02/01 21:13:19 UTC
"Currency code not supported", gcc 4.1, and related issues
Hi all,
Having a bit of a nightmare here.
On a clean installation of CentOS 5.4 I installed Tomcat 5.5, Java 1.4.2
etc via yum. When I start up Tomcat (sites and code ported over from
another server running Tomcat 5.5 and Java 1.4.2), it gives me:
java.lang.IllegalArgumentException: The currency code, £, is not supported.
at java.util.Currency.getInstance(libgcj.so.7rh)
I've found a little bit of information on this (but not a lot), one
suggestion being that it's an issue in gcc 4.1 (sounds plausible, as the
server which this code was moved from used gcc 3.4).
I tried removing the Tomcat rpms and using a binary distribution (5.5
again) from the Tomcat website. This fails to start up:
Exception in thread "main" java.lang.NoClassDefFoundError:
at gnu.java.lang.MainThread.run(libgcj.so.7rh)
Caused by: java.lang.ClassNotFoundException: not found in
gnu.gcj.runtime.SystemClassLoader{urls=[file:/usr/local/tomcat/bin/bootstrap.jar,file:/usr/share/java/libgcj-4.1.2.jar],
parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}
at java.net.URLClassLoader.findClass(libgcj.so.7rh)
at gnu.gcj.runtime.SystemClassLoader.findClass(libgcj.so.7rh)
at java.lang.ClassLoader.loadClass(libgcj.so.7rh)
at java.lang.ClassLoader.loadClass(libgcj.so.7rh)
at gnu.java.lang.MainThread.run(libgcj.so.7rh)
Having not got anywhere with trying to solve either of these, all I can
think of is to compile Tomcat from source using gcc 3.4, which I have now
installed alongside 4.1. I'm not convinced this will solve my problems
though.
Does anyone have any pointers as to either of these errors please? I
notice in the second that it's "*blank space* not found" rather than
"*something* not found"
Thanks,
Peter Smith
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: "Currency code not supported", gcc 4.1, and related issues
Posted by Pid <pi...@pidster.com>.
On 01/02/2010 20:18, Caldarale, Charles R wrote:
>> From: Peter Smith [mailto:pete@citadelsecure.com]
>> Subject: "Currency code not supported", gcc 4.1, and related issues
>>
>> java.lang.IllegalArgumentException: The currency code, £, is not
>> supported.
>> at java.util.Currency.getInstance(libgcj.so.7rh)
>
> That's coming from GNU Java - which is not a useful JVM for running anything serious, such as Tomcat. You need to install a real JVM (Sun, IBM, JRockit) and try again.
... and when you do, you need to input something other than a currency
symbol into that method. "GBP" will work, "£" will not.
p
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
RE: "Currency code not supported", gcc 4.1, and related issues
Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Peter Smith [mailto:pete@citadelsecure.com]
> Subject: "Currency code not supported", gcc 4.1, and related issues
>
> java.lang.IllegalArgumentException: The currency code, £, is not
> supported.
> at java.util.Currency.getInstance(libgcj.so.7rh)
That's coming from GNU Java - which is not a useful JVM for running anything serious, such as Tomcat. You need to install a real JVM (Sun, IBM, JRockit) and try again.
- Chuck
THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org