-
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
Error encountered with Jetty 9.4.57.v20241219 for type ID must be unique even though the type ID is unique in jetty.xml #12881
Comments
Jetty 9 is at End of Community Support. Upgrade to a supported version of Jetty to get support. Note: your errors are not coming from Jetty, they are coming from your JVM's XML implementation. https://jetty.org/docs/jetty/12/operations-guide/xml/index.html#syntax-ref |
@chetanlanje74 I possibly have an answer. Since we resolved the unique id validation check issue with small change with one of the XML attributes - Ref. <Ref refid="DefaultTimeZone"> With this change, the unique id validation check was successful. |
Thanks Much !!!! @prasads6971 & @joakime :) Above Error is Resolved now when replaced --> However i got another error as below ,Please give some suggestion on it ---> Caused by: org.xml.sax.SAXParseException; lineNumber: 8; columnNumber: 64; cvc-elt.1: Cannot find the declaration of element 'Configure'. and code block in my Jetty.xml file is -->
i tried to replace http://www.eclipse.org/jetty/configure_9_3.dtd with https://jetty.org/configure_9_3.dtd |
Before Configure it seems you are not correctly using the tag. |
Hi @prasads6971 ![]() ![]() |
@chetanlanje74 the file that is failing is |
Hi @janbartel ![]() |
You are missing the |
Verify below to check any missing dependencies of jetty And also run in debug mode as well once to get detailed logs. |
yes as @janbartel pointed out, you are missing the DOCTYPE. You may copy that from the one in jetty.xml
|
Hi, @janbartel , @prasads6971 ![]() ![]() Code Block at line 24 in jetty.xml file ![]() |
Jetty version(s)
9.4.57
Jetty Environment
Java version/vendor
openjdk version "1.8."
OS type/version
Ubuntu 20
Description
In below Jetty.xml
Getting Above Errors there When upgraded Jetty 9.4.57.v20241219, The errors mostly related to Make ID Unique
Usage: java -jar $JETTY_HOME/start.jar [options] [properties] [configs] java -jar $JETTY_HOME/start.jar --help # for more information [0.006s][info][gc] Using G1 OpenJDK 64-Bit Server VM warning: .hotspot_compiler file is present but has been ignored. Run with -XX:CompileCommandFile=.hotspot_compiler to load the file. 2025-03-06 08:17:34.102:INFO::main: Logging initialized @690ms to org.eclipse.jetty.util.log.StdErrLog 2025-03-06 08:17:34.297:WARN:oejx.XmlParser:main: ERROR@null line:26 col:24 : org.xml.sax.SAXParseException; lineNumber: 26; columnNumber: 24; Attribute value "pool" of type ID must be unique within the document. 2025-03-06 08:17:34.305:WARN:oejx.XmlParser:main: ERROR@null line:712 col:89 : org.xml.sax.SAXParseException; lineNumber: 712; columnNumber: 89; Attribute value "Handlers" of type ID must be unique within the document. 2025-03-06 08:17:34.306:WARN:oejx.XmlParser:main: ERROR@null line:744 col:32 : org.xml.sax.SAXParseException; lineNumber: 744; columnNumber: 32; Attribute value "Contexts" of type ID must be unique within the document. 2025-03-06 08:17:34.306:WARN:oejx.XmlParser:main: ERROR@null line:747 col:62 : org.xml.sax.SAXParseException; lineNumber: 747; columnNumber: 62; Attribute value "plusConfig" of type ID must be unique within the document. 2025-03-06 08:17:34.306:WARN:oejx.XmlParser:main: ERROR@null line:766 col:32 : org.xml.sax.SAXParseException; lineNumber: 766; columnNumber: 32; Attribute value "Contexts" of type ID must be unique within the document. 2025-03-06 08:17:34.306:WARN:oejx.XmlParser:main: ERROR@null line:769 col:62 : org.xml.sax.SAXParseException; lineNumber: 769; columnNumber: 62; Attribute value "plusConfig" of type ID must be unique within the document. 2025-03-06 08:17:34.307:WARN:oejx.XmlParser:main: ERROR@null line:795 col:32 : org.xml.sax.SAXParseException; lineNumber: 795; columnNumber: 32; Attribute value "Contexts" of type ID must be unique within the document. 2025-03-06 08:17:34.307:WARN:oejx.XmlParser:main: ERROR@null line:798 col:62 : org.xml.sax.SAXParseException; lineNumber: 798; columnNumber: 62; Attribute value "plusConfig" of type ID must be unique within the document. 2025-03-06 08:17:34.307:WARN:oejx.XmlParser:main: ERROR@null line:822 col:32 : org.xml.sax.SAXParseException; lineNumber: 822; columnNumber: 32; Attribute value "Contexts" of type ID must be unique within the document. 2025-03-06 08:17:34.307:WARN:oejx.XmlParser:main: ERROR@null line:825 col:62 : org.xml.sax.SAXParseException; lineNumber: 825; columnNumber: 62; Attribute value "plusConfig" of type ID must be unique within the document. 2025-03-06 08:17:34.309:WARN:oejx.XmlParser:main: ERROR@null line:944 col:26 : org.xml.sax.SAXParseException; lineNumber: 944; columnNumber: 26; Attribute value "RequestLog" of type ID must be unique within the document. 2025-03-06 08:17:34.309:WARN:oejx.XmlParser:main: ERROR@null line:993 col:51 : org.xml.sax.SAXParseException; lineNumber: 993; columnNumber: 51; Attribute value "oldhandler" of type ID must be unique within the document. 2025-03-06 08:17:34.310:WARN:oejx.XmlParser:main: ERROR@null line:1021 col:26 : org.xml.sax.SAXParseException; lineNumber: 1021; columnNumber: 26; Attribute value "http_local" of type ID must be unique within the document. 2025-03-06 08:17:34.310:WARN:oejx.XmlParser:main: ERROR@null line:1027 col:19 : org.xml.sax.SAXParseException; lineNumber: 1027; columnNumber: 19; Attribute value "ssl" of type ID must be unique within the document. 2025-03-06 08:17:34.310:WARN:oejx.XmlParser:main: ERROR@null line:1038 col:21 : org.xml.sax.SAXParseException; lineNumber: 1038; columnNumber: 21; Attribute value "admin" of type ID must be unique within the document. 2025-03-06 08:17:34.310:WARN:oejx.XmlConfiguration:main: java.security.PrivilegedActionException: org.xml.sax.SAXParseException; Unable to parse: file:///opt/zimbra/jetty_base/etc/jetty.xml at java.base/java.security.AccessController.doPrivileged(AccessController.java:573)
The text was updated successfully, but these errors were encountered: