You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Srinivas Subbaraju <sr...@majoris.com> on 2001/06/27 09:01:02 UTC
ejbjar and parser.jar file
I extracted the parser.jar file into weblogic/classes and started running
ant
I am getting the following error.
I am using weblogic 5.1. Is the error is due to uncompatible parser.jar
verion??
ejbc:
[ejbjar] building TheEJBJar.jar with 5 files
[ejbc] java.lang.ClassCastException
[ejbc] at
weblogic.xml.dom.DOMUtils.getOptionalElementsByTagName(DOMUti
ls.java, Compiled Code)
[ejbc] at
weblogic.xml.dom.DOMUtils.getOptionalElementByTagName(DOMUtil
s.java:170)
[ejbc] at
weblogic.xml.dom.DOMUtils.getOptionalValueByTagName(DOMUtils.
java:97)
[ejbc] at
weblogic.ejb.deployment.dd.EJBReadDOM.getDescriptionValue(EJB
ReadDOM.java:404)
[ejbc] at
weblogic.ejb.deployment.dd.DescriptorLoader.createDeploymentU
nit(DescriptorLoader.java:200)
[ejbc] at weblogic.ejbc.runBody(ejbc.java, Compiled Code)
[ejbc] at weblogic.utils.compiler.Tool.run(Tool.java:80)
[ejbc] at weblogic.ejbc.main(ejbc.java:353)
[ejbc] ERROR: java.lang.ClassCastException
[ejbc] Java Result: 1
Srini.
RE: ejbjar and parser.jar file
Posted by Srinivas Subbaraju <sr...@majoris.com>.
Thanks Conor,I recovered from the errors.
Mistake was setting classpath in ant build file.
I removed it, now it is working fine.
As you suspected even ejbc was not running from command line.
Srini
-----Original Message-----
From: Conor MacNeill [mailto:conor@cortexebusiness.com.au]
Sent: Wednesday, June 27, 2001 6:00 PM
To: ant-user@jakarta.apache.org
Subject: Re: ejbjar and parser.jar file
From: "Srinivas Subbaraju" <sr...@majoris.com>
>
> I extracted the parser.jar file into weblogic/classes and started running
> ant
Why did you do that? It is probably best not to mess with weblogic's
classes area - you may be setting many potential class conflicts. Have you
tried to run a command line ejbc in this case? Is it OK?
Try running ant with the verbose flag (ant -v). It will show you the
command line it is using. You can cut and paste that to see whether it
works from the command line.
Conor
Re: ejbjar and parser.jar file
Posted by Conor MacNeill <co...@cortexebusiness.com.au>.
From: "Srinivas Subbaraju" <sr...@majoris.com>
>
> I extracted the parser.jar file into weblogic/classes and started running
> ant
Why did you do that? It is probably best not to mess with weblogic's
classes area - you may be setting many potential class conflicts. Have you
tried to run a command line ejbc in this case? Is it OK?
Try running ant with the verbose flag (ant -v). It will show you the
command line it is using. You can cut and paste that to see whether it
works from the command line.
Conor