-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue encountered with Jetty 9.4.56 for type ID must be unique even though the type ID is unique in jetty9.xml #12355
Comments
Jetty 9 is at End of Community Support.
You should be using a supported version of Jetty, which is Jetty 12 at this point in time. Also, the error you are getting is not from Jetty, but from the JVM, your XML is not valid per standard XML rules. |
Here's the Jetty 12 documentation on the Jetty XML syntax. https://jetty.org/docs/jetty/12/operations-guide/xml/index.html#syntax-ref |
Hi @joakime, updated the XML. I can assure you the same XML is working seamlessly with Jetty 9.4.50. |
@prasads6971 Jetty 9 community support is not available anymore. See Upgrade to a supported version of Jetty (Jetty 12) for community support. That being said, your problem is not Jetty, or Jetty code, it's standard XML syntax issues as handled by the JVM, it is clearly stated as such in your exception message, and has to be address with standard XML syntax fixes for your entirely custom and non-standard |
Closing as out of community support. If you replicate on a supported version of Jetty (Jetty 12 as of this message), this issue can be reopened. |
Jetty version(s)
9.4.56
Jetty Environment
Java version/vendor
openjdk version "1.8.0_422"
OS type/version
Ubuntu 22.04.5 LTS
Description
In below Jetty9.xml
We are getting below error:-
Wed Oct 9|10:07:42.708|D|main|EXCEPTION : org.xml.sax.SAXParseException : Attribute value "DefaultTimeZone" of type ID must be unique within the document.|org.eclipse.jetty.xml.XmlParser||
Wed Oct 9|10:07:42.708|W|main|ERROR@ line:7 col:28 : org.xml.sax.SAXParseException; systemId: ; lineNumber: 7; columnNumber: 28; Attribute value "DefaultTimeZone" of type ID must be unique within the document.|org.eclipse.jetty.xml.XmlParser||
Wed Oct 9|10:07:42.709|D|main|EXCEPTION : org.xml.sax.SAXParseException : Attribute value "DefaultTimeZone" of type ID must be unique within the document.|org.eclipse.jetty.xml.XmlParser||
Wed Oct 9|10:07:42.709|W|main|ERROR@ line:25 col:35 : org.xml.sax.SAXParseException; systemId: ; lineNumber: 25; columnNumber: 35; Attribute value "DefaultTimeZone" of type ID must be unique within the document.|org.eclipse.jetty.xml.XmlParser||
Wed Oct 9|10:07:42.709|D|main|EXCEPTION : org.xml.sax.SAXParseException : Attribute value "LogStream" of type ID must be unique within the document.|org.eclipse.jetty.xml.XmlParser||
Wed Oct 9|10:07:42.709|W|main|ERROR@ line:31 col:25 : org.xml.sax.SAXParseException; systemId: ; lineNumber: 31; columnNumber: 25; Attribute value "LogStream" of type ID must be unique within the document.|org.eclipse.jetty.xml.XmlParser||
Wed Oct 9|10:07:42.710|D|main|EXCEPTION : org.xml.sax.SAXParseException : Attribute value "ServerLog" of type ID must be unique within the document.|org.eclipse.jetty.xml.XmlParser||
Wed Oct 9|10:07:42.710|W|main|ERROR@ line:37 col:29 : org.xml.sax.SAXParseException; systemId: ; lineNumber: 37; columnNumber: 29; Attribute value "ServerLog" of type ID must be unique within the document.|org.eclipse.jetty.xml.XmlParser||
Wed Oct 9|10:07:42.710|D|main|EXCEPTION : org.xml.sax.SAXParseException : Attribute value "ServerLog" of type ID must be unique within the document.|org.eclipse.jetty.xml.XmlParser||
Wed Oct 9|10:07:42.710|W|main|ERROR@ line:40 col:29 : org.xml.sax.SAXParseException; systemId: ; lineNumber: 40; columnNumber: 29; Attribute value "ServerLog" of type ID must be unique within the document.|org.eclipse.jetty.xml.XmlParser||
The same used to work fine with Jetty 9.4.50, it seems post upgrade, jetty has enforced some invalid type checks.
The text was updated successfully, but these errors were encountered: