A Gist will give you some syntax coloring. I ran it through a code reformat routine as well for clarity. You may want to use a text editor or IDE that allows you display all characters such as Notepad++. That may help with troubleshooting. Processing XML messages in Java I have ran into issues with lines having carriage return line feed (\r\n) at the end. Replacing line endings with line feed (\n) cleared up the issue. It's an idea but that was a little bit different situation.
https://gist.github.com/kelsey9649/23f1620243ae2b6de885 Curtis Kelsey Web Developer Truman State University From: Kristen Walker [mailto:[email protected]] Sent: Wednesday, January 07, 2015 3:32 PM To: [email protected] Subject: Re: [cas-user] working example? cas 4.0.0 LDAP deployerConfigContext On 1/7/15 12:04 PM, "Marvin Addison" <[email protected]> wrote: INFO: Deploying web application directory /var/lib/tomcat7/webapps/ROOT 2015-01-07 11:04:42,372 ERROR [org.springframework.web.context.ContextLoader] - <Context initialization failed> org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 72 in XML document from ServletContext resource [/WEB-INF/deployerConfigContext.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 72; columnNumber: 9; cvc-complex-type.2.3: Element 'beans' cannot have character [children], because the type's content type is element-only. This error indicates you have non-whitespace character content under the <beans> element somewhere. I can't see it in your post, but the XML is hard to read so it's not surprising. Can you post your file on pastebin or similar so I can read it clearly? Thanks, M Thanks Marvin. I have never used Pastebin before. That's a really useful tool. Here is the link to the xml: http://pastebin.com/N20RzJgG Thanks, Kristen -- You are currently subscribed to [email protected] as: [email protected] To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/cas-user -- You are currently subscribed to [email protected] as: [email protected] To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/cas-user
