tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefán F. Stefánsson <stef...@snote.decode.is>
Subject RE: no class def found sun.tools.javac.Main
Date Thu, 01 Mar 2001 16:50:09 GMT
Thanks for your answer.

I should have been more clear in my previous post.

Ok... so here's the deal,

I have a server application that integrates Tomcat.  This server starts
tomcat up through use of the EmbeddedTomcat class.  So far so good.
When I start the server from a command line or within JBuilder
everything is just fine and dandy and works oh so well ;o)
However, I'm trying to create an ant buildfile to do everything for me.
I've managed to have the buildfile build everything and create a jar
file and all that but when I try to have it run the server, the server
goes up but the first JSP I try to access gives me that error I was
talking about.

I'm not a newbie to Tomcat so I knew about that JAVA_HOME variable (and
it _is_ set on my computer)... I should have mentioned that in my first
post... sorry about that.

Regards, Stefan.


-----Original Message-----
From: Randy Layman [mailto:randy.layman@aswethink.com]
Sent: 1. mars 2001 16:03
To: tomcat-user@jakarta.apache.org
Subject: RE: no class def found sun.tools.javac.Main



	This comes from Tomcat not being able to find your JavaC
compiler
(imagine that, not found class sun.tools.javac.Main).  You need to set
your
JAVA_HOME variable so that it points to your JDK root directory.

	And read the manual and/or mail list archives and/or the FAQ.

	Randy


-----Original Message-----
From: Stefán F. Stefánsson [mailto:stefanf@snote.decode.is]
Sent: Thursday, March 01, 2001 11:33 AM
To: Tomcat-User
Subject: no class def found sun.tools.javac.Main


Hi I'm getting the following error.  Anybody have an idea where this
class comes from?  What do I need to have in my classpath to find it?

Thanks, Stefan.

Internal Servlet Error:
javax.servlet.ServletException: sun/tools/javac/Main
	at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:399)
	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.handleError(ContextManager.java:11
47)
	at org.apache.tomcat.core.Handler.service(Handler.java:311)
	at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
	at
org.apache.tomcat.facade.RequestDispatcherImpl.forward(RequestDispatcher
Impl.java:194)
	at
com.decode.ips.webservice.controller.IPSControllerServlet.login(IPSContr
ollerServlet.java:260)
	at
com.decode.ips.webservice.controller.IPSControllerServlet.doGet(IPSContr
ollerServlet.java:191)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
	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.jav
a:797)
	at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
	at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(H
ttpConnectionHandler.java:210)
	at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416
)
	at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:49
8)
	at java.lang.Thread.run(Thread.java:484)
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:245)
	at
org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:462)
	at
org.apache.jasper.servlet.JasperLoader12$1.run(JasperLoader12.java:160)
	at java.security.AccessController.doPrivileged(Native Method)
	at
org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:156
)
	at
org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:433)
	at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(J
spServlet.java:152)
	at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServle
t.java:164)
	at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
	at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
	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.handleError(ContextManager.java:11
47)
	at org.apache.tomcat.core.Handler.service(Handler.java:311)
	at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
	at
org.apache.tomcat.facade.RequestDispatcherImpl.forward(RequestDispatcher
Impl.java:194)
	at
com.decode.ips.webservice.controller.IPSControllerServlet.login(IPSContr
ollerServlet.java:260)
	at
com.decode.ips.webservice.controller.IPSControllerServlet.doGet(IPSContr
ollerServlet.java:191)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
	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.jav
a:797)
	at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
	at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(H
ttpConnectionHandler.java:210)
	at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416
)
	at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:49
8)
	at java.lang.Thread.run(Thread.java:484)


--------------------------------------------
Stefan Freyr Stefansson
Software Developer
deCODE Genetics, Inc.
http://www.decode.com

Phone: (+354) 570 2854
GSM:   (+354) 861 1718
Fax:   (+354) 491 3782
 


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, email: tomcat-user-help@jakarta.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, email: tomcat-user-help@jakarta.apache.org


Mime
View raw message