6 Replies Latest reply on Jul 21, 2009 10:33 AM by Peter Johnson

    Starting JBoss 5.1.0 using JAVA 1.5

    jimmy001 Apprentice

      Hello,

      I have successfully downloaded the binary package from sourceforge
      (jboss 5.1.0.GA.zip). When starting I receive the error msg:

      WARN [org.jboss.detailed.classloader.ClassLoaderManager] Unexpected error during load of:org.jboss.resource.metadata.repository.DefaultJCAMetaData
      Repository
      java.lang.UnsupportedClassVersionError: Bad version number in .class file
       at java.lang.ClassLoader.defineClass1(Native Method)
       at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
       at org.jboss.classloader.spi.base.BaseClassLoader.access$200(BaseClassLo
      ader.java:63)
       at org.jboss.classloader.spi.base.BaseClassLoader$2.run(BaseClassLoader.
      java:546)
       at org.jboss.classloader.spi.base.BaseClassLoader$2.run(BaseClassLoader.
      java:506)
       at java.security.AccessController.doPrivileged(Native Method)
       at org.jboss.classloader.spi.base.BaseClassLoader.loadClassLocally(BaseC
      lassLoader.java:504)
       at org.jboss.classloader.spi.base.BaseClassLoader.loadClassLocally(BaseC
      lassLoader.java:481)
       at org.jboss.classloader.spi.base.BaseDelegateLoader.loadClass(BaseDeleg
      ateLoader.java:134)
       at org.jboss.classloader.spi.filter.FilteredDelegateLoader.loadClass(Fil
      teredDelegateLoader.java:131)
       at org.jboss.classloader.spi.base.ClassLoadingTask$ThreadTask.run(ClassL
      oadingTask.java:452)
       at org.jboss.classloader.spi.base.ClassLoaderManager.nextTask(ClassLoade
      rManager.java:258)
       at org.jboss.classloader.spi.base.ClassLoaderManager.process(ClassLoader
      Manager.java:152)
       at org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseCl
      assLoaderDomain.java:259)
       at org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseCl
      assLoaderDomain.java:1102)
       at org.jboss.classloader.spi.base.BaseClassLoader.loadClassFromDomain(Ba
      seClassLoader.java:772)
       at org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoa
      der.java:415)
       at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
      


      It seems that some files are compiled with JAVA 1.6, because when using JAVA 1.6. the problem doesn't occur (Unfortunatley upgrading to 1.6 is not a viable solution).
      As a second step I downloaded the source version and compiled it with JAVA 1.5, but the error remains. It seems that the 1.6 - class(es) are provided in a jar file.


      http://www.jboss.org/community/wiki/JBossVsJavaJDKVersionMatrix is mentioned, that Jboss 5.0 runs under JAVA 5.0. Are there any other resources, where a release can be obtained, which starts under JDK 5.0 or is there something else I overlooked? Searching the net, I found out, that several people have the same problem. Last resort would be to fetch the source from svn and compile it.. well, not my preferred solution.

      Any help appreciated and thanks in advance

      jimmy