Re: error 500, cannot find sun.tools.javac.Main

2001-03-28 Thread Srikanth Kurdukar

Remove the extra '/' in your classpath at (/usr/java/jdk//lib/tools.jar) and
try again.

--Srikanth

- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, March 28, 2001 5:20 PM
Subject: error 500, cannot find sun.tools.javac.Main


I've seen that this problem has been addressed several times in the
listserv logs but none of the solutions seem to fit my problem.

Tomcat will start and will work with servlet's but it will not run JSP's
when I try to run a JSP I get an class not found exception that cannot fine
sun.tools.javac.Main, the full text of the error message is included at the
end of this message.

I have included tools.jar and the other jar files that are needed in my
classpath, TOMCAT_HOME and JAVA_HOME have been set. My path does include
jdk/bin. I am using IBM's jdk rather htan sun's but I dont' think that
should cause any problems. Running under Linux, debian, kernel 2.4.2.

Using
classpath: /usr/java/tomcat/lib/ant.jar:/usr/java/tomcat/lib/jasper.jar:/usr
/java/tomcat/lib/jaxp.jar:/usr/java/tomcat/lib/parser.jar:/usr/java/tomcat/l
ib/servlet.jar:/usr/java/tomcat/lib/test:/usr/java/tomcat/lib/webserver.jar:
/usr/java/jdk//lib/tools.jar:.

$TOMCAT_HOME=/usr/java/tomat
$JAVA_HOME-/usr/java/jdk/

I don't think it should matter, but the folder jdk is a symlink
to /usr/java/IBMJava2-13/



tomcat error message:

digitalsorcery:/usr/java/tomcat# 2001-03-28 04:35:04 - Ctx( /examples ):
Exception in: R( /examples + /jsp/num/numguess.jsp + null) -
javax.servlet.ServletException: sun/tools/javac/Main
at java.lang.Throwable.(Throwable.java:96)
at java.lang.Exception.(Exception.java:44)
at javax.servlet.ServletException.(ServletException.java:158)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:388)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.doService
(ServletWrapper.java:404)
at org.apache.tomcat.core.Handler.service(Handler.java:286)
at org.apache.tomcat.core.ServletWrapper.service
(ServletWrapper.java:372)
at org.apache.tomcat.core.ContextManager.internalService
(ContextManager.java:797)
at org.apache.tomcat.core.ContextManager.service
(ContextManager.java:743)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection
(HttpConnectionHandler.java:210)
at org.apache.tomcat.service.TcpWorkerThread.runIt
(PoolTcpEndpoint.java:416)
at org.apache.tomcat.util.ThreadPool$ControlRunnable.run
(ThreadPool.java:498)
at java.lang.Thread.run(Thread.java:498)
Root cause:
java.lang.NoClassDefFoundError: sun/tools/javac/Main
at org.apache.jasper.compiler.SunJavaCompiler.compile
(SunJavaCompiler.java:128)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:240)
at org.apache.jasper.servlet.JspServlet.doLoadJSP
(JspServlet.java:448)
at org.apache.jasper.servlet.JasperLoader12.loadJSP
(JasperLoader12.java:146)
at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:419)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary
(JspServlet.java:151)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service
(JspServlet.java:163)
at org.apache.jasper.servlet.JspServlet.serviceJspFile
(JspServlet.java:307)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:380)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.doService
(ServletWrapper.java:404)
at org.apache.tomcat.core.Handler.service(Handler.java:286)
at org.apache.tomcat.core.ServletWrapper.service
(ServletWrapper.java:372)
at org.apache.tomcat.core.ContextManager.internalService
(ContextManager.java:797)
at org.apache.tomcat.core.ContextManager.service
(ContextManager.java:743)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection
(HttpConnectionHandler.java:210)
at org.apache.tomcat.service.TcpWorkerThread.runIt
(PoolTcpEndpoint.java:416)
at org.apache.tomcat.util.ThreadPool$ControlRunnable.run
(ThreadPool.java:498)
at java.lang.Thread.run(Thread.java:498)







Re: mod_jk on Solaris 8

2001-03-28 Thread Srikanth Kurdukar

The 'C' compiler cc is missing on your system. Install it and try again.

--Srikanth

- Original Message - 
From: "Ryan J. McDonough" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, March 28, 2001 4:48 PM
Subject: mod_jk on Solaris 8


I'm trying help a client build mod_jk on a Solaris 8 System. I'm running 
into some problems that I think are cause by something not being 
installed. I don't have root access to the box so I can't just install 
things. Like I said, the system is Solaris 8 running JDK 1.3 and Tomcat 
3.2.1. When I try to build mod_jk on the box as defined by the mod_jk 
howto, I get the following error:

cc -DEAPI -DMOD_PERL -DUSE_EXPAT -O -G -Kpic -I/usr/apache/include 
-I../jk
-I/usr/j2se/include -I
/usr/j2se/include/solaris -DSOLARIS  -c mod_jk.c
/usr/ucb/cc:  language optional software package not installed
apxs:Break: Command failed with rc=65536

I'm assuming something is missing in "cc". Also "make" is not installed 
on this system either, which I believe could be part of the problem but 
I haven't had enough time with Solaris to be sure. Are there any know 
issues with mod_jk on Solaris 8 or does this installation need something 
further. Thanks in advance.

Ryan-