I'm using the technique described here to register string values on the JNDI tree via an XML file deployed to JBoss.
This is working fine for my system constants (URLs and the like). However I am also trying to register the contents of a file which has been encoded to a Base64 string. The file is fairly large (about 400k), so the resulting string is very long.
When I try to deploy the XML file to JBoss, I get the following error:
DEPLOYMENTS IN ERROR:
Deployment "vfsfile:/usr/local/jboss-5.1.0.GA/server/default/deploy/customers-service.xml" is in error due to the following reason(s): org.xml.sax.SAXParseException: XML document structures must start and end within the same entity.
Is this likely to be because I am exceeding the maximum allowable length for the string value and hence it is only reading it to a certain point?