Hi,
could someone please help or explain me an error regarding
SetCharacterEncodingFilter? I would like to insert a feature using
wfs-t. Hence this doesn't even work with udig (showing the map is ok) I
did send the request with php. The response is:
javax.servlet.ServletException: Servlet execution threw an exception
org.vfny.geoserver.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:122)
java.lang.NoClassDefFoundError: org/apache/xerces/parsers/SAXParser
org.vfny.geoserver.util.requests.readers.DispatcherXmlReader.read(DispatcherXmlReader.java:75)
org.vfny.geoserver.wfs.servlets.WfsDispatcher.doPost(WfsDispatcher.java:167)
javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.vfny.geoserver.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:122)
I did send the request with declarations <?xml version="1.0" ?>
encoding="iso-8859-1" or encoding="UTF-8". Every time exception occurs.
I also played with the WEB-INF\services.xml, charSet value but didn't
succeed. Actually, I don't know what to look for. The request is like this:
<?xml version="1.0" ?>
<wfs:Transaction version="1.0.0" service="WFS"
LAYERS="preagro:Bodenbeprobungspunkte"
xmlns:gml="http://www.opengis.net/gml"
xmlns:ogc="http://www.opengis.net/ogc"
xmlns:wfs="http://www.opengis.net/wfs"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<wfs:Insert>
<gml:Point gid="e33" srsName="http://www.opengis.net/gml/srs/epsg.xml#4326">
<gml:coordinates>-98.5485,24.2633</gml:coordinates>
</gml:Point>
</wfs:Insert>
</wfs:Transaction>
Thanks for your help!
Martin
This isn't a problem with the charset, instead it's that you don't have xerces on your classpath. Are you using the .war download? If so, you just need to add xerces.jar to your commons section of your servlet container, or you can even add it to your jre directly.
Chris
Martin Kofahl wrote:
Hi,
could someone please help or explain me an error regarding
SetCharacterEncodingFilter? I would like to insert a feature using
wfs-t. Hence this doesn't even work with udig (showing the map is ok) I
did send the request with php. The response is:
javax.servlet.ServletException: Servlet execution threw an exception
org.vfny.geoserver.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:122)
java.lang.NoClassDefFoundError: org/apache/xerces/parsers/SAXParser
org.vfny.geoserver.util.requests.readers.DispatcherXmlReader.read(DispatcherXmlReader.java:75)
org.vfny.geoserver.wfs.servlets.WfsDispatcher.doPost(WfsDispatcher.java:167)
javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.vfny.geoserver.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:122)
I did send the request with declarations <?xml version="1.0" ?>
encoding="iso-8859-1" or encoding="UTF-8". Every time exception occurs.
I also played with the WEB-INF\services.xml, charSet value but didn't
succeed. Actually, I don't know what to look for. The request is like this:
<?xml version="1.0" ?>
<wfs:Transaction version="1.0.0" service="WFS"
LAYERS="preagro:Bodenbeprobungspunkte"
xmlns:gml="http://www.opengis.net/gml"
xmlns:ogc="http://www.opengis.net/ogc"
xmlns:wfs="http://www.opengis.net/wfs"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<wfs:Insert>
<gml:Point gid="e33" srsName="http://www.opengis.net/gml/srs/epsg.xml#4326">
<gml:coordinates>-98.5485,24.2633</gml:coordinates>
</gml:Point>
</wfs:Insert>
</wfs:Transaction>
Thanks for your help!
Martin
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
--
Chris Holmes
The Open Planning Project
thoughts at: http://cholmes.wordpress.com