Implement a web administration configuration tool for geoserver.

Description

To lead to wider acceptance of GeoServer we need to make configuration of the server a lot easier. Ideally we can abstract everything away from the xml files and have a nice web based graphical user interface. That way users can get started right away, and don't have to learn all sorts of syntax and tools to get up and running. Combined with the built-in tomcat server this will provide a very powerful out of box wfs solution.

Environment

None

Activity

Show:
codehaus
April 10, 2015, 4:37 PM

CodeHaus Comment From: cholmes - Time: Wed, 10 Dec 2003 15:51:16 -0600
---------------------
<p>IRC chat discussion on this issue from Dec 9, 2003</p>

<p>&lt;cholmes&gt; Shall we get started?

&lt;jgarnett&gt; I suppose we shall

&lt;cholmes&gt; Did everyone read Jody's email to geoserver-devel?

&lt;jgarnett&gt; My email did not really answer cameron's question: namely provide a straw man

&lt;CameronShorter&gt; Thanks Jody, it is a good start.

&lt;jgarnett&gt; Did I completely miss anything chris?

&lt;cholmes&gt; Um featureTypeConfig?

&lt;jgarnett&gt; I think I put that under CatalogConfig (I got a bit lost)

&lt;CameronShorter&gt; Jody, are you planning to provide a front end to the database? Ie, provide a form that allows a user to define what features the WFS will support.

&lt;jgarnett&gt; I am not sure what I am planning <img class="emoticon" src="https://jira.codehaus.org/images/icons/emoticons/smile.gif" height="16" width="16" align="absmiddle" alt="" border="0"/> That is why I wanted to have this little meeting

&lt;jgarnett&gt; I think what is actually wanted is to let GeoServer be useable by mere mortals

&lt;CameronShorter&gt; I think one of the biggest barriers to setting up Geoserver is installing PostGIS.

&lt;jgarnett&gt; Chris? What did you want to acomplish?

&lt;groldan&gt; I think one thing is if geotools' datastore is introspective enough to build a datastore configuration UI

&lt;CameronShorter&gt; I'd like to see some hosting bodies setting up PostGIS and your config web pages, then allow users to build their own WFS data structure.

&lt;cholmes&gt; I'd like to get on the same page of what should happen with config.

&lt;groldan&gt; actually we have mandatory and optional parameters with their types, It should be enough

&lt;jgarnett&gt; You will fogive me: I am slow today...

&lt;cholmes&gt; I just wrote a 'recipe' for the wfs cookbook, and it hit on a few things that could certainly be made easier.

&lt;jgarnett&gt; cameron: I am sure you are right, does shapefile support help take away the Postgis hurdle?

&lt;jgarnett&gt; groldan: that is a great idea

&lt;CameronShorter&gt; Jody, yes. Although I have not tried to set it up.

&lt;cholmes&gt; Yeah, I don't think there's much we can do to make the actual installation of postgis easier. But we can support a number of data formats, so that people who already have stuff set up can easily get started.

&lt;jgarnett&gt; I would love to have the GeoServer distribution work right of the box with toy shapefiles to get people going

&lt;cholmes&gt; With geoserver 1.0.* a shapefile is included and works out of box.

&lt;CameronShorter&gt; However my original point is still valid, I'd like a user to be able to entirely configure and maintain a WFS through a web page.

&lt;CameronShorter&gt; Chris, great.

&lt;cholmes&gt; But yes, exactly as cameron says, you still need ant, so we need a way to just configure on a web page.

&lt;jgarnett&gt; I did not understand the last bit, why do we need ant?

&lt;CameronShorter&gt; Chris, does your out of the box solution provide transaction support?

&lt;cholmes&gt; Because right now 'out of box' means acquire ant, run each time you change the config, and move the war over to your container.

&lt;cholmes&gt; Shapefile in 1.0.* does not support transactions, so no. I think it might work with 1.1, but I haven't tested.

&lt;cholmes&gt; But it's really <em>much</em> better to use a database.

&lt;CameronShorter&gt; ok

&lt;jgarnett&gt; That is a good point about ant being used to generate the war. Is there a better place to store our configuration files?

&lt;CameronShorter&gt; Out of box is great for finding new users. They run out of box. See it works, then are prepared to spend more time configuring the database.

&lt;cholmes&gt; Yeah, we have the built-in tomcat, which makes it so users do not even have to find and install a servlet container.

&lt;cholmes&gt; Ok, so at a minimum, from a users perspective, I feel there's a few things we need:

&lt;groldan&gt; I think a geoserver release would come with a client too, one that works with the sample data and have hints to customize it

&lt;cholmes&gt; *webpage to configure the global config options.

&lt;cholmes&gt; *webpage to add new featureTypes

&lt;cholmes&gt; *webpage to add new datastores.

&lt;cholmes&gt; *automatic generation of schemas from the geotools featureTypes

&lt;cholmes&gt; *automatic generation of the latLonBoundingBox.

&lt;groldan&gt; and a client to work with. I don't know anything about the status of geoclient, but something like that should come with the release, just as esri people do, but not so frustrating javascript code

&lt;cholmes&gt; *a simple and easy way to save the configuration files.

&lt;cholmes&gt; Yeah, I agree a good client would be really nice.

&lt;cholmes&gt; But I feel like it's a fairly involved project.

&lt;CameronShorter&gt; Groldan, we are working on a WFS client at <a href="http://mapbuilder.sf.net" class="external-link" rel="nofollow">http://mapbuilder.sf.net</a> (the people from geocleint are on this project). But we don't have something ready to deliver yet.

&lt;groldan&gt; yeah, it is <img class="emoticon" src="https://jira.codehaus.org/images/icons/emoticons/sad.gif" height="16" width="16" align="absmiddle" alt="" border="0"/>

&lt;CameronShorter&gt; Feel free to join us if you want. <img class="emoticon" src="https://jira.codehaus.org/images/icons/emoticons/smile.gif" height="16" width="16" align="absmiddle" alt="" border="0"/>

&lt;CameronShorter&gt; Chris, that is a good list.

&lt;CameronShorter&gt; What is a datasource?

&lt;groldan&gt; cool, unfortunatelly I'm working in a SVG client but it's not conformant, since I have a middleware webapp between it and geoserver

&lt;cholmes&gt; What language are you guys coding in? And how often does anyone actually code?

&lt;groldan&gt; but it can be modified a bit...

&lt;groldan&gt; great, I'll take a look

&lt;CameronShorter&gt; Groldan, we also have a SVG client, (in bits and pieces). It would be good if you could join the list and discus your product with the authors of our SVG client.

&lt;jgarnett&gt; So chris did we miss anything in your list? Any reason a user would have to look at an XML config file if we hit everything on your list?

&lt;groldan&gt; that will be great Cameron. Unfortunatelly again, I'll can't until middle january, due to a mad deadline

&lt;CameronShorter&gt; Chris: JSP, XML, XSL, java, a little struts ... (but I won't have time to work on geoserver). I'm happy to consult with design if you like.

&lt;cholmes&gt; I don't believe so. Well I guess there's also WMS config and validation config.

&lt;jgarnett&gt; Question I saw some SVG code in GeoServer. Is that ready to go or did it need the middleware webapp?

&lt;cholmes&gt; Ok, I might be interested in awhile...I'll get in touch when I need a design overview.

&lt;groldan&gt; about WMS config, it should be interesting if we can create styles...

&lt;groldan&gt; no it don't need it

&lt;jgarnett&gt; Styles is a whole lot of fun <img class="emoticon" src="https://jira.codehaus.org/images/icons/emoticons/sad.gif" height="16" width="16" align="absmiddle" alt="" border="0"/>

&lt;groldan&gt; the problem is that the SVG encoder does not parses styles yet

&lt;CameronShorter&gt; Jody, I think it is ready to go, but I think it has extensions to the WFS protocol.

&lt;cholmes&gt; Yeah, I was just of that. Probably outside the scope for this config iteration, but should plan for it.

&lt;groldan&gt; but it's a lot faster <img class="emoticon" src="https://jira.codehaus.org/images/icons/emoticons/smile.gif" height="16" width="16" align="absmiddle" alt="" border="0"/>

&lt;cholmes&gt; (I was just thinking of that)

&lt;jgarnett&gt; I was hoping to use it to provide some visual feed back when setting up the validation configuration

&lt;CameronShorter&gt; You might want to look at: <a href="http://www.gworks.ca/geoclientx/" class="external-link" rel="nofollow">http://www.gworks.ca/geoclientx/</a> (It is a HTML version of the SVG client)

&lt;cholmes&gt; Another nice thing to have in config would be to visualize the data, Jody I think you were talking about this for validation stuff. But basically be able to see the data with the wms easily.

&lt;groldan&gt; currently I'm using that SVG encoder to get SVG streamed content to my client, but since the styles are already declared as CSS in the client itself, I had no time to improve the encoder styling

&lt;CameronShorter&gt; Chris, that would be good, but I suggest the visualisation wait until version 2.

&lt;groldan&gt; the extensions to the WMS protocol I have introduced for the SVG encoder are for getting attribute data and reducing the content size to the minimun possible

&lt;jgarnett&gt; Sorry I don't think I can wait on that one <img class="emoticon" src="https://jira.codehaus.org/images/icons/emoticons/sad.gif" height="16" width="16" align="absmiddle" alt="" border="0"/>

&lt;CameronShorter&gt; Hopefully you should be able to use some of our work from mapbuilder.

&lt;groldan&gt; but you can use it without them

&lt;jgarnett&gt; I am suppose to deiliver "a visual configuration tool" for the validation stuff. My alternative is to make a JUMP plug-in...

&lt;CameronShorter&gt; Groldan, can you please email me so I can contact you afer IRC: cameron At shorter.net

&lt;groldan&gt; ok, no problem

&lt;CameronShorter&gt; Yes, extensions to jump is a good idea.

&lt;cholmes&gt; I don't think it should be too difficult Jody, you'll just have to figure out what wms request to use.

&lt;cholmes&gt; So that's about what we need from a users perspective.

&lt;cholmes&gt; From a developers perspective I think we need to seperate things out a bit more.

&lt;jgarnett&gt; Shall we talk code for a bit then? Does anyone have recent STRUTS experience?

&lt;cholmes&gt; Would be nice if we could do some of the things Simon Rass was talking about, making interfaces that can be implemeted, so that config could be stored in a database instead of xml files, for example.

&lt;jgarnett&gt; +1 for seperating things out

&lt;CameronShorter&gt; About 18 months old for me.

&lt;cholmes&gt; I looked at struts a bit, and if none of us know it I don't see a real compelling reason to use it.

&lt;CameronShorter&gt; Jody, I think STRUTS would be a good tool to use for this.

&lt;cholmes&gt; Cameron, why?

&lt;CameronShorter&gt; Struts allows you to build WIDGETS for a HTML display.

&lt;jgarnett&gt; I am sure it would be, just worried about ramp up time. Struts has a good MVC separation. Does a lot of the book keeping and so on.

&lt;CameronShorter&gt; Each widget is a module of JSP code.

&lt;CameronShorter&gt; You then have a main page which pulls in all the widgets.

&lt;cholmes&gt; The other issue of STRUTS is that it's apache licensed, which is incompatible with the GPL

&lt;jgarnett&gt; I think we would just be using struts, not extending it. Which should be fine with GPL?

&lt;cholmes&gt; If it was really important we could maybe change GeoServer's license, but I don't know that just using struts is a good enough reason.

&lt;cholmes&gt; I think you have to still say 'powered by apache'.

&lt;cholmes&gt; The gpl apache incompatability is really lame.

&lt;CameronShorter&gt; If you only have one main page that you plan to design, then STRUTS will provide little benefit.

&lt;cholmes&gt; But it's basically that with the gpl you have to pass the code on, but the having the 'powered by apache' is somehow incompatible.

&lt;CameronShorter&gt; Also, STRUTS is good for reusing widgets - so if you don't plan to reuse widgets in other projects, then again no need for STRUTS.

&lt;CameronShorter&gt; If you want to go with STRUTS it would be worth contacting the authors and asking for a GPL licence. They may give it to you.

&lt;CameronShorter&gt; I've got to go in a minute. Any questions for me before I go?

&lt;jgarnett&gt; Even just working through chris's list we should have half a dozen screens. When I get into validation I would certaintly appricate the reuse struts would provide

&lt;cholmes&gt; Yeah, how long do you think it takes to 'ramp up' with STRUTS?

&lt;cholmes&gt; I mean, neither Jody nor I know struts at all, how many days would we need to spend learning it to be able to work with it?

&lt;jgarnett&gt; It took me a couple days last time chris, but I had a already working project to help out, so it was not too bad

&lt;cholmes&gt; Oh, you do know struts? I thought you didn't.

&lt;CameronShorter&gt; Yes, a few days trawling the docs, to a week.

&lt;CameronShorter&gt; (I'm guessing).

&lt;jgarnett&gt; I do know a little struts, but not recent. I am going to go buy a book if that is what we decide to use.

&lt;cholmes&gt; Yeah, I guess I could do the same.

&lt;TheSteveMonkey&gt; look at spring

&lt;TheSteveMonkey&gt; I do lots of struts

&lt;cholmes&gt; At spring?

&lt;jgarnett&gt; I am just wondering if struts, and a detailed design is over kill for what we want to acomplish?

&lt;CameronShorter&gt; We were very impressed with STRUTS after using it at Social Change. Primarilly for it's reuse capabilities.

&lt;TheSteveMonkey&gt; I love struts but if you want to repurpose to an applet or something then you got problem,s

&lt;TheSteveMonkey&gt; spring is another framework or webwork which are both supposed to be more portable

&lt;TheSteveMonkey&gt; Are you using forms?

&lt;jgarnett&gt; We have not got that far yet <img class="emoticon" src="https://jira.codehaus.org/images/icons/emoticons/smile.gif" height="16" width="16" align="absmiddle" alt="" border="0"/>

&lt;CameronShorter&gt; You won't add much value to your first project using STRUTS, but future projects are much easier because you cut and paste widets into pages.

&lt;TheSteveMonkey&gt; And it makes working with webforms a breeze

&lt;jgarnett&gt; I am going to be very temped to give struts/spring a miss and just BFI for the first cut

&lt;jgarnett&gt; BFI - brute force and ignorance

&lt;TheSteveMonkey&gt; I am sorry I missed the earlier convo

&lt;TheSteveMonkey&gt; what are we trying to do

&lt;jgarnett&gt; We are trying to place a user interface ontop of GeoServer

&lt;jgarnett&gt; Allowing web based adminstration/setup rather than hand editing xml files

&lt;TheSteveMonkey&gt; its all about struts then

&lt;TheSteveMonkey&gt; the tomcat manager appilcation was built in struts

&lt;cholmes&gt; How do you run the tomcat manager? I've never tried it out.

&lt;TheSteveMonkey&gt; you turn it on in the server.xml file. Look at the doco

&lt;TheSteveMonkey&gt; its in there

&lt;jgarnett&gt; So chris why don't we look into GPL / struts conflict. If there is a conflict we can just use BFI

&lt;TheSteveMonkey&gt; sorry not the manager

&lt;cholmes&gt; Ok, I think it might actually work out ok. I'll talk to Rob and see what he says. We actually already do have some apache stuff in GeoServer, but it's just not advertised or obvious (in zserver module)

&lt;TheSteveMonkey&gt; here we go <a href="http://www.onjava.com/pub/a/onjava/2003/06/25/tomcat_tips.html" class="external-link" rel="nofollow">http://www.onjava.com/pub/a/onjava/2003/06/25/tomcat_tips.html</a>

&lt;cholmes&gt; Cool. Thanks, I'll check it out.

&lt;TheSteveMonkey&gt; np and let me know if you want to talk Struts

&lt;TheSteveMonkey&gt; are we going to be talking do a DB at all or just a web interface to some underlying daemon

&lt;jgarnett&gt; I am a bit confused .. what do you mean?

&lt;TheSteveMonkey&gt; what will the web interface be talking to?

&lt;TheSteveMonkey&gt; a servlet acting like a daemon

&lt;jgarnett&gt; A j2ee application</p>
<ul>
<li>TheSteveMonkey trys to find the thread in teh irc logs

&lt;jgarnett&gt; "GeoServer": a Web Map Server/ Web Feature Server hybrid

&lt;jgarnett&gt; chris shall we talk about break apart the Config classes? I don't think we can use them as they now stand

&lt;cholmes&gt; Sure.

&lt;TheSteveMonkey&gt; so the web interface is for making request to the server or is it for changing settings for the servers

&lt;cholmes&gt; Changing the settings.

&lt;TheSteveMonkey&gt; so it needs to change the settings and restart the webapp

&lt;cholmes&gt; (though it may be useful to also make some requests)</li>
<li>jmacgill wakes up

&lt;cholmes&gt; Yes, it needs to be able to do that.

&lt;TheSteveMonkey&gt; where are the settings for the server stored, xml file, DB, flat text file...

&lt;jmacgill&gt; so changes would be persisted by changing the xml config files?

&lt;cholmes&gt; Right now xml file.

&lt;jmacgill&gt; (hi all btw, just passing)

&lt;TheSteveMonkey&gt; k

&lt;cholmes&gt; Yes James. Though it would be nice if we could have interfaces for implementors to persist in other ways.

&lt;cholmes&gt; At least one of our users was interested in that, at least.

&lt;cholmes&gt; If it's not too difficult to do it might be worthwhile, so that geoserver could more easily be integrated into other gis systems.

&lt;-- TheSteveMonkey has quit (Read error: 104 (Connection reset by peer))

&lt;cholmes&gt; Eventually it might be nice to roll in a number of the config stuff into the concept of a geotools Catalog, that could handle the persistance, and manage the connections to the various datastores, as well as their meta information.

--&gt; TheSteveMonkey (~Steve0@yesh.stat.yale.edu) has joined #geotools

&lt;jgarnett&gt; I actually think a lot of the metadata information could be stored by ArcSDE for the ArcSDE DataStore....

&lt;CameronShorter&gt; Can someone please collect logs. (I've got to go now). Bye.

&lt;-- CameronShorter has quit ("Client exiting")

&lt;jgarnett&gt; Thanks cameron

&lt;groldan&gt; bye

&lt;cholmes&gt; So it would be nice if we had a way for datastores to provide more meta information?

&lt;TheSteveMonkey&gt; sorry, I got dropped

&lt;groldan&gt; yeah, I think so jgarnett, but have no worked with it, although I have seen some classes in the esri's SDE java api

&lt;cholmes&gt; It's ok, you didn't miss much, just that it might be nice to roll some of the config that geoserver does into geotools.

&lt;groldan&gt; at leas for feature type metadata, yes

&lt;jgarnett&gt; Well lets go for broke. Lets take over the geotools2 Catalog api and make it our "pure" data model. We can have our Config file read in the XML to populate the model.

&lt;jgarnett&gt; Should at least take care of CatalogConfig, FeatureTypeConfig, and Namespace

&lt;groldan&gt; as shapefiles could come with xml metadata files,SDE with db backed metadata, etc. PostGis would can implement it too

&lt;cholmes&gt; Yeah, I was thinking along the same lines. Have the Catalog be an interface, and implementations will be able to persist themselves according to the implementation.

&lt;cholmes&gt; So we'll start out with geoserver structure of xml files, but others can be implemented as well.

&lt;jgarnett&gt; The main thing that worried me was the use of singletons

&lt;jgarnett&gt; Would be hard to try out your configuration before making it live

&lt;groldan&gt; I was thinking the same

&lt;cholmes&gt; How so? How would you try out your configuration before making it live?

&lt;groldan&gt; since for changing config you should use a memento, until changes got applied

&lt;jgarnett&gt; All sorts of classes "cache" the server config as a local member...

&lt;cholmes&gt; Ok, I'm not tied to singletons...

&lt;jgarnett&gt; Is there anyway we can make the WFS/WMS request/response classes thake configuration as a parameter?

&lt;groldan&gt; actually, I think the correct think should be having the config hierarchy parent as an application variable rather than a singleton...

&lt;jgarnett&gt; Afraid I am not being very articulate today: what I am really after is a way to let the user try out their configuration before hitting the big save button and inflicting it on everyone

&lt;cholmes&gt; Oh, ok, I see.

&lt;groldan&gt; by that way, you'll be able to have more than one geoserver instance sharing jars

&lt;jgarnett&gt; Similar situtations arise when people ask to have security issues addressed by a wms/wfs. Out of scope for us <img class="emoticon" src="https://jira.codehaus.org/images/icons/emoticons/smile.gif" height="16" width="16" align="absmiddle" alt="" border="0"/>

&lt;jgarnett&gt; does "Application Variable" mean something in j2ee land that I am not picking up on?

&lt;groldan&gt; it's just a variable accesible for the whole webapp context

&lt;groldan&gt; throw Servlet.getServletContext().getAttribute(name)

&lt;groldan&gt; (or something like that)

&lt;jgarnett&gt; thanks: I hate designing when I don't know the field that well

&lt;groldan&gt; like in jsps, you have page, request, session and application scopes for holding objects

&lt;cholmes&gt; We should see how the tomcat manager handles the issue of 'the big save button', if they do at all...

&lt;jgarnett&gt; Good call chris: stealing a working design, always a great idea

&lt;jgarnett&gt; Okay so we are making a few decisions here:

&lt;TheSteveMonkey&gt; you might want to look at oscache for reloading things stored in different contexts in a nice manner

&lt;jgarnett&gt; - we do need to separate out configuration

&lt;jgarnett&gt; - application variables rather than singleton

&lt;cholmes&gt; Thanks TheSteveMonkey, I'll look into it.

&lt;TheSteveMonkey&gt; k

&lt;TheSteveMonkey&gt; I am just happy there is finally a way for me to help out with geotools

&lt;groldan&gt; by that way, hitting the big save button should be a matter of changing that reference, if you're working with a copy of the config object

&lt;groldan&gt; say, you start the changing config session, stores a clone of the current config in session scope rather than in application scope, make changes on the copy, and changes the app reference...

&lt;groldan&gt; (and the lot of things I'm sure I'm missing...)

&lt;groldan&gt; the only problem I can figure out right now is about DB connections.. should we duplicate them when making the config's clone?

&lt;groldan&gt; I don't think so although...

&lt;jgarnett&gt; I don't think we can duplicate the DB connections <img class="emoticon" src="https://jira.codehaus.org/images/icons/emoticons/smile.gif" height="16" width="16" align="absmiddle" alt="" border="0"/> The DataStore's tend to save locking tables and other fun things <img class="emoticon" src="https://jira.codehaus.org/images/icons/emoticons/smile.gif" height="16" width="16" align="absmiddle" alt="" border="0"/>

&lt;groldan&gt; it's work for the connection pool, not for the config stuff..

&lt;groldan&gt; exactly..

&lt;groldan&gt; are that info stored in a per connection basis?

&lt;jgarnett&gt; Question: when changing configuration are we going to have a level saftey? Or will we be changing the live configuration that everyone is using?

&lt;groldan&gt; I thought we were talking of a safe way...

&lt;jgarnett&gt; DataStore keeps a connection Pool and whatever other info is needed (in memoryfeature lock table)

&lt;jgarnett&gt; Okay so we are going to try and set up a safe way?

&lt;cholmes&gt; Do we need to set that up right away? Perhaps that might be something to do if you have time to get to it.

&lt;groldan&gt; ok I see, just that I thought locking info was stores just in the DB itself (for postgis). Is that like some kind of inprocess locking?

&lt;groldan&gt; (excuse my ignorance)

&lt;jgarnett&gt; groldan: yes it is <img class="emoticon" src="https://jira.codehaus.org/images/icons/emoticons/sad.gif" height="16" width="16" align="absmiddle" alt="" border="0"/>

&lt;jgarnett&gt; chris: I am trying to figure out what we need to set up right away

&lt;cholmes&gt; Yeah, I don't know enough to say, I've never attempted anything like it.

&lt;jgarnett&gt; I agree chris, we both have not attempted something like this

&lt;cholmes&gt; Well, in that case let's just atart with the basics, what we need right away, and iterate from there.

&lt;TheSteveMonkey&gt; seems awfully ambitios to allow for a "temp" configuration

&lt;cholmes&gt; So I'd say leave out the safty level out for now, as I don't see it being very necessary.

&lt;jgarnett&gt; Well should we cut that out then?

&lt;jgarnett&gt; If we are always working against the live configuration we can even leave the singleton issue alone

&lt;cholmes&gt; If users start clamoring for it we can put it in. But honestly I think people are going to be pretty psyched with <em>any</em> sort of config.

&lt;TheSteveMonkey&gt; I would think you would want to show that you coudl get teh web forms to actually change things and restart teh server first

&lt;jgarnett&gt; Do we need to restart the server?

&lt;TheSteveMonkey&gt; sorry the webapp

&lt;jgarnett&gt; I was thinking we would be changing the configuration of the web app, and then when we were happy we would ask it to save it's configuration out as xml files

&lt;jgarnett&gt; thoughts?

&lt;TheSteveMonkey&gt; I would start by just changing the config and getting the changes to apply

&lt;TheSteveMonkey&gt; once that works you can export the congfig to xml

&lt;groldan&gt; I agree... may be just to be sure things work, writing first, then firing the config reading process again...

&lt;groldan&gt; I mean, to be sue the next time the webapp starts, things are as you expect

&lt;groldan&gt; (sue --&gt; sure)

&lt;TheSteveMonkey&gt; k

&lt;cholmes&gt; So it would more or less be persisting with every change then?

&lt;groldan&gt; anyway, throwing a friendly exception if a user makes a request while the startup process is not finished is in my wish list.

&lt;cholmes&gt; groldan, what servlet container do you use?

&lt;jgarnett&gt; I don't think so chris, persist when they hit a big save button

&lt;groldan&gt; I think jody means, persistent for the current instance, really persistent whe you press SAVE

&lt;groldan&gt; (tomcat and websphere)

&lt;cholmes&gt; In tomcat I've never really encountered exceptions if the user makes a request during start up.

&lt;groldan&gt; but not used geoserver under websphere due to JDK 1.3

&lt;cholmes&gt; Unless the server is not set up right.

&lt;jgarnett&gt; I was thinking about a big save button that was going to write out the xml files

&lt;cholmes&gt; For me it the request just takes longer, waits until the start up is done.

&lt;groldan&gt; actually I get a servlet exception if I make a request while still setting up datastores, for example.

&lt;groldan&gt; we have no a flag or something that tells if the confing is done (I think)

&lt;cholmes&gt; Interesting. I'm not against it, I've just never really seen it so it's not really on my wish list (and thus not on my todo list either <img class="emoticon" src="https://jira.codehaus.org/images/icons/emoticons/wink.gif" height="16" width="16" align="absmiddle" alt="" border="0"/>

&lt;TheSteveMonkey&gt; struts has ways of mapping exceptions to different pages

&lt;groldan&gt; can you set the content-type by that way too?

&lt;TheSteveMonkey&gt; meaning

&lt;groldan&gt; I need to set a content type of application/og.exception.blahblah (something like that)

&lt;jgarnett&gt; So the quick thing to do would be to make a user interface for global config and give these ideas a whirl. Chris can make the call about STRUTs based on GLP issues?

&lt;cholmes&gt; Yeah, go with STRUTs, we can figure out the license issues later.

&lt;TheSteveMonkey&gt; groldan, you mean different excpetions get different pages based upon the class that threw the exception

&lt;cholmes&gt; If it becomes a really big deal we can change to an apache license.

&lt;groldan&gt; more or less... it can be based on the user request. In WMS, the user can want the exceptions as images, xml, etc

&lt;cholmes&gt; Rob already had struts in since early versions of geoserver, so it should be fine. Rob if you're reading this and have issues with struts email me.

&lt;groldan&gt; wich is specified thru the EXCEPTIONS request parameter

&lt;jgarnett&gt; chris: I suppose we better start reading about struts then...

&lt;TheSteveMonkey&gt; I am not sure

&lt;TheSteveMonkey&gt; I reccomend teh husted book for in depth and teh spielman book for the 30k foot view

&lt;groldan&gt; don't worry, I have to manage it internally anyway <img class="emoticon" src="https://jira.codehaus.org/images/icons/emoticons/smile.gif" height="16" width="16" align="absmiddle" alt="" border="0"/>

&lt;jgarnett&gt; so we covered a fair bit: what we need to config, where it needs to be stored, and how we need to write it...

&lt;TheSteveMonkey&gt; I also reccomend setting up the struts example apps and using them to help you out

&lt;jgarnett&gt; Here is the hard one: what do we want it to look like?

&lt;-- jmacgill has quit (niven.freenode.net irc.freenode.net)

&lt;jgarnett&gt; As in does anyone have an user interface design ideas?

--&gt; jmacgill (~cholmes@dsl092-183-037.sfo1.dsl.speakeasy.net) has joined #geotools

&lt;TheSteveMonkey&gt; I also co-taught a short class on struts... <a href="http://ssrs.yale.edu/struts" class="external-link" rel="nofollow">http://ssrs.yale.edu/struts</a>

&lt;cholmes&gt; I'd say we should check out other server apps with web admin interfaces. tomcat and? Do we know others? Ones that people like?

&lt;groldan&gt; ArcIMS

&lt;groldan&gt; I'll send some print screens to get some ideas if you want

&lt;TheSteveMonkey&gt; the sunj2ee server has one as well...free to academics

&lt;jgarnett&gt; That would be great

&lt;jgarnett&gt; Anything to get started on.

&lt;cholmes&gt; Could be good to send an email to geoserver-devel, asking for feedback on web admin interfaces that people like.

&lt;groldan&gt; one thing: get rid of applets, or be sure they work on every JRE

&lt;cholmes&gt; I don't think applets should be used...

&lt;jgarnett&gt; I am hoping to use the wms instead...

&lt;groldan&gt; ok. A basic DHTML WMS client should be enough.

&lt;cholmes&gt; One more small issue is about automatic generation of DescribeFeatureType responses from FeatureTypes.

&lt;groldan&gt; si there any OGC spec talking about internationalization? or is just the INSPIRE people?

&lt;cholmes&gt; None of the datastores really are as rich as GML...

&lt;cholmes&gt; So all the schema files created from FeatureTypes are going to be less specific than they could be.

&lt;cholmes&gt; I'm wondering if people will have the need to make their schemas more specific...

&lt;jgarnett&gt; How much more specific to schemas get? Are we just missing out on metadata here?

&lt;groldan&gt; cholmes: how much specific they must to be?

&lt;cholmes&gt; I mean one example is minOccurs, maxOccurs, nillable.

&lt;cholmes&gt; In a GML schema you can say that an element has minOccurs=1 but is also nillable.

&lt;cholmes&gt; But postgis only has the concept of null, not of requiring it's presence.

&lt;cholmes&gt; That's kind of a bad example...

&lt;groldan&gt; I see the need for nillable, but not really for min/max occurs..., what min/max occurs mean after all?

&lt;cholmes&gt; But with an XML schema you can really limit most anything, like you could say the only possible values for the 'type' field are 'jim', 'bob', and 'alex'.

&lt;cholmes&gt; But there's no way to really say that in a database, and certainly no way in a shapefile.

&lt;cholmes&gt; min/max occurs is the number of times it can occur in the xml.

&lt;jgarnett&gt; So we still need to keep a bit of xml configuration around, the autogenerate can start us off though

&lt;cholmes&gt; More or less if minOccurs = 0 it is not mandatory, if it is 1 then it is.

&lt;cholmes&gt; Or perhaps we could just have the validation engine take care of this?

&lt;cholmes&gt; Perhaps we could autogenerate <em>with</em> the validation engine?

&lt;groldan&gt; I see, thanks

&lt;cholmes&gt; Yeah jody, that's probably the way to go.

&lt;groldan&gt; but that can't be accomplished by the mandatory attribute in the feature type config? currently we have an &lt;attributes/&gt; element...

&lt;jgarnett&gt; I did not think we were using the xml schema at the moment

&lt;jgarnett&gt; Just accepting the gml on faith

&lt;jgarnett&gt; Actually I have one more bit of biz for us to take care of, do you mind if we return to this in a second?

&lt;cholmes&gt; Yeah groldan, that's why it's a bad example. But the mandatory attribute in featureType config is definitely a hack.

&lt;jgarnett&gt; Okay the other fun thing is that we are going to keep a fairly brisk timeline, chris leaves late January, I have a deadline Jan 28th. I am thinking I better have a draft design document for us this week, which we can finalize next week.

&lt;cholmes&gt; Yeah, we aren't using the xml schema at the moment, but it would be nice to though.

&lt;cholmes&gt; Yeah, would be good to have a draft document.

&lt;jgarnett&gt; What is stopping us from using the schema chris?

&lt;groldan&gt; I yhink that's the kind of stuff a user should want to configure, chris

&lt;cholmes&gt; a gml schema reader.

&lt;jgarnett&gt; that would stop us wouldn't it

&lt;cholmes&gt; In an ideal world we have automatic generation of the initial GML schema, the user could then modify it directly, and then the GML schema reader would serve as the FeatureType, do all the validation...

&lt;jgarnett&gt; Are user's going to complain if we throw GML schema at them and ask them to make sense of it?

&lt;cholmes&gt; I mean, less so than now, right now we require <em>everyone</em> to write their own gml schema.

&lt;cholmes&gt; So we make a lot of people happier with automatic schema generation, as they probably only care enough to get things working.

&lt;jgarnett&gt; (back in a little bit)

&lt;cholmes&gt; groldan, is it getting late for you? Should we try to wrap up soon?

&lt;groldan&gt; sure, that's why i think actually the config is well addressed, you configure in a simple manner what attributes you want yo show and wich of them are mandatory, a FeatureType object is generated and maintained, and the schema generation engine can just use it...

&lt;groldan&gt; yeah chris, it is getting a bit late, and I'm going to watch ER in a few minutes <img class="emoticon" src="https://jira.codehaus.org/images/icons/emoticons/smile.gif" height="16" width="16" align="absmiddle" alt="" border="0"/>

&lt;cholmes&gt; There is one problem with that groldan right now though.

&lt;cholmes&gt; The mandatory thing doesn't work as nicely, since geotools schemas don't have the concept of mandatory.

&lt;cholmes&gt; I haven't yet implemented that functionality, because of that, and I think I may just hack it in for now.

&lt;cholmes&gt; Like by not using the FeatureType object, since it can't yet handle a 'mandatory' attribute.

&lt;groldan&gt; yeah, right... but you allways can wrap it.. (just thinking, not that I like having all wrapped)

&lt;groldan&gt; the thing if ti makes sense for the geotools api

&lt;cholmes&gt; That would be an interesting approach...I'll think about it, I need to implement it soon to pass all cite tests.

&lt;groldan&gt; if not, we must to address it at geoserver level

&lt;cholmes&gt; Yeah, it should be done somehow in geotools, I've just never really figured out a great way to address it.

&lt;cholmes&gt; Because it's really a question of the minOccurs/maxOccurs thing, as it really is minOccurs=1.

&lt;cholmes&gt; But maxOccurs should also be able to eqaul like 5.

&lt;groldan&gt; but since datastore have no way of knowing when an attribute is mandatory (may be except for fields of a primary key)

&lt;groldan&gt; may be the right place is just geoserver

&lt;cholmes&gt; I made a multiAttributeType awhile back, that you could set with different minOccurs/maxOccurs, but am not sure if we want that concept in the AttributeType api.

&lt;cholmes&gt; Yeah, that's the problem. The one option is to make 'nillable' mean mandatory, but they really are slightly different concepts.

&lt;groldan&gt; I don't understand. a maxOccurs of 5 means that the same property can occur 5 times for a single feature?

&lt;cholmes&gt; Yes.

&lt;cholmes&gt; It's xml, like if you define a person, and they can have a max of 5 'brother's.

&lt;cholmes&gt; You can also have maxOccurs='unbounded'.

&lt;groldan&gt; that not makes sense to me... I see features as tuples... and if you have nested features.. I don't know

&lt;cholmes&gt; Yeah, I agree with you, it doesn't make much sense.

&lt;cholmes&gt; Unfortunately it's in the spec...

&lt;cholmes&gt; We actually had to fight in the CITE testing/reference implementation project to not have them test all wfs's for the ability to handle it.

&lt;groldan&gt; so a maxOccurs of 1 is compliant with the spec <img class="emoticon" src="https://jira.codehaus.org/images/icons/emoticons/smile.gif" height="16" width="16" align="absmiddle" alt="" border="0"/>

&lt;groldan&gt; ok, I understand it at object concept level

&lt;cholmes&gt; The compromise was that there's this extra button you can click on the test engine to test 'complex features', including one with maxOccurs=3.

&lt;groldan&gt; just that I don't see it in our datastores

&lt;cholmes&gt; Yeah, the thing everyone does is just have maxOccurs as one.

&lt;cholmes&gt; Well, in theory you can have a one to many mapping in a database.

&lt;groldan&gt; but in that case I have the relational field in my featuretype, not the pointed values...

&lt;cholmes&gt; So that a column refers to table that lists as many rows as you'd like.

&lt;groldan&gt; (I repeat, I understand it conceptually)

&lt;groldan&gt; but are you going to update the related table as well?

&lt;cholmes&gt; Yeah, we're on the same page. I agree, it's lame, I don't want to support it, but it is there.

&lt;cholmes&gt; In theory yes. But we compromised out of supporting it, so unless someone really wants to pay us to support complex features we're not going to do it.

&lt;groldan&gt; may be I'm just very tied to relational databases... (and simplicity)

&lt;cholmes&gt; Yeah, it was all Galdos who wanted this, and they basically just wanted to show off how cool gml could be.

&lt;groldan&gt; any experience with object oriented backends?

&lt;cholmes&gt; No, none at all.

&lt;cholmes&gt; You should get going, it is getting quite late for you. Thanks a bunch for showing up though.

&lt;groldan&gt; no problem, I'm missing working on it. may be I can be more active in a month

&lt;groldan&gt; I'll quit for my current job <img class="emoticon" src="https://jira.codehaus.org/images/icons/emoticons/smile.gif" height="16" width="16" align="absmiddle" alt="" border="0"/>

&lt;jgarnett&gt; Hey I am back!

&lt;cholmes&gt; You have any questions for groldan? I was just letting him go, as it's getting late in Spain.

&lt;jgarnett&gt; No - just thanks a lot for your help!

&lt;groldan&gt; no worries, and thank you for yours

&lt;groldan&gt; ok, since I'm already sleeping, I'll just put my body on my bed

&lt;jgarnett&gt; And we have answer my main question: what skill set do I need to hire to help me out <img class="emoticon" src="https://jira.codehaus.org/images/icons/emoticons/smile.gif" height="16" width="16" align="absmiddle" alt="" border="0"/>

&lt;jgarnett&gt; nite

&lt;cholmes&gt; What's the answer? Struts?

&lt;groldan&gt; bye (jody, I think that was some nice words, but did't understand them at all <img class="emoticon" src="https://jira.codehaus.org/images/icons/emoticons/smile.gif" height="16" width="16" align="absmiddle" alt="" border="0"/>

&lt;groldan&gt; oh, I understand now. sorry

&lt;groldan&gt; bye

&lt;-- groldan has quit ("ChatZilla 0.9.47 <span class="error">&#91;Mozilla rv:1.6b/20031117&#93;</span>")

&lt;jgarnett&gt; hi again - people have been interupting me

&lt;jgarnett&gt; Sounds like struts is highly recomended

&lt;cholmes&gt; Yeah, I'll get TOPP to buy me a book as well, so I can be of some help.

&lt;jgarnett&gt; Chris did you want to grab logs for the geoserver site, or do we not care? I at least want to save your list of what we need

&lt;cholmes&gt; Yeah, I think I"ll post the logs on geoserver site.

&lt;jgarnett&gt; and we wanted to send out an email for user interface design recomendations?

&lt;cholmes&gt; Yeah, do you want to do that?

&lt;jgarnett&gt; I will send out the email then.

&lt;jgarnett&gt; (fun trying to plan when we don't know much <img class="emoticon" src="https://jira.codehaus.org/images/icons/emoticons/smile.gif" height="16" width="16" align="absmiddle" alt="" border="0"/> )

&lt;jgarnett&gt; QUick question:

&lt;cholmes&gt; So it goes...

&lt;cholmes&gt; yeah

&lt;jgarnett&gt; has the wms branch been merged onto the head yet?

&lt;cholmes&gt; Oh yeah, I meant to answer that.

&lt;cholmes&gt; No, it hasn't.

&lt;jgarnett&gt; okay - any plans to do that?

&lt;cholmes&gt; It's on my todo list.

&lt;jgarnett&gt; okay <img class="emoticon" src="https://jira.codehaus.org/images/icons/emoticons/smile.gif" height="16" width="16" align="absmiddle" alt="" border="0"/>

&lt;cholmes&gt; I'd say hopefully by the end of this week, but I've been sliding back on a number of things I want to get done.

&lt;jgarnett&gt; Thanks for setting this up BTW

&lt;cholmes&gt; It's amazing how much random admin stuff takes up my time...I used to be able to code all day long, now I feel I'm lucky if I get 4 hours.

&lt;cholmes&gt; No problem.</li>
</ul>

codehaus
April 10, 2015, 4:37 PM

CodeHaus Comment From: dzwiers - Time: Wed, 4 Feb 2004 20:16:42 -0600
---------------------
<p>completed in 1.2.0 alpha</p>

Assignee

Unassigned

Reporter

codehaus

Triage

None

Fix versions

Affects versions

Components

Priority

Medium
Configure