Conor,
I did try adding that exclude and I did receive a different error. I may
have problems with conflicting versions of Xerces? I tried putting the
pathelement with WL5.1 first as some of the other software libs in the
include tag use a later version of Xerces =(
Anyway I have included the names of the descriptor files and the entire
ejbjar task as well as the error that I am receiving now.
I'm sure I'm missing something simple. What is the relationship between the
inclusion or exclusions of the descriptors at compile time?
Thanks very much for your help!
Descriptors:
ejb-jar.xml
weblogic-cmp-rdbms-jar-audit.xml
weblogic-cmp-rdbms-jar-queuedevent.xml
weblogic-ejb-jar.xml
<ejbjar TASK>
<ejbjar srcdir="${build.home}/classes"
descriptordir="${build.home}/WEB-INF/META-INF"
destdir="${build.home}/jars"
basejarname="allogis_ejb"
flatdestdir="true"
>
<support dir="${build.home}/classes">
<include name="**/util/*.class"/>
<include name="**/security/*.class"/>
<include name="**/appserver/*.class"/>
<include name="**/appserver/weblogic/*.class"/>
<include name="**/yfs/*.class"/>
<include name="**/iarta/*.class"/>
<include name="**/ordercapture/*.class"/>
<include name="**/agents/*.class"/>
<include name="**/orderconfirm/*.class"/>
<include name="**/recordevent/*.class"/>
<exclude name="**/integration/*.class"/>
</support>
<weblogic compiler="${build.compiler}"
destdir="${build.home}/jars"
newCMP="true"
keepgenerated="true">
<classpath>
<pathelement location="${weblogic.home}/classes"/>
<fileset dir="${mycustoms.home}/lib">
<include name="**"/>
</fileset>
<fileset dir="${mycustoms.home}/external_lib">
<include name="**"/>
</fileset>
<fileset dir="${weblogic.home}/lib">
<include name="**.jar"/>
<include name="**.zip"/>
</fileset>
<pathelement location="${build.home}/classes"/>
<fileset dir="${yantra.ecommerce.home}/lib">
<include name="**.jar"/>
<include name="**.class"/>
</fileset>
<fileset dir="${yantra.interop.home}/lib">
<include name="**"/>
</fileset>
<fileset dir="${lib}">
<include name="**"/>
</fileset>
</classpath>
</weblogic>
<exclude name="**/**vss**"/>
<include name="**/*ejb-jar.xml"/>
<include name="**/*cmp*.xml"/>
<include name="**/**weblogic-ejb**.xml"/>
<exclude name="**/**cmp**.xml"/>
<dtd publicId="-//Sun Microsystems, Inc.//DTD Enterprise
JavaBeans
1.1//EN"
location="${project.home}/dtd/ejb-jar_1_1.dtd"/>
<dtd publicId="-//BEA Systems, Inc.//DTD WebLogic 5.1.0 EJB
RDBMS
Persistence//EN"
location="${project.home}/dtd/weblogic-rdbms-persistence.dtd"/>
<dtd publicId="-//BEA Systems, Inc.//DTD WebLogic 5.1.0
EJB//EN"
location="${project.home}/dtd/weblogic-ejb-jar.dtd"/>
</ejbjar>
<snippet from error message after ant compile>
-keepgenerated -compiler jikes
E:\projects\Allogis\build\jars\allogis_ejb-gener
ic.jar E:\projects\Allogis\build\jars\allogis_ejb.jar
[ejbc] java.lang.ClassCastException: com.sun.xml.tree.TextNode
[ejbc] at
weblogic.xml.dom.DOMUtils.getOptionalElementsByTagName(DOMUti
ls.java:204)
[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:299)
[ejbc] at weblogic.utils.compiler.Tool.run(Tool.java:80)
[ejbc] at weblogic.ejbc.main(ejbc.java:353)
[ejbc] ERROR: java.lang.ClassCastException: com.sun.xml.tree.TextNode
BUILD FAILED
E:\projects\Allogis\build.xml:197: Exception while calling weblogic.ejbc.
Detail
s: Ejbc reported an error
at
org.apache.tools.ant.taskdefs.optional.ejb.WeblogicDeploymentTool.bui
ldWeblogicJar(WeblogicDeploymentTool.java:464)
at
org.apache.tools.ant.taskdefs.optional.ejb.WeblogicDeploymentTool.wri
teJar(WeblogicDeploymentTool.java:481)
at
org.apache.tools.ant.taskdefs.optional.ejb.GenericDeploymentTool.proc
essDescriptor(GenericDeploymentTool.java:358)
at
org.apache.tools.ant.taskdefs.optional.ejb.EjbJar.execute(EjbJar.java
:525)
at org.apache.tools.ant.Task.perform(Task.java:217)
at org.apache.tools.ant.Target.execute(Target.java:164)
at org.apache.tools.ant.Target.performTasks(Target.java:182)
at org.apache.tools.ant.Project.executeTarget(Project.java:601)
at org.apache.tools.ant.Project.executeTargets(Project.java:560)
at org.apache.tools.ant.Main.runBuild(Main.java:454)
at org.apache.tools.ant.Main.start(Main.java:153)
at org.apache.tools.ant.Main.main(Main.java:176)
--- Nested Exception ---
Ejbc reported an error
at
org.apache.tools.ant.taskdefs.optional.ejb.WeblogicDeploymentTool.bui
ldWeblogicJar(WeblogicDeploymentTool.java:458)
at
org.apache.tools.ant.taskdefs.optional.ejb.WeblogicDeploymentTool.wri
teJar(WeblogicDeploymentTool.java:481)
at
org.apache.tools.ant.taskdefs.optional.ejb.GenericDeploymentTool.proc
essDescriptor(GenericDeploymentTool.java:358)
at
org.apache.tools.ant.taskdefs.optional.ejb.EjbJar.execute(EjbJar.java
:525)
at org.apache.tools.ant.Task.perform(Task.java:217)
at org.apache.tools.ant.Target.execute(Target.java:164)
at org.apache.tools.ant.Target.performTasks(Target.java:182)
at org.apache.tools.ant.Project.executeTarget(Project.java:601)
at org.apache.tools.ant.Project.executeTargets(Project.java:560)
at org.apache.tools.ant.Main.runBuild(Main.java:454)
at org.apache.tools.ant.Main.start(Main.java:153)
at org.apache.tools.ant.Main.main(Main.java:176)
-----Original Message-----
From: Conor MacNeill [mailto:[EMAIL PROTECTED]]
Sent: Sunday, September 09, 2001 9:19 PM
To: Cory Adams
Subject: RE: ejbjar problems
Cory,
I am pretty sure the problem is that you are not excluding the CMP
descriptors from the <ejbjar> tag. <ejbjar> is then parsing these as though
they were standard descriptors. Can you have a look at your <exclude>
element?
Conor
> -----Original Message-----
> From: Cory Adams [mailto:[EMAIL PROTECTED]]
> Sent: Friday, 7 September 2001 11:35 PM
> To: Conor MacNeill
> Subject: RE: ejbjar problems
>
>
> Conor,
>
> No worries. We have ejbc working now with shell scripts and batch files.
> We provide ejbc with a temp jar file. Why doesn't ejbc try to after the
> remote dtds? Is it because it finds them in the classpath?
>
> Thanks,
>
> Cory
>
> -----Original Message-----
> From: Conor MacNeill [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, September 06, 2001 9:40 PM
> To: Cory Adams
> Subject: RE: ejbjar problems
>
>
> Cory,
>
> Sorry my home dev machine is in pieces and I'm too busy at work at the
> moment. I'll try to have a look tonight.
>
> Have you tries running ejbc manually?
>
> Conor
>
>
> > -----Original Message-----
> > From: Cory Adams [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, 7 September 2001 7:41 AM
> > To: [EMAIL PROTECTED]
> > Subject: ejbjar problems
> >
> >
> > Conor,
> >
> > Did you receive my last response? I did find a post that you
> > responded to:
> > http://www.mail-archive.com/[email protected]/msg06927.html
> >
> >
> > That person is having exactly the same problem that I am having.
> >
> > Also I am using the 1.4 release version but this problem consistently
> > happened with 1.3 and the 1.4 betas as well.
> >
> >
> > I'm going nutzzzzz =)
> >
> > Thanks again,
> >
> > Cory
> >
> > <snippet of joy>
> >
> > [ejbjar] building allogis_ejb.jar with 123 files
> > [ejbjar] Unrecognized publicId -//BEA Systems, Inc.//DTD
> WebLogic 5.1.0
> > EJB R
> > DBMS Persistence//EN - using EJB 1.1 compiler
> > [ejbc] weblogic.ejb.deployment.xml.IllegalResourceException:
> > Could not
> > loca
> > te a local resource corresponding to public Id -//BEA Systems, Inc.//DTD
> > WebLogi
> > c 5.1.0 EJB RDBMS Persistence//EN.
> > [ejbc] Is the XML DOCTYPE header correct?
> > [ejbc] at
> > weblogic.ejb.deployment.xml.EJBEntityResolver.resolveEntity(E
> > JBEntityResolver.java:55)
> > [ejbc] at
> > com.sun.xml.parser.ExternalEntity.getInputSource(ExternalEnti
> > ty.java:46)
> > [ejbc] at
> com.sun.xml.parser.Parser.pushReader(Parser.java:2748)
> > [ejbc] at
> > com.sun.xml.parser.Parser.externalParameterEntity(Parser.java
> > :2500)
> > [ejbc] at
> > com.sun.xml.parser.Parser.maybeDoctypeDecl(Parser.java:1136)
> > [ejbc] at
> > com.sun.xml.parser.Parser.parseInternal(Parser.java:480)
> > [ejbc] at com.sun.xml.parser.Parser.parse(Parser.java:283)
> > [ejbc] at
> > weblogic.xml.dom.SunDOMParser.getDocument(SunDOMParser.java:6
> > 9)
> > [ejbc] at
> > weblogic.xml.dom.DOMParser.getDocument(DOMParser.java:102)
> > [ejbc] at
> > weblogic.ejb.deployment.dd.DescriptorLoader.<init>(Descriptor
> > Loader.java:152)
> > [ejbc] at weblogic.ejbc.runBody(ejbc.java:310)
> > [ejbc] at weblogic.utils.compiler.Tool.run(Tool.java:80)
> > [ejbc] at weblogic.ejbc.main(ejbc.java:365)
> > [ejbc] --------------- nested within: ------------------
> > [ejbc] Received SAXException from Sun Parser:
> > weblogic.ejb.deployment.xml.I
> > llegalResourceException: Could not locate a local resource
> > corresponding to
> > publ
> > ic Id -//BEA Systems, Inc.//DTD WebLogic 5.1.0 EJB RDBMS
> Persistence//EN.
> > [ejbc] Is the XML DOCTYPE header correct?
> > [ejbc] at
> > weblogic.xml.dom.SunDOMParser.getDocument(SunDOMParser.java:7
> > 2)
> > [ejbc] at
> > weblogic.xml.dom.DOMParser.getDocument(DOMParser.java:102)
> > [ejbc] at
> > weblogic.ejb.deployment.dd.DescriptorLoader.<init>(Descriptor
> > Loader.java:152)
> > [ejbc] at weblogic.ejbc.runBody(ejbc.java:310)
> > [ejbc] at weblogic.utils.compiler.Tool.run(Tool.java:80)
> > [ejbc] at weblogic.ejbc.main(ejbc.java:365)
> > [ejbc] ERROR: Received SAXException from Sun Parser:
> > weblogic.ejb.deploymen
> > t.xml.IllegalResourceException: Could not locate a local resource
> > corresponding
> > to public Id -//BEA Systems, Inc.//DTD WebLogic 5.1.0 EJB RDBMS
> > Persistence//EN.
> >
> > [ejbc] Is the XML DOCTYPE header correct?
> >
> > BUILD FAILED
> >
> >
>
>
>