Return-Path: Mailing-List: contact cocoon-dev-help@xml.apache.org; run by ezmlm Delivered-To: mailing list cocoon-dev@xml.apache.org Received: (qmail 4239 invoked from network); 12 Sep 2000 21:10:27 -0000 Received: from pop.systemy.it (194.20.140.28) by locus.apache.org with SMTP; 12 Sep 2000 21:10:27 -0000 Received: from apache.org (pv7-pri.systemy.it [194.21.255.7]) by pop.systemy.it (8.8.8/8.8.3) with ESMTP id XAA07896; Tue, 12 Sep 2000 23:10:18 +0200 Message-ID: <39BE9D49.D113E2CB@apache.org> Date: Tue, 12 Sep 2000 23:16:57 +0200 From: Stefano Mazzocchi Organization: Apache Software Foundation X-Mailer: Mozilla 4.74 [en] (Windows NT 5.0; U) X-Accept-Language: en,it MIME-Version: 1.0 To: "Craig R. McClanahan" CC: Cocoon Subject: Getting jiggy with it... Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N Another weird bug... this time IBM JDK 1.3 on Linux. vaio:/code/build/tomcat-4.0 # ./bin/catalina.sh run local (stream): org/apache/catalina/core/LocalStrings.properties org/apache/catalina/core/LocalStrings.properties: found local (stream): org/apache/catalina/core/LocalStrings_en.properties system (stream): org/apache/catalina/core/LocalStrings_en.properties org/apache/catalina/core/LocalStrings_en.properties: not found local (stream): org/apache/catalina/core/LocalStrings_en_US.properties system (stream): org/apache/catalina/core/LocalStrings_en_US.properties org/apache/catalina/core/LocalStrings_en_US.properties: not found local (stream): org/apache/catalina/connector/http/LocalStrings.properties org/apache/catalina/connector/http/LocalStrings.properties: found local (stream): org/apache/catalina/connector/http/LocalStrings_en.properties system (stream): rg/apache/catalina/connector/http/LocalStrings_en.properties org/apache/catalina/connector/http/LocalStrings_en.properties: not found local (stream): org/apache/catalina/connector/http/LocalStrings_en_US.properties system (stream): org/apache/catalina/connector/http/LocalStrings_en_US.properties org/apache/catalina/connector/http/LocalStrings_en_US.properties: not found ERROR reading /code/build/tomcat-4.0/conf/server.xml At Line 3 /Server/Connector/ className=org.apache.catalina.connector.http.HttpConnector port=8000 minProcessors=5 maxProcessors=75 acceptCount=10 debug=0 Catalina.start: java.util.MissingResourceException: Can't find bundle for base name org.apache.catalina.connector.http.LocalStrings, locale en_US java.util.MissingResourceException: Can't find bundle for base name org.apache.catalina.connector.http.LocalStrings, locale en_US at java.lang.Throwable.(Throwable.java:96) at java.lang.Exception.(Exception.java:44) at java.lang.RuntimeException.(RuntimeException.java:49) at java.util.MissingResourceException.(MissingResourceException.java:31) at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:695 at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:667) at java.util.ResourceBundle.getBundle(ResourceBundle.java:534) at org.apache.catalina.util.StringManager.(StringManager.java:115) at org.apache.catalina.util.StringManager.getManager(StringManager.java:260) at org.apache.catalina.connector.http.HttpConnector.(HttpConnector.java:219) at java.lang.Class.newInstance0(Native Method) at java.lang.Class.newInstance(Class.java:254) at org.apache.catalina.util.xml.ObjectCreate.start(XmlMapper.java:578 at org.apache.catalina.util.xml.XmlMapper.matchStart(XmlMapper.java:384) at org.apache.catalina.util.xml.XmlMapper.startElement(XmlMapper.java:81) at com.sun.xml.parser.Parser.maybeElement(Parser.java:1391) at com.sun.xml.parser.Parser.content(Parser.java:1499) at com.sun.xml.parser.Parser.maybeElement(Parser.java:1400) at com.sun.xml.parser.Parser.parseInternal(Parser.java:492) at com.sun.xml.parser.Parser.parse(Parser.java:284) at javax.xml.parsers.SAXParser.parse(SAXParser.java:155) at javax.xml.parsers.SAXParser.parse(SAXParser.java:126) at org.apache.catalina.util.xml.XmlMapper.readXml(XmlMapper.java:214) at org.apache.catalina.startup.Catalina.start(Catalina.java:518) at org.apache.catalina.startup.Catalina.execute(Catalina.java:502) at org.apache.catalina.startup.Catalina.process(Catalina.java:160) at java.lang.reflect.Method.invoke(Native Method) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:135) The first lines are given to my own logging code in FileClassLoader where I change public InputStream getResourceAsStream(String name) { with public InputStream getResourceAsStream(String name) { InputStream s = getResourceAsStreamNext(name); System.out.println(name + ": " + ((s != null) ? "found" : "not found")); return s; } public InputStream getResourceAsStreamNext(String name) { and from the lines above it tells you that it DOES find the requested resource (in fact, the previous resource boundle is loaded ok) But the most interesting thing is at the line 667 of java.util.ResourceBoundle (the point where the exception is generated) //We should never get here unless there has been a change //to the code that doesn't catch it's own exceptions. cleanUpConstructionList(); throwMissingResourceException(baseName, locale); Now, since I don't have a JDK 1.2 for Linux, I can't really tell if this is a bug in JDK 1.3 or a problem with Catalina's classloader. But still, this is pretty nasty indeed and I don't even know what's happening into ResourceBoundle since the exception is swallen by the catch and not passed on. Shit, this might be the first time in my long Java experience I need to use a stupid debugger... damn... getting all this lined up if getting too hard... on windows, at least, I could run Catalina... I try to switch to Linux, you see?, but Linux just doesn't seem to like me :) -- Stefano Mazzocchi One must still have chaos in oneself to be able to give birth to a dancing star. Friedrich Nietzsche -------------------------------------------------------------------- Missed us in Orlando? Make it up with ApacheCON Europe in London! ------------------------- http://ApacheCon.Com ---------------------