• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

SAXParseException Problem in Tomcat 4.0 server

 
Chidanand Chauhan
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
Can any body tell me, when i put the <Listener>element in the web.xml file as mentioned in the HFSJ and then deploy the the web-application it gives the SAXParseException in the server.

Can any body tell me the the listener elements are supported in the tomcat 4.0 or not.

Similarly the <context-param> elements are also having some problem. I think the context param elements generally written to the top of the web.xml after <web-app>.
 
Chidanand Chauhan
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Chidanand Chauhan:
Hi
Can any body tell me, when i put the <Listener>element in the web.xml file as mentioned in the HFSJ and then deploy the the web-application it gives the SAXParseException in the server.

Can any body tell me the the listener elements are supported in the tomcat 4.0 or not.

Similarly the <context-param> elements are also having some problem. I think the context param elements generally written to the top of the web.xml after <web-app>.

Do any one have any idea for the above problem. Please help me out

 
Rahul Bhattacharjee
Ranch Hand
Posts: 2308
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Chidanand Chauhan:

Do any one have any idea for the above problem. Please help me out



you can check out the DTD which is there in the top is the XML..check the apache site for the DTD. if that supports listner then that is ok .there should not be any problem.Another thing is the xml parser implementation that you are using might be causing the problem

cheers!
--Rahul
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In more recent versions of Tomcat, the order of elements in the web.xml file is not important. I believe it still is in Tomcat 4x though.
Maybe you have the elements out of order?

There is a link to the servlet spec in my signature.
You will find diagrams with the proper order of elements in there.
 
Chidanand Chauhan
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Ben Souther:
In more recent versions of Tomcat, the order of elements in the web.xml file is not important. I believe it still is in Tomcat 4x though.
Maybe you have the elements out of order?

There is a link to the servlet spec in my signature.
You will find diagrams with the proper order of elements in there.


Hi Ben

I have found the problem from where does this starts.
specially in tomcat v4.0.3 there should be the order of the elements in web.xml
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic