Uploaded image for project: '{RETIRED} XWiki Enterprise'
  1. {RETIRED} XWiki Enterprise
  2. XE-1351

Allow supporting multiple XWiki installations in a single Servlet Container runtime

    Details

    • Type: Idea
    • Status: Closed
    • Priority: Minor
    • Resolution: Cannot Reproduce
    • Affects Version/s: 5.3
    • Fix Version/s: None
    • Component/s: Other
    • Labels:
      None
    • Environment:
      Tomcat 7.0.47 and MySQL on Ubuntu 12.04.3 LTS
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      Description

      Hi all,
      I would like to have installed 2 instances of XWiki as different webapps of the same Tomcat container (different DBs administrated by the same MySQL server).

      I installed a first version of XWiki Enterprise 5.3 as described in:

      http://platform.xwiki.org/xwiki/bin/view/AdminGuide/InstallationTomcat
      http://platform.xwiki.org/xwiki/bin/view/AdminGuide/InstallationMySQL

      without any problem. Then I did the same procedures in order to get also the second instantiation working. I rebooted Tomcat after each installation.

      However, even though the second instantiation looks correctly installed, it does not work. Specifically the log reports:

      Jan 07, 2014 3:22:03 PM org.apache.catalina.core.ApplicationContext log
      INFO: ContextListener: contextInitialized()
      Jan 07, 2014 3:22:03 PM org.apache.catalina.core.ApplicationContext log
      INFO: SessionListener: contextInitialized()
      Jan 07, 2014 3:22:03 PM org.apache.catalina.core.ApplicationContext log
      INFO: ContextListener: attributeAdded('org.apache.jasper.compiler.TldLocationsCache', 'org.apache.jasper.compiler.TldLocationsCache@209e735c')
      Jan 07, 2014 3:23:42 PM org.apache.catalina.core.StandardWrapperValve invoke
      SEVERE: Servlet.service() for servlet [action] in context with path [/LearnPAdWiki] threw exception [java.lang.RuntimeException: Component manager has not been initialized before lookup for [org.xwiki.model.reference.DocumentReferenceResolver< java.lang.String >] for hint [currentmixed]] with root cause
      java.lang.RuntimeException: Component manager has not been initialized before lookup for [org.xwiki.model.reference.DocumentReferenceResolver< java.lang.String >] for hint [currentmixed]
      	at com.xpn.xwiki.web.Utils.getComponent(Utils.java:700)
      	at com.xpn.xwiki.XWikiContext.<init>(XWikiContext.java:151)
      	at com.xpn.xwiki.web.Utils.prepareContext(Utils.java:382)
      	at com.xpn.xwiki.web.XWikiAction.initializeXWikiContext(XWikiAction.java:433)
      	at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:126)
      	at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:425)
      	at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:228)
      	at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
      	at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      	at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:121)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      	at org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:144)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      	at com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:66)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      	at org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:208)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      	at org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:111)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
      	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
      	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
      	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
      	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
      	at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)
      	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
      	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
      	at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1041)
      	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:603)
      	at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      	at java.lang.Thread.run(Thread.java:724)
      

      Do you have any suggestion?
      Thanks.

      Gulyx

        Attachments

          Activity

            People

            • Assignee:
              vmassol Vincent Massol
              Reporter:
              gulyx Gulyx
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Date of First Response: