Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 60670 invoked from network); 13 Sep 2004 16:01:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 13 Sep 2004 16:01:29 -0000 Received: (qmail 92400 invoked by uid 500); 13 Sep 2004 16:01:22 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 92207 invoked by uid 500); 13 Sep 2004 16:01:19 -0000 Mailing-List: contact dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: dev@geronimo.apache.org Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 92191 invoked by uid 99); 13 Sep 2004 16:01:19 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from [66.235.180.72] (HELO sls-dc1p2.dca2.superb.net) (66.235.180.72) by apache.org (qpsmtpd/0.28) with ESMTP; Mon, 13 Sep 2004 09:01:18 -0700 Received: from [192.168.17.105] ([69.111.157.225]) (authenticated bits=0) by sls-dc1p2.dca2.superb.net (8.12.10/8.12.10) with ESMTP id i8DG63c7011809 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NO) for ; Mon, 13 Sep 2004 09:06:05 -0700 Mime-Version: 1.0 (Apple Message framework v619) In-Reply-To: <41459E4E.4070805@apache.org> References: <41457EF8.3020202@apache.org> <41458091.4050204@apache.org> <414594BA.2070608@optusnet.com.au> <41459E4E.4070805@apache.org> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <22B01DBF-059E-11D9-8BB0-000D93C5B79C@gluecode.com> Content-Transfer-Encoding: 7bit From: Dain Sundstrom Subject: Re: NullPointerException at findToolsJarFile Date: Mon, 13 Sep 2004 09:01:12 -0700 To: dev@geronimo.apache.org X-Mailer: Apple Mail (2.619) X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N This is a bug. It should simply print the warning and move on. Not having a tools.jar is not fatal, but you will not be able to compile jsp pages. I'll file a bug report on this. -dain -- Dain Sundstrom Chief Architect Gluecode Software 310.536.8355, ext. 26 On Sep 13, 2004, at 6:19 AM, Jacek Laskowski wrote: > Gianny Damour wrote: > >> This problem may happen if you try to run the server via the >> standalone JRE (C:\Program Files\Java\j2re1.4.2_05\bin\java.exe). You >> need to run it either via the JDK (say, >> C:\j2sdk1.4.2_05\bin\java.exe) or the JRE shipped with the JDK (say, >> C:\j2sdk1.4.2_05\jre\bin\java.exe) > > Almost there :) The problem is that the default jvm on Windows is > picked up from %WINDIR%/system32/bin. So, unless another jvm is in the > path first, that's used and brakes the run. However, you suggested the > fix and it works now. It's required to either specify the default jvm > in PATH or use the fully qualified path of preferred jvm. > > I'd say majority of Windows users are at risk, and we need to fix it > soon. > > Also, note that although the server started fine, the message from > ToolsJarHack says that the class still can't find tools.jar. > > Thanks Gianny! > > $ uname -a > CYGWIN_NT-5.1 JLASKOWSKI 1.5.11(0.116/4/2) 2004-09-04 23:17 i686 > unknown unknown Cygwin > > /geronimo/modules/assembly/target/geronimo-1.0-SNAPSHOT > $ java -version > java version "1.4.2_05" > Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_05-b04) > Java HotSpot(TM) Client VM (build 1.4.2_05-b04, mixed mode) > > /geronimo/modules/assembly/target/geronimo-1.0-SNAPSHOT > $ type java > java is hashed (/cygdrive/c/WINDOWS/system32/java) > > /geronimo/modules/assembly/target/geronimo-1.0-SNAPSHOT > $ file c\:/WINDOWS/system32/java > c:/WINDOWS/system32/java: writable, executable, regular file, no read > permission > > /geronimo/modules/assembly/target/geronimo-1.0-SNAPSHOT > $ java -jar bin/server.jar > 15:11:59,908 WARN [ToolsJarHack] Could not all find java compiler: > tools.jar file not found at C:\Program Files\Java\j2 > re1.4.2_05\lib\tools.jar > 15:11:59,908 WARN [ToolsJarHack] Could not all find java compiler: > tools.jar file not found at C:\Program Files\Java\li > b\tools.jar > java.lang.ExceptionInInitializerError > Caused by: java.lang.NullPointerException > at > org.apache.geronimo.system.main.ToolsJarHack.findToolsJarFile(ToolsJarH > ack.java:97) > at > org.apache.geronimo.system.main.ToolsJarHack.install(ToolsJarHack.java: > 59) > at > org.apache.geronimo.system.main.Daemon.(Daemon.java:54) > Exception in thread "main" > > /geronimo/modules/assembly/target/geronimo-1.0-SNAPSHOT > $ c\:/apps/j2sdk1.4.2/bin/java -jar bin/server.jar > 15:12:17,010 WARN [ToolsJarHack] Could not all find java compiler: > tools.jar file not found at c:\apps\j2sdk1.4.2\jre\l > ib\tools.jar > 15:12:17,060 INFO [Daemon] Server startup begun > >> Gianny > > Jacek