I am using the ejbjar tag in Ant to create a generic deployment jar by using the following build.xml:
<?xml version="1.0" encoding="UTF-8"?>
When I run ant with the previous build.xml I get the following error:
build.xml  SAXException while parsing 'connections.properties'. This probably indicates badly-formed XML. Details: The markup in the document preceding the root element must be well-formed.
I'm new to xml and I don't see any obious problem in line 4, can anyone see anything wrong with it?
It's not complaining about your build.xml file - it's a problem with the ejbjar task. This is obvious from the message
"SAXException while parsing 'connections.properties'."
You need to work out why it's trying to parse this file as an xml file.
If in doubt, just use the jar task.