posted 14 years ago
Well, it seems fine to me, but there must be something wrong with it, since this is the meaning of the exception. The meaning of the exception is that the XML, somewhere between the opening and the closing of the beans element, there are some text written, which is not enclosed in an element. Please make sure that this is not in the XML file being parsed, and if you have copied any part of the XML (no matter how small) from somewhere, make sure that every character is correct (sometimes double quotes are writted differently in PDFs for example). Finally, I have a few comments, but don't know if they have any value for your case.
Line 15 of your XML has a double slash instead of one (this might cause a problem)Line 17 of your XML can be written as <aop:aspectj-autoproxy/> instead of <aop:aspectj-autoproxy></aop:aspectj-autoproxy>No need to define bean for Main class in line 20 of your XML[/tt]Use the following snippet to load the application context instead of what you have in line 11