ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ip, Ting Shing" <>
Subject Re: Jboss/ant1.4
Date Mon, 01 Oct 2001 12:36:40 GMT


i am actually using two file to build the ejb files: Build.xml and


<project name="ej_framework" default="dist" basedir=".">

  <!-- set global properties for this build -->
  <property name="src" value="src" />
  <property name="build" value="build" />
  <property name="dist"  value="dist" />
  <!-- change build.compiler to 'classic' if you don't have jikes installed


  <target name="jbossejb" depends="compile">
    <ejbjar srcdir="${build}"
                <include name="**/*-ejb-jar.xml"/>
	    <exclude name="**/*weblogic*.xml"/>



<?xml version="1.0"?>

<!DOCTYPE ejb-jar PUBLIC '-//Sun Microsystems, Inc.//DTD Enterprise
JavaBeans 1.1//EN' ''>


When using the command ant jbossejb it looks at the second
file(FrameworkTester-ejb-jar.xml) to retreive the publicid and the systemid.
I have internet connection and i can visualize it with IE. I also have try
with the local definition :<!DOCTYPE ejb-jar PUBLIC '-//Sun Microsystems,
Inc.//DTD Enterprise JavaBeans 1.1//EN' 'c:\test\ejb-jar_1_1.dtd'>
 Then i get a error :
D:\java\test\build.xml:73: SAXException while parsing
'framework\test\ejb\FrameworkTester-ejb-jar.xml'. This probably indicates
badly-formed XML.  Details: Relative URI "c:\dtds\ejb-jar_1_1.dtd"; can not
be resolved without a document URI.

It seems only only to accept Http protocol. I ahve also try with a local
webserver with out succes.

Any idea what could cause the problem? or do you have a workaround.

You can actually find all the files at the following

thanks for your help
Best Regards

Ip Ting Shing

-----Original Message-----
From: Jesse Stockall []
Sent: Monday, October 01, 2001 1:22 PM
Subject: Re: Jboss/ant1.4

On Mon, 2001-10-01 at 04:08, Ip, Ting Shing wrote:
    I am testing for the first time Jboss and ant 1.4. I am building ejb
    with ant and i am getting the following error:
    [ejbjar] 1 deployment descriptors located.
    [ejbjar] Could not resolve ( publicId: -//Sun Microsystems, Inc.//DTD
    Enterprise Java
    Beans 1.1//EN, systemId:
<> to
    a local entity

    Can anyone help me. please respons it to
>From the Ant manual:

The <dtd> element is used to specify the local location of DTDs to be
used when parsing the EJB deployment descriptor. Using a local DTD is
much faster than loading the DTD across the net. 

Ant is looking for a local copy of the DTD. You need something like

<dtd publicId="-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans


 Jesse Stockall			|	Tel: 1+ 613.599.2441 ext. 243
 CRYPTOCard Corporation		|	Fax: 1+ 613.599.2442	 	
 Suite 304, 300 March Rd.	|	email:
 Ottawa, ON, Canada K2K 2E2	|	web: 
Ip Ting Shing
Tramstraat 69, B-9052 Gent, Belgium 
Tel: +3292169661 
Fax: +3292169870 
E-mail: <>

View raw message