tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bob Byron" <bby...@radit.com>
Subject Re: Tomcat 4.0 and XML - deployment problems
Date Wed, 03 Oct 2001 03:14:59 GMT
Okay, I found my problem.  I went to the jakarta source code to see how
it is done in there, and I simply replaced the following code:

Replace:
       XMLReader xr = XMLReaderFactory.createXMLReader();
With:
       SAXParserFactory saxParserFactory = SAXParserFactory.newInstance();
       SAXParser saxParser = saxParserFactory.newSAXParser();
       XMLReader xr = saxParser.getXMLReader();

And it worked!

Bob Byron

----- Original Message ----- 
From: "Bob Byron" <bbyron@radit.com>
To: <tomcat-user@jakarta.apache.org>
Sent: Tuesday, October 02, 2001 5:57 PM
Subject: Tomcat 4.0 and XML - deployment problems


> I am resending this due to the horrible formatting on the previous 
> message.  :^(    
> 
> I am having trouble figuring out exactly how to deploy my war file.  
> This is the first time I have ever used XML to parse an initialization 
> file.  I was successfully ablt to run and parse the configuration file 
> as a stand alone applicaiton under JBuilder 5.0, but when I migrated 
> my application to run as a servlet and deployed it under Tomcat 4.0, 
> I just could not get it to work properly.  Does anyone have any 
> examples on how to get parse a file under Tomcat?  As a 
> standalone application, I was compiling against JAXP.  Under 
> Tomcat 4.0, I created my library using the common jar files 
> including crimson.  Any ideas?
> 
> Thank You,
> Bob Byron
> 
> I am receiving the following error:
> org.xml.sax.SAXException: System property org.xml.sax.driver not specified
>         at org.xml.sax.helpers.XMLReaderFactory.createXMLReader(XMLReaderFactory.java:90)
>         at webmail.SendWebMail.getConfiguration(SendWebMail.java:65)
>         at webmail.SendWebMail.doPost(SendWebMail.java:41)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknown Source)
>         at org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown Source)
>         at org.apache.catalina.core.StandardWrapperValve.invoke(Unknown Source)
>         at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
>         at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
>         at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
>         at org.apache.catalina.core.StandardContextValve.invoke(Unknown Source)
>         at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
>         at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
>         at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
>         at org.apache.catalina.core.StandardContext.invoke(Unknown Source)
>         at org.apache.catalina.core.StandardHostValve.invoke(Unknown Source)
>         at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
>         at org.apache.catalina.valves.AccessLogValve.invoke(Unknown Source)
>         at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
>         at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
>         at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
>         at org.apache.catalina.core.StandardEngineValve.invoke(Unknown Source)
>         at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
>         at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
>         at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
>         at org.apache.catalina.connector.http.HttpProcessor.process(Unknown Source)
>         at org.apache.catalina.connector.http.HttpProcessor.run(Unknown Source)
>         at java.lang.Thread.run(Thread.java:484)


Mime
View raw message