2 Replies Latest reply on Dec 29, 2003 9:33 AM by cwele

    LinkageError, ClassCastException,.. when redeploying the _sa

    cwele

      - My application works just fine,
      however, after redeploying the same .ear file more than once (let say, 3 times), LinkageError & other exceptions (connected probably (?) with class loading stuff ) suddenly raises.

      - So, wheter is my problem maybe connected with a new JDK version (1.4.2) ?

      - Or, I can see that, in
      tmp/deploy/server/default/deploy/my_ear.ear directory, I have subdirectories named:

      61.my_ear.ear-contents
      65.my_ear.ear-contents
      ....

      with the _same .jar files. Maybe this thing confuses JBoss (3.0.4) class loader ?

      Can someone explain, why this happens ?

        • 1. Re: LinkageError, ClassCastException,.. when redeploying the
          • 2. Re: LinkageError, ClassCastException,.. when redeploying the
            cwele

             

            "cwele" wrote:
            -Yes, few days ago, I sent ucl.log file to Scott Stark (without answer for now, but file is realy to big (19 M)

            -By the way, this seems to be a clear bug (?) , and, from my (JBoss user) point of view,
            can be easy fixed - after undeployment, what is need is to delete these
            old directories from ..tmp/deploy/...
            But, for some reason, undeployment (3.0.4 up to 3.0.8) cannot delete
            these directories.

            - Right now, I m looking at org.jboss.deployment.DeploymentInfo.java there is method named cleanup(), which is, I believe, responsible for deletion of these directories.
            - Can someone (of author maybe - Marc Fleury, David Maplesden,...)
            or someone else, explain, why this method fails ?
            - Or (more important), on which way I can ensure deletion ?
            Some config file or what ?

            - What I only know is that, in fact, without these old directories,
            subsequent redeployments of the same .ear does not produce
            LinkageError and other class loading errors...
            ------
            - regards, Cvele