You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@jakarta.apache.org by Dan Brickley <Da...@bristol.ac.uk> on 1999/07/12 03:20:21 UTC

Jakarta/Apache XML/RDF configuration file format(s)

(subject line changed accordingly)

On Sun, 11 Jul 1999, James Todd wrote:

> cool. at this time in the current tomcat dev tree there are two configuration
> files:
>     <jswdk>/webserver.xml - which superceeds the current jswdk default.cfg
[...]
>     <webApp>WEB-INF/web.xml - superceeds the WEB-INF/*property
[...]

Is the detail of the XML format finalised, or up for discussion? There
was some talk last autumn of an XML/RDF representation of Apache
configuration files. Am not sure whether this got taken further off
list, but some initial designs were floated on a W3C hosted list -- 
archived at 

http://lists.w3.org/Archives/Public/www-rdf-config/1998OctDec/thread.html#start

I know a few people have been toying with similar ideas elsewhere; there
were some proposals floated in a couple of msgs though:

http://lists.w3.org/Archives/Public/www-rdf-config/1998OctDec/0002.html
http://lists.w3.org/Archives/Public/www-rdf-config/1998OctDec/0005.html

i'd certainly be interested in converging these two strands if
possible...

Dan




--
Daniel.Brickley@bristol.ac.uk                  
Institute for Learning and Research Technology http://www.ilrt.bris.ac.uk/
University of Bristol,  Bristol BS8 1TN, UK.   phone:+44(0)117-9287096


Re: Jakarta/Apache XML/RDF configuration file format(s)

Posted by James Todd <ja...@eng.sun.com>.
James Duncan Davidson wrote:

> Cool. James Todd, can you post out a sample webserver.xml for the folks
> to take a look at and comment on? We should have that discussion in the
> tomcat-dev forum instead of here though so post there.
>

good call. i'll post what we have today to tomct-dev@jakarta.apache.org.
i posted it to general@jakarta.apache.org yesterday i believe.

- james



Re: Jakarta/Apache XML/RDF configuration file format(s)

Posted by James Duncan Davidson <du...@x180.com>.
> Is the detail of the XML format finalised, or up for discussion?

The format of the web app deployment descriptors (WEB-INF/web.xml) is
going through the spec process and isn't up for discussion here.
However, the server configuration file is certainly up for discussion.

> i'd certainly be interested in converging these two strands if
> possible...

Cool. James Todd, can you post out a sample webserver.xml for the folks
to take a look at and comment on? We should have that discussion in the
tomcat-dev forum instead of here though so post there.

-- 
James Davidson       
duncan@eng.sun.com                http://java.sun.com/products/servlet
duncan@x180.com                              http://jakarta.apache.org
!try; do()                                              PGP:0x7D776205



Re: Jakarta/Apache XML/RDF configuration file format(s)

Posted by James Todd <ja...@eng.sun.com>.
within the jakarta context this is certainly up for discussion. what i
can provide is a "here's the state of affairs with tomcat and where
the momentum is heading" perspective.

the webserver.xml is derived from the tomcat http server config
file and the underlying server code. it is pertty light-weight today
and will be a bit more documented in the upcoming jswdk-1.0 release
(that's actually what i'm wrapping up this moment).

the web.xml files are a result of the servlet 2.2 "deployment
descriptors" specification and is geared towards tracking the
j2ee tract.

thx for providing the links. i'll peruse and ramp up.

hope this helps,

- james

Dan Brickley wrote:

> (subject line changed accordingly)
>
> On Sun, 11 Jul 1999, James Todd wrote:
>
> > cool. at this time in the current tomcat dev tree there are two configuration
> > files:
> >     <jswdk>/webserver.xml - which superceeds the current jswdk default.cfg
> [...]
> >     <webApp>WEB-INF/web.xml - superceeds the WEB-INF/*property
> [...]
>
> Is the detail of the XML format finalised, or up for discussion? There
> was some talk last autumn of an XML/RDF representation of Apache
> configuration files. Am not sure whether this got taken further off
> list, but some initial designs were floated on a W3C hosted list --
> archived at
>
> http://lists.w3.org/Archives/Public/www-rdf-config/1998OctDec/thread.html#start
>
> I know a few people have been toying with similar ideas elsewhere; there
> were some proposals floated in a couple of msgs though:
>
> http://lists.w3.org/Archives/Public/www-rdf-config/1998OctDec/0002.html
> http://lists.w3.org/Archives/Public/www-rdf-config/1998OctDec/0005.html
>
> i'd certainly be interested in converging these two strands if
> possible...
>
> Dan
>
> --
> Daniel.Brickley@bristol.ac.uk
> Institute for Learning and Research Technology http://www.ilrt.bris.ac.uk/
> University of Bristol,  Bristol BS8 1TN, UK.   phone:+44(0)117-9287096
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: general-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: general-help@jakarta.apache.org


Re: Jakarta/Apache XML/RDF configuration file format(s)

Posted by Stefano Mazzocchi <st...@apache.org>.
Dan Brickley wrote:

> Is the detail of the XML format finalised, or up for discussion? There
> was some talk last autumn of an XML/RDF representation of Apache
> configuration files.

A little history might help:

During the ApacheCon '98 party at the SF Exploratorium (in October),
Eric and I talked a lot about XML and the new stuff the W3C was
creating. Eric is a very smart guy and we shared lots of ideas about how
the web was going and how we could use those new technologies to do
better things. (Some of that very early discussion made me create Cocoon
a few months later to investigate it further, but this is another
story).

We both agreed that XML was a major move forward and given its
simple-yet-powerful syntax and structure, it could really be used for
XML configurations (at that time, some of the Apache folks were not
satisfied by the three-files Apache configurations and wanted to move
forward for Apache 2.0. XML was proposed as a choice) and all a bunch of
other things.

At the same event, Daniel was showing its new Comanche and showed me how
he had some "configuration wrappers" that allowed its engine to be very
flexible and abstracted on the real configurations. (we had discussed
this privately the summer before when I was trying to start off a new
Swing-based configuration project for JServ under java.apache called
"Jack - Java Apache Configuration Kit" but went nowhere).

It was simple to associate this meta-configuation separatation model
with what the W3C was doing. So Erid, Daniel, Pierpaolo and I spent a
whole afternoon to find out the best way to do it. (Eric later set up
the mail list you were indicating). As you see, those ideas have been
around for a while and if we move Jakarta into the configurations-in-XML
world, this is something we should seriously investigate since it would
allow people (and vendors) to contribute with such configuration tools
in a very abstracted way.

Here is a simple configuration file to show what I mean:

 <server>
  <name>jakarta.apache.org</name>
  <port>80</port>
  <admin>jakarta@apache.org</admin>
 </server>

Given the configuration DTD, you might use XML tools (such as IBM Xeena)
to edit these elements in a valid way, but DTD are very limited because
they validate the XML structure and not the internal rules.

So you need to come out with something that allows a configuration tool
(might be GUI or text based) a way to present information in an
interactive way (use TextField or ComboBox, etc..) and to validate it
against some strict rules (1 < port < 64K, admin content is a valid mail
address, etc..)

If all this information is based on a common meta-configuration
definition language (Eric thought about RDF for this, but I don't know
RDF enough to express a final opinion on this), then one tool may be
used to configure every possible software that can express such RDF for
its configurations.

This is so flexible (being on different files) that old vi-style people
are not bothered by unnecessary information in their XML configuration
file, but people willing to use more coherent tools (such as Comanche)
for different software in their network. This tool might also be nicely
wrapped by SNMP logic and so on.

The key point is the separation of configurations (in XML with some DTD)
parsed by the configured software and meta-configurations (in another
XML using the RDF DTD) parsed by whatever configuration tool. An
important thing is that meta-configurations are used as "templates" for
the creation of an XML configuration and might even be used by
installers to present interactive information to the user during
installation.

For example (I'm not using RDF for this, just to show my intentions):

 <element name="port" required="true">
  <template-value>80</template-value>
  <gui type="counter">
  <comment xml:lang="en">This is the port used by the server</comment>
  <comment xml:lang="it">Questa è la porta usata dal server</comment>
  <comment xml:lang="fr">Cette est la porte utilisèe par le
serveur</comment>
 </element>
  
as you see, a configuration tool that is able to interpret this document
would be able to generate the <port> element and query the user
(depending on its language).

Unfortunately, the list is dead for some time now. But the ideas, IMO,
as still solid and useful.

P.S. Eric, Daniel, sorry to make you jump on this. For more information
about Jakarta, look at jakarta.apache.org. Send any comment to me and
I'll forward to the mail list (or you might consider to subscribe to the
list if interested)

-- 
Stefano Mazzocchi       A language that doesn't affect the way you 
                      think about programming, is not worth knowing.
<st...@apache.org>                             Alan J. Perlis
---------------------------------------------------------------------