Return-Path: Delivered-To: apmail-karaf-issues-archive@minotaur.apache.org Received: (qmail 72508 invoked from network); 7 Jan 2011 06:00:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 7 Jan 2011 06:00:09 -0000 Received: (qmail 85379 invoked by uid 500); 7 Jan 2011 06:00:09 -0000 Delivered-To: apmail-karaf-issues-archive@karaf.apache.org Received: (qmail 85331 invoked by uid 500); 7 Jan 2011 06:00:08 -0000 Mailing-List: contact issues-help@karaf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@karaf.apache.org Delivered-To: mailing list issues@karaf.apache.org Received: (qmail 85323 invoked by uid 99); 7 Jan 2011 06:00:07 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Jan 2011 06:00:07 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Jan 2011 06:00:06 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id p075xkNd007876 for ; Fri, 7 Jan 2011 05:59:46 GMT Message-ID: <23006300.205041294379986089.JavaMail.jira@thor> Date: Fri, 7 Jan 2011 00:59:46 -0500 (EST) From: "Hristo Spaschev Iliev (JIRA)" To: issues@karaf.apache.org Subject: [jira] Closed: (KARAF-357) shell.bat won't start with NoClassDefFoundError and NPE In-Reply-To: <27541192.168921294259626081.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/KARAF-357?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Hristo Spaschev Iliev closed KARAF-357. --------------------------------------- Thanks. The shell.bat now works ok. > shell.bat won't start with NoClassDefFoundError and NPE > ------------------------------------------------------- > > Key: KARAF-357 > URL: https://issues.apache.org/jira/browse/KARAF-357 > Project: Karaf > Issue Type: Bug > Components: runtime > Affects Versions: 2.1.2, 2.1.3, 2.2.0 > Environment: Windows 7 64 bit > Reporter: Hristo Spaschev Iliev > Assignee: Andreas Pieber > Priority: Minor > Fix For: 2.1.3, 2.2.0 > > > I tried to start shell.bat, but all I've got was NoClassDefFoundError: > Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/karaf/shell/console/Main > Caused by: java.lang.ClassNotFoundException: org.apache.karaf.shell.console.Main > at java.net.URLClassLoader$1.run(URLClassLoader.java:202) > at java.security.AccessController.doPrivileged(Native Method) > at java.net.URLClassLoader.findClass(URLClassLoader.java:190) > at java.lang.ClassLoader.loadClass(ClassLoader.java:307) > at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) > at java.lang.ClassLoader.loadClass(ClassLoader.java:248) > Could not find the main class: org.apache.karaf.shell.console.Main. Program will exit. > The problem seems to be in the batch file (line 85): > set CLASSPATH=%CLASSPATH#:% > Note the path separator and the ending terminator for the CLASSPATH variable. > After fixing it the error changed to: > Exception in thread "main" java.lang.NullPointerException > at org.apache.karaf.shell.console.Main.getFiles(Main.java:297) > at org.apache.karaf.shell.console.Main.getFiles(Main.java:292) > at org.apache.karaf.shell.console.Main.run(Main.java:79) > at org.apache.karaf.shell.console.Main.main(Main.java:58) > I checked in the trunk - the batch file is the same. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.