[jboss-user] [Installation, Configuration & Deployment] - Re: Running JBoss with Java 6 (JDK 6)

alexg79 do-not-reply at jboss.com
Thu Apr 26 09:11:51 EDT 2007


"FelderR" wrote : JBoss 4.0.5 works fine with Java 6! 
  | 
  | Just tried to run JBoss 5.0.0 beta 2 with Java 6 and failed:
  | 
  | java.lang.IllegalStateException: Class not found: [Ljava.lang.String;
  | 
  | The server does not come up as it runs into the following bug within JDK 1.6.0:
  | 
  | http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6434149
  | 
  | 
  | Any workarounds planned by JBoss?
  | 
This has been extensively discussed on the EJB 3 forum. It is not a bug in JDK 6, but a bug in several parts of the JBoss AS. The problem stems from the improper use of classloaders -- classes should be loaded with Class.forName(name), not  obj.class.getClassLoader().loadClass(name). The latter method worked up until JDK 6 due to an unintended side effect of the class loading mechanism. This has already been fixed in JBoss Remoting, but apparently not in other programs.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4040959#4040959

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4040959



More information about the jboss-user mailing list