ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sachin Shah <Sachin_S...@kaleconsultants.com>
Subject RE: Some one Please help me
Date Thu, 06 Sep 2001 12:51:06 GMT
Thanks micheal,
	
	you were right but after i set the weblogic.home directory the
exception was as follows. Notice the name of the xml file it is looking for
.
The DD are named as ejb-jar.xml and weblogic-ejb-jar.xml does this needs to
be changed.

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

build.ejb:
     [echo] d:\weblogic
   [ejbjar] Unable to locate weblogic deployment descriptor. It was expected
to
be in
C:\ant1.4\projects\testANT\testANT\src\java\checkAirline\dd\weblogic-weblo
gic-ejb-jar.xml
   [ejbjar] building weblogic.jar with 1 files
   [ejbjar] Unrecognized publicId -//BEA Systems, Inc.//DTD WebLogic 5.1.0
EJB//
EN - using EJB 1.1 compiler
     [ejbc] weblogic.ejb.deployment.dd.DescriptorLoaderException: Received
low-l
evel error when processing DOM: message was
     [ejbc] "weblogic.xml.dom.ChildCountException"
     [ejbc]     at
weblogic.ejb.deployment.dd.DescriptorLoader.addDOMProcessingE
rror(DescriptorLoader.java:1731)
     [ejbc]     at
weblogic.ejb.deployment.dd.DescriptorLoader.createEntityBeanD
escriptors(DescriptorLoader.java:924)
     [ejbc]     at
weblogic.ejb.deployment.dd.DescriptorLoader.createDeploymentU
nit(DescriptorLoader.java:259)
     [ejbc]     at weblogic.ejbc.runBody(ejbc.java:299)
     [ejbc]     at weblogic.utils.compiler.Tool.run(Tool.java:80)
     [ejbc]     at weblogic.ejbc.main(ejbc.java:353)
     [ejbc] weblogic.ejb.deployment.dd.DescriptorLoaderException: Received
low-l
evel error when processing DOM: message was
     [ejbc] "weblogic.xml.dom.ChildCountException"
     [ejbc]     at
weblogic.ejb.deployment.dd.DescriptorLoader.addDOMProcessingE
rror(DescriptorLoader.java:1731)
     [ejbc]     at
weblogic.ejb.deployment.dd.DescriptorLoader.createSessionBean
Descriptors(DescriptorLoader.java:1078)
     [ejbc]     at
weblogic.ejb.deployment.dd.DescriptorLoader.createDeploymentU
nit(DescriptorLoader.java:261)
     [ejbc]     at weblogic.ejbc.runBody(ejbc.java:299)
     [ejbc]     at weblogic.utils.compiler.Tool.run(Tool.java:80)
     [ejbc]     at weblogic.ejbc.main(ejbc.java:353)
     [ejbc] ERROR: Error from ejbc: Received low-level error when processing
DOM
: message was
     [ejbc] "weblogic.xml.dom.ChildCountException"
     [ejbc] ERROR: Error from ejbc: Received low-level error when processing
DOM
: message was
     [ejbc] "weblogic.xml.dom.ChildCountException"
     [ejbc] ERROR: ejbc found errors

BUILD FAILED

C:\ant1.4\projects\testANT\build.xml:104: Exception while calling
weblogic.ejbc.
 Details: Ejbc reported an error

-----Original Message-----
From: Michael Grindel [mailto:michael.grindel@t-systems.de]
Sent: Thursday, September 06, 2001 5:28 PM
To: ant-user@jakarta.apache.org
Subject: AW: Some one Please help me


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

Mime
View raw message