File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
Author

Windows 98 and Tomcat.

gunjan
Ranch Hand

Joined: Jan 28, 2000
Posts: 33
Friends:<br>
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.
<br>
This is NOT a out of environment space problem. I have already fixed that.
<br>
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
<br>
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
va:128)<br>
at org.apache.jasper.compiler.Compiler.compile(Compiler.java, Compiled C
ode)<br>
at org.apache.jasper.runtime.JspServlet.loadJSP(JspServlet.java:413)<br>
at org.apache.jasper.runtime.JspServlet$JspServletWrapper.loadIfNecessar
y(JspServlet.java:149)
<br>
at org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspSer
vlet.java:161)
<br>
at org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:2
61)
at org.apache.jasper.runtime.JspServlet.service(JspServlet.java, Compile
d Code)
<br>
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
<br>
at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.ja
va, Compiled Code)
<br>
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:559
)
<br>
at org.apache.tomcat.service.http.HttpConnectionHandler.processConnectio
n(HttpConnectionHandler.java:160)
<br>
at org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.j
ava, Compiled Code)
<br>
at java.lang.Thread.run(Thread.java:479)
<br>
<br>
Any help will be appreciated.
<br>
Best Regards<br>
Gunjan

Regards<BR>Gunjan
gunjan
Ranch Hand

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