Hello,
for anybody who has been running into this exception when trying to execute
JSPs:
javax.servlet.ServletException: sun/tools/javac/Main
Heres the solution:
tools.jar is not recognized when it's in classpath
thus it must be copied to
{tomcat_root}/common/lib
and/or
{tomcat_root}/server/lib
My opinion:
I've been chasing down this problem for three days now, and all I could find
in the respective mailing list databases was: put tools.jar in the
classpath. But that didn't work. Eventually I found the solution mentioned
above - as I wrote - after three days.
Ever since I started working with java and that was four years ago, the
classpath has been a problem in java. I would expect that in the meantime
the directory structures would be sufficiently standardized and thus make
_any_ classpath settings unnecassary. Once JAVA_HOME and/or JAVA_PATH are
set the environment should be defined.
But that's not the case. To make things worse, sometimes like in this case,
the classpath settings are ignored. Who would have expected that tools.jar
needs to be _copied_ to some other location? I wouldn't. Because I wouldn't
expect _any_ developer of java and escecially java server applications to
propose a configuration, where system jars are located in more than one
location. Thus maintenance of the system becomes a nightmare when a system
update is due.
I just hate when that happens.
Sincerely
Michael Kastner
--
To unsubscribe: <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>