Hi Jake,
Thanks for the reply. I had same exception thrown even with fresh
installation of tomcat 4.1.18 without my application included in webapps.
Anyway I solved this problem by uninstalling tomcat, removing all classpath
settings from environmental variables and installing tomcat again. Now it is
working fine, any way this will remain puzzle to me as no one has reported
similar bug anywhere else !!
----- Original Message -----
From: "Jacob Kjome" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Friday, January 03, 2003 11:17 PM
Subject: Re: Parse error in application web.xml


>
> Sorry, I failed to look at the original question.  I just noticed that you
> were talking about putting stuff in your classpath which, obviously, will
> have no effect.
>
> The trouble you are having is not related to any particular version of
> Xerces....and if you are using j2sdk14.x, you don't need xercesImpl.jar or
> xmlParserAPIs.jar anyway.  You can get rid of them entirely if you want.
>
> The problem is your web.xml is not well formed.  Check it in an editor
such
> as XMLSpy.  First check that it is well formed (all tags are opened and
> closed and properly nested) and then check to see that it is valid (make
> sure it obeys the specified DTD).  Tomcat will barf in both cases,
> rightfully so, if the web.xml is bad.
>
> BTW, it seems as if you are implying that the problem is with the web.xml
> in Tomat's conf folder.  What makes you assume that?  Did you, by chance,
> put your own app in the webapps folder?  If so, try removing that and any
> other apps that didn't come with Tomcat originally, try starting tomcat,
> and see if you get the same error.  I suspect the problem is likely one of
> your own apps web.xml's, not a problem with Tomcat.
>
> Jake
>
> At 03:23 PM 1/3/2003 +0530, you wrote:
> >Hi,
> >
> >I have xercesImpl.jar and xmlParserAPIs.jar files in E:\Tomcat
> >4.1\common\endorsed directory and followed the instruction by Jan-Michael
> >and  I am still getting the exception. I had earlier integrated tomcat
> >4.1.18 with Apache 2.0.43. and it was working fine and a few days back I
> >started getting these exception when I started tomcat and therefore I did
> >fresh installation of tomcat 4.1.18 and still I am getting the same
> >exception. I am working with windows 2000
> >
> >regards,
> >Keshav
> >
> >
> >----- Original Message -----
> >From: "Jacob Kjome" <[EMAIL PROTECTED]>
> >To: "Tomcat Users List" <[EMAIL PROTECTED]>
> >Sent: Friday, January 03, 2003 11:49 AM
> >Subject: Re: Parse error in application web.xml
> >
> >
> > >
> > > Tomcat-3.3.x and above completely ignore the system classpath as far
as
> > > webapps are concerned.  All jar files that you want your webapps to
see
> > > will have to be in either the WEB-INF/lib of your webapp or in the
> > > designated library directories.  The only exception to this are the
Java
> > > runtime classes and jars that you put in JAVA_HOME/jre/lib/endorsed or
> > > jre/lib/ext which, essentially, make those jars part of the Java
> > > runtime.  However, I don't recommend using those techniques for
webapps
> > > unless you want to spend lots of time trying to debug classloader
issues
> > >
> > > Jake
> > >
> > > At 08:56 PM 1/2/2003 -0800, you wrote:
> > > >Hi there,
> > > >
> > > >I was reading an unrelated article on this but its possible that just
> > > >setting your CLASSPATH doesn't really pick up your new xerces parser.
> > > >Fire up tomcat with this flag
> > > >
> > > >-Djava.endorsed.dirs=$CATALINA_HOME/common/endorsed
> > > >
> > > >(make sure to put the new JAR files in that directory).. check out
> > > >
> > > >http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-
> > > >howto.html and scroll down to the section XML Parsers and JDK 1.4
> > > >towards the bottom.
> > > >
> > > >Hope that helps
> > > >
> > > >Jan-Michael
> > > >
> > > >----- Original Message -----
> > > >From: "Keshava Murthy" <[EMAIL PROTECTED]>
> > > >Date: Thursday, January 2, 2003 8:24 pm
> > > >Subject: Re: Parse error in application web.xml
> > > >
> > > > > Hi Jason,
> > > > >
> > > > > I downloaded latest jar files and included them in my classpat I
> > > > > am still
> > > > > getting the same exception
> > > > >
> > > > > regards,
> > > > > keshav
> > > > >
> > > > >
> > > > > ----- Original Message -----
> > > > > From: "Bowsher, Jason P" <[EMAIL PROTECTED]>
> > > > > To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
> > > > > Sent: Thursday, January 02, 2003 6:32 PM
> > > > > Subject: RE: Parse error in application web.xml
> > > > >
> > > > >
> > > > > > I had a very similar problem (although not eactly the same).  I
> > > > > think, for
> > > > > > me, this was a bug in xerces.  I upgraded from
> > > > > > <" target="l">http://www.jpackage.org/rpm.php?id=571> xerces-j2-
> > > > > 2.2.1-1jpp to
> > > > > > <" target="l">http://www.jpackage.org/rpm.php?id=571> xerces-j2-
> > > > > 2.2.1-2jpp from
> > > > > > jpackage.org to fix it.
> > > > > >
> > > > > > Hope it helps
> > > > > >
> > > > > >
> > > > > >
> > > > > > -----Original Message-----
> > > > > > From: Keshava Murthy [mailto:[EMAIL PROTECTED]]
> > > > > > Sent: 02 January 2003 12:44
> > > > > > To: [EMAIL PROTECTED]
> > > > > > Subject: Parse error in application web.xml
> > > > > >
> > > > > >
> > > > > > Hi,
> > > > > >
> > > > > > I installed Tomcat 4.1.18 and when I try to start the servlet
> > > > > engine I am
> > > > > > getting the following error -
> > > > > >
> > > > > > 003-01-02 17:44:36 ContextConfig> 2003-01-02 17:44:36
> > > > > ContextConfigweb.xml> org.xml.sax.SAXParseException: The markup
> > > > > declarations contained or
> > > > > pointed
> > > > > > to by the document type declaration must be well-formed.
> > > > > >  at
> > > > > >
> > > > > org.apache.xerces.parsers.AbstractSAXParser.parse
> > > >(AbstractSAXParser.java:118
> > > > > > 9)
> > > > > >  at
org.apache.commons.digester.Digester.parse(Digester.java:1495)
> > > > > >  at
> > > > > >
> > > > > org.apache.catalina.startup.ContextConfig.applicationConfig
> > > >(ContextConfig.ja
> > > > > > va:282)
> > > > > >  at
> > > > > org.apache.catalina.startup.ContextConfig.start
> > > >(ContextConfig.java:639)
> > > > > >  at
> > > > > >
> > > > > org.apache.catalina.startup.ContextConfig.lifecycleEvent
> > > >(ContextConfig.java:
> > > > > > 243)
> > > > > >  at
> > > > > >
> > > > > org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent
> > > >(LifecycleSuppor
> > > > > > t.java:166)
> > > > > >  at
> > > > > >
> > > > > org.apache.catalina.core.StandardContext.start
> > > >(StandardContext.java:3567)>  at
> > > > > >
> > > > > org.apache.catalina.core.ContainerBase.addChildInternal
> > > >(ContainerBase.java:8
> > > > > > 21)
> > > > > >  at
> > > > > org.apache.catalina.core.ContainerBase.addChild
> > > >(ContainerBase.java:807)
> > > > > >  at
> > > > >
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579)
> > > > >  at
> > > > > >
> > > > > org.apache.catalina.core.StandardHostDeployer.addChild
> > > >(StandardHostDeployer.
> > > > > > java:529)
> > > > > >  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > > > > >  at
> > > > > >
> > > > > sun.reflect.NativeMethodAccessorImpl.invoke
> > > >(NativeMethodAccessorImpl.java:39
> > > > > > )
> > > > > >  at
> > > > > >
> > > > > sun.reflect.DelegatingMethodAccessorImpl.invoke
> > > >(DelegatingMethodAccessorImpl
> > > > > > .java:25)
> > > > > >  at java.lang.reflect.Method.invoke(Method.java:324)
> > > > > >  at
> > > > > >
> > > > > org.apache.commons.beanutils.MethodUtils.invokeMethod
> > > >(MethodUtils.java:228)
> > > > > >  at
> > > > > org.apache.commons.digester.SetNextRule.end(SetNextRule.java:260)>
> > > > > at
> > > > >
org.apache.commons.digester.Digester.endElement(Digester.java:1036)
> > > > >  at
> > > > > >
> > > > > org.apache.xerces.parsers.AbstractSAXParser.endElement
> > > >(AbstractSAXParser.jav
> > > > > > a:585)
> > > > > >  at
> > > > > >
> > > > > org.apache.xerces.impl.XMLNamespaceBinder.endElement
> > > >(XMLNamespaceBinder.java
> > > > > > :647)
> > > > > >  at
> > > > > >
> > > > >
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement
> > > >(XMLDocu
> > > > > > mentFragmentScannerImpl.java:1008)
> > > > > >  at
> > > > > >
> > > > >
> > >
>org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDi
> > > >spatc
> > > > > > her.dispatch(XMLDocumentFragmentScannerImpl.java:1469)
> > > > > >  at
> > > > > >
> > > > > org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument
> > > >(XMLDocume
> > > > > > ntFragmentScannerImpl.java:329)
> > > > > >  at
> > > > > >
> > > > > org.apache.xerces.parsers.DTDConfiguration.parse
> > > >(DTDConfiguration.java:525)
> > > > > >  at
> > > > > >
> > > > > org.apache.xerces.parsers.DTDConfiguration.parse
> > > >(DTDConfiguration.java:581)
> > > > > >  at
org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
> > > > > >  at
> > > > > >
> > > > > org.apache.xerces.parsers.AbstractSAXParser.parse
> > > >(AbstractSAXParser.java:117
> > > > > > 5)
> > > > > >  at
org.apache.commons.digester.Digester.parse(Digester.java:1514)
> > > > > >  at
> > > > > >
> > > > > org.apache.catalina.core.StandardHostDeployer.install
> > > >(StandardHostDeployer.j
> > > > > > ava:335)
> > > > > >  at
> > > > >
org.apache.catalina.core.StandardHost.install(StandardHost.java:803)
> > > > >  at
> > > > > >
> > > > > org.apache.catalina.startup.HostConfig.deployDescriptors
> > > >(HostConfig.java:452
> > > > > > )
> > > > > >  at
> > > > > org.apache.catalina.startup.HostConfig.deployApps
> > > >(HostConfig.java:409)>  at
org.apache.catalina.startup.HostConfig.start
> > > >(HostConfig.java:879)
> > > > > >  at
> > > > > >
> > > > > org.apache.catalina.startup.HostConfig.lifecycleEvent
> > > >(HostConfig.java:368)>  at
> > > > > >
> > > > > org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent
> > > >(LifecycleSuppor
> > > > > > t.java:166)
> > > > > >  at
> > > > >
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1196)
> > > > >  at org.apache.catalina.core.StandardHost.start
> > > >(StandardHost.java:738)
> > > > > >  at
> > > > >
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
> > > > >  at org.apache.catalina.core.StandardEngine.start
> > > >(StandardEngine.java:347)
> > > > > >  at
> > > > > org.apache.catalina.core.StandardService.start
> > > >(StandardService.java:497)
> > > > > >  at
> > > > > org.apache.catalina.core.StandardServer.start
> > > >(StandardServer.java:2189)
> > > > > >  at
org.apache.catalina.startup.Catalina.start(Catalina.java:512)
> > > > > >  at
org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
> > > > > >  at
org.apache.catalina.startup.Catalina.process(Catalina.java:180)
> > > > > >  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > > > > >  at
> > > > > >
> > > > > sun.reflect.NativeMethodAccessorImpl.invoke
> > > >(NativeMethodAccessorImpl.java:39
> > > > > > )
> > > > > >  at
> > > > > >
> > > > > sun.reflect.DelegatingMethodAccessorImpl.invoke
> > > >(DelegatingMethodAccessorImpl
> > > > > > .java:25)
> > > > > >  at java.lang.reflect.Method.invoke(Method.java:324)
> > > > > >  at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
> > > > > >
> > > > > > 2003-01-02 17:44:36 ContextConfig> 2003-01-02 17:44:36
> > > > > ContextConfig> unavailable due to previous error(s)
> > > > > > 2003-01-02 17:44:36 StandardManagergenerator
> > > > > > class java.security.SecureRandom
> > > > > > 2003-01-02 17:44:36 StandardManager> generator has been
completed
> > > > > > 2003-01-02 17:44:36 StandardContext> previous errors
> > > > > >
> > > > > > Attached document contains the web.xml file from conf folder.
> > > > > > Could some one tell me how to solve this problem?
> > > > > >
> > > > > > regards,
> > > > > >
> > > > > > Keshav
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > > > --
> > > > > To unsubscribe, e-mail:   <mailto:tomcat-user->
> > > > [EMAIL PROTECTED]>For additional commands, e-mail:
> > > > > <mailto:[EMAIL PROTECTED]>
> > > > >
> > > > >
> > > >
> > > >
> > > >--
> > > >To unsubscribe, e-mail:
> ><mailto:[EMAIL PROTECTED]>
> > > >For additional commands, e-mail:
> ><mailto:[EMAIL PROTECTED]>
> > >
> >
> >
> >--
> >To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> >For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to