You wouldn't happen to be using JDK 1.4 on CentOS, would you? The
emptyMap method showed up in JDK 1.5...
On Wed, Jul 14, 2010 at 9:35 AM, testwreq wreq testw...@gmail.com wrote:
I have a piece of code that retrieves data from oracle database XML type. It
works on tomcat installation on ubuntu.
It is jdk 1.6 from SUN
java -version
java version 1.6.0_20
Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
Java HotSpot(TM) Server VM (build 16.3-b01, mixed mode)
On Wed, Jul 14, 2010 at 9:56 AM, Kris Schneider kschnei...@gmail.comwrote:
You wouldn't happen to be using JDK 1.4 on CentOS,
Well, it looks like this is the line of code being executed:
return
newInstance(contextPath,classLoader,Collections.String,ObjectemptyMap());
Tomcat normally dumps out at least the value of its JRE_HOME env var
upon startup, can you verify that it's really using 1.6?
On Wed, Jul 14, 2010 at
1. Error is complaining on the following lines of the code.
Vector advVec=new Vector();
if (rs.getObject(ADVISOR) != null)
{
XMLType poxml = (XMLType) rs.getObject(advisor);
String advisorstring =
: java.lang.NoSuchMethodError: method
java.util.Collections.emptyMap with signature ()Ljava.util.Map; was not found.
From: kschnei...@gmail.com
To: users@tomcat.apache.org
You wouldn't happen to be using JDK 1.4 on CentOS, would you? The
emptyMap method showed up in JDK 1.5...
On Wed, Jul 14
peuvent facilement être sujets à la manipulation, nous ne pouvons accepter
aucune responsabilité pour le contenu fourni.
Date: Wed, 14 Jul 2010 09:56:34 -0400
Subject: Re: java.lang.NoSuchMethodError: method
java.util.Collections.emptyMap with signature ()Ljava.util.Map; was not
found
From: testwreq wreq [mailto:testw...@gmail.com]
Subject: Re: java.lang.NoSuchMethodError: method
java.util.Collections.emptyMap with signature ()Ljava.util.Map; was not
found.
2. JRE_HOME is not set to anything
Which is a problem.
production environments was not found
java.util.Collections.emptyMap with signature ()Ljava.util.Map; was not
found.
2. JRE_HOME is not set to anything
Which is a problem.
production environments was not found on the java.library.path:
/usr/lib64/gcj-4.1.2
Oops. You're using gcj, which is wholly inappropriate for serious Java