Included in the Magnolia bundle, Apache Tomcat application server provides an environment where the Magnolia application is executed.

To install Tomcat:

  1. Go to Apache Tomcat and download Tomcat.
    We recommend you use Tomcat version 8.5.5 with Java 8.
  2. Extract the ZIP file in the directory where you want to install Tomcat. These instructions assume you chose C:\Program Files\Apache Software Foundation and installed Tomcat version 6.0.32. The subdirectory apache-tomcat-6.0.32 is created from the archive.

To verify installation:

  1. Open Command Prompt.
  2. Go to the Tomcat installation directory.
    cd C:\Program Files\Apache Software Foundation\apache-tomcat-8.5.50
  3. Start Tomcat.
    bin\startup.bat
    A second command prompt window is displayed for Tomcat. The following lines appear when the server has started:

    org.apache.coyote.http11.Http11Protocol start
    INFO: Starting Coyote HTTP/1.1 on http-8080
    org.apache.jk.common.ChannelSocket init
    INFO: JK: ajp13 listening on /0.0.0.0:8009
    org.apache.jk.server.JkMain start
    INFO: Jk running ID=0 time=0/66 config=null
    org.apache.catalina.startup.Catalina start
    INFO: Server startup in 2238 ms
  4. Open a browser and go to http://localhost:8080. The message "If you're seeing this page via web browser, it means you've setup Tomcat successfully." indicates success.

  5. Type bin\shutdown.bat in the first command prompt window to stop Tomcat.

 

#trackbackRdf ($trackbackUtils.getContentIdentifier($page) $page.title $trackbackUtils.getPingUrl($page))
  • No labels

2 Comments

  1. I am having project running mangolia 5.5.6. If tomcat 8.5.5 is recommend to be used, then why when I start the application I get lot's of warnings and when I try to edit the page, I get this error?

    jul. 05, 2018 9:13:03 AM org.apache.catalina.core.StandardWrapperValve invoke

    SEVERE: Servlet.service() for servlet [default] in context with path [/vzd-wcms] threw exception
    java.lang.IllegalArgumentException: An invalid domain [.*] was specified for this cookie
    at org.apache.tomcat.util.http.Rfc6265CookieProcessor.validateDomain(Rfc6265CookieProcessor.java:183)
    at org.apache.tomcat.util.http.Rfc6265CookieProcessor.generateHeader(Rfc6265CookieProcessor.java:125)
    at org.apache.catalina.connector.Response.generateCookieString(Response.java:989)
    at org.apache.catalina.connector.Response.addCookie(Response.java:937)
    at org.apache.catalina.connector.ResponseFacade.addCookie(ResponseFacade.java:386)
    at javax.servlet.http.HttpServletResponseWrapper.addCookie(HttpServletResponseWrapper.java:58)
    at javax.servlet.http.HttpServletResponseWrapper.addCookie(HttpServletResponseWrapper.java:58)
    at javax.servlet.http.HttpServletResponseWrapper.addCookie(HttpServletResponseWrapper.java:58)


    how to resolve this?


    Thanks in advance,

    Bisera

  2. Problem solved (smile)  the context.xml file has to be updated by configuring the new cookieprocessor: 

    <CookieProcessor className="org.apache.tomcat.util.http.LegacyCookieProcessor" />