[Geoserver-devel] changing data directory using geoserver.war with jetty

2015-10-13 Thread walter.nordmann
Hi,

i'm going to use geoserver 2.8 for the first time as an servlet in my
existing jetty9-server.

I need to specify an external data_directory and would like to to it with a
context file.

But i don't know the exact format and where to put this file. I tried the
directory "contexts" of jetty but it did not work for me. Tryed a lot of
other ways but with no result.

GS Doc said "To specify the data directory using a servlet context
parameter, create the following  element in the
WEB-INF/web.xml file for the GeoServer application:"
but that is not clear for me.

Regards
walter

ps: sorry, repost from the user-list but i did not get any response. 



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/changing-data-directory-using-geoserver-war-with-jetty-tp5229890.html
Sent from the GeoServer - Dev mailing list archive at Nabble.com.

--
___
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel


Re: [Geoserver-devel] changing data directory using geoserver.war with jetty

2015-10-14 Thread walter.nordmann
jody.garnett wrote
> You may wish to visit the support page for a range of support options,
> including commercial support.

Ok, i'll check that. But be aware, openstreetmap is mainly a project driven
by private members which can't pay for commercial support.

I got the info that using war-files as servlets is the preferred way to
install geoserver and i agree. That's because program code and data are
strictly seperated - if (and that is the problem!) and only if you manage to
split those areas. There is a big documentation gap in doing that. 2
sentences for Tomcat and that is all i found :(

Regards
walter




--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/changing-data-directory-using-geoserver-war-with-jetty-tp5229890p5229988.html
Sent from the GeoServer - Dev mailing list archive at Nabble.com.

--
___
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel


Re: [Geoserver-devel] changing data directory using geoserver.war with jetty

2015-10-14 Thread walter.nordmann
geowolf wrote
> What Jody really meant is, on this list there are over 2000 subscribers:
> what you are asking is more servlet containers related than GeoServer
> specific,
> there should be a lot of other users here that have an idea, but if none
> can/wants to help, there is always commercial support.

i agree, that the question is quite specific to ask on a dev-list, but here
are only two list (user and dev). So i asked both of them. 

> Personally I don't know the answer, we don't deploy in Jetty, and when
> we need to setup the data dir, we normally use environment variables,
> not servlet context parameters.

i tried that without any luck, but because you say, that's the preferred
way, i'll concentrate on that again.

btw: Who told you, that this is the preferred way? Do you see my problem?

Thanks and greetings from germany
walter





--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/changing-data-directory-using-geoserver-war-with-jetty-tp5229890p5230008.html
Sent from the GeoServer - Dev mailing list archive at Nabble.com.

--
___
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel


Re: [Geoserver-devel] changing data directory using geoserver.war with jetty

2015-10-14 Thread walter.nordmann
Stefano Costa-4 wrote
> Are you referring to this page?
> http://docs.geoserver.org/latest/en/user/datadirectory/data-dir-setting.html#web-archive

Yes, i do. 

> What is not clear to you in that sentence?
> You should download GeoServer as a Web archive
> ;,
> open up the geoserver.war file (it's a ZIP-file-in-disguise) and reach out
> for the WEB-INF/web.xml file in it: you should see other context parameter
> definitions close to the top, simply add yours as suggested in the user
> guide.

Patching an executable? I know, that this is quite easy with java and
thougth about doing that *if nothing else helps*. Sorry, but that is not "my
way".

Regards
walter




--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/changing-data-directory-using-geoserver-war-with-jetty-tp5229890p5230013.html
Sent from the GeoServer - Dev mailing list archive at Nabble.com.

--
___
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel


Re: [Geoserver-devel] changing data directory using geoserver.war with jetty

2015-10-14 Thread walter.nordmann
geowolf wrote
> Ah, did not notice this was the devel list. Yeah, wrong list for such kind
> of question,
> a lot smaller audience, and here the discussion topic is only one,
> how to improve GeoServer own code/functionality, it's a list by developers
> for developers. You should ask on the users list instead.

did it two days ago.
http://osgeo-org.1560.x6.nabble.com/setting-Servlet-context-parameter-in-jetty-tp5229293.html
- no response :( 


> Nobody told me is the preferred way. I've been a core developer of
> GeoServer
> for 9 years now, and that's how I always did it.

That's of course the easy way - develop a program and than you don't need a
documentation ;)

Regards
walter

Btw: the User-Documentation of Geoserver is very, very good and helped me a
lot. There is just a gap in the installation/getting to work area.




--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/changing-data-directory-using-geoserver-war-with-jetty-tp5229890p5230031.html
Sent from the GeoServer - Dev mailing list archive at Nabble.com.

--
___
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel


Re: [Geoserver-devel] changing data directory using geoserver.war with jetty

2015-10-14 Thread walter.nordmann
Rahkonen Jukka (MML) wrote
> Hi,
> 
> I made a very quick test and the result looks promising:
> 
> 1) Install Geoserver 2.8 on Windows with the binary-zip alternative
> 2) Test that Geoserver is running and then stop the server
> 3) Download Jetty from
> http://eclipse.org/downloads/download.php?file=/jetty/stable-9/dist/jetty-distribution-9.3.3.v20150827.zip&r=1
>  
> 4) Unzip Jetty
> 5) Copy directory "geoserver" from the webapps of default 2.8 installation
> into webapps of Jetty 9.3.3
> 6) Start Jetty 9.3.3 from the installation directory with "java -jar
> start.jar"
> 7) Check that Geoserver is available at localhost:8080/geoserver
> 8) Check from server status that data_dir is at
> jetty933\webapps\geoserver\data and stop the server
> 9) From command window do "SET GEOSERVER_DATA_DIR=c:\data\test_data_dir"
> 10) Start Jetty 9.3.3 from the installation directory with "java -jar
> start.jar"
> 11) Check from server status that data_dir is at c:\data\test_data_dir"
> 
> Now Geoserver 2.8 is running on Jetty 9.3.3 and it is using the data_dir
> that I pointed it to use. Everything seems to work in the user interface
> and for the services but I have not tested very much yet because I reacted
> to your mail that you sent 50 minutes ago.
> 
> -Jukka Rahkonen-

Thank's Jukka for your work.

BUT: I'm running jetty9 in a working environment on Ubuntu - not Windows.

step5 is interesting: Copy directory "geoserver" from the webapps of default
2.8 installation into webapps of Jetty 9.3.3 

i only copied geoserver.war as written in the geoserver documentation. 

Now i did was you told me and got

java.lang.RuntimeException: java.io.FileNotFoundException:
/opt/jetty/jetty9/webapps/geoserver/data/logs/geoserver.log (Datei oder
Verzeichnis nicht gefunden) at
org.geoserver.web.admin.LogPage$2$1.respond(LogPage.java:130) at
org.apache.wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequestCycleProcessor.java:105)
at
org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1258)
at org.apache.wicket.RequestCycle.step(RequestCycle.java:1329) at
org.apache.wicket.RequestCycle.steps(RequestCycle.java:1436) at
org.apache.wicket.RequestCycle.request(RequestCycle.java:545) at
org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:484) at
org.apache.wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:138)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:687) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:790) at
org.springframework.web.servlet.mvc.ServletWrappingController.handleRequestInternal(ServletWrappingController.java:159)
at
org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
at
org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
at
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:923)
at
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:852)
at
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882)
at
org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:778)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:687) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:790) at
org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:808) at
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1669)
at
org.geoserver.filters.ThreadLocalsCleanupFilter.doFilter(ThreadLocalsCleanupFilter.java:28)
at
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
at
org.geoserver.filters.SpringDelegatingFilter$Chain.doFilter(SpringDelegatingFilter.java:75)
at org.geoserver.wms.animate.AnimatorFilter.doFilter(AnimatorFilter.java:71)
at
org.geoserver.filters.SpringDelegatingFilter$Chain.doFilter(SpringDelegatingFilter.java:71)
at
org.geoserver.filters.SpringDelegatingFilter.doFilter(SpringDelegatingFilter.java:46)
at
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
at
org.geoserver.platform.AdvancedDispatchFilter.doFilter(AdvancedDispatchFilter.java:50)
at
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:311)
at
org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:69)
at
org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:116)
at
org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83)
at
org.geoserver.security.filter.GeoServerCompositeFilter$NestedFilterChain.doFilter(GeoServerCompositeFilter.java:73)
at
org.geoserver.security.filter.GeoServerCompositeFilter.doFilter(GeoServerCompositeFilte

Re: [Geoserver-devel] Update Jetty, how could I help?

2015-10-14 Thread walter.nordmann
Rahkonen Jukka (MML) wrote
> Hi,
> 
> Geoserver 2.8 seems to run on Jetty 9.3.3 on Windows as I wrote earlier
> today http://sourceforge.net/p/geoserver/mailman/message/34538787/.
> 
> I wonder what should be done for updating the Jetty version that is
> included in the official releases. The start scripts need editing but is
> there anything else? If that is something relatively simple I can try if I
> could make an updated zip installer with Jetty 9.3.3 if it is a good
> version to use.

Hi Jukka, Hi all,

i think i got it, of course with your help.

After doing what you told me (copy geoserver directory to webapps) *i have a
WEB-INF/web.xml which i can modfy* as written here:



I did that and everything is fine :)

Thank's again to you and the other helpers.

btw: the embedded jetty is some version 6 i think. 4 or more years old. And
i wanted to use my running jetty 9.3 instead of this old version. But never
planned to change the embedded version. I'm not a jetty developer, i'm happy
when it's running out of the box. 

Regards
walter



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Update-Jetty-how-could-I-help-tp5230045p5230190.html
Sent from the GeoServer - Dev mailing list archive at Nabble.com.

--
___
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel