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 = poxml.getStringVal(); // System.out.println("the advisor string in reportbeanstudent is " + advisorstring); // if (!((advisorstring.equalsIgnoreCase("<?xml version=\"1.0\"?><Advisors></Advisors>")) || (advisorstring.equalsIgnoreCase("<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?><Advisors/>")))) //{
2. JRE_HOME is not set to anything Using CATALINA_BASE: /usr/share/tomcat5 Using CATALINA_HOME: /usr/share/tomcat5 Using CATALINA_TMPDIR: /usr/share/tomcat5/temp Using JRE_HOME: Created MBeanServer with ID: w8eg0f:gbjiotn1.0:www2.cs.sunysb.edu:1 12-Jul-10 12:18:03 PM org.apache.catalina.core.AprLifecycleListener lifecycleEvent INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/lib64/gcj-4.1.2 On Wed, Jul 14, 2010 at 10:27 AM, Kris Schneider <kschnei...@gmail.com>wrote: > Well, it looks like this is the line of code being executed: > > return > newInstance(contextPath,classLoader,Collections.<String,Object>emptyMap()); > > 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 10:11 AM, testwreq wreq <testw...@gmail.com> > wrote: > > 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.com > >wrote: > > > >> 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. But fails on CentOS. Any > ideas? > >> > > >> > > >> > java.lang.NoSuchMethodError: method java.util.Collections.emptyMap > >> > with signature ()Ljava.util.Map; was not found. > >> > javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:337) > >> > javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:244) > >> > gdb.UnmarshallerAPI.unmarshalAdvisors(UnmarshallerAPI.java:80) > >> > > >> > > gdb.ReportBeanStudent.studentSearchByNameWithDetails(ReportBeanStudent.java:581) > >> > > >> gdb.ProcessInput.listInfoAboutStudentsinDetail(ProcessInput.java:688) > >> > gdb.ProcessInput.doPost(ProcessInput.java:116) > >> > javax.servlet.http.HttpServlet.service( > >> tomcat5-servlet-2.4-api-5.5.23.jar.so) > >> > javax.servlet.http.HttpServlet.service( > >> tomcat5-servlet-2.4-api-5.5.23.jar.so) > >> > > >> > Thanks,vm > >> > >> -- > >> Kris Schneider > > -- > Kris Schneider > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > >