You shouldn't... but there is a bug in my code. I checked in a fix, but I'm still testing it. It should be in the next daily build (when David Blevins gets the scripts upgraded to support subversion).

-dain

--
Dain Sundstrom
Chief Architect
Gluecode Software
310.536.8355, ext. 26

On Sep 13, 2004, at 1:54 PM, Lynch, Peter wrote:

The wiki says:

If you use Java Server Pages then Geronimo will need to have the Java
Development Kit tools.jar file on its classpath. If you're using a Sun JDK
then the easiest (although cheesiest) way to make this possible is to copy
tools.jar from $JAVA_HOME/lib to $JAVA_HOME/jre/lib/ext.


(http://wiki.apache.org/geronimo/Running)

although I found that you need to do this just to get the server started.

Regards,
Peter Lynch

-----Original Message-----
From:   Dain Sundstrom [SMTP:[EMAIL PROTECTED]
Sent:   Tuesday, September 14, 2004 4:01 AM
To:     [EMAIL PROTECTED]
Subject:        Re: NullPointerException at findToolsJarFile

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(ToolsJa rH
ack.java:97)
at
org.apache.geronimo.system.main.ToolsJarHack.install(ToolsJarHack.jav a:
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

This communication is confidential and may contain privileged material.
If you are not the intended recipient you must not use, disclose, copy or retain it.
If you have received it in error please immediately notify me by return email
and delete the emails.
Thank you.



Reply via email to