wood burning stoves*
The moose likes Servlets and the fly likes Windows 98 and Tomcat. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Windows 98 and Tomcat." Watch "Windows 98 and Tomcat." New topic

Windows 98 and Tomcat.

Ranch Hand

Joined: Jan 28, 2000
Posts: 33
Greetings to all.<br>
I tested Tomcat 3.1 on Windows NT. It works great.
But our developers use Windows 98 laptops with JDK1.2.2. So I have been trying to get Tomcat 3.1 working on Windows 98. But it is getting very frustrating as I keep on getting errors on startup.
This is NOT a out of environment space problem. I have already fixed that.
Also I have my JAVA_HOME set to c:\JDK1.2.2 and TOMCAT_HOME set to C:\jakarta-tomcat as per my machine setup. Also I have the classpath set up to contain c:\jdk1.2.2\lib\tools.jar
Details of the error:
1. I started Tomcat 3.1 using startup bat file<br>
2. It starts another window. Gives the some exception and shuts down the new window. I cannot record the exception as I do not know how to increase the window height to more that 50 lines and the exception goes to more than 50 lines. The exception is for sure related to XML as I see that org.apache.jasper being mentioned<br>
3. To record the exception, I edited the tomcat.bat file to remove the start command in front of java and hence know the startup process takes place in the same window. <br>
4. Now I do not get the exception. But my JSPs do not work and I get the following exception:
Unhandled error! You might want to consider having an error page to report such
errors more gracefully
java.lang.NoClassDefFoundError: sun/tools/javac/Main
at org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.ja
at org.apache.jasper.compiler.Compiler.compile(Compiler.java, Compiled C
at org.apache.jasper.runtime.JspServlet.loadJSP(JspServlet.java:413)<br>
at org.apache.jasper.runtime.JspServlet$JspServletWrapper.loadIfNecessar
at org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspSer
at org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:2
at org.apache.jasper.runtime.JspServlet.service(JspServlet.java, Compile
d Code)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.ja
va, Compiled Code)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:559
at org.apache.tomcat.service.http.HttpConnectionHandler.processConnectio
at org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.j
ava, Compiled Code)
at java.lang.Thread.run(Thread.java:479)
Any help will be appreciated.
Best Regards<br>

Ranch Hand

Joined: Jan 28, 2000
Posts: 33
It was missing tools.jar in the classpath. Now it works fine with tools.jar in the classpath
I agree. Here's the link: http://aspose.com/file-tools
subject: Windows 98 and Tomcat.
Similar Threads
JSP is not running under JRun
Please Help----very urgent
Unable to start Tomcat
tomcat 4.0 configuration
Apache Tomcat Errors???