tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nick Didkovsky <drne...@ingress.com>
Subject Toolkit.getDefaultToolkit() error under Solaris
Date Fri, 16 Feb 2001 04:14:23 GMT
Hello all,

We are running Tomcat Version 3.2.1 on a Solaris Server.

I've isolated a problem which boils down to a simple two liner:

<%@ page import="java.awt.*" %>
<%  Toolkit myToolkit = Toolkit.getDefaultToolkit(); %>

The above in a JSP page causes Tomcat to throw the exception I paste
below.  I have scanned the tomcat user archives and have seen somewhat
similar issues come up before under Solaris, but the focus was on
providing a graphics context for
Toolkit.getDefaultToolkit().createImage(). Not exactly my situation, but
close.  I do eventually need createImage(), but have discovered that
Toolkit.getDefaultToolkit() is all I need to bomb.

Thanks in advance for any guidance.

Best,
Nick

Internal Servlet Error:

javax.servlet.ServletException: sun/awt/motif/MToolkit
        at java.lang.Throwable.fillInStackTrace(Native Method)
        at java.lang.Throwable.fillInStackTrace(Compiled Code)
        at java.lang.Throwable.(Compiled Code)
        at java.lang.Exception.(Compiled Code)
        at javax.servlet.ServletException.(Compiled Code)
        at org.apache.jasper.servlet.JspServlet.service(Compiled Code)
        at javax.servlet.http.HttpServlet.service(Compiled Code)
        at org.apache.tomcat.core.ServletWrapper.doService(Compiled
Code)
        at org.apache.tomcat.core.Handler.service(Compiled Code)
        at org.apache.tomcat.core.ServletWrapper.service(Compiled Code)
        at
org.apache.tomcat.core.ContextManager.internalService(Compiled Code)
        at org.apache.tomcat.core.ContextManager.service(Compiled Code)
        at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(Compiled
Code)
        at org.apache.tomcat.service.TcpWorkerThread.runIt(Compiled
Code)
        at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(Compiled Code)
        at java.lang.Thread.run(Thread.java:479)

Root cause:

java.lang.NoClassDefFoundError: sun/awt/motif/MToolkit
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName0(Compiled Code)
        at java.lang.Class.forName(Compiled Code)
        at java.awt.Toolkit$2.run(Toolkit.java:499)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:492)
        at
_0002ftoolkitbug_0002ejsptoolkitbug_jsp_1._jspService(_0002ftoolkitbug_0002ejsptoolkitbug_jsp_1.java:64)

        at org.apache.jasper.runtime.HttpJspBase.service(Compiled Code)
        at javax.servlet.http.HttpServlet.service(Compiled Code)
        at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(Compiled
Code)
        at org.apache.jasper.servlet.JspServlet.serviceJspFile(Compiled
Code)
        at org.apache.jasper.servlet.JspServlet.service(Compiled Code)
        at javax.servlet.http.HttpServlet.service(Compiled Code)
        at org.apache.tomcat.core.ServletWrapper.doService(Compiled
Code)
        at org.apache.tomcat.core.Handler.service(Compiled Code)
        at org.apache.tomcat.core.ServletWrapper.service(Compiled Code)
        at
org.apache.tomcat.core.ContextManager.internalService(Compiled Code)
        at org.apache.tomcat.core.ContextManager.service(Compiled Code)
        at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(Compiled
Code)
        at org.apache.tomcat.service.TcpWorkerThread.runIt(Compiled
Code)
        at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(Compiled Code)
        at java.lang.Thread.run(Thread.java:479)


Mime
View raw message