Mapfish or Geoserver print engine error

On my personal computer, I am using Geoserver and the print plugin (2.5.2 and 2.4 (for the print plugin)). Our development process has been completed and we want to use it on our server machine. The options java, opts and java the encoding type is the same, but when I installed the pdf plugin on the server machine like

"ServerIP: 8080 / Geoserver / PDF / info.json"

Mistake

org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.ho.yaml.exception.YamlException: Error near line 0: Problem getting RİGHT value of enum type class org.mapfish.print.config.layout.HorizontalAlign
    org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:894)
    org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:778)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:620)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
    org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)..

      

what does it mean? This is the default "config.yaml" file. Error "org.ho.yaml.exception.YamlException: error near line 0: problem with getting RİGHT value of enum type org.mapfish.print.config.layout.HorizontalAlign".

I've tried very different versions of geoserver and printplugin or Mapfish print module. Where am I doing wrong?

+3


source to share


2 answers


Installing a print extension should be easy. The problem might be related to different versions of Geoserver (2.5.2) and print extension (you mentioned version 2.4).

I just installed the latest Geoserver and print extension to make sure it works and it works.

I already have Tomcat7 installed on /opt/tomcat7

. I am using java version 1.8.0_20.

To install Geoserver:

cd /opt/tomcat7/webapps
sudo wget http://ares.boundlessgeo.com/geoserver/2.6.x/geoserver-2.6.x-latest-war.zip
sudo unzip geoserver-2.6.x-latest-war.zip geoserver.war

      

The geoserver is automatically installed after extracting the war file.

To install the print module:



cd /opt/tomcat7/webapps/geoserver/WEB-INF/lib
sudo wget http://ares.boundlessgeo.com/geoserver/2.6.x/ext-latest/geoserver-2.6-SNAPSHOT-printing-plugin.zip
sudo unzip geoserver-2.6-SNAPSHOT-printing-plugin.zip

      

After all / opt / tomcat 7 / webapps / geoserver / WEB-INF / lib, you can restart tomcat:

sudo service tomcat7 restart

      

Check if the print module is installed successfully:

Go to GEOSERVER_DATA_DIR ( /opt/tomcat7/webapps/geoserver/data

) and there should be a new folder named printing

, with config.yaml

inside.

Pay attention to the following query: http://yourhost/geoserver/pdf/info.json

+1


source


I fixed this issue when editing

\data_dir\printing\config.yaml

      



file. Just replace all correct alignments with rıght .

0


source







All Articles