[Geoserver-users] How to add cross origin filter in org.mortbay.jetty for Geoserver 2.4.0 Windows installer?

I am using GeoServer 2.4.0 on Windows 2008 Server. I have installed Geoserver by using windows installer.

My problem is I dont know to add cross origin filter settings in Jetty. When I have searched this on google, am getting the examples for org.eclipse but inside my all jetty xml files I can found only org.mortbay. Please let me know how to add the below thing in org.mortbay.jetty and where to add. Thanks in Advance.

cross-origin org.eclipse.jetty.servlets.CrossOriginFilter allowedOrigins * allowedMethods * allowedHeaders * cross-origin /*

Thanks & Regards,
Venkat E

Hi Venkat,
not sure if that is possible, the Jetty we use is very old.
The installer is meant to make it easy to test GeoServer for demo purposes, but for production
usage the installer is not recommended, please install Tomcat instead and deploy the
GeoServer WAR in it instead

Cheers
Andrea

···

On Fri, Mar 21, 2014 at 3:08 PM, venky <venky.src@anonymised.com84…> wrote:

I am using GeoServer 2.4.0 on Windows 2008 Server. I have installed Geoserver by using windows installer.

My problem is I dont know to add cross origin filter settings in Jetty. When I have searched this on google, am getting the examples for org.eclipse but inside my all jetty xml files I can found only org.mortbay. Please let me know how to add the below thing in org.mortbay.jetty and where to add. Thanks in Advance.

cross-origin org.eclipse.jetty.servlets.CrossOriginFilter allowedOrigins * allowedMethods * allowedHeaders * cross-origin /*

Thanks & Regards,
Venkat E


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
Geoserver-users@anonymised.comsts.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

==
Meet us at GEO Business 2014! in London! Visit http://goo.gl/fES3aK
for more information.

Ing. Andrea Aime

@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it


Thanks Andrea…Previously I have done this in Tomcat 7 only with Geoserver 2.4.0 on Windows 2012 64bit Amazon cloud machine.But I felt It was very slow to rendering entire UK GeoTiff images such as Overview, 250k rasters and streetview. It was around 20 GB size. I have suspect that Tomcat has problem because Geoserver doest not responding for morethan 5 users concurrently. Due to that only I have tried this with Windows Installer version. Now I have enabled and configured separate data directory for GeoWebCache and moved Geoserver data directory to separate drive. Now it is little bit ok.
Please share your suggestions. Thanks

···

On Fri, Mar 21, 2014 at 7:50 PM, Andrea Aime <andrea.aime@anonymised.com> wrote:

Hi Venkat,
not sure if that is possible, the Jetty we use is very old.
The installer is meant to make it easy to test GeoServer for demo purposes, but for production
usage the installer is not recommended, please install Tomcat instead and deploy the
GeoServer WAR in it instead

Cheers
Andrea

On Fri, Mar 21, 2014 at 3:08 PM, venky <venky.src@anonymised.com> wrote:

I am using GeoServer 2.4.0 on Windows 2008 Server. I have installed Geoserver by using windows installer.

My problem is I dont know to add cross origin filter settings in Jetty. When I have searched this on google, am getting the examples for org.eclipse but inside my all jetty xml files I can found only org.mortbay. Please let me know how to add the below thing in org.mortbay.jetty and where to add. Thanks in Advance.

cross-origin org.eclipse.jetty.servlets.CrossOriginFilter allowedOrigins * allowedMethods * allowedHeaders * cross-origin /*

Thanks & Regards,
Venkat E


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
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

==
Meet us at GEO Business 2014! in London! Visit http://goo.gl/fES3aK
for more information.

Ing. Andrea Aime

@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it


We made some internal tests on Windows, for requests that are slow (> 0.5s to respond) what container you use does not normally make a difference,
for fast ones instead Tomcat is visibly faster as you reach above 32 concurrent requests.
For your case, the container should not make a difference…

Cheers
Andrea

···

On Mon, Mar 24, 2014 at 5:14 AM, venky <venky.src@anonymised.com> wrote:

Thanks Andrea…Previously I have done this in Tomcat 7 only with Geoserver 2.4.0 on Windows 2012 64bit Amazon cloud machine.But I felt It was very slow to rendering entire UK GeoTiff images such as Overview, 250k rasters and streetview. It was around 20 GB size. I have suspect that Tomcat has problem because Geoserver doest not responding for morethan 5 users concurrently. Due to that only I have tried this with Windows Installer version. Now I have enabled and configured separate data directory for GeoWebCache and moved Geoserver data directory to separate drive. Now it is little bit ok.
Please share your suggestions. Thanks

==
Meet us at GEO Business 2014! in London! Visit http://goo.gl/fES3aK
for more information.

Ing. Andrea Aime

@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it


On Fri, Mar 21, 2014 at 7:50 PM, Andrea Aime <andrea.aime@anonymised.com> wrote:

Hi Venkat,
not sure if that is possible, the Jetty we use is very old.
The installer is meant to make it easy to test GeoServer for demo purposes, but for production
usage the installer is not recommended, please install Tomcat instead and deploy the
GeoServer WAR in it instead

Cheers
Andrea

On Fri, Mar 21, 2014 at 3:08 PM, venky <venky.src@anonymised.com> wrote:

I am using GeoServer 2.4.0 on Windows 2008 Server. I have installed Geoserver by using windows installer.

My problem is I dont know to add cross origin filter settings in Jetty. When I have searched this on google, am getting the examples for org.eclipse but inside my all jetty xml files I can found only org.mortbay. Please let me know how to add the below thing in org.mortbay.jetty and where to add. Thanks in Advance.

cross-origin org.eclipse.jetty.servlets.CrossOriginFilter allowedOrigins * allowedMethods * allowedHeaders * cross-origin /*

Thanks & Regards,
Venkat E


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
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

==
Meet us at GEO Business 2014! in London! Visit http://goo.gl/fES3aK
for more information.

Ing. Andrea Aime

@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it


Ok thanks Andrea

···

On Mon, Mar 24, 2014 at 12:44 PM, Andrea Aime <andrea.aime@anonymised.com> wrote:

We made some internal tests on Windows, for requests that are slow (> 0.5s to respond) what container you use does not normally make a difference,
for fast ones instead Tomcat is visibly faster as you reach above 32 concurrent requests.
For your case, the container should not make a difference…

Cheers
Andrea

On Mon, Mar 24, 2014 at 5:14 AM, venky <venky.src@anonymised.com> wrote:

Thanks Andrea…Previously I have done this in Tomcat 7 only with Geoserver 2.4.0 on Windows 2012 64bit Amazon cloud machine.But I felt It was very slow to rendering entire UK GeoTiff images such as Overview, 250k rasters and streetview. It was around 20 GB size. I have suspect that Tomcat has problem because Geoserver doest not responding for morethan 5 users concurrently. Due to that only I have tried this with Windows Installer version. Now I have enabled and configured separate data directory for GeoWebCache and moved Geoserver data directory to separate drive. Now it is little bit ok.
Please share your suggestions. Thanks

==
Meet us at GEO Business 2014! in London! Visit http://goo.gl/fES3aK
for more information.

Ing. Andrea Aime

@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it


On Fri, Mar 21, 2014 at 7:50 PM, Andrea Aime <andrea.aime@anonymised.com> wrote:

Hi Venkat,
not sure if that is possible, the Jetty we use is very old.
The installer is meant to make it easy to test GeoServer for demo purposes, but for production
usage the installer is not recommended, please install Tomcat instead and deploy the
GeoServer WAR in it instead

Cheers
Andrea

On Fri, Mar 21, 2014 at 3:08 PM, venky <venky.src@anonymised.com> wrote:

I am using GeoServer 2.4.0 on Windows 2008 Server. I have installed Geoserver by using windows installer.

My problem is I dont know to add cross origin filter settings in Jetty. When I have searched this on google, am getting the examples for org.eclipse but inside my all jetty xml files I can found only org.mortbay. Please let me know how to add the below thing in org.mortbay.jetty and where to add. Thanks in Advance.

cross-origin org.eclipse.jetty.servlets.CrossOriginFilter allowedOrigins * allowedMethods * allowedHeaders * cross-origin /*

Thanks & Regards,
Venkat E


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
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

==
Meet us at GEO Business 2014! in London! Visit http://goo.gl/fES3aK
for more information.

Ing. Andrea Aime

@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it


I have used this with success in the past.

http://software.dzhuvinov.com/cors-filter-installation.html

Only used it with Tomcat but states it should work with Jetty.

···

On Mon, Mar 24, 2014 at 7:25 AM, venky <venky.src@anonymised.com> wrote:

Ok thanks Andrea


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
Geoserver-users@anonymised.comsts.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Justin Deoliveira
Vice President, Engineering | Boundless
jdeolive@anonymised.com
@j_deolive

On Mon, Mar 24, 2014 at 12:44 PM, Andrea Aime <andrea.aime@anonymised.com> wrote:

We made some internal tests on Windows, for requests that are slow (> 0.5s to respond) what container you use does not normally make a difference,
for fast ones instead Tomcat is visibly faster as you reach above 32 concurrent requests.
For your case, the container should not make a difference…

Cheers
Andrea

On Mon, Mar 24, 2014 at 5:14 AM, venky <venky.src@anonymised.com> wrote:

Thanks Andrea…Previously I have done this in Tomcat 7 only with Geoserver 2.4.0 on Windows 2012 64bit Amazon cloud machine.But I felt It was very slow to rendering entire UK GeoTiff images such as Overview, 250k rasters and streetview. It was around 20 GB size. I have suspect that Tomcat has problem because Geoserver doest not responding for morethan 5 users concurrently. Due to that only I have tried this with Windows Installer version. Now I have enabled and configured separate data directory for GeoWebCache and moved Geoserver data directory to separate drive. Now it is little bit ok.
Please share your suggestions. Thanks

==
Meet us at GEO Business 2014! in London! Visit http://goo.gl/fES3aK
for more information.

Ing. Andrea Aime

@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it


On Fri, Mar 21, 2014 at 7:50 PM, Andrea Aime <andrea.aime@anonymised.com> wrote:

Hi Venkat,
not sure if that is possible, the Jetty we use is very old.
The installer is meant to make it easy to test GeoServer for demo purposes, but for production
usage the installer is not recommended, please install Tomcat instead and deploy the
GeoServer WAR in it instead

Cheers
Andrea

On Fri, Mar 21, 2014 at 3:08 PM, venky <venky.src@anonymised.com> wrote:

I am using GeoServer 2.4.0 on Windows 2008 Server. I have installed Geoserver by using windows installer.

My problem is I dont know to add cross origin filter settings in Jetty. When I have searched this on google, am getting the examples for org.eclipse but inside my all jetty xml files I can found only org.mortbay. Please let me know how to add the below thing in org.mortbay.jetty and where to add. Thanks in Advance.

cross-origin org.eclipse.jetty.servlets.CrossOriginFilter allowedOrigins * allowedMethods * allowedHeaders * cross-origin /*

Thanks & Regards,
Venkat E


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
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

==
Meet us at GEO Business 2014! in London! Visit http://goo.gl/fES3aK
for more information.

Ing. Andrea Aime

@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it


Ok Thanks Justin…I shall try this

···

On Mon, Mar 24, 2014 at 7:29 PM, Justin Deoliveira <jdeolive@anonymised.com> wrote:

I have used this with success in the past.

http://software.dzhuvinov.com/cors-filter-installation.html

Only used it with Tomcat but states it should work with Jetty.

On Mon, Mar 24, 2014 at 7:25 AM, venky <venky.src@anonymised.com> wrote:

Ok thanks Andrea


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
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Justin Deoliveira
Vice President, Engineering | Boundless
jdeolive@anonymised.com
@j_deolive

On Mon, Mar 24, 2014 at 12:44 PM, Andrea Aime <andrea.aime@anonymised.com> wrote:

We made some internal tests on Windows, for requests that are slow (> 0.5s to respond) what container you use does not normally make a difference,
for fast ones instead Tomcat is visibly faster as you reach above 32 concurrent requests.
For your case, the container should not make a difference…

Cheers
Andrea

On Mon, Mar 24, 2014 at 5:14 AM, venky <venky.src@anonymised.com> wrote:

Thanks Andrea…Previously I have done this in Tomcat 7 only with Geoserver 2.4.0 on Windows 2012 64bit Amazon cloud machine.But I felt It was very slow to rendering entire UK GeoTiff images such as Overview, 250k rasters and streetview. It was around 20 GB size. I have suspect that Tomcat has problem because Geoserver doest not responding for morethan 5 users concurrently. Due to that only I have tried this with Windows Installer version. Now I have enabled and configured separate data directory for GeoWebCache and moved Geoserver data directory to separate drive. Now it is little bit ok.
Please share your suggestions. Thanks

==
Meet us at GEO Business 2014! in London! Visit http://goo.gl/fES3aK
for more information.

Ing. Andrea Aime

@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it


On Fri, Mar 21, 2014 at 7:50 PM, Andrea Aime <andrea.aime@anonymised.com> wrote:

Hi Venkat,
not sure if that is possible, the Jetty we use is very old.
The installer is meant to make it easy to test GeoServer for demo purposes, but for production
usage the installer is not recommended, please install Tomcat instead and deploy the
GeoServer WAR in it instead

Cheers
Andrea

On Fri, Mar 21, 2014 at 3:08 PM, venky <venky.src@anonymised.com> wrote:

I am using GeoServer 2.4.0 on Windows 2008 Server. I have installed Geoserver by using windows installer.

My problem is I dont know to add cross origin filter settings in Jetty. When I have searched this on google, am getting the examples for org.eclipse but inside my all jetty xml files I can found only org.mortbay. Please let me know how to add the below thing in org.mortbay.jetty and where to add. Thanks in Advance.

cross-origin org.eclipse.jetty.servlets.CrossOriginFilter allowedOrigins * allowedMethods * allowedHeaders * cross-origin /*

Thanks & Regards,
Venkat E


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
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

==
Meet us at GEO Business 2014! in London! Visit http://goo.gl/fES3aK
for more information.

Ing. Andrea Aime

@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it