This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Hi,i have added the server to netbeans.While trying to run the server(JBoss) through netbeans,m getting following error:"[ClassLoaderManager] Unexpected error during load ofrg.jboss.resource.metadata.repository.DefaultJCAMetaDataRepository
java.lang.UnsupportedClassVersionError: Bad version number in .class file".
This means that you are using an older JDK. JBoss AS 5.0 comes as two binary variants - one for JDK6 and the other for JDK5. The JDK6 variant requires that you use JDK6. My guess is that you downloaded the JDK6 variant but are running it with JDK 5(*). NetBeans lets you select the JDK you want to use to run the server, just look at the server properties.
(*) The JVM used to tell you the version number which made deciphering the error easier. Now it just says "bad version number". What a giant step backwards...