geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dain Sundstrom <dsundst...@gluecode.com>
Subject Re: NullPointerException at findToolsJarFile
Date Mon, 13 Sep 2004 16:01:12 GMT
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.<clinit>(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


Mime
View raw message