Return-Path: X-Original-To: apmail-geronimo-user-archive@www.apache.org Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9DB36C324 for ; Thu, 17 May 2012 14:25:15 +0000 (UTC) Received: (qmail 30935 invoked by uid 500); 17 May 2012 14:25:15 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 30913 invoked by uid 500); 17 May 2012 14:25:15 -0000 Mailing-List: contact user-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: user@geronimo.apache.org List-Id: Delivered-To: mailing list user@geronimo.apache.org Received: (qmail 30904 invoked by uid 99); 17 May 2012 14:25:15 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 May 2012 14:25:15 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of kevan.miller@gmail.com designates 209.85.213.54 as permitted sender) Received: from [209.85.213.54] (HELO mail-yw0-f54.google.com) (209.85.213.54) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 May 2012 14:25:05 +0000 Received: by yhgm50 with SMTP id m50so2354594yhg.13 for ; Thu, 17 May 2012 07:24:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; bh=U6a6eaoPB7xJhyy6dk253/+a5M9Oe96EuBAZh87CH6Y=; b=uX0gk4zTWwPiVQKO3PcSpIduBYcUGQ+bk7NovPSeIeK5zdWMUDUrGEvAfZCNFJPjDP //RqjO64dU02PY1UBMPvUROXEpKp4jODUCzqxc4DLZVn0ju2YwshEoishsIngEFp5lGB 11AIWKTI5vfHn3mypZv+o/p1A9MFc9T3mjsPzCuiPoit/t6tCHZk1uZ43dKJI4m4ffSl 9efkPd67ErwvVRT0rf0MdxiW7/LV7sYRzixaThdKfa/vgZ1h7ZV7FONLPD9eHMMBhtSW hmB4ANkf8B18kYHuk7Z59aMslr0KNM62T//9N9WOxu8Rwl740mxj7tDh8j+163noXy18 2TwQ== Received: by 10.60.3.234 with SMTP id f10mr6628481oef.66.1337264684858; Thu, 17 May 2012 07:24:44 -0700 (PDT) Received: from [9.27.38.207] (bi01p1.nc.us.ibm.com. [129.33.49.251]) by mx.google.com with ESMTPS id j10sm5251600oba.4.2012.05.17.07.24.43 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 17 May 2012 07:24:43 -0700 (PDT) Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Apple Message framework v1278) Subject: Re: Unable to create Datasource From: Kevan Miller In-Reply-To: Date: Thu, 17 May 2012 10:24:41 -0400 Content-Transfer-Encoding: quoted-printable Message-Id: References: To: user@geronimo.apache.org X-Mailer: Apple Mail (2.1278) On May 17, 2012, at 4:37 AM, sai charan wrote: > Hello, >=20 > I have installed Geronimo 2.0.1 in one machine and MS SQL Server 2005 = in an another machine , while i was trying to configure the database = connection pool i am unable to create datasource, I found the logs in = the command prompt please find below: >=20 >=20 ... > jvm 1 | java.lang.UnsupportedClassVersionError: Bad version number = in .class > file > jvm 1 | at java.lang.ClassLoader.defineClass1(Native Method) > jvm 1 | at = java.lang.ClassLoader.defineClass(ClassLoader.java:620) > jvm 1 | at = java.security.SecureClassLoader.defineClass(SecureClassLoader > .java:124) > jvm 1 | at = java.net.URLClassLoader.defineClass(URLClassLoader.java:260) > jvm 1 | at = java.net.URLClassLoader.access$100(URLClassLoader.java:56) > jvm 1 | at = java.net.URLClassLoader$1.run(URLClassLoader.java:195) > jvm 1 | at java.security.AccessController.doPrivileged(Native = Method) > jvm 1 | at = java.net.URLClassLoader.findClass(URLClassLoader.java:188) > jvm 1 | at = java.lang.ClassLoader.loadClass(ClassLoader.java:306) > jvm 1 | at = java.lang.ClassLoader.loadClass(ClassLoader.java:251) > jvm 1 | at = org.apache.geronimo.console.databasemanager.wizard.DatabasePo > olPortlet.attemptDriverLoad(DatabasePoolPortlet.java:1177) ... >=20 > Please suggest me the steps to complete this task. I need this in an = urgency.... I would really appreciate if i get any response from you. One general point -- Geronimo 2.0.1 is pretty old. If you you need a = Java EE 5 server, I'd suggest Geronimo 2.1.8 (or 2.2.1). What version of Java are you running? You are almost certainly getting this error because you are running a = version of Java which is older than the version of Java which was used = to compile some of your classes. It's really a bit more complex than = this. The javac parameters -source and -target control what JVM class = file format will be generated by javac (e.g. Java 6 compiler can = generate Java 5 class files, but not vice versa).=20 In your case, I'd say for example you are running Java 1.5 and some of = your classes were compiled for Java 6. Each class has a Java version = identifier. When your Java 1.5 JVM loads a Java 6 class, the 1.5 JVM = detects that the Java 6 class version number is not supported and throws = this exception=85 I'd assume your attempting to run classes (e.g. from your jdbc driver) = that are not compatible with the version of java you're using to run = geronimo. You either need to recompile your classes or move to a newer = version of java. --kevan