I had this problem the other day and martin cooper helped me out  with it.
Tomcat 3.2.3 has an earlier version of jaxp in it's lib directory.  I
replaced Tomcat's jaxp with a newer one and got past that problem.  This
was with Struts 1.1 nightly build - with Struts 1.0 and Tomcat 3.2.3 I have
had no problems at all.  Unfortunately, after I got past the Namespace
problem I ran into a problem with class not found on ActionFormBean that
several others have also had (see thread : Digester throwing
ClassNotFoundException for ActionFormBean).  I then tried Struts 1.1 with
Tomcat 4.0 beta 7, and ran into yet another problem related to the action
servlet initialization (mappings and/or formBeans collections null) that
has been much posted of late.

I read the tea leaves and gave up on Struts 1.1 for the time being - I
didn't have time to fool around with classpath / classloading issues.  I
went back to Struts 1.0.  I'm keeping an eye out here to see if there are
ever any definitive explanations / solutions for the Struts 1.1 / Tomcat
3.2.3 errors though, so if you get it working - please post!

Later,

Jim Weaver
Software Developer - ThoughtWorks



                                                                                       
                                                      
                    "Sanjay                                                            
                                                      
                    Choudhary"               To:     [EMAIL PROTECTED]    
                                                      
                    <choudhary_san@ho        cc:                                       
                                                      
                    tmail.com>               Subject:     Problem running Struts 
example on TOMCAT                                           
                                                                                       
                                                      
                    08/17/2001 09:03                                                   
                                                      
                    AM                                                                 
                                                      
                    Please respond to                                                  
                                                      
                    struts-user                                                        
                                                      
                                                                                       
                                                      
                                                                                       
                                                      




Hi,

I am trying to run latest version of struts on Tomcat 3.2.3 (standalone)
mode and getting the following error when I try to startup the Tomcat.

I downloaded latest version of Xerces parser and Jaxp-1.1 but it doesn't
work with anyone of these. (I copied the parser jar files in my
tomcat/webapps/struts-example/web-inf/lib directory). I am running this on
Windows 2000. Please let me know where I am making a mistake.

Digester.getParser:
javax.xml.parsers.ParserConfigurationException: Namespace not supported by
SAXPa
rser
        at com.sun.xml.parser.SAXParserImpl.<init>(SAXParserImpl.java:60)
        at
com.sun.xml.parser.SAXParserFactoryImpl.newSAXParser(SAXParserFactory
Impl.java:57)
        at
org.apache.commons.digester.Digester.getParser(Digester.java:338)
        at org.apache.commons.digester.Digester.parse(Digester.java:859)
        at
org.apache.struts.webapp.example.DatabaseServlet.load(DatabaseServlet
.java:252)
        at
org.apache.struts.webapp.example.DatabaseServlet.init(DatabaseServlet
.java:175)
        at javax.servlet.GenericServlet.init(GenericServlet.java:258)
        at
org.apache.tomcat.core.ServletWrapper.doInit(ServletWrapper.java:317)

        at org.apache.tomcat.core.Handler.init(Handler.java:215)
        at
org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:296)
        at
org.apache.tomcat.context.LoadOnStartupInterceptor.contextInit(LoadOn
StartupInterceptor.java, Compiled Code)
        at
org.apache.tomcat.core.ContextManager.initContext(ContextManager.java
, Compiled Code)
        at org.apache.tomcat.core.ContextManager.init(ContextManager.java,
Compi
led Code)
        at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:195)
        at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235)
Exception in thread "main" java.lang.NoSuchMethodError:
javax.xml.parsers.SAXPar
ser: method
parse(Ljava/io/InputStream;Lorg/xml/sax/helpers/DefaultHandler;)V no
t found

-Sanjay


_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp





Reply via email to