ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ip, Ting Shing" <tingshing...@barco.com>
Subject RE: Jboss/ant1.4
Date Tue, 02 Oct 2001 06:43:23 GMT
Hello Jesse,

I have tried with the DTD local sved in mijn computer. It works it is great
but still i have one question. Why doesn't it succeed it through the http
protocol? Do you have any idea? 

Anyway thanks for yoour help

Best Regards 

-----Original Message-----
From: Jesse Stockall [mailto:jesse@cryptocard.com]
Sent: Monday, October 01, 2001 3:50 PM
To: Ip, Ting Shing
Subject: Re: Jboss/ant1.4


On Mon, 2001-10-01 at 08:36, Ip, Ting Shing wrote:
 
> 
> 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.
> 
>

First read the ant manual. It explains how to specify the DTD.

Your jbossejb target needs a dtd element.
Have a look at this example (from the ant user manual)
 The example is for Weblogic, but the structure is the same.

<ejbjar descriptordir="${src.dir}" srcdir="${build.classes}">
    <weblogic destdir="${deployment.webshop.dir}" 
              keepgeneric="true"
              args="-g -keepgenerated ${ejbc.compiler}"
              suffix=".jar"
              oldCMP="false">
        <classpath>
            <pathelement path="${descriptorbuild.classpath}"/>
        </classpath>
    </weblogic>
    <include name="**/*-ejb-jar.xml"/> 
    <exclude name="**/*-weblogic-ejb-jar.xml"/>
    <dtd publicId="-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans
1.1//EN"
location="${weblogic.home}/classes/weblogic/ejb/deployment/xml/ejb-jar.dtd"/
>
    <dtd publicId="-//BEA Systems, Inc.//DTD WebLogic 5.1.0 EJB//EN"
location="${weblogic.home}/classes/weblogic/ejb/deployment/xml/weblogic-ejb-
jar.dtd"/>
</ejbjar>

Notice how the location element is a local path.

 
-- 
 Jesse Stockall			|	Tel: 1+ 613.599.2441 ext. 243
 CRYPTOCard Corporation		|	Fax: 1+ 613.599.2442	 	
 Suite 304, 300 March Rd.	|	email: jesse@cryptocard.com
 Ottawa, ON, Canada K2K 2E2	|	web: www.cryptocard.com 
---------------------------------------------------------------------

Mime
View raw message