This looks like a bug in Encodings. It seems to be using the classloader that loaded the Encodings class rather than the Context classloader. Also, if a classloader is found, only the Encodings.properties name is searched rather than the full path name. There are several problems with this code. Could you please open a Bugzilla entry on this problem?
Thanks, Gary > -----Original Message----- > From: Bryan Kearney [mailto:[EMAIL PROTECTED] > Sent: Friday, May 31, 2002 7:47 AM > To: 'Gary L Peskin'; Bryan Kearney > Subject: RE: New Xalan not playing well with Tomcat 4.0? > > > It was a Null Pointer exception. The url on line 357 was > null. The ClassLoader was unable to find the > Encodings.properties file if it existed in an un-jarred xalan > installation. I moved it to tomcat/classes (just the > Encodings.properties) and the class loader can find it now. I > did not dig to far into the why of it was not found as the > webapps stuff is already pretty ugly for me. > > -- bk > > > >> -----Original Message----- > >> From: Gary L Peskin [mailto:[EMAIL PROTECTED] > >> Sent: Friday, May 31, 2002 8:43 AM > >> To: 'Bryan Kearney' > >> Subject: RE: New Xalan not playing well with Tomcat 4.0? > >> > >> > >> Bryan -- > >> > >> What is the exception that you're getting at the top of the > >> stack trace? > >> > >> Gary > >> > >> > -----Original Message----- > >> > From: Bryan Kearney [mailto:[EMAIL PROTECTED] > >> > Sent: Friday, May 31, 2002 6:13 AM > >> > To: '[EMAIL PROTECTED]' > >> > Subject: New Xalan not playing well with Tomcat 4.0? > >> > > >> > > >> > Has anyone seen this? I have started to get the following > >> > exception when loading up the encodings: > >> > > >> > at > >> > org.apache.xalan.serialize.Encodings.loadEncodingInfo(Encoding > >> > s.java:357) > >> > at > >> org.apache.xalan.serialize.Encodings.<clinit>(Encodings.java:396) > >> > at org.apache.xalan.serialize.SerializerToXML.<init>(SerializerTo > >> > XML.java:313) > >> > at > >> > org.apache.xalan.serialize.SerializerToHTML.<init>(SerializerT > >> > oHTML.java:523 > >> > ) > >> > > >> > I am running a pretty new xalan in the latest tomcat. I do > >> > not get this from the command line. Could this be an issue > >> > with tomcats layered clss loades? > >> > > >> > > >> > -- bk > >> > > >> >
