I have validated both the ejb-jar and weblogic-ejb-jar xml files. I am using
ant 1.5.4 to build.
Thanks,
ken
Error follows:
ejbc:
[ejbjar] building enterprise_staff.jar with 21 files
[ejbc] ERROR: Error creating descriptor from jar file C:\ebdesktop\local\staging\ejbs\enterprise_staff-generic.jar:
[ejbc] ERROR: Error from ejbc: 1
[ejbc] java.lang.ArrayIndexOutOfBoundsException: 1
[ejbc] at weblogic.ejb20.dd.xml.DDUtils.createDescriptorFromJarFile(DDUtils.java:222)
[ejbc] at weblogic.ejb20.dd.xml.DDUtils.createDescriptorFromJarFile(DDUtils.java:97)
[ejbc] at weblogic.ejbc20.getDescriptorFromJar(ejbc20.java:712)
[ejbc] at weblogic.ejbc20.runBody(ejbc20.java:459)
[ejbc] at weblogic.utils.compiler.Tool.run(Tool.java:146)
[ejbc] at weblogic.utils.compiler.Tool.run(Tool.java:103)
[ejbc] at weblogic.ejbc.main(ejbc.java:29)
[ejbc] ERROR: ejbc couldn't load descriptor from jar
BUILD FAILED
file:C:/ebdesktop/local/build.xml:120: Exception while calling weblogic.ejbc.
Details: Ejbc reported an error
"Ken Clark" <kcla...@csc.com> wrote in message
news:3f5dd961$1...@newsgroups.bea.com...
> I am running into a strange error when trying to run ejbc. I am
attempting to
> upgrade our code from 6.1 to 8.1, and am unable to get one of the packages
to
> ejbc correctly. The error I get is as follows. Has anyone seen and
resolved
> this problem? Barring that, could someone with access to the source code
please
> take a look and let me know what the real problem is?
>
> I have validated both the ejb-jar and weblogic-ejb-jar xml files. I am
using
> ant 1.5.4 to build.
Though this errors does look like a bug, be aware that in 8.1 ejbc has been
deprecated. appc should be used instead:
http://edocs.bea.com/wls/docs81/ejb/appc_ejbc.html#1151900
Regards,
Slava Imeshev
ken
Rob Woollen <rwoo...@nomail.org> wrote:
>
>Yep, that's a bug CR109710
>
>I've attached a temporary patch that should correct the problem. Put
>
>the jar in the front of your classpath.
>
>-- Rob