Community
Participate
Working Groups
Build Identifier: Tomcat insists on registering a System level properties for Context.INITIAL_CONTEXT_FACTORY and Context.URL_PKG_PREFIXES. This interferes with gemini naming. Gemini Naming can't find the class specified by Context.INITIAL_CONTEXT_FACTORY (mainly because catalina bundle does not export it) and fails to create any InitialContext. Looking for a way to set "useNaming" flag to "false" in org.eclipse.gemini.web.tomcat.internal.Tomcat. Maybe with a system property? -DuseNaming=false? Reproducible: Always
Discussion from Virgo mailing list: http://dev.eclipse.org/mhonarc/lists/virgo-dev/msg00293.html
Flagging as an enhancement, especially as this will involve an externals change.
With migration to Tomcat 7 now we can introduce such switch. See TODO comment in org.eclipse.gemini.web.tomcat.internal.OsgiAwareEmbeddedTomcat.init() method.
Created attachment 199902 [details] Patch proposal Could you please review the patch and comment. Thanks Violeta
Created attachment 205335 [details] Patch proposal Change the meaning of the property from useTomcatNaming - true/false to useNaming - tomcat/osgi/disabled "tomcat" is by default if the property is not set
Comment on attachment 205335 [details] Patch proposal Looks good to me.
Change is tested, committed and pushed. Commit Id: 64696debc57e333d5adb55ae5f3ff56fc931c17f Documentation will be covered in Bug 361173
Given that both the Jetty and Tomcat distributions can be used, why not move towards OSGi as the standard property for both of those and change in a future release, instead of having tomcat as the default?
(In reply to comment #8) > Given that both the Jetty and Tomcat distributions can be used, why not move > towards OSGi as the standard property for both of those and change in a future > release, instead of having tomcat as the default? I'm not sure I understand. Gemini Web is currently tied to Tomcat. Virgo Jetty Server uses Jetty as an alternative RFC 66 (OSGi Web Applications) container to Gemini Web which is used by Virgo Tomcat Server. So there is no obvious need for Gemini Web to support Jetty.