Hi,
as I answered to Paulius, it's not enough to use the latest jar, you also
have to:
1) update geoserver web.xml to include the mapfish-print Spring application
context:
"to use the new jar you also need to make a change in geoserver
WEB-INF/lib/web.xml to load the mapfish spring application context.
Locate this section in the file:
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath*:/applicationContext.xml
classpath*:/applicationSecurityContext.xml</param-value>
</context-param>
and add classpath*:/mapfish-spring-application-context.xml so that it looks
like:
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath*:/applicationContext.xml
classpath*:/applicationSecurityContext.xml
classpath*:/mapfish-spring-application-context.xml</param-value>
</context-param>
then restart Geoserver.
"
2) if you have basic authentication in your app, forward it to Geoserver
adding this to your config.yaml:
headers: ['Cookie', 'Referer', 'Authorization']
3) if you don't use basic authentication, follow Thomas advice and add
something like the following to your config.yaml:
Security:
- !basicAuth
Matcher: !dnsMatch
host: geoserver
port: 8080
username: printer
password: password
preemptive: true
This should work with geoserver 2.4.x or geoserver 2.5.
Mauro
2014-04-07 7:36 GMT+02:00 mhln25 <[email protected]>:
> Hi maurao,
>
> Thanks for the prompt reply. However, regret for the delayed reply from
> our
> end.. But we tried the jar file you had shared. But still we are still
> facing the same problem.
>
> Which GeoServer version and the corresponding jar file we should use for
> bringing map print functionality for secured GS layers?
>
>
>
>
> --
> View this message in context:
> http://osgeo-org.1560.x6.nabble.com/Re-Reg-Map-not-printed-in-mapfish-print-WMS-layer-is-Secured-tp5106623p5133494.html
> Sent from the GeoServer - User mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> Put Bad Developers to Shame
> Dominate Development with Jenkins Continuous Integration
> Continuously Automate Build, Test & Deployment
> Start a new project now. Try Jenkins in the cloud.
> http://p.sf.net/sfu/13600_Cloudbees_APR
> _______________________________________________
> Geoserver-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
------------------------------------------------------------------------------
Put Bad Developers to Shame
Dominate Development with Jenkins Continuous Integration
Continuously Automate Build, Test & Deployment
Start a new project now. Try Jenkins in the cloud.
http://p.sf.net/sfu/13600_Cloudbees_APR
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users