1 Reply Latest reply on Dec 15, 2001 5:35 PM by luke_t

    Problem with Ant when creating .jar for Jboss

    bill_dom

      Hi all,

      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:

      all:
      build.xml [4] 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?

      thanks

        • 1. Re: Problem with Ant when creating .jar for Jboss

          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.