Hrm, no idea about that error. But if you're looking to do GeoTools + Servlet you may just look at GeoServer - http://geoserver.org. We do WMS (open standard for requesting the images of maps) and WFS (open standard for requesting the raw map data as GML), and recent advances on 1.4.x (http://docs.codehaus.org/display/GEOSDEV/Home) use the Spring framework to make it even easier to get up and going as a developer. You get a servlet environment and access to all the GeoTools libraries.

What exactly are you looking to do? It's most likely easier just to use GeoServer, or if for some reason you can't you can at least look at the code for inspiration.

best regards,

Chris


Burak Geriş wrote:
I have just downloaded latest geotools binary archives (gt2-2.2-RC3-bin.zip) and then copy all of the jars to the WEB-INF\lib directory of my simple servlet application. When i am trying to deploy my application to tomcat 5.5 following error occurred. I am new at java so i can't figure out what is the problem. How can I configure my application to use geotools in a servlet application.

SEVERE: Error deploying web application archive mbs.war
java.lang.IllegalArgumentException: log4j,openmap,postgis,jts,junitperf,junit,postgresql-Extension-Name
    at java.util.jar.Attributes$Name.<init>(Attributes.java:440)
    at java.util.jar.Attributes.getValue (Attributes.java:99)
at org.apache.catalina.util.ManifestResource.getRequiredExtensions(ManifestResource.java:185) at org.apache.catalina.util.ManifestResource.processManifest(ManifestResource.java:154) at org.apache.catalina.util.ManifestResource.<init>(ManifestResource.java:51) at org.apache.catalina.util.ExtensionValidator.validateApplication(ExtensionValidator.java:185) at org.apache.catalina.core.StandardContext.start (StandardContext.java:4033) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739) at org.apache.catalina.core.StandardHost.addChild (StandardHost.java:524)
    at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:804)
at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:693) at org.apache.catalina.startup.HostConfig.deployApps (HostConfig.java:472)
    at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1118)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent (LifecycleSupport.java:119)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1020)
    at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
at org.apache.catalina.core.ContainerBase.start (ContainerBase.java:1012) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442) at org.apache.catalina.core.StandardService.start(StandardService.java:450) at org.apache.catalina.core.StandardServer.start (StandardServer.java:700)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.apache.catalina.startup.Bootstrap.start (Bootstrap.java:275)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
!DSPAM:1003,44bd2eb6255116309890654!


------------------------------------------------------------------------

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

!DSPAM:1003,44bd2eb6255116309890654!


------------------------------------------------------------------------

_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users


!DSPAM:1003,44bd2eb6255116309890654!

--
Chris Holmes
The Open Planning Project
http://topp.openplans.org
begin:vcard
fn:Chris Holmes
n:Holmes;Chris
org:The Open Planning Project
adr:;;377 Broadway, 11th Floor;New York;NY;10013;USA
email;internet:[EMAIL PROTECTED]
title:VP, Strategic Development
x-mozilla-html:FALSE
url:http://topp.openplans.org
version:2.1
end:vcard

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to