1 Reply Latest reply on Jun 11, 2003 11:26 AM by Gary Ratcliffe

    ZpExceptions with JBOSS 3.2.1 on IBM JRE 1.3.1

    Gary Ratcliffe Newbie

      This as been raised before. See bug #568037 and thread #24440 in this forum.

      The problem is that when JBOSS starts a lot of ZipExceptions are generated. The explantion in the bug report and the thread is that the zip file handler will throw an exception when it is asked to open a .xml file. This is to be expected. However the IBM class loader is not catching this exception and throwing a class not found.

      The poster to the previous thread suggested a patch to org.jboss.mx.loading.UnifiedClassLoader that prevented files without a .jar extension being passed on to the class loader (or something like that I haven't looked at the code in enough detail). This patch when applied to 3.2.1 breaks loading of classes in SAR, WAR etc.

      I've applied a modified version of the patch to 3.2.1 running on IBB JRE 1.3.1 on AIX 4.3 and it seems to be running without any problems .. and no ZipExceptions.

      Question: Without this patch we are unable to use JBOSS on AIX (and I suspect iSeries with 1.3.1 JRE). So are there any plans to do anything about bug #568037? I appreciate that it is a bit JRE specific. But is there any other reason to pass .xml files down to the URLClassLoader.

      Any other suggestions that don't involve changing the AIX or JRE version would be helpful.

      Gary Ratcliffe

      Part of Boot Log on AIX:

      13:44:27,517 INFO [ServerInfo] Java version: 1.3.1,IBM Corporation
      13:44:27,518 INFO [ServerInfo] Java VM: Classic VM 1.3.1,IBM Corporation
      13:44:27,518 INFO [ServerInfo] OS-System: AIX 4.3,ppc
      13:44:27,518 DEBUG [ServerInfo] Full System Properties Dump
      13:44:27,518 DEBUG [ServerInfo] java.assistive: ON
      13:44:27,518 DEBUG [ServerInfo] java.runtime.name: Java(TM) 2 Runtime Environment, Standard Edition
      13:44:27,519 DEBUG [ServerInfo] jboss.server.base.dir: /home/gjr/jboss-3.2.1/server
      13:44:27,519 DEBUG [ServerInfo] java.protocol.handler.pkgs: org.jboss.net.protocol
      13:44:27,519 DEBUG [ServerInfo] sun.boot.library.path: /home/gjr/java131/jre/bin
      13:44:27,519 DEBUG [ServerInfo] jboss.server.lib.url: file:/home/gjr/jboss-3.2.1/server/default/lib/
      13:44:27,519 DEBUG [ServerInfo] java.vm.version: 1.3.1
      13:44:27,519 DEBUG [ServerInfo] java.vm.vendor: IBM Corporation
      13:44:27,519 DEBUG [ServerInfo] java.vendor.url: http://www.ibm.com/
      13:44:27,519 DEBUG [ServerInfo] path.separator: :
      13:44:27,519 DEBUG [ServerInfo] java.vm.name: Classic VM
      13:44:27,519 DEBUG [ServerInfo] file.encoding.pkg: sun.io
      13:44:27,519 DEBUG [ServerInfo] program.name: run.sh
      13:44:27,519 DEBUG [ServerInfo] java.vm.specification.name: Java Virtual Machine Specification
      13:44:27,519 DEBUG [ServerInfo] user.dir: /home/gjr/jboss-3.2.1/bin
      13:44:27,519 DEBUG [ServerInfo] jboss.server.base.url: file:/home/gjr/jboss-3.2.1/server/
      13:44:27,519 DEBUG [ServerInfo] java.runtime.version: 1.3.1
      13:44:27,519 DEBUG [ServerInfo] java.fullversion: J2RE 1.3.1 IBM AIX build ca131-20020706 (JIT enabled: jitc)
      13:44:27,520 DEBUG [ServerInfo] java.awt.graphicsenv: sun.awt.X11GraphicsEnvironment
      13:44:27,520 DEBUG [ServerInfo] os.arch: ppc
      13:44:27,520 DEBUG [ServerInfo] java.io.tmpdir: /tmp/
      13:44:27,520 DEBUG [ServerInfo] line.separator:

      13:44:27,520 DEBUG [ServerInfo] jbossmx.loader.repository.class: org.jboss.mx.loading.UnifiedLoaderRepository3
      13:44:27,520 DEBUG [ServerInfo] java.vm.specification.vendor: Sun Microsystems Inc.
      13:44:27,520 DEBUG [ServerInfo] java.awt.fonts:
      13:44:27,520 DEBUG [ServerInfo] os.name: AIX
      13:44:27,520 DEBUG [ServerInfo] jboss.server.temp.dir: /home/gjr/jboss-3.2.1/server/default/tmp
      13:44:27,520 DEBUG [ServerInfo] jboss.home.dir: /home/gjr/jboss-3.2.1
      13:44:27,520 DEBUG [ServerInfo] java.library.path: /home/gjr/java131/jre/bin:/home/gjr/java131/jre/bin/classic:/usr/lib
      13:44:27,520 DEBUG [ServerInfo] jboss.server.home.dir: /home/gjr/jboss-3.2.1/server/default
      13:44:27,520 DEBUG [ServerInfo] java.specification.name: Java Platform API Specification
      13:44:27,520 DEBUG [ServerInfo] java.class.version: 46.0
      13:44:27,520 DEBUG [ServerInfo] jboss.server.config.url: file:/home/gjr/jboss-3.2.1/server/default/conf/
      13:44:27,520 DEBUG [ServerInfo] invokedviajava:
      13:44:27,520 DEBUG [ServerInfo] os.version: 4.3
      13:44:27,521 DEBUG [ServerInfo] jboss.home.url: file:/home/gjr/jboss-3.2.1/
      13:44:27,521 DEBUG [ServerInfo] user.home: /olympus/home/gjr
      13:44:27,521 DEBUG [ServerInfo] user.timezone: GMT+00:00
      13:44:27,521 DEBUG [ServerInfo] java.awt.printerjob: sun.awt.motif.PSPrinterJob
      13:44:27,521 DEBUG [ServerInfo] java.specification.version: 1.3
      13:44:27,521 DEBUG [ServerInfo] file.encoding: ISO8859_1
      13:44:27,521 DEBUG [ServerInfo] jboss.server.home.url: file:/home/gjr/jboss-3.2.1/server/default/
      13:44:27,521 DEBUG [ServerInfo] user.name: gjr
      13:44:27,521 DEBUG [ServerInfo] java.class.path: /olympus/home/gjr/jboss-3.2.1/bin/run.jar:/home/gjr/java131/lib/tools.jar
      13:44:27,521 DEBUG [ServerInfo] jboss.lib.url: file:/home/gjr/jboss-3.2.1/lib/
      13:44:27,521 DEBUG [ServerInfo] jboss.server.name: default
      13:44:27,521 DEBUG [ServerInfo] java.vm.specification.version: 1.0
      13:44:27,521 DEBUG [ServerInfo] java.home: /home/gjr/java131/jre
      13:44:27,521 DEBUG [ServerInfo] java.specification.vendor: Sun Microsystems Inc.
      13:44:27,521 DEBUG [ServerInfo] user.language: en
      13:44:27,521 DEBUG [ServerInfo] java.vm.info: J2RE 1.3.1 IBM AIX build ca131-20020706 (JIT enabled: jitc)
      13:44:27,522 DEBUG [ServerInfo] java.version: 1.3.1
      13:44:27,522 DEBUG [ServerInfo] java.ext.dirs: /home/gjr/java131/jre/lib/ext
      13:44:27,522 DEBUG [ServerInfo] jboss.server.data.dir: /home/gjr/jboss-3.2.1/server/default/data
      13:44:27,522 DEBUG [ServerInfo] sun.boot.class.path: /home/gjr/java131/jre/lib/rt.jar:/home/gjr/java131/jre/lib/i18n.jar:/home/gjr/java131/jre/classes
      13:44:27,522 DEBUG [ServerInfo] java.vendor: IBM Corporation
      13:44:27,522 DEBUG [ServerInfo] file.separator: /
      13:44:27,522 DEBUG [ServerInfo] java.vendor.url.bug:
      13:44:27,522 DEBUG [ServerInfo] java.compiler: jitc
      13:44:27,522 DEBUG [ServerInfo] sun.io.unicode.encoding: UnicodeBig