{"id":530,"date":"2010-11-19T17:06:00","date_gmt":"2010-11-19T15:06:00","guid":{"rendered":""},"modified":"2023-03-23T12:51:28","modified_gmt":"2023-03-23T11:51:28","slug":"servicemix-could-not-parse-settings-maven_pathsettings-xml-under-windows-xp","status":"publish","type":"post","link":"https:\/\/touk.pl\/blog\/2010\/11\/19\/servicemix-could-not-parse-settings-maven_pathsettings-xml-under-windows-xp\/","title":{"rendered":"Servicemix: Could not parse settings maven_path\/settings.xml under Windows XP"},"content":{"rendered":"<p>Today I encountered problem with servicemix<\/p>\n<p><em>Could not parse settings [file:\/C:\/Documents and Settings\/Bartek\/.m2\/settings.xml]<\/em><\/p>\n<p>A quick look at karaf.log revealed the problem<\/p>\n<p><em>Caused by: com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException: Invalid byte 2 of 4-byte UTF-8 sequence.<\/em><\/p>\n<p>So the problem is with <a href=\"http:\/\/en.wikipedia.org\/wiki\/UTF-8#Byte_order_mark\">BOM (byte order mark)<\/a> in settings.xml file. Many Windows editors add it at start of an utf encoded files. You should save settings.xml as ordinary utf8 file without BOM.<\/p>\n<p>Problem solved.<\/p>\n","protected":false},"excerpt":{"rendered":"Today I encountered problem with servicemix Could not parse settings [file:\/C:\/Documents and Settings\/Bartek\/.m2\/settings.xml] A quick look at karaf.log&hellip;\n","protected":false},"author":22,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[],"class_list":{"0":"post-530","1":"post","2":"type-post","3":"status-publish","4":"format-standard","6":"category-development-design"},"_links":{"self":[{"href":"https:\/\/touk.pl\/blog\/wp-json\/wp\/v2\/posts\/530","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/touk.pl\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/touk.pl\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/touk.pl\/blog\/wp-json\/wp\/v2\/users\/22"}],"replies":[{"embeddable":true,"href":"https:\/\/touk.pl\/blog\/wp-json\/wp\/v2\/comments?post=530"}],"version-history":[{"count":15,"href":"https:\/\/touk.pl\/blog\/wp-json\/wp\/v2\/posts\/530\/revisions"}],"predecessor-version":[{"id":15610,"href":"https:\/\/touk.pl\/blog\/wp-json\/wp\/v2\/posts\/530\/revisions\/15610"}],"wp:attachment":[{"href":"https:\/\/touk.pl\/blog\/wp-json\/wp\/v2\/media?parent=530"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/touk.pl\/blog\/wp-json\/wp\/v2\/categories?post=530"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/touk.pl\/blog\/wp-json\/wp\/v2\/tags?post=530"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}