atom feed22 messages in org.apache.tomcat.devRe: Tomcat 3.2 run as NT service with...
FromSent OnAttachments
Lenny KarpelAug 6, 2002 4:11 pm 
Brian P. MillettAug 7, 2002 6:41 am 
Lenny KarpelAug 7, 2002 9:17 am 
Brian P. MillettAug 7, 2002 9:48 am 
Lenny KarpelAug 7, 2002 11:06 am 
Ian DarwinAug 7, 2002 12:03 pm 
cost...@covalent.netAug 7, 2002 1:35 pm 
Mike AndersonAug 7, 2002 1:49 pm 
Amy RohAug 7, 2002 1:57 pm 
Bob HerrmannAug 7, 2002 1:59 pm 
Patrick LubyAug 7, 2002 3:34 pm 
Craig R. McClanahanAug 7, 2002 4:01 pm 
Bill BarkerAug 7, 2002 5:10 pm 
Remy MaucheratAug 8, 2002 4:06 am 
Larry IsaacsAug 8, 2002 5:28 am 
Remy MaucheratAug 8, 2002 7:30 am 
Ian DarwinAug 8, 2002 7:41 am 
Andrew MilkowskiAug 8, 2002 7:46 am.properties
Jean-francois ArcandAug 8, 2002 8:00 am 
Andrew MilkowskiAug 8, 2002 8:48 am 
cost...@covalent.netAug 8, 2002 9:34 am 
Remy MaucheratAug 8, 2002 2:18 pm 
Subject:Re: Tomcat 3.2 run as NT service with xml parser other than its default (parser.jar)
From:Jean-francois Arcand (jean@sun.com)
Date:Aug 8, 2002 8:00:43 am
List:org.apache.tomcat.dev

Andrew Milkowski wrote:

receiving following exception while running Tomcat as NT service

javax.xml.parsers.FactoryConfigurationError: com.sun.xml.parser.SAXParserFactoryImpl at javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFactory.java:84) at org.apache.tomcat.util.xml.XmlMapper.readXml(XmlMapper.java:210) at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:187) at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235) Exception in thread "main"

following wrapper.properties classpath values were used (note I commented default xml parser, and replaced with (xalan & xercesImpl) parser.jar line)

wrapper.class_path=$(wrapper.tomcat_home)\classes wrapper.class_path=$(wrapper.tomcat_home)\lib\xalan.jar wrapper.class_path=$(wrapper.tomcat_home)\lib\xercesImpl.jar wrapper.class_path=$(wrapper.tomcat_home)\lib\jaxp.jar #wrapper.class_path=$(wrapper.tomcat_home)\lib\parser.jar wrapper.class_path=$(wrapper.tomcat_home)\lib\webserver.jar wrapper.class_path=$(wrapper.tomcat_home)\lib\servlet.jar wrapper.class_path=$(wrapper.tomcat_home)\lib\jasper.jar wrapper.class_path=$(wrapper.tomcat_home)\lib\logfilewriter.jar

Not sure it the proper way to replace the parser. You should put your jar under CATALINA_HOME/common/endorsed or under j2sdkXX/jre/lib/ext (I recommend the first one). This is the suggested way when you want to use another parser than the defaut one.

If you use jdk 1.4, see

http://java.sun.com/j2se/1.4/docs/guide/standards/

-- Jeanfrancois

interestingly when running from command line the alternate xml parser xerces was picked up and Tomcat started flawlessly..

Any one knows if this

a/ my ignorance, and there is a solution

b/ a real defect

regards

------------------------------------------------------------------------