ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shyam Koppikar" <vkopp...@tds.net>
Subject Re: Jboss/ant1.4
Date Tue, 02 Oct 2001 03:23:35 GMT

----- Original Message -----
From: "Ip, Ting Shing" <tingshing.ip@barco.com>
To: <jesse@cryptocard.com>; <ant-user@jakarta.apache.org>
Sent: Monday, October 01, 2001 5:36 AM
Subject: Re: Jboss/ant1.4


>
> Hello,
>
> i am actually using two file to build the ejb files: Build.xml and
> FrameworkTester-ejb-jar.xml.
>
>
> Build.xml:
>
> <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}"
>     flatdestdir="true"
>                 descriptordir="${descriptor.dir}"
>         destdir="${jboss.deploydir}">
>                 <include name="**/*-ejb-jar.xml"/>
>     <exclude name="**/*weblogic*.xml"/>
>
>     </ejbjar>
>   </target>
> </project>
>
> FrameworkTester-ejb-jar.xml:
>
> <?xml version="1.0"?>
>
> <!DOCTYPE ejb-jar PUBLIC '-//Sun Microsystems, Inc.//DTD Enterprise
> JavaBeans 1.1//EN' 'http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd'>
>
> <ejb-jar>
>     <enterprise-beans>
>       <session>
> <ejb-name>frameworkTester</ejb-name>
> <home>framework.test.ejb.FrameworkTesterHome</home>
> <remote>framework.test.ejb.FrameworkTester</remote>
> <ejb-class>framework.test.ejb.FrameworkTesterBean</ejb-class>
> <session-type>Stateless</session-type>
> <transaction-type>Container</transaction-type>
>       </session>
>     </enterprise-beans>
>     <assembly-descriptor>
>       <container-transaction>
> <method>
>   <ejb-name>frameworkTester</ejb-name>
>   <method-intf>Remote</method-intf>
>   <method-name>*</method-name>
> </method>
> <trans-attribute>Required</trans-attribute>
>       </container-transaction>
>     </assembly-descriptor>
>   </ejb-jar>
>
>
> 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
>
url:<http://www.javaworld.com/javaworld/jw-09-2000/ejbframe/jw-0929-ejbframe
> .zip>
>
> thanks for your help
> Best Regards
>
> Ip Ting Shing
>
>
>
>
> -----Original Message-----
> From: Jesse Stockall [mailto:jesse@cryptocard.com]
> Sent: Monday, October 01, 2001 1:22 PM
> To: ant-user@jakarta.apache.org
> Cc: tsip168@hotmail.com
> Subject: Re: Jboss/ant1.4
>
>
> On Mon, 2001-10-01 at 04:08, Ip, Ting Shing wrote:
>     Hello
>
>     I am testing for the first time Jboss and ant 1.4. I am building ejb
> files
>     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:
> <http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd)> to
>     a local entity
>
>
>
>     Can anyone help me. please respons it to tsip168@hotmail.com
>
> 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
> this:
>
> <dtd publicId="-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans
> 1.1//EN"
>     location="${foo.dir}/ejb-jar_1_1.dtd"/>
>
> Cheers
>
>
> --
>  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
> ---------------------------------------------------------------------
> Ip Ting Shing
> ManiaBarco
> Tramstraat 69, B-9052 Gent, Belgium
> Tel: +3292169661
> Fax: +3292169870
> E-mail: <mailto:tingshing.ip@barco.com>
> Web:    www.barco.com/ets
>
>


Mime
View raw message