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

Class loading doesn't work properly

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Rejected
    • Affects Version/s: JBossAS-4.0.0 Final
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      SourceForge Submitter: mpetrashev .
      I configured jboss-app.xml:
      <?xml version='1.0' encoding='UTF-8' ?>
      <jboss-app>
      <class-loading java2ClassLoadingCompliance="false">
      <loader-repository>
      exo.dot.com:loader=exo.ear
      <loader-repository-
      config>java2ParentDelegation=false</loader-repository-
      config>
      </loader-repository>
      </class-loading>
      </jboss-app>

      putted my hibernate2.jar into my ear file and wrote
      test.jsp (in war from ear):
      <%
      =net.sf.hibernate.cfg.Configuration.class.getClassLoader
      ()%>

      but received in browser:
      org.jboss.mx.loading.UnifiedClassLoader3@1f6ba0f

      { url=file:/C:/jboss- 4.0.0/server/standard/tmp/deploy/tmp10464jboss- service.xml ,addedOrder=2}

      so, class from hibernate was loaded not from
      ear/hibernate.jar but from server/<server
      name>/lib/hibernate2.jar

      I tested it as for "standard" server so for "default"
      server.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                starksm64 Scott Stark
                Reporter:
                sourceforge-user SourceForge legacy user
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: