• Post Reply Bookmark Topic Watch Topic
  • New Topic

Error in web.xml  RSS feed

 
Ranch Hand
Posts: 126
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am writing following web.xml


<?xml version="1.0" encoding="UTF-8" ?>

this is the first line of web.xml and it is giving some error , could someone please tell me that what is the error in that.

Thanks
Regards
Gaurav
 
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
 
Gaurav Chhabras
Ranch Hand
Posts: 126
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
it contains all necessary lines but it is giving error at this line only
 
Ranch Hand
Posts: 1026
 
Gaurav Chhabras
Ranch Hand
Posts: 126
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks to all , now my problem is solved
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
 
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A popular error for the "first line" of an xml file is the mind-boggling:

The processing instruction target matching "[xX][mM][lL]" is not allowed.


Which can be generated if you accidently introduced ANYTHING before the first < character.
Bill
 
He was expelled for perverse baking experiments. This tiny ad is a model student:
Rocket Oven Kickstarter - from the trailboss
https://coderanch.com/t/695773/Rocket-Oven-Kickstarter-trailboss
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!