You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Ross Cormier <ro...@scgo.com> on 2000/08/11 19:22:42 UTC

EJBC Task Exception

I get the following exception when running the ejbc task.  It only occurs 
after the first build, ie. when building to a dest directory which already 
contains the generated files.  The solution is to delete all of the 
generated files from the dest directory, but I don't have to do this when 
running from the command line.  Any ideas?

I am using Weblogic 4.51, and the release build of Ant.

Regards,
Ross Cormier

      [java] Exception occurred reading 
BidAskServiceBeanEOImpl_Descriptor.ser -
continuing
      [java] Running ejbc for BidAskServiceBeanEOImpl_Descriptor.ser
      [java] java.lang.ClassCastException: 
weblogic.service.ServiceDeploymentDesc
riptor
      [java]     at weblogic.ejbc.getBeanFromFile(ejbc.java:280)
      [java]     at weblogic.ejbc.deploymentDescriptors(ejbc.java:254)
      [java]     at weblogic.ejbc.runBody(ejbc.java:76)
      [java]     at weblogic.utils.compiler.Tool.run(Tool.java:55)
      [java]     at weblogic.ejbc.main(ejbc.java:623)
      [java]     at 
org.apache.tools.ant.taskdefs.optional.ejb.EjbcHelper.regener
ateSupportClasses(EjbcHelper.java:275)
      [java]     at 
org.apache.tools.ant.taskdefs.optional.ejb.EjbcHelper.process
(EjbcHelper.java:238)
      [java]     at 
org.apache.tools.ant.taskdefs.optional.ejb.EjbcHelper.main(Ej
bcHelper.java:113)
      [java] Result: 1

BUILD FAILED

build.ant:176: Execution of ejbc helper failed


RE: EJBC Task Exception

Posted by Ross Cormier <ro...@scgo.com>.
To answer a previous post, I am using the "Modern" compiler.  Jikes creates 
an Application Error in Windows when I compile certain Swing code.

The Deployment Descriptor .ser file is generated using the ddcreator 
task.  And the ejbc task is creating the other .ser files.

Ross

At 09:59 PM 8/14/00 +1000, you wrote:
>Ross,
>
>Can you tell me how you are generating the .ser file? Weblogic assumes that
>the serialized object is an instance of a weblogic class.
>
>Conor
>
> > -----Original Message-----
> > From: Ross Cormier [mailto:ross.cormier@scgo.com]
> > Sent: Saturday, 12 August 2000 3:23
> > To: ant-user@jakarta.apache.org
> > Subject: EJBC Task Exception
> >
> >
> > I get the following exception when running the ejbc task.  It only occurs
> > after the first build, ie. when building to a dest directory
> > which already
> > contains the generated files.  The solution is to delete all of the
> > generated files from the dest directory, but I don't have to do this when
> > running from the command line.  Any ideas?
> >
> > I am using Weblogic 4.51, and the release build of Ant.
> >
> > Regards,
> > Ross Cormier
> >
> >       [java] Exception occurred reading
> > BidAskServiceBeanEOImpl_Descriptor.ser -
> > continuing
> >       [java] Running ejbc for BidAskServiceBeanEOImpl_Descriptor.ser
> >       [java] java.lang.ClassCastException:
> > weblogic.service.ServiceDeploymentDesc
> > riptor
> >       [java]     at weblogic.ejbc.getBeanFromFile(ejbc.java:280)
> >       [java]     at weblogic.ejbc.deploymentDescriptors(ejbc.java:254)
> >       [java]     at weblogic.ejbc.runBody(ejbc.java:76)
> >       [java]     at weblogic.utils.compiler.Tool.run(Tool.java:55)
> >       [java]     at weblogic.ejbc.main(ejbc.java:623)
> >       [java]     at
> > org.apache.tools.ant.taskdefs.optional.ejb.EjbcHelper.regener
> > ateSupportClasses(EjbcHelper.java:275)
> >       [java]     at
> > org.apache.tools.ant.taskdefs.optional.ejb.EjbcHelper.process
> > (EjbcHelper.java:238)
> >       [java]     at
> > org.apache.tools.ant.taskdefs.optional.ejb.EjbcHelper.main(Ej
> > bcHelper.java:113)
> >       [java] Result: 1
> >
> > BUILD FAILED
> >
> > build.ant:176: Execution of ejbc helper failed
> >
> >


RE: EJBC Task Exception

Posted by Conor MacNeill <co...@cortexebusiness.com.au>.
Ross,

Can you tell me how you are generating the .ser file? Weblogic assumes that
the serialized object is an instance of a weblogic class.

Conor

> -----Original Message-----
> From: Ross Cormier [mailto:ross.cormier@scgo.com]
> Sent: Saturday, 12 August 2000 3:23
> To: ant-user@jakarta.apache.org
> Subject: EJBC Task Exception
>
>
> I get the following exception when running the ejbc task.  It only occurs
> after the first build, ie. when building to a dest directory
> which already
> contains the generated files.  The solution is to delete all of the
> generated files from the dest directory, but I don't have to do this when
> running from the command line.  Any ideas?
>
> I am using Weblogic 4.51, and the release build of Ant.
>
> Regards,
> Ross Cormier
>
>       [java] Exception occurred reading
> BidAskServiceBeanEOImpl_Descriptor.ser -
> continuing
>       [java] Running ejbc for BidAskServiceBeanEOImpl_Descriptor.ser
>       [java] java.lang.ClassCastException:
> weblogic.service.ServiceDeploymentDesc
> riptor
>       [java]     at weblogic.ejbc.getBeanFromFile(ejbc.java:280)
>       [java]     at weblogic.ejbc.deploymentDescriptors(ejbc.java:254)
>       [java]     at weblogic.ejbc.runBody(ejbc.java:76)
>       [java]     at weblogic.utils.compiler.Tool.run(Tool.java:55)
>       [java]     at weblogic.ejbc.main(ejbc.java:623)
>       [java]     at
> org.apache.tools.ant.taskdefs.optional.ejb.EjbcHelper.regener
> ateSupportClasses(EjbcHelper.java:275)
>       [java]     at
> org.apache.tools.ant.taskdefs.optional.ejb.EjbcHelper.process
> (EjbcHelper.java:238)
>       [java]     at
> org.apache.tools.ant.taskdefs.optional.ejb.EjbcHelper.main(Ej
> bcHelper.java:113)
>       [java] Result: 1
>
> BUILD FAILED
>
> build.ant:176: Execution of ejbc helper failed
>
>


Re: EJBC Task Exception

Posted by Peter Donald <do...@mad.scientist.com>.
At 12:22  11/8/00 -0500, you wrote:
>I get the following exception when running the ejbc task.  It only occurs 
>after the first build, ie. when building to a dest directory which already 
>contains the generated files.  The solution is to delete all of the 
>generated files from the dest directory, but I don't have to do this when 
>running from the command line.  Any ideas?
>
>I am using Weblogic 4.51, and the release build of Ant.

The only thing I can think of would happen if you are using classic or
modern compliler and that compiler does some funky stuff to classes loaded.
Try putting making jav task fork (or try a good compiler like jikes :P) and
see if that fixes it.

Cheers,

Pete

*------------------------------------------------------*
| "Nearly all men can stand adversity, but if you want |
| to test a man's character, give him power."          |
|       -Abraham Lincoln                               |
*------------------------------------------------------*