tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ward Vandewege <w...@pong.be>
Subject Re: include for server.xml
Date Mon, 03 Feb 2003 19:44:17 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sun, Feb 02, 2003 at 07:55:54PM -0500, Jeanfrancois Arcand wrote:
> Try this:
> <!DOCTYPE blablabla [
> 
> <!ENTITY coyoteConnector SYSTEM "http://your_configuration.xml">
> 
> ]>

Excellent, that works!

> and then reference it using &

Yep, I'd figured that out (helpful error message :)

Thanks Jeanfrancois!

Bye for now,
Ward.

> 
> -- Jeanfrancois
> 
> Ward Vandewege wrote:
> 
> >-----BEGIN PGP SIGNED MESSAGE-----
> >Hash: SHA1
> >
> >Hey thanks for that. Unfortunately, the Xerces doesn't seem to like the 
> >first
> >line:
> >
> > 
> >
> >><!ENTITY coyoteConnector SYSTEM "http://your_configuration.xml">
> >>   
> >>
> >
> >Feb 2, 2003 11:22:56 PM org.apache.commons.digester.Digester fatalError
> >SEVERE: Parse Fatal Error at line 1 column 3: The markup in the document
> >preceding the root element must be well-formed.
> >org.xml.sax.SAXParseException: The markup in the document preceding the 
> >root
> >element must be well-formed.
> >       at
> >org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:232)
> >       at
> >org.apache.xerces.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:213)
> >       at
> >org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:375)
> >       at
> >org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:305)
> >       at
> >org.apache.xerces.impl.XMLScanner.reportFatalError(XMLScanner.java:1269)
> >       at
> >org.apache.xerces.impl.XMLDocumentScannerImpl$PrologDispatcher.dispatch(XMLDocumentScannerImpl.java:681)
> >       at
> >org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:329)
> >       at
> >org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:525)
> >       at
> >org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:581)
> >       at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
> >       at
> >org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1175)
> >
> >...
> >
> >Any advice?
> >
> >bfn,
> >Ward.
> >
> >
> >On Sun, Feb 02, 2003 at 04:17:13PM -0500, Jeanfrancois Arcand wrote:
> > 
> >
> >>There is no such concept associated with server.xml.But there is in XML 
> >>:-) You can define an ENTITY element at the top of your server.xml file 
> >>and reference it inside the body of the <server> element. Do something

> >>like this:
> >>
> >><!ENTITY coyoteConnector SYSTEM "http://your_configuration.xml">
> >>
> >>and then inside the <server> element:
> >>
> >><server .....>
> >>  &coyoteConnector
> >></server>
> >>
> >>-- Jeanfrancois
> >>
> >>
> >>Ward Vandewege wrote:
> >>
> >>   
> >>
> >>>-----BEGIN PGP SIGNED MESSAGE-----
> >>>Hash: SHA1
> >>>
> >>>Hi,
> >>>
> >>>I have a tomcat/apache setup with several virtual hosts. The information

> >>>for
> >>>the virtual hosts lives in a database. In the apache config file, I can 
> >>>just
> >>>use the 'Include' directive to include my automatically generated
> >>>configuration file (with all the virtual host definitions) in the 
> >>>httpd.conf.
> >>>
> >>>I've been looking all over the archives of this list, the jakarta site, 
> >>>and
> >>>google, but have not been able to locate an equivalent for use in the
> >>>server.xml file. Is there one?
> >>>
> >>>Bye for now,
> >>>Ward.
> >>>
> >>>- -- 
> >>>Pong.be         -(   "Those who do not understand Unix are condemned to 

> >>>)-
> >>>Virtual hosting -(         reinvent it, poorly." -- Henry Spencer       

> >>>)-
> >>>http://pong.be  -(                                                      

> >>>)-
> >>>GnuPG public key: http://gpg.dtype.org
> >>>-----BEGIN PGP SIGNATURE-----
> >>>Version: GnuPG v1.2.0 (GNU/Linux)
> >>>
> >>>iD8DBQE+PYaBqC3O5tzmh5wRAsKtAJ9376Ne/7o9iX/oe0YwysUtSvNukACfTt3s
> >>>JzWbEwo6Y+ETChW0FEWTZec=
> >>>=a2/6
> >>>-----END PGP SIGNATURE-----
> >>>
> >>>---------------------------------------------------------------------
> >>>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> >>>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> >>>
> >>>
> >>>
> >>>
> >>>     
> >>>
> >>---------------------------------------------------------------------
> >>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> >>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> >>
> >>
> >>   
> >>
> >
> >Ward Vandewege.
> >
> >- -- 
> >Pong.be         -(     "The Linux philosophy is 'Laugh in the face of      
> >)-
> >Virtual hosting -(    danger'. Oops. Wrong One. 'Do it yourself'. Yes,     
> >)-
> >http://pong.be  -(                  that's it." -- Linus                   
> >)-
> >GnuPG public key: http://gpg.dtype.org
> >-----BEGIN PGP SIGNATURE-----
> >Version: GnuPG v1.2.0 (GNU/Linux)
> >
> >iD8DBQE+PZp4qC3O5tzmh5wRAmCpAJ9ZUO9gR0dS0iSUBWEmeNqCFz2B8ACcDG41
> >m0z78XVHHraB6WcMc3tgkPU=
> >=Q/4J
> >-----END PGP SIGNATURE-----
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> >For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> >
> >
> > 
> >

- -- 
Pong.be         -(   Linux: Your Brain  -  Windows: Your brain on drugs    )-
Virtual hosting -(                                                         )-
http://pong.be  -(                                                         )-
GnuPG public key: http://gpg.dtype.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.0 (GNU/Linux)

iD8DBQE+PsaRqC3O5tzmh5wRAk2cAJ9ih16Yctc2iCrneAmjO/6x5dZZWwCeLVW4
7fAa7H7eySooCZw3fEu1Lno=
=bNq3
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message