Win a copy of Beginning Java 17 Fundamentals: Object-Oriented Programming in Java 17 this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

Different XML validation behavior on Tomcat 4.1

 
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, All,

I use Xerces-J to validate XML and it works fine in dev server, but it does bypass the validation in other servers (same windows OS), even the same code and configurations. Did you meet the same situation before?

Thanks in advance.

Jason


My environment: XercesJ 2.6.2 + Tomcat 4.1.27 + JDK 1.3.1+ windows 2000 server.

My code: use DOMParser.

Expeceted validation messages:

[org.xml.sax.SAXParseException: cvc-maxLength-valid: Value '12345678901' with length = '11' is not facet-valid with respect to maxLength '9'., org.xml.sax.SAXParseException: cvc-type.3.1.3: The value '12345678901' of element 'CODE' is not valid.]
 
Jason Liao
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Just figure it out. XML namespaces are different in other servers.

Thanks for review.

Jason
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic