mburbidg
May 22nd, 2008, 07:39 PM
The documentation says:
In addition to the Catalina artifacts, the repository contains also a Tomcat activator (that works with both 5.5.x and 6.0.x versions) named catalina.osgi.start. The activator understands Tomcat XML configuration and contains a default, minimal setup that starts the server on localhost, port 8080. This behaviour can be customized by placing the desired configuration (which will override the default one) under conf/server.xml location (following the Tomcat folder layout) in a fragment attached to the Tomcat activator.
By this I would assume that I could provide my own default-server.xml in a fragment associated with the startup bundle. But this appendix also states concerning fragments:
A fragment cannot have its own class loader nor a bundle activator and cannot override the information already present in the host. In short, through fragments, bundles can be extender with resources, classes and even manifest entries.
By this I would assume that I can't provide an alternate version of either default-server.xml or embedded-server-defaults.properties.
I can't find any description on the tomcat website about the default-server.xml file. Is it read if there is not a server.xml file and so the way I override it is with a server.xml file? Similarly with the embedded-server-defaults.properties file.
Thanks,
Michael-
In addition to the Catalina artifacts, the repository contains also a Tomcat activator (that works with both 5.5.x and 6.0.x versions) named catalina.osgi.start. The activator understands Tomcat XML configuration and contains a default, minimal setup that starts the server on localhost, port 8080. This behaviour can be customized by placing the desired configuration (which will override the default one) under conf/server.xml location (following the Tomcat folder layout) in a fragment attached to the Tomcat activator.
By this I would assume that I could provide my own default-server.xml in a fragment associated with the startup bundle. But this appendix also states concerning fragments:
A fragment cannot have its own class loader nor a bundle activator and cannot override the information already present in the host. In short, through fragments, bundles can be extender with resources, classes and even manifest entries.
By this I would assume that I can't provide an alternate version of either default-server.xml or embedded-server-defaults.properties.
I can't find any description on the tomcat website about the default-server.xml file. Is it read if there is not a server.xml file and so the way I override it is with a server.xml file? Similarly with the embedded-server-defaults.properties file.
Thanks,
Michael-