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

Problem with 8.1 ejbc

16 views
Skip to first unread message

Ken Clark

unread,
Sep 9, 2003, 9:45:05 AM9/9/03
to

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.

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

unread,
Sep 9, 2003, 9:45:15 AM9/9/03
to

Deepak Vohra

unread,
Sep 9, 2003, 10:10:09 AM9/9/03
to

Does the enterprise_staff-generic.jar file have the structure:
META-INF/ejb-jar.xml
META-INF/weblogic-ejb-jar.xml
Bean Class
Home interface
Remote interface

Ken Clark

unread,
Sep 9, 2003, 12:38:49 PM9/9/03
to

Yes, it does. It has exactly the same structure as it did in WL 6.1, in which
it worked correctly.

Slava Imeshev

unread,
Sep 9, 2003, 1:13:34 PM9/9/03
to
Ken,

"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 Clark

unread,
Sep 10, 2003, 8:17:49 AM9/10/03
to

Thanks for the quick response. That did in fact fix the problem promptly.

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

0 new messages