Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-313

Classloader sharing with MANIFEST

    XMLWordPrintable

Details

    Description

      SourceForge Submitter: doogie .
      I have 2 ears, that both need to use ofbiz. The
      configuration of ofbiz in each is mostly identical,
      except for the database name. OFBiz uses static
      factory methods to fetch preconfigured(cached) objects
      from class-static maps. These objects are created with
      a static{} block in the class, by using data from the
      default(whatever that is for the JVM) classloader.

      When I deploy both of these 2 ears, only the first one
      deployed has the static block run, and the second ends
      up sharing the same class instances. I know that the
      J2EE spec allows for this, but this seems
      non-intuitive. Is there a way to disable it?

      I also have a fairly simple way to reproduce it.
      Please read create.sh in the attached file.

      I have tried this first with jboss 3.2.0-beta2, tomcat
      4.1.12, and jboss 3.0.4, jetty. Neither compiled from
      source, both using the pre-compiled versions downloaded
      from sourceforge. I have run both under ibm jdk
      1.3(Classic VM (build 1.3.0, J2RE 1.3.0 IBM build
      cx130-20020124 (JIT enabled: jitc)), and jboss
      3.2.0-beta2 under blackdown 1.4(Java HotSpot(TM) Client
      VM (build Blackdown-1.4.1-beta, mixed mode)).

      Attachments

        Activity

          People

            starksm64 Scott Stark (Inactive)
            sourceforge-user SourceForge legacy user (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: