[{"data":1,"prerenderedAt":318},["ShallowReactive",2],{"Categories":3,"NavIndexCategoriesCountFooter":203,"content-\u002F2007\u002F08\u002F28\u002Fspring-aop-and-maven-dependencies-aop-spring-configured\u002F":204},[4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,68,70,71,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202],{"category":5},"System Administration",{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":27},"Software Development",{"category":5},{"category":5},{"category":5},{"category":5},{"category":27},{"category":27},{"category":5},{"category":5},{"category":5},{"category":27},{"category":5},{"category":5},{"category":5},{"category":27},{"category":27},{"category":27},{"category":27},{"category":5},{"category":5},{"category":5},{"category":27},{"category":27},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":27},{"category":5},{"category":5},{"category":27},{"category":27},{"category":27},{"category":27},{"category":5},{"category":27},{"category":27},{"category":67},"Drones & RC",{"category":69},"DIY Projects",{"category":67},{"category":72},"Photography",{"category":69},{"category":69},{"category":69},{"category":67},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":67},{"category":69},{"category":69},{"category":67},{"category":67},{"category":72},{"category":72},{"category":72},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":5},{"category":5},{"category":72},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":5},{"category":67},{"category":67},{"category":72},{"category":72},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":72},{"category":67},{"category":138},"3D Printing - Laser Cutting - CNC",{"category":138},{"category":138},{"category":138},{"category":138},{"category":138},{"category":138},{"category":138},{"category":138},{"category":138},{"category":138},{"category":138},{"category":5},{"category":138},{"category":27},{"category":27},{"category":138},{"category":138},{"category":72},{"category":158},"Photography,3D Printing - Laser Cutting - CNC",{"category":27},{"category":27},{"category":69},{"category":27},{"category":27},{"category":27},{"category":27},{"category":5},{"category":67},{"category":5},{"category":5},{"category":27},{"category":27},{"category":27},{"category":27},{"category":27},{"category":69},{"category":27},{"category":27},{"category":27},{"category":27},{"category":181},"Home Assistant",{"category":181},{"category":72},{"category":27},{"category":27},{"category":72},{"category":138},{"category":5},{"category":72},{"category":72},{"category":138},{"category":27},{"category":181},{"category":181},{"category":72},{"category":72},{"category":72},{"category":72},{"category":72},{"category":72},{"category":72},{"category":72},191,{"id":205,"title":206,"body":207,"category":27,"date":300,"description":301,"embedImage":302,"extension":303,"image":302,"intro":302,"meta":304,"navigation":305,"path":306,"seo":307,"series":302,"sitemap":308,"stem":309,"tags":310,"__hash__":317},"content\u002F2007\u002F08\u002F28\u002Fspring-aop-and-maven-dependencies-aop-spring-configured-.md","Spring AOP and maven dependencies",{"type":208,"value":209,"toc":297},"minimark",[210,221,224,231,241,244,250,253,259,262,268,271,274,280,283],[211,212,213,214],"p",{},"Or - why does it say my spring context xml is invalid on ",[215,216,217,218],"code",{},"\u003Caop:",[219,220],"spring-configured",{},[211,222,223],{},"I've been trying to add the @Configurable to a spring project.",[211,225,226,227],{},"This means that I had to have a ",[228,229,230],"beans",{}," tag that looks like",[232,233,238],"pre",{"className":234,"code":236,"language":237},[235],"language-text","\u003Cbeans xmlns=\"http:\u002F\u002Fwww.springframework.org\u002Fschema\u002Fbeans\"\n   xmlns:xsi=\"http:\u002F\u002Fwww.w3.org\u002F2001\u002FXMLSchema-instance\"\n   xmlns:aop=\"http:\u002F\u002Fwww.springframework.org\u002Fschema\u002Faop\"\n   xmlns:tx=\"http:\u002F\u002Fwww.springframework.org\u002Fschema\u002Ftx\"\n   xsi:schemaLocation=\"http:\u002F\u002Fwww.springframework.org\u002Fschema\u002Fbeans http:\u002F\u002Fwww.springframework.org\u002Fschema\u002Fbeans\u002Fspring-beans-2.0.xsd\n                       http:\u002F\u002Fwww.springframework.org\u002Fschema\u002Ftx http:\u002F\u002Fwww.springframework.org\u002Fschema\u002Ftx\u002Fspring-tx-2.0.xsd\n                       http:\u002F\u002Fwww.springframework.org\u002Fschema\u002Faop http:\u002F\u002Fwww.springframework.org\u002Fschema\u002Faop\u002Fspring-aop-2.0.xsd\">\n","text",[215,239,236],{"__ignoreMap":240},"",[211,242,243],{},"(here the important lines are the xmlns:aop and the aop schema location) and the following needs to be in the beans XML",[232,245,248],{"className":246,"code":247,"language":237},[235],"\u003Caop:spring-configured\u002F>\n",[215,249,247],{"__ignoreMap":240},[211,251,252],{},"In addition - I added the spring-aspects dependency in my maven pom",[232,254,257],{"className":255,"code":256,"language":237},[235],"\u003Cdependency>\n  \u003CgroupId>org.springframework\u003C\u002FgroupId>\n  \u003CartifactId>spring-aspects\u003C\u002FartifactId>\n  \u003Cversion>2.0.6\u003C\u002Fversion>\n\u003C\u002Fdependency>\n",[215,258,256],{"__ignoreMap":240},[211,260,261],{},"Trouble was that the test was throwing an XML error",[232,263,266],{"className":264,"code":265,"language":237},[235],"org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 13 in XML document from class path resource [directory.xml] is invalid; nested exception is org.xml.sax.SAXParseException: cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'aop:spring-configured'.\n",[215,267,265],{"__ignoreMap":240},[211,269,270],{},"A lot of googling suggested that it was using a non-schema compliant XML parser - but I'd made sure that it was using the latest schema supporting xerces.",[211,272,273],{},"It turns out that the XSD resolver is trying to find the XSD on the classpath - and it can't find it unless you also have spring-aop",[232,275,278],{"className":276,"code":277,"language":237},[235],"\u003Cdependency>\n  \u003CgroupId>org.springframework\u003C\u002FgroupId>\n  \u003CartifactId>spring-aop\u003C\u002FartifactId>\n  \u003Cversion>2.0.6\u003C\u002Fversion>\n\u003C\u002Fdependency>\n",[215,279,277],{"__ignoreMap":240},[211,281,282],{},"in your dependency list. I personally feel that this is a confusing error message - but there you go.",[211,284,285,286,296],{},"All kudos to ",[287,288,295],"a",{"href":289,"rel":290,"target":294},"http:\u002F\u002Fkaare-nilsen.com\u002F",[291,292,293],"nofollow","noopener","noreferer","_blank","Kaare Nilsen"," for finally spotting what was missing.",{"title":240,"searchDepth":298,"depth":298,"links":299},2,[],"2007-08-28 13:31:17 +0200","Or - why does it say my spring context xml is invalid on \u003Caop:",null,"md",{},true,"\u002F2007\u002F08\u002F28\u002Fspring-aop-and-maven-dependencies-aop-spring-configured",{"title":206,"description":301},{"loc":306},"2007\u002F08\u002F28\u002Fspring-aop-and-maven-dependencies-aop-spring-configured-",[311,312,313,314,315,316],"java","aop","spring","maven","@configurable","aspectj","gZF5-0qn2qQB1_9vEGL-YNbKbbjyrFm_KZc33_efxJI",1775293016058]