RE: [OpenMap Users] Problem when deploying an application

From: Chapman, Martin <MChapman_at_sanz.com>
Date: Wed, 23 Jun 2004 09:35:26 -0600

Looking at the error message tells me for sure that you don't have an
Xwindows environment running on your web server. Install Xwindows.

Martin Chapman

-----Original Message-----
From: Christian Weaves [mailto:christian.weaves_at_fugro-robertson.com]
Sent: Wednesday, June 23, 2004 2:33 AM
To: openmap-users_at_bbn.com
Subject: [OpenMap Users] Problem when deploying an application


Hi there, thanks for all your help so far. I have one more question.
Does anybody have any idea how to get around this problem?

I'm running openmap as a tomcat (5.0.25) web application. I developed
the application on Red Hat Fedora Core and it works fine. However when
I deploy it to the actual webserver (which doesnt have a gui such as
gnome or kde) my servlet falls over when the following call is made:

MapRequestHandler iServer = new MapRequestHandler(mapProps);

I guess there's something missing on the webserver but not too sure
what! Do I need to run it headless, if so how do I do this with a web
application? Thanks for reading..

Here's the stack trace:

javax.servlet.ServletException: Servlet execution threw an exception

*root cause*

java.lang.NoClassDefFoundError
        java.lang.Class.forName0(Native Method)
        java.lang.Class.forName(Class.java:141)
        
java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnviron
ment.java:62)
        java.awt.Font.initializeFont(Font.java:308)
        java.awt.Font.<init>(Font.java:344)
        
javax.swing.plaf.metal.DefaultMetalTheme$FontDelegate.getFont(DefaultMet
alTheme.java:195)
        
javax.swing.plaf.metal.DefaultMetalTheme.getFont(DefaultMetalTheme.java:
153)
        
javax.swing.plaf.metal.DefaultMetalTheme.getMenuTextFont(DefaultMetalThe
me.java:141)
        
javax.swing.plaf.metal.MetalLookAndFeel$FontActiveValue.createValue(Meta
lLookAndFeel.java:1408)
        javax.swing.UIDefaults.getFromHashtable(UIDefaults.java:199)
        javax.swing.UIDefaults.get(UIDefaults.java:129)
        javax.swing.MultiUIDefaults.get(MultiUIDefaults.java:44)
        javax.swing.UIDefaults.getFont(UIDefaults.java:349)
        javax.swing.UIManager.getFont(UIManager.java:491)
        
javax.swing.LookAndFeel.installColorsAndFont(LookAndFeel.java:89)
        
javax.swing.plaf.basic.BasicPopupMenuUI.installDefaults(BasicPopupMenuUI
.java:75)
        
javax.swing.plaf.basic.BasicPopupMenuUI.installUI(BasicPopupMenuUI.java:
63)
        javax.swing.JComponent.setUI(JComponent.java:449)
        javax.swing.JPopupMenu.setUI(JPopupMenu.java:195)
        javax.swing.JPopupMenu.updateUI(JPopupMenu.java:204)
        javax.swing.JPopupMenu.<init>(JPopupMenu.java:169)
        javax.swing.JPopupMenu.<init>(JPopupMenu.java:154)
        
com.bbn.openmap.omGraphics.BasicStrokeEditorMenu.<init>(BasicStrokeEdito
rMenu.java:63)
        
com.bbn.openmap.omGraphics.DrawingAttributes.getBasicStrokeEditor(Drawin
gAttributes.java:1216)
        
com.bbn.openmap.omGraphics.DrawingAttributes.setStroke(DrawingAttributes
.java:380)
        
com.bbn.openmap.omGraphics.DrawingAttributes.setProperties(DrawingAttrib
utes.java:1368)
        
com.bbn.openmap.omGraphics.DrawingAttributes.<init>(DrawingAttributes.ja
va:300)
        
com.bbn.openmap.layer.shape.ShapeLayer.setProperties(ShapeLayer.java:183
)
        
com.bbn.openmap.util.ComponentFactory.create(ComponentFactory.java:346)
        
com.bbn.openmap.util.ComponentFactory.create(ComponentFactory.java:259)
        
com.bbn.openmap.util.ComponentFactory.create(ComponentFactory.java:207)
        
com.bbn.openmap.image.ImageServer.getLayers(ImageServer.java:736)
        
com.bbn.openmap.image.ImageServer.setProperties(ImageServer.java:485)
        
com.bbn.openmap.image.ImageServer.setProperties(ImageServer.java:473)
        
com.bbn.openmap.image.MapRequestHandler.setProperties(MapRequestHandler.
java:110)
        
com.bbn.openmap.image.MapRequestHandler.<init>(MapRequestHandler.java:10
6)
        
com.bbn.openmap.image.MapRequestHandler.<init>(MapRequestHandler.java:10
2)
        
com.lledr.eussafety.struts.navigation.GenerateMapImage.doPost(GenerateMa
pImage.java:107)
        
com.lledr.eussafety.struts.navigation.GenerateMapImage.doGet(GenerateMap
Image.java:56)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:810)


--
[To unsubscribe to this list send an email to "majdart_at_bbn.com" with the
following text in the BODY of the message "unsubscribe openmap-users"]
--
[To unsubscribe to this list send an email to "majdart_at_bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Wed Jun 23 2004 - 13:14:32 EDT

This archive was generated by hypermail 2.3.0 : Tue Mar 28 2017 - 23:25:05 EDT