java.lang.NoClassDefFoundError on clean install from Tomcat

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

java.lang.NoClassDefFoundError on clean install from Tomcat

Peter Giencke
Hey guys,

I'm new to the Geoserver game and am having some problems when trying to
output WMS from a clean WAR install from within Tomcat (error below). It
ran fine under using the included servlet container, but for some
reason, doesn't seem to be cooperating with Tomcat. Unfortunately,
running it full-time through the Jetty isn't an option.

Relevant specs:
Solaris 5.9
Tomcat 4.1.3
J2SDK1.4.2_12

If anyone has any insight, as to resolving this issue, it would be
appreciated.

-pete

<?xml version="1.0" encoding="UTF-8" standalone="no" ?><!DOCTYPE
ServiceExceptionReport SYSTEM
"http://server/geoserver/schemas//wms/1.1.1/WMS_exception_1_1_1.dtd">
<ServiceExceptionReport version="1.1.1">    <ServiceException
code="">java.lang.NoClassDefFoundError
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:141)
    at
java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:62)
    at java.awt.image.BufferedImage.createGraphics(BufferedImage.java:1041)
    at
org.vfny.geoserver.wms.responses.DefaultRasterMapProducer.produceMap(DefaultRasterMapProducer.java:193)
    at
org.vfny.geoserver.wms.responses.GetMapResponse.execute(GetMapResponse.java:156)
    at
org.vfny.geoserver.servlets.AbstractService.doService(AbstractService.java:449)
    at
org.vfny.geoserver.servlets.AbstractService.doGet(AbstractService.java:276)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at
org.vfny.geoserver.wms.servlets.WmsDispatcher.doResponse(WmsDispatcher.java:156)
    at
org.vfny.geoserver.wms.servlets.WmsDispatcher.doGet(WmsDispatcher.java:115)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    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.vfny.geoserver.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:122)
    at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213)
    at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
    at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
    at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
    at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
    at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
    at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2422)
    at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
    at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
    at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
    at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
    at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:163)
    at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
    at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
    at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
    at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    at
org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:457)
    at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:576)
    at java.lang.Thread.run(Thread.java:534)
</ServiceException>  </ServiceExceptionReport>




Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Geoserver-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

signature.asc (196 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: java.lang.NoClassDefFoundError on clean install from Tomcat

Brent Owens
Have you tried it on tomcat 5.0?
I've run it there and it works, but I haven't tried 4.1.

Brent Owens
(The Open Planning Project)



Pete Giencke wrote:

> Hey guys,
>
> I'm new to the Geoserver game and am having some problems when trying
> to output WMS from a clean WAR install from within Tomcat (error
> below). It ran fine under using the included servlet container, but
> for some reason, doesn't seem to be cooperating with Tomcat.
> Unfortunately, running it full-time through the Jetty isn't an option.
>
> Relevant specs:
> Solaris 5.9
> Tomcat 4.1.3
> J2SDK1.4.2_12
>
> If anyone has any insight, as to resolving this issue, it would be
> appreciated.
>
> -pete
>
> <?xml version="1.0" encoding="UTF-8" standalone="no" ?><!DOCTYPE
> ServiceExceptionReport SYSTEM
> "http://server/geoserver/schemas//wms/1.1.1/WMS_exception_1_1_1.dtd">
> <ServiceExceptionReport version="1.1.1">    <ServiceException
> code="">java.lang.NoClassDefFoundError
>    at java.lang.Class.forName0(Native Method)
>    at java.lang.Class.forName(Class.java:141)
>    at
> java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:62)
>
>    at
> java.awt.image.BufferedImage.createGraphics(BufferedImage.java:1041)
>    at
> org.vfny.geoserver.wms.responses.DefaultRasterMapProducer.produceMap(DefaultRasterMapProducer.java:193)
>
>    at
> org.vfny.geoserver.wms.responses.GetMapResponse.execute(GetMapResponse.java:156)
>
>    at
> org.vfny.geoserver.servlets.AbstractService.doService(AbstractService.java:449)
>
>    at
> org.vfny.geoserver.servlets.AbstractService.doGet(AbstractService.java:276)
>
>    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
>    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>    at
> org.vfny.geoserver.wms.servlets.WmsDispatcher.doResponse(WmsDispatcher.java:156)
>
>    at
> org.vfny.geoserver.wms.servlets.WmsDispatcher.doGet(WmsDispatcher.java:115)
>
>    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
>    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.vfny.geoserver.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:122)
>
>    at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213)
>
>    at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
>
>    at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
>
>    at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
>
>    at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
>
>    at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>    at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
>
>    at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
>
>    at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
>
>    at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>    at
> org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2422)
>
>    at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
>
>    at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
>
>    at
> org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
>
>    at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
>
>    at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:163)
>
>    at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
>
>    at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
>
>    at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>    at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
>
>    at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
>
>    at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
>
>    at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>    at
> org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:457)
>    at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:576)
>    at java.lang.Thread.run(Thread.java:534)
> </ServiceException>  </ServiceExceptionReport>
>
>
>
> ------------------------------------------------------------------------
>
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> ------------------------------------------------------------------------
>
> _______________________________________________
> Geoserver-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>  

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Geoserver-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geoserver-users
Reply | Threaded
Open this post in threaded view
|

Re: java.lang.NoClassDefFoundError on clean install from Tomcat

Philippe Duchesne
In reply to this post by Peter Giencke
this is because the JDK doesn't find an X11 server, probably because
you have a headless machine (without a graphic card).

since you use the JDK 1.4, setting the following system property in
the jvm command line should be enough :
-Djava.awt.headless=true

otherwise, the solution is to use a virtual XServer such as xvfb.

more explanations at http://www.ve.com/kavachart/solutions/xwindows.html

--p.

On 6/29/06, Pete Giencke <[hidden email]> wrote:

> Hey guys,
>
> I'm new to the Geoserver game and am having some problems when trying to
> output WMS from a clean WAR install from within Tomcat (error below). It
> ran fine under using the included servlet container, but for some
> reason, doesn't seem to be cooperating with Tomcat. Unfortunately,
> running it full-time through the Jetty isn't an option.
>
> Relevant specs:
> Solaris 5.9
> Tomcat 4.1.3
> J2SDK1.4.2_12
>
> If anyone has any insight, as to resolving this issue, it would be
> appreciated.
>
> -pete
>
> <?xml version="1.0" encoding="UTF-8" standalone="no" ?><!DOCTYPE
> ServiceExceptionReport SYSTEM
> "http://server/geoserver/schemas//wms/1.1.1/WMS_exception_1_1_1.dtd">
> <ServiceExceptionReport version="1.1.1">    <ServiceException
> code="">java.lang.NoClassDefFoundError
>     at java.lang.Class.forName0(Native Method)
>     at java.lang.Class.forName(Class.java:141)
>     at
> java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:62)
>     at java.awt.image.BufferedImage.createGraphics(BufferedImage.java:1041)
>     at
> org.vfny.geoserver.wms.responses.DefaultRasterMapProducer.produceMap(DefaultRasterMapProducer.java:193)
>     at
> org.vfny.geoserver.wms.responses.GetMapResponse.execute(GetMapResponse.java:156)
>     at
> org.vfny.geoserver.servlets.AbstractService.doService(AbstractService.java:449)
>     at
> org.vfny.geoserver.servlets.AbstractService.doGet(AbstractService.java:276)
>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>     at
> org.vfny.geoserver.wms.servlets.WmsDispatcher.doResponse(WmsDispatcher.java:156)
>     at
> org.vfny.geoserver.wms.servlets.WmsDispatcher.doGet(WmsDispatcher.java:115)
>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
>     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.vfny.geoserver.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:122)
>     at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213)
>     at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
>     at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
>     at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
>     at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
>     at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>     at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
>     at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
>     at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
>     at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>     at
> org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2422)
>     at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
>     at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
>     at
> org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
>     at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
>     at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:163)
>     at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
>     at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
>     at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>     at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
>     at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
>     at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
>     at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>     at
> org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:457)
>     at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:576)
>     at java.lang.Thread.run(Thread.java:534)
> </ServiceException>  </ServiceExceptionReport>
>
>
>
>
>
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>
> _______________________________________________
> Geoserver-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
>
>
>

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Geoserver-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geoserver-users