You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Sachin Shah <Sa...@kaleconsultants.com> on 2001/09/06 13:21:04 UTC

Some one Please help me

Hi,

	This is for the 3rd time i m asking the same que. But sorry but i
couldn't get the thing right. I m trying to build the ejb jar from the DD
but continueously it is giving the same error even after using the nested
dtd element as below in ant 1.4

  <target name="build.ejb" depends="init">
	<ejbjar srcdir="${javac.dest}"
            descriptordir="${java.source.dir}/checkAirline/dd">
   	 <dtd publicId="-//BEA Systems, Inc.//DTD WebLogic 5.1.0 EJB//EN"
 
location="${weblogic.home}/classes/weblogic/ejb/deployment/xml/weblogic-ejb-
jar.dtd"/>							
	 <dtd publicId="-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans
1.1//EN"
 
location="${weblogic.home}/classes/weblogic/ejb/deployment/xml/ejb-jar.dtd"/
>						
      <weblogic destdir="${javac.dest}/checkAirline"
                classpath="${weblogic.home}"/>
    </ejbjar>
  </target>
where weblogic.home is d:\weblogic i m running the app in c:\

When i try and run the same build file without weblogic nested element then
it creates the ejb-generic.jar (with classfile and ejb-jar.xml) and
weblogic-generic.jar (without classfile and ejb-jar.xml but not
weblogic-ejb-jar.xml. I get the output as follows.

C:\ant1.4\projects\testANT>ant
Buildfile: build.xml

init:

build.core:
    [javac] Compiling 3 source files to
C:\ant1.4\projects\testANT\testANT\dist\
classes

build.ejb:
   [ejbjar] Could not resolve ( publicId: -//BEA Systems, Inc.//DTD WebLogic
5.1
.0 EJB//EN, systemId:
http://www.bea.com/servers/wls510/dtd/weblogic-ejb-jar.dtd
) to a local entity

BUILD FAILED

C:\ant1.4\projects\testANT\build.xml:101: SAXException while parsing
'weblogic-e
jb-jar.xml'. This probably indicates badly-formed XML.  Details: External
entity
 not found: "http://www.bea.com/servers/wls510/dtd/weblogic-ejb-jar.dtd".

Total time: 11 seconds

if any one has sample it would be useful.
Please i m in need of this thing to work out 
Thanks in advance



AW: Some one Please help me

Posted by Michael Grindel <mi...@t-systems.de>.
Sachin,

it seems to me that ${weblogic.home} doesn't map to d:\weblogic
you may test this by replacing "${weblogic.home}" by "d:\weblogic"

michael

> -----Ursprüngliche Nachricht-----
> Von: Sachin Shah [mailto:Sachin_Shah@kaleconsultants.com]
> Gesendet am: Donnerstag, 6. September 2001 13:21
> An: ant-user@jakarta.apache.org
> Betreff: Some one Please help me
>
> Hi,
>
> 	This is for the 3rd time i m asking the same que. But
> sorry but i
> couldn't get the thing right. I m trying to build the ejb jar
> from the DD
> but continueously it is giving the same error even after
> using the nested
> dtd element as below in ant 1.4
>
>   <target name="build.ejb" depends="init">
> 	<ejbjar srcdir="${javac.dest}"
>             descriptordir="${java.source.dir}/checkAirline/dd">
>    	 <dtd publicId="-//BEA Systems, Inc.//DTD WebLogic
> 5.1.0 EJB//EN"
>
> location="${weblogic.home}/classes/weblogic/ejb/deployment/xml
> /weblogic-ejb-
> jar.dtd"/>
> 	 <dtd publicId="-//Sun Microsystems, Inc.//DTD
> Enterprise JavaBeans
> 1.1//EN"
>
> location="${weblogic.home}/classes/weblogic/ejb/deployment/xml
> /ejb-jar.dtd"/
> >
>       <weblogic destdir="${javac.dest}/checkAirline"
>                 classpath="${weblogic.home}"/>
>     </ejbjar>
>   </target>
> where weblogic.home is d:\weblogic i m running the app in c:\
>
> When i try and run the same build file without weblogic
> nested element then
> it creates the ejb-generic.jar (with classfile and ejb-jar.xml) and
> weblogic-generic.jar (without classfile and ejb-jar.xml but not
> weblogic-ejb-jar.xml. I get the output as follows.
>
> C:\ant1.4\projects\testANT>ant
> Buildfile: build.xml
>
> init:
>
> build.core:
>     [javac] Compiling 3 source files to
> C:\ant1.4\projects\testANT\testANT\dist\
> classes
>
> build.ejb:
>    [ejbjar] Could not resolve ( publicId: -//BEA Systems,
> Inc.//DTD WebLogic
> 5.1
> .0 EJB//EN, systemId:
> http://www.bea.com/servers/wls510/dtd/weblogic-ejb-jar.dtd
> ) to a local entity
>
> BUILD FAILED
>
> C:\ant1.4\projects\testANT\build.xml:101: SAXException while parsing
> 'weblogic-e
> jb-jar.xml'. This probably indicates badly-formed XML.
> Details: External
> entity
>  not found:
"http://www.bea.com/servers/wls510/dtd/weblogic-ejb-jar.dtd".

Total time: 11 seconds

if any one has sample it would be useful.
Please i m in need of this thing to work out
Thanks in advance