Hello,

 

I tried to replace existing print-lib jar with jar from
http://central.maven.org/maven2/org/mapfish/print/print-lib/2.0.0/print-lib-
2.0.0.jar in geoserver lib folder.

I am using GeoServer 2.4.5 windows installer on Windows Server 2008 R2 x64
on java 1.6 x32.

 

Got the following error:

Failed to load resource: the server responded with a status of 500 (Error
occurred while reading configuration file 'C:\Program Files (x86)\GeoServer
2.4.5\data_dir\printing\config.yaml':
org.springframework.beans.factory.NoSuchBeanDefinitionException: No unique
bean of type [org.mapfish.print.MapPrinter] is defined: expected single bean
but found 0:)

 

Is this the problem with configuration in config.yaml file or with
components to read that config file?

 

Config.yaml was generated after I started geoserver with
print-lib-2.0.0.jar. Maybe some other reference files need to be replaced?

 

Thanks for any help.

 

 

Sincerely,

Paulius 

 

 

From: Mauro Bartolomeoli [mailto:[email protected]] 
Sent: Wednesday, March 26, 2014 1:04 PM
To: mhln25
Cc: GeoServer Mailing List List
Subject: Re: [Geoserver-users] Reg Map not printed in mapfish print WMS
layer is Secured

 

Hi Mahalakshmi,

the functionality you are looking for (headers) is not available in the
current printing plugin.

 

We will probably make it available soon on master, so please stay tuned.

In the meantime, if you wish, you can try to replace the print-lib jar you
have in your geoserver WEB-INF\lib folder with the one you find here:
http://central.maven.org/maven2/org/mapfish/print/print-lib/2.0.0/print-lib-
2.0.0.jar

 

 

Mauro

 

2014-03-26 7:28 GMT+01:00 mhln25 <[email protected]>:

Hi maurao,

GeoEXT Mappanel,Map is not printed When WMS layer is secured and getting
Error like *java.io.IOException:The byte array is not a recognized
imageformat.* But the same print is working fine when layer is not secured.

.       We have used geoserver-2.6-SNAPSHOT-printing-plugin jar files and
put it
in GeoServer 2.4.3\webapps\geoserver\WEB-INF\lib  folder and we experimented
in windows platform.

Security:
  - !basicAuth
    Matcher: !dnsMatch

    host: localhost
    port: 80
    username: abc
    password: def
    preemptive: true

.       we specified the above set of security blocks in our config.yaml
file.This
is alos not working.Again ,We have used the headers block headers:
['Cookie', 'Referer', 'Authorization'].But again we got the same error

*java.io.IOException:The byte array is not a recognized imageformat.*

.       Geoserver Details
    Version 2.4.3
    Build Date 18-Dec-2013 06:12
    GeoTools Version 10.3
    GeoWebCache Version 1.5.0

Any help is highly appreciated because we are unable to proceed further..

With regards,
Mahalakshmi Narayanan
NIC, Chennai, MCIT, Govt of India



--
View this message in context:
http://osgeo-org.1560.x6.nabble.com/Re-Reg-Map-not-printed-in-mapfish-print-
WMS-layer-is-Secured-tp5106623p5131119.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

----------------------------------------------------------------------------
--
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech

_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

 

------------------------------------------------------------------------------
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to