tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Micael <caraun...@harbornet.com>
Subject Re: hello sir
Date Tue, 15 Apr 2003 06:35:22 GMT
How have you set up CLASSPATH and PATH?

PATH tells the computer where to get the stuff to run java.  CLASSPATH 
tells java where to find the files it deals with.  PATH in other words, 
will be executables for Windoz, and CLASSPATH will be .java and .class files.

Are you familiar with these concepts?  If so, sorry for wasting your 
time.  If not, then you will save yourself a lot of heartache and head 
scratching by spending a bit of time getting to know them and precisely how 
they impact your running of java programs.

At 09:34 AM 4/15/03 +0300, you wrote:
>dear sir,
>                i have some problems with tomcat server. my system has 
> both win 98 and win 2k professional. i have installed tomcat 4.0 in win 
> 98. while i was trying to start the server for the first time i got the 
> msg that java.exe file cannot be found. then i browsed and selected 
> java.exe file from the jdk folder. now server is working. but i m not 
> able to run jsp files. whenever i try to run a jsp file i get the 
> following error page:
>
>javax.servlet.ServletException: sun/tools/javac/Main
>         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:485)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>         at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
>         at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
>         at 
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
>         at 
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
>         at 
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
>         at 
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>         at 
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
>         at 
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
>         at 
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:475)
>         at 
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
>         at 
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
>         at 
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>         at 
> org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
>         at 
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
>         at 
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
>         at 
> org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
>         at 
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
>         at 
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
>         at 
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
>         at 
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
>         at 
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
>         at 
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
>         at 
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>         at 
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
>         at 
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
>         at 
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
>         at 
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>         at 
> org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1012)
>         at 
> org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107)
>         at java.lang.Thread.run(Thread.java:479)
>
>
>root cause
>
>java.lang.NoClassDefFoundError: sun/tools/javac/Main
>         at 
> org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.java:136)
>         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:272)
>         at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:552)
>         at 
> org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:177)
>         at 
> org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:189)
>         at 
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
>         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>         at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
>         at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
>         at 
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
>         at 
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
>         at 
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
>         at 
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>         at 
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
>         at 
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
>         at 
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:475)
>         at 
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
>         at 
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
>         at 
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>         at 
> org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
>         at 
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
>         at 
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
>         at 
> org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
>         at 
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
>         at 
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
>         at 
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
>         at 
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
>         at 
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
>         at 
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
>         at 
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>         at 
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
>         at 
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
>         at 
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
>         at 
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>         at 
> org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1012)
>         at 
> org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107)
>         at java.lang.Thread.run(Thread.java:479)
>
>i think the tomcat server is not able to find the lib folder in java 
>insatallation. can u suggest any solutions? by the way bfor installing 
>win2k the tomcat server was working fine.
>
>regs
>
>ashok



LEGAL NOTICE

This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this transmission is strictly prohibited.  If you 
have received this transmission in error, please delete the message.  Thank 
you  



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


Mime
View raw message