Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Ant & EJBC

0 views
Skip to first unread message

Cory

unread,
Aug 8, 2001, 12:48:59 PM8/8/01
to
I'm seeing the following error when attempting to ejbc through the java task
in ant...
----------------------------------------------------------------------------
-----------------
java.lang.ClassCastException: com.sun.xml.tree.TextNode
at
weblogic.xml.dom.DOMUtils.getOptionalElementsByTagName(DOMUtils.java:
204)
at
weblogic.xml.dom.DOMUtils.getOptionalElementByTagName(DOMUtils.java:1
70)
at
weblogic.xml.dom.DOMUtils.getOptionalValueByTagName(DOMUtils.java:97)

at
weblogic.ejb.deployment.dd.EJBReadDOM.getDescriptionValue(EJBReadDOM.
java:404)
at
weblogic.ejb.deployment.dd.DescriptorLoader.createDeploymentUnit(Desc
riptorLoader.java:200)
at weblogic.ejbc.runBody(ejbc.java:299)
at weblogic.utils.compiler.Tool.run(Tool.java:80)
at weblogic.ejbc.main(ejbc.java:353)
at java.lang.reflect.Method.invoke(Native Method)
at
org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:12
7)
at org.apache.tools.ant.taskdefs.Java.run(Java.java:260)
at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:123)
at org.apache.tools.ant.taskdefs.Java.execute(Java.java:87)
at org.apache.tools.ant.Target.execute(Target.java:153)
at org.apache.tools.ant.Project.runTarget(Project.java:898)
at org.apache.tools.ant.Project.executeTarget(Project.java:536)
at org.apache.tools.ant.Project.executeTargets(Project.java:510)
at org.apache.tools.ant.Main.runBuild(Main.java:421)
at org.apache.tools.ant.Main.main(Main.java:149)
----------------------------------------------------------------------------
-----------------
Here is my classpath for reference....see any issues?
----------------------------------------------------------------------------
-----------------
C:\JDK1.3;C:\JDK1.3\bin;C:\JDK1.3\jre;C:\JDK1.3\lib;C:\JDK1.3\lib\tools.jar;
C:\JDK1.3\jre\lib\rt.jar;c:\;c:\j2sdkee1.2.1\lib\j2ee.jar;
C:\Weblogic51\lib;C:\Weblogic51\classes;C:\Weblogic51\lib\unpacked_jars\coll
ection
s.zip;C:\Weblogic51\lib\unpacked_jars\jndi.jar;C:\Weblogic51\lib\unpacked_ja
rs\javax_ejb.zip;C:\Weblogic51\lib\unpacked_jars\javax_jts.zip;C:\Weblogic51
\lib\weblogic51sp9.jar;C:\Weblogic51\lib\weblogicaux.jar;\TNOW_Entity.jar;\T
NOW_Session.jar;\TNOW_Util.jar;\classes.jar;
C:\ANT1.3\lib\ant.jar;C:\projects\travelnowjrun\lib\iate.jar;C:\projects\tra
velnowjrun\lib\SDSApi.jar;C:\projects\travelnowjrun\lib\dataBahnApi.jar;
C:\projects\travelnowjrun\lib\cdkjava3300.jar;C:\projects\travelnowjrun\lib\
availDBHotelSupplier.jar;C:\projects\travelnowjrun\lib\exml.jar;
----------------------------------------------------------------------------
-----------------
Thanks a ton,
Cory


Mahendra

unread,
Aug 8, 2001, 1:44:18 PM8/8/01
to
Which parser are you using?
Can you paste your code ?


"Cory" <co...@visto.com> wrote in message
news:3b716d93$1...@newsgroups.bea.com...

Cory

unread,
Aug 8, 2001, 2:30:30 PM8/8/01
to
The parser being used is the parser included in the ant/lib
directory...parser.jar (along with jaxp.jar).

"Mahendra" <nos...@hotmail.com> wrote in message
news:3b71...@newsgroups.bea.com...

Mahendra

unread,
Aug 8, 2001, 2:57:06 PM8/8/01
to
Looks like this is not an Ant Problem.
I am also using xml parser with ejb but i didn't get that error.
I am using jaxp 1.1 and crimson parser from apache.
The Crimson codebase is based on the Sun Project X parser.
I think, parser.jar from ant is an old version of Project X parser.


Hope this helps,
Mahendra


"Cory" <co...@visto.com> wrote in message

news:3b71855e$1...@newsgroups.bea.com...

Cory

unread,
Aug 8, 2001, 3:21:31 PM8/8/01
to
Not, I'm not attempting to assign the blame to Ant...it is simply handing it
off to ejbc...there's a problem somewhere along the classpath I believe and
I was hoping someone might have encountered the same problem. Thank you very
much for your help...other suggestions gladly welcome...giving crimson a
shot.

Cory

Cory

unread,
Aug 8, 2001, 3:41:41 PM8/8/01
to
The crimson jar appeared to work....fantastic! Now...what if I'm wanting to
EJBC three jars in a row...it appears to me that weblogic.ejbc forces an
exit after ant hits it the first time...thus, the other jars never get
ejbc'd...any idesa?

Gary Keim

unread,
Aug 8, 2001, 5:30:22 PM8/8/01
to
All our tools take the -noexit flag.
--
Gary

"Cory" <co...@visto.com> wrote in message

news:3b71960d$1...@newsgroups.bea.com...

Gene De Lisa

unread,
Aug 24, 2001, 2:51:57 PM8/24/01
to

"Gary Keim" <gk...@bea.com> wrote in message
news:3b71b080$1...@newsgroups.bea.com...

> All our tools take the -noexit flag.

Cool. Do you have to pay royalties to the estate of Jean Paul Sartre?

0 new messages