[Geoserver-devel] Problem in Running the GeoServer Demo

Dear All

We were testing the GeoServer software and installed with Tomcat 5.0.24 web server. We had followed all the instruction for the installation and while running the demo application as provided with Geoserver using bc_roads shape file database sets. We found the application works fine except the MapURL

http://localhost:8090/geoserver/wms?request=GetMap&layers=bc_roads&bbox=489153,5433000,529000,5460816&width=800&height=400&srs=EPSG:27354&styles=normal&Format=image/png

On submit of this query first time Geoserver throws the following error

<?xml version="1.0" encoding="UTF-8" standalone="no" ?>

-
UNCAUGHT EXCEPTION: java.lang.NoClassDefFoundError: javax/media/jai/ComponentSampleModelJAI
</ServiceExceptionReport

Tomcat console provides the following error

java.lang.NoClassDefFoundError: javax/media/jai/ComponentSampleModelJAI
at org.geotools.io.image.TextImageReader$Spi.(TextImageReader.ja
va:356)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:219)
at sun.misc.Service$LazyIterator.next(Service.java:270)
at javax.imageio.spi.IIORegistry.registerApplicationClasspathSpis(IIOReg
istry.java:174)
at javax.imageio.spi.IIORegistry.(IIORegistry.java:113)
at javax.imageio.spi.IIORegistry.getDefaultInstance(IIORegistry.java:134
)
at javax.imageio.ImageIO.(ImageIO.java:46)
at org.vfny.geoserver.responses.wms.map.JAIMapResponse.getSupportedForma
ts(JAIMapResponse.java:114)
at org.vfny.geoserver.responses.wms.GetMapResponse.(GetMapRespon
se.java:51)
at org.vfny.geoserver.servlets.wms.GetMap.getResponseHandler(GetMap.java
:45)
at org.vfny.geoserver.servlets.AbstractService.doService(AbstractService
.java:347)
at org.vfny.geoserver.servlets.AbstractService.doGet(AbstractService.jav
a:233)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.vfny.geoserver.servlets.wms.WmsDispatcher.doResponse(WmsDispatche
r.java:135)
at org.vfny.geoserver.servlets.wms.WmsDispatcher.doGet(WmsDispatcher.jav
a:106)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:237)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:157)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:214)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv
eContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:520)
at org.apache.catalina.core.StandardContextValve.invokeInternal(Standard
ContextValve.java:198)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:152)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv
eContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:520)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:137)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv
eContext.java:104)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:117)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv
eContext.java:102)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:520)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:109)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv
eContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:520)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)

at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:16
0)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
:793)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
ssConnection(Http11Protocol.java:702)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java
:571)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
ool.java:644)
at java.lang.Thread.run(Thread.java:534)

Can anybody provide the solution for removing the above error and getting the MapURL running properly.

Thanks in advance for support.

regards

Rajendra Kumar Gupta
Tata Consultancy Services
GIS Group
91-11-23316980

Mailto: rajendra.gupta@anonymised.com
Website: http://www.tcs.com

(attachments)

InterScan_Disclaimer.txt (1.42 KB)

Hi,

On submit of this query first time Geoserver throws the following error

<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<!DOCTYPE ServiceExceptionReport (View Source for full doctype...)>
<ServiceExceptionReport version="1.1.0">
<ServiceException code="">UNCAUGHT EXCEPTION:
java.lang.NoClassDefFoundError:
javax/media/jai/ComponentSampleModelJAI</ServiceException>
</ServiceExceptionReport

Install the JAI API :
http://java.sun.com/products/java-media/jai/

Cheers,

p.b.

Alle 07:35, lunedì 24 maggio 2004, rajendra.gupta@anonymised.com ha scritto:

Dear All

...

http://localhost:8090/geoserver/wms?request=GetMap&layers=bc_roads&bbox=489
153,5433000,529000,5460816&width=800&height=400&srs=EPSG:27354&styles=normal
&Format=image/png

On submit of this query first time Geoserver throws the following error

<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
  <!DOCTYPE ServiceExceptionReport (View Source for full doctype...)>
- <ServiceExceptionReport version="1.1.0">
  <ServiceException code="">UNCAUGHT EXCEPTION:
java.lang.NoClassDefFoundError: javax/media/jai/ComponentSampleModelJAI</
ServiceException>
  </ServiceExceptionReport

Tomcat console provides the following error

java.lang.NoClassDefFoundError: javax/media/jai/ComponentSampleModelJAI
        at

You have to install JAI. Download it from java.sun.com and follow instructions
to install it.

Best regards
Andrea Aime