<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    I am using tomcat7 and followed the instructions below, so that I
    now having a standing server. I cannot however log into that server.
    No exceptions or errors are thrown or displayed. Any suggestions?<br>
    <br>
    conf/tomcat-users.xml<br>
    &nbsp; ...<br>
    &nbsp; &lt;role rolename="admin"/&gt;<br>
    &nbsp; &lt;role rolename="analyst"/&gt;<br>
    &nbsp; &lt;role rolename="manager-gui"/&gt;<br>
    &nbsp; &lt;role rolename="admin-gui"/&gt;<br>
    &nbsp; &lt;role rolename="admin-script"/&gt;<br>
    &nbsp; &lt;role rolename="user"/&gt;<br>
    &nbsp; &lt;role rolename="manager"/&gt;<br>
    &nbsp; &lt;role rolename="developer"/&gt;<br>
    &nbsp; &lt;user username="tomcat" password="***"
    roles="manager-gui,admin-gui,admin-script"/&gt;<br>
    &nbsp; &lt;user username="kie" password="***"
    roles="admin,developer"/&gt;<br>
    <div class="moz-forward-container"><br>
      <br>
      -------- Original Message --------
      <table class="moz-email-headers-table" cellpadding="0"
        cellspacing="0" border="0">
        <tbody>
          <tr>
            <th align="RIGHT" nowrap="nowrap" valign="BASELINE">Subject:
            </th>
            <td>Re: [rules-users] Problems deploying war</td>
          </tr>
          <tr>
            <th align="RIGHT" nowrap="nowrap" valign="BASELINE">Date: </th>
            <td>Thu, 24 Apr 2014 16:45:17 +0100</td>
          </tr>
          <tr>
            <th align="RIGHT" nowrap="nowrap" valign="BASELINE">From: </th>
            <td>Michael Anstis <a class="moz-txt-link-rfc2396E" href="mailto:michael.anstis@gmail.com">&lt;michael.anstis@gmail.com&gt;</a></td>
          </tr>
          <tr>
            <th align="RIGHT" nowrap="nowrap" valign="BASELINE">Reply-To:
            </th>
            <td>Rules Users List <a class="moz-txt-link-rfc2396E" href="mailto:rules-users@lists.jboss.org">&lt;rules-users@lists.jboss.org&gt;</a></td>
          </tr>
          <tr>
            <th align="RIGHT" nowrap="nowrap" valign="BASELINE">To: </th>
            <td>Rules Users List <a class="moz-txt-link-rfc2396E" href="mailto:rules-users@lists.jboss.org">&lt;rules-users@lists.jboss.org&gt;</a></td>
          </tr>
        </tbody>
      </table>
      <br>
      <br>
      <div dir="ltr">OK, repeated.
        <div><br>
        </div>
        <div>1) Downloaded Tomcat 7.0 from <a moz-do-not-send="true"
            href="http://tomcat.apache.org/download-70.cgi">http://tomcat.apache.org/download-70.cgi</a></div>
        <div><br>
        </div>
        <div>2) Downloaded Drools Workbench distribution from&Acirc;&nbsp;<a
            moz-do-not-send="true"
            href="http://drools.jboss.org/downloads.html">http://drools.jboss.org/downloads.html</a></div>
        <div><br>
        </div>
        <div>3) Copied 3 required JARs to /lib</div>
        <div><br>
        </div>
        <div>4) Changed Tomcat's Manager upload limit in
          /webapps/manager/WEB-INF/web.xml</div>
        <div><br>
        </div>
        <div>5) Started Tomcat</div>
        <div><br>
        </div>
        <div>6) Browse to Manager application</div>
        <div><br>
        </div>
        <div>7) Upload
          kie-drools-wb-distribution-wars-6.0.1.Final-tomcat7.0.war</div>
        <div><br>
        </div>
        <div>8) Success.</div>
        <div><br>
        </div>
        <div>9) Click on link in Tomcat's Manager and KIE Drools
          Workbench launched successfully.</div>
        <div><br>
        </div>
        <div>10) Logged in with user defined in
/webapps/kie-drools-wb-distribution-wars-6.0.1.Final-tomcat7.0/WEB-INF/classes/users.properties</div>
        <div><br>
        </div>
      </div>
      <div class="gmail_extra"><br>
        <br>
        <div class="gmail_quote">
          On 15 April 2014 14:57, Ven Tadipatri <span dir="ltr">&lt;<a
              moz-do-not-send="true"
              href="mailto:ven.tadipatri@ll.mit.edu" target="_blank">ven.tadipatri@ll.mit.edu</a>&gt;</span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div bgcolor="#FFFFFF" text="#000000">
              <div>I'm not sure what you mean by the J2ee security
                section. I didn't see anything like that in the
                web.xml.&Acirc;&nbsp; There didn't appear to be <br>
                any code that was commented out.<br>
                <br>
                Thanks,<br>
                Ven
                <div>
                  <div class="h5"><br>
                    <br>
                    On 04/15/2014 08:40 AM, Michael Anstis wrote:<br>
                  </div>
                </div>
              </div>
              <blockquote type="cite">
                <div>
                  <div class="h5">
                    <div dir="ltr">If you're using 6.0 (as opposed to
                      6.1.0-SNAPSHOT) did you also uncomment the J2EE
                      security section in the web.xml?</div>
                  </div>
                </div>
                <div class="gmail_extra"><br>
                  <br>
                  <div class="gmail_quote">
                    <div>
                      <div class="h5">On 15 April 2014 13:27, Ven
                        Tadipatri <span dir="ltr">&lt;<a
                            moz-do-not-send="true"
                            href="mailto:ven.tadipatri@ll.mit.edu"
                            target="_blank">ven.tadipatri@ll.mit.edu</a>&gt;</span>
                        wrote:<br>
                      </div>
                    </div>
                    <blockquote class="gmail_quote" style="margin:0 0 0
                      .8ex;border-left:1px #ccc solid;padding-left:1ex">
                      <div bgcolor="#FFFFFF" text="#000000">
                        <div>
                          <div class="h5">
                            <div>I've added the following libraries to
                              the lib folder (I'm assuming you mean the
                              Tomcat library, not the webapp-specific
                              WEB-INF/lib folder ):<br>
                              -rwxr-xr-x 1 svc-tomcat svc-tomcat&Acirc;&nbsp;&Acirc;&nbsp;
                              43519 Apr 14 08:38
                              javax.security.jacc-api-1.4.jar<br>
                              -rwxr-xr-x 1 svc-tomcat svc-tomcat&Acirc;&nbsp;&Acirc;&nbsp;&Acirc;&nbsp;
                              6992 Apr 14 08:38
                              kie-tomcat-integration-6.0.1.Final.jar<br>
                              -rwxr-xr-x 1 svc-tomcat svc-tomcat&Acirc;&nbsp;&Acirc;&nbsp;
                              26084 Apr 14 08:38 slf4j-api-1.7.5.jar<br>
                              <br>
                              The following lines are in the server.xml:<br>
                              &Acirc;&nbsp;&Acirc;&nbsp;&Acirc;&nbsp; &Acirc;&nbsp; &lt;Host name="localhost"&Acirc;&nbsp;
                              appBase="webapps"&Acirc;&nbsp; unpackWARs="true"
                              autoDeploy="true"&gt;<br>
                              <br>
                              &Acirc;&nbsp;&Acirc;&nbsp;&Acirc;&nbsp;&Acirc;&nbsp;&Acirc;&nbsp;&Acirc;&nbsp;&Acirc;&nbsp; &lt;Valve
                              className="org.apache.catalina.valves.AccessLogValve"
                              directory="logs"<br>
                              &Acirc;&nbsp;&Acirc;&nbsp;&Acirc;&nbsp;&Acirc;&nbsp;&Acirc;&nbsp;&Acirc;&nbsp;&Acirc;&nbsp;&Acirc;&nbsp;&Acirc;&nbsp;&Acirc;&nbsp;&Acirc;&nbsp;&Acirc;&nbsp;&Acirc;&nbsp;&Acirc;&nbsp;
                              prefix="localhost_access_log."
                              suffix=".txt"<br>
                              &Acirc;&nbsp;&Acirc;&nbsp;&Acirc;&nbsp;&Acirc;&nbsp;&Acirc;&nbsp;&Acirc;&nbsp;&Acirc;&nbsp;&Acirc;&nbsp;&Acirc;&nbsp;&Acirc;&nbsp;&Acirc;&nbsp;&Acirc;&nbsp;&Acirc;&nbsp;&Acirc;&nbsp; pattern="%h
                              %l %u %t &amp;quot;%r&amp;quot; %s %b"
                              /&gt;<br>
                              <br>
                              &Acirc;&nbsp;&Acirc;&nbsp;&Acirc;&nbsp; &Acirc;&nbsp;&Acirc;&nbsp;&Acirc;&nbsp; &lt;Valve
                              className="org.kie.integration.tomcat.JACCValve"
                              /&gt;<br>
                              &Acirc;&nbsp;&Acirc;&nbsp;&Acirc;&nbsp; &lt;/Host&gt;<br>
                              <br>
                              There doesn't seem to be any log output
                              when the login fails. It just brings me
                              back to the same url:<br>
                              <a moz-do-not-send="true"
href="http://localhost:8080/kie-drools-wb-distribution-wars-6.0.1.Final-tomcat7.0/org.kie.workbench.drools.KIEDroolsWebapp/j_security_check"
                                target="_blank">http://localhost:8080/kie-drools-wb-distribution-wars-6.0.1.Final-tomcat7.0/org.kie.workbench.drools.KIEDroolsWebapp/j_security_check</a><br>
                              Any ideas?<br>
                              <br>
                              Thanks,<br>
                              Ven
                              <div>
                                <div><br>
                                  <br>
                                  <br>
                                  On 04/14/2014 11:50 AM, Michael Anstis
                                  wrote:<br>
                                </div>
                              </div>
                            </div>
                          </div>
                        </div>
                        <div>
                          <div>
                            <blockquote type="cite">
                              <div>
                                <div class="h5">
                                  <div dir="ltr">You'll need to add the
                                    additional libraries to /lib and
                                    configure Catalina with the
                                    additional "Valve", as described in
                                    previous emails.
                                    <div><br>
                                    </div>
                                    <div>These configure Tomcat to use
                                      the tomcat-users.xml file.</div>
                                  </div>
                                </div>
                              </div>
                              <div class="gmail_extra"><br>
                                <br>
                                <div class="gmail_quote">
                                  <div>
                                    <div class="h5">On 14 April 2014
                                      14:36, Ven Tadipatri <span
                                        dir="ltr">&lt;<a
                                          moz-do-not-send="true"
                                          href="mailto:ven.tadipatri@ll.mit.edu"
                                          target="_blank">ven.tadipatri@ll.mit.edu</a>&gt;</span>
                                      wrote:<br>
                                    </div>
                                  </div>
                                  <blockquote class="gmail_quote"
                                    style="margin:0 0 0
                                    .8ex;border-left:1px #ccc
                                    solid;padding-left:1ex">
                                    <div bgcolor="#FFFFFF"
                                      text="#000000">
                                      <div>
                                        <div class="h5">
                                          <div>You're right - I'm
                                            getting closer :)<br>
                                            Now, the <a
                                              moz-do-not-send="true"
href="http://localhost:8080/kie-drools-wb-distribution-wars-6.0.1.Final-tomcat7.0/"
                                              target="_blank">http://localhost:8080/kie-drools-wb-distribution-wars-6.0.1.Final-tomcat7.0/</a>
                                            url comes up, but when I try
                                            to log in with the user and
                                            password in my<br>
                                            tomcat-users.xml file, it
                                            doesn't log me in.<br>
                                            <br>
                                            I was able to bring up the
                                            main page both with the
                                            binary distribution (which
                                            came up with a KIE IDE logo)
                                            and the one I built with
                                            maven from sources<br>
                                            (which came up with a UF
                                            logo). The login page looked
                                            identical except for the
                                            logo.<br>
                                            <br>
                                            This is what my
                                            tomcat-users.xml file looks
                                            like:<br>
                                            &lt;role
                                            rolename="analyst"/&gt;<br>
                                            &Acirc;&nbsp; &lt;role
                                            rolename="admin"/&gt;<br>
                                            &Acirc;&nbsp; &lt;user username="guest"
                                            password="****"
                                            roles="analyst,admin"/&gt;<br>
                                            &Acirc;&nbsp; &lt;user username="admin"
                                            password="****"
                                            roles="analyst,admin"/&gt;<br>
                                            <br>
                                            (The password has been
                                            starred out in this e-mail)<br>
                                            The only change I made to
                                            the war was<br>
                                            &Acirc;&nbsp;mv
                                            org.uberfire.security.auth.AuthenticationSource-TOMCAT-JEE-SECURITY
org.uberfire.security.auth.AuthenticationSource<br>
                                            <br>
                                            Is there something I have to
                                            do with the login.config or
                                            realm.properties?<br>
                                            <br>
                                            Thanks,<br>
                                            Ven
                                            <div>
                                              <div><br>
                                                <br>
                                                On 04/14/2014 09:17 AM,
                                                Michael Anstis wrote:<br>
                                              </div>
                                            </div>
                                          </div>
                                        </div>
                                      </div>
                                      <div>
                                        <div>
                                          <blockquote type="cite">
                                            <div>
                                              <div class="h5">
                                                <div dir="ltr">You're
                                                  almost there by the
                                                  look of it!!!
                                                  <div><br>
                                                  </div>
                                                  <div>I replied to your
                                                    other questions
                                                    about why the
                                                    workbench is trying
                                                    to access git.. you
                                                    can disable this and
                                                    then you shouldn't
                                                    get the error you
                                                    paste (I assume you
                                                    can't access <a
                                                      moz-do-not-send="true"
href="http://github.com" target="_blank">github.com</a> from where
                                                    you're trying to
                                                    deploy).</div>
                                                  <div><br>
                                                  </div>
                                                  <div>The JBoss AS7 WAR
                                                    works "out of the
                                                    box".. no need to
                                                    configure anything
                                                    extra, or download
                                                    any WARs :)</div>
                                                  <div><br>
                                                  </div>
                                                  <div>I would encourage
                                                    you to delete
                                                    .niogit folder in
                                                    /bin when trying to
                                                    deploy (if you had
                                                    errors before).</div>
                                                  <div><br>
                                                  </div>
                                                  <div>.niogit is where
                                                    the workbench stores
                                                    it's configuration
                                                    and any downloaded
                                                    git repositories.</div>
                                                </div>
                                              </div>
                                            </div>
                                            <div class="gmail_extra"><br>
                                              <br>
                                              <div class="gmail_quote">
                                                <div>
                                                  <div class="h5">On 14
                                                    April 2014 14:14,
                                                    Ven Tadipatri <span
                                                      dir="ltr">&lt;<a
                                                        moz-do-not-send="true"
href="mailto:ven.tadipatri@ll.mit.edu" target="_blank">ven.tadipatri@ll.mit.edu</a>&gt;</span>
                                                    wrote:<br>
                                                  </div>
                                                </div>
                                                <blockquote
                                                  class="gmail_quote"
                                                  style="margin:0 0 0
                                                  .8ex;border-left:1px
                                                  #ccc
                                                  solid;padding-left:1ex">
                                                  <div bgcolor="#FFFFFF"
                                                    text="#000000">
                                                    <div>
                                                      <div>
                                                        <div class="h5">I'm
                                                          not quite sure
                                                          why it's so
                                                          challenging to
                                                          get the war
                                                          deployed with
                                                          Tomcat. Is it
                                                          easier to
                                                          deploy the war
                                                          with Jboss?<br>
                                                          These are the
                                                          exceptions I'm
                                                          getting, even
                                                          after adding
                                                          "-Dorg.kie.demo=false"
                                                          to the
                                                          CATALINA_OPTS
                                                          in catalina.sh<br>
                                                          I want to
                                                          disable the
                                                          access to
                                                          remote git
                                                          repos. <br>
                                                          <div> <br>
                                                          INFO:
                                                          Deploying web
                                                          application
                                                          archive
/opt/tomcat/tomcat7/webapps/drools-workbench-6.0.1.Final-tomcat7.0.war<br>
                                                          </div>
                                                          2014-04-14
                                                          09:04:23,985
                                                          [localhost-startStop-1]
                                                          INFO&Acirc;&nbsp; Found
                                                          kmodule: <a
                                                          moz-do-not-send="true">jar:file:/opt/tomcat/tomcat7/webapps/drools-workbench-6.0.1.Final-tomcat7.0/WEB-INF/lib/drools-wb-rest-defaultapprover-6.0.1.Final.jar!/META-INF/kmodule.xml</a><br>
                                                          2014-04-14
                                                          09:04:24,036
                                                          [localhost-startStop-1]
                                                          INFO&Acirc;&nbsp;
                                                          KieModule was
added:ZipKieModule[
ReleaseId=org.drools:drools-wb-rest-defaultapprover:6.0.1.Finalfile=/opt/tomcat/tomcat7/webapps/drools-workbench-6.0.1.Final-tomcat7.0/WEB-INF/lib/drools-wb-rest-defaultapprover-6.0.1.Final.jar]<br>
                                                          2014-04-14
                                                          09:04:24,036
                                                          [localhost-startStop-1]
                                                          INFO&Acirc;&nbsp; Found
                                                          kmodule: <a
                                                          moz-do-not-send="true">jar:file:/opt/tomcat/tomcat7/webapps/drools-workbench-6.0.1.Final-tomcat7.0/WEB-INF/lib/drools-wb-rest-defaultapprover-6.0.1.Final.jar!/META-INF/kmodule.xml</a><br>
                                                          2014-04-14
                                                          09:04:24,039
                                                          [localhost-startStop-1]
                                                          INFO&Acirc;&nbsp;
                                                          KieModule was
added:ZipKieModule[
ReleaseId=org.drools:drools-wb-rest-defaultapprover:6.0.1.Finalfile=/opt/tomcat/tomcat7/webapps/drools-workbench-6.0.1.Final-tomcat7.0/WEB-INF/lib/drools-wb-rest-defaultapprover-6.0.1.Final.jar]<br>
                                                          2014-04-14
                                                          09:07:36,460
                                                          [localhost-startStop-1]
                                                          ERROR Failed
                                                          to setup
                                                          Repository
                                                          'uf-playground'
                                                          <div><br>
                                                          java.lang.RuntimeException:

                                                          <a
                                                          moz-do-not-send="true"
href="https://github.com/guvnorngtestuser1/guvnorng-playground.git"
                                                          target="_blank">https://github.com/guvnorngtestuser1/guvnorng-playground.git</a>:
                                                          cannot open
                                                          git-upload-pack<br>
                                                          </div>
                                                          &Acirc;&nbsp;&Acirc;&nbsp;&Acirc;&nbsp;&Acirc;&nbsp;&Acirc;&nbsp;&Acirc;&nbsp;&Acirc;&nbsp;
                                                          at
org.uberfire.backend.server.repositories.git.GitRepositoryFactoryHelper.newRepository(GitRepositoryFactoryHelper.java:80)~[uberfire-backend-server-0.3.1.Final.jar:0.3.1.Final]<br>
                                                        </div>
                                                      </div>
                                                      &Acirc;&nbsp;&Acirc;&nbsp;&Acirc;&nbsp;&Acirc;&nbsp;&Acirc;&nbsp;&Acirc;&nbsp;&Acirc;&nbsp; at
org.uberfire.backend.server.repositories.git.GitRepositoryFactoryHelper$Proxy$_$$_WeldClientProxy.newRepository(GitRepositoryFactoryHelper$Proxy$_$$_WeldClientProxy.java)~[uberfire-backend-server-0.3.1.Final.jar:0.3.1.Final]
                                                      <div>
                                                        <div class="h5"><br>
                                                          <br>
                                                          <br>
                                                          Thanks,<br>
                                                          Ven
                                                          <div>
                                                          <div><br>
                                                          <br>
                                                          On 04/14/2014
                                                          08:57 AM,
                                                          Michael Anstis
                                                          wrote:<br>
                                                          </div>
                                                          </div>
                                                        </div>
                                                      </div>
                                                    </div>
                                                    <div>
                                                      <div class="h5">
                                                        <div>
                                                          <div>
                                                          <blockquote
                                                          type="cite">
                                                          <div dir="ltr">If
                                                          apply the
                                                          additional
                                                          configuration
                                                          you are
                                                          telling Tomcat
                                                          to use Users
                                                          defined in
                                                          &lt;tomcat_install_folder&gt;/conf/tomcat-users.xml
                                                          <div><br>
                                                          </div>
                                                          <div>I
                                                          modified the
                                                          WAR by
                                                          unzipping it,
                                                          modifying the
                                                          relevant files
                                                          and then
                                                          zipping it
                                                          back into a
                                                          WAR before
                                                          deploying.</div>
                                                          </div>
                                                          <div
                                                          class="gmail_extra"><br>
                                                          <br>
                                                          <div
                                                          class="gmail_quote">On

                                                          14 April 2014
                                                          13:53, Ven
                                                          Tadipatri <span
                                                          dir="ltr">&lt;<a
moz-do-not-send="true" href="mailto:ven.tadipatri@ll.mit.edu"
                                                          target="_blank">ven.tadipatri@ll.mit.edu</a>&gt;</span>
                                                          wrote:<br>
                                                          <blockquote
                                                          class="gmail_quote"
                                                          style="margin:0
                                                          0 0
                                                          .8ex;border-left:1px
                                                          #ccc
                                                          solid;padding-left:1ex">
                                                          <div
                                                          bgcolor="#FFFFFF"
                                                          text="#000000">
                                                          <div>Hi
                                                          Michael,<br>
                                                          &Acirc;&nbsp;&Acirc;&nbsp;
                                                          Unfortunately
                                                          I can't seem
                                                          to get the
                                                          6.0.1 version
                                                          up and
                                                          running. I
                                                          followed the
                                                          steps below,
                                                          finding the 3
                                                          jars listed
                                                          below online.<br>
                                                          But still,
                                                          Tomcat just
                                                          hangs for a
                                                          bit, then
                                                          throws a bunch
                                                          of severe
                                                          warnings.
                                                          There don't
                                                          seem to be any
                                                          log messages
                                                          describing the
                                                          problem.<br>
                                                          Also, I'm a
                                                          bit confused
                                                          by the
                                                          directions -
                                                          how can we
                                                          modify the
                                                          WEB-INF
                                                          directory
                                                          before the war
                                                          is deployed?
                                                          And how do we
                                                          define users<br>
                                                          in the
                                                          login.config
                                                          file?
                                                          <div><br>
                                                          <br>
                                                          Thanks,<br>
                                                          Ven<br>
                                                          <br>
                                                          On 04/11/2014
                                                          10:49 AM,
                                                          Michael Anstis
                                                          wrote:<br>
                                                          </div>
                                                          </div>
                                                          <div>
                                                          <div>
                                                          <blockquote
                                                          type="cite">
                                                          <div dir="ltr">Hi,


                                                          <div><br>
                                                          </div>
                                                          <div>There
                                                          have been a
                                                          few people
                                                          with Tomcat
                                                          deployment
                                                          issues for
                                                          kie-drools-wb,
                                                          so I thought
                                                          I'd give it a
                                                          try.</div>
                                                          <div><br>
                                                          </div>
                                                          <div>These are
                                                          the steps I
                                                          followed for <b>successful</b>
                                                          deployment
                                                          (most of which
                                                          is already
                                                          documented,
                                                          but not
                                                          obvious, in
                                                          the WAR's
                                                          README.txt
                                                          file):-</div>
                                                          <div><br>
                                                          </div>
                                                          <div><b>6.0.1</b></div>
                                                          <div><b><br>
                                                          </b></div>
                                                          <div>Starting
                                                          with a clean
                                                          install of
                                                          Tomcat 7.</div>
                                                          <div><br>
                                                          </div>
                                                          <div>
                                                          <div>1. Copy
                                                          "kie-tomcat-integration"
                                                          JAR into
                                                          TOMCAT_HOME/lib
(org.kie:kie-tomcat-integration)</div>
                                                          <div>2. Copy
                                                          "JACC" JAR
                                                          into <font
                                                          face="courier
                                                          new,
                                                          monospace">TOMCAT_HOME/lib</font>
                                                          (javax.security.jacc:artifactId=javax.security.jacc-api




                                                          in JBoss Maven
                                                          Repository)</div>
                                                          <div>3. Copy
                                                          "slf4j-api"
                                                          JAR into <font
                                                          face="courier
                                                          new,
                                                          monospace">TOMCAT_HOME/lib</font>
                                                          (org.slf4j:artifactId=slf4j-api



                                                          in JBoss Maven
                                                          Repository)</div>
                                                          <div>4. Add
                                                          valve
                                                          configuration
                                                          into <font
                                                          face="courier
                                                          new,
                                                          monospace">TOMCAT_HOME/conf/server.xml</font>
                                                          inside <font
                                                          face="courier
                                                          new,
                                                          monospace">&lt;Host&gt;</font>
                                                          element as
                                                          last valve
                                                          definition:</div>
                                                          <div><br>
                                                          </div>
                                                          <div>&Acirc;&nbsp;&Acirc;&nbsp;<font
                                                          face="courier
                                                          new,
                                                          monospace">&Acirc;&nbsp;&lt;Valve



                                                          className="org.kie.integration.tomcat.JACCValve"



                                                          /&gt;</font></div>
                                                          <div><br>
                                                          </div>
                                                          <div>5. Edit <font
                                                          face="courier
                                                          new,
                                                          monospace">TOMCAT_HOME/conf/tomcat-users.xml</font>
                                                          to include
                                                          roles and
                                                          users, make
                                                          sure there
                                                          will be
                                                          'analyst' or
                                                          'admin' roles
                                                          defined as
                                                          it's required
                                                          to be
                                                          authorized to
                                                          use kie-wb</div>
                                                          </div>
                                                          <div>
                                                          <div>6.
                                                          Delete&Acirc;&nbsp;<font
                                                          face="courier
                                                          new,
                                                          monospace">org.uberfire.security.auth.AuthenticationSource</font>&Acirc;&nbsp;inside





                                                          <font
                                                          face="courier
                                                          new,
                                                          monospace">WEB-INF/classes/META-INF/services</font></div>
                                                          <div>7. Rename
                                                          <font
                                                          face="courier
                                                          new,
                                                          monospace">org.uberfire.security.auth.AuthenticationSource-TOMCAT-JEE-SECURITY</font>
                                                          to <font
                                                          face="courier
                                                          new,
                                                          monospace">org.uberfire.security.auth.AuthenticationSource&Acirc;&nbsp;</font>inside





                                                          <font
                                                          face="courier
                                                          new,
                                                          monospace">WEB-INF/classes/META-INF/services</font></div>
                                                          <div>8.
                                                          Increase
                                                          Java's PermGen
                                                          space by
                                                          adding file&Acirc;&nbsp;<span>TOMCAT_HOME/bin/</span><font
                                                          face="courier
                                                          new,
                                                          monospace">setenv.sh</font>&Acirc;&nbsp;containing&Acirc;&nbsp;<font
                                                          face="courier
                                                          new,
                                                          monospace">export
JAVA_OPTS="-Xmx1024m
-XX:MaxPermSize=256m"</font></div>
                                                          </div>
                                                          <div>9. Start
                                                          Tomcat with <font
                                                          face="courier
                                                          new,
                                                          monospace">TOMCAT_HOME/bin/startup.sh<br>
                                                          </font></div>
                                                          <div>10. Go to
                                                          Management
                                                          Console, <font
                                                          face="courier
                                                          new,
                                                          monospace"><a
moz-do-not-send="true" href="http://localhost:8080/management"
                                                          target="_blank">http://localhost:8080/management</a></font></div>
                                                          <div>11.
                                                          Deploy
                                                          modified WAR</div>
                                                          <div><br>
                                                          </div>
                                                          <div>If you do
                                                          not complete
                                                          these steps
                                                          the WAR works
                                                          "out of the
                                                          box" but
                                                          you'll need to
                                                          define Users
                                                          in&Acirc;&nbsp;<font
                                                          face="courier
                                                          new,
                                                          monospace">WEB-INF/classes/login.config</font></div>
                                                          <div><br>
                                                          </div>
                                                          <div><b>6.1.0-SNAPSHOT</b></div>
                                                          <div><b><br>
                                                          </b></div>
                                                          <div>
                                                          <div>Starting
                                                          with a clean
                                                          install of
                                                          Tomcat 7.</div>
                                                          </div>
                                                          <div><br>
                                                          </div>
                                                          <div>
                                                          <div>1. Copy
                                                          "kie-tomcat-integration"
                                                          JAR into
                                                          TOMCAT_HOME/lib
(org.kie:kie-tomcat-integration)</div>
                                                          <div>2. Copy
                                                          "JACC" JAR
                                                          into
                                                          TOMCAT_HOME/lib
                                                          (javax.security.jacc:artifactId=javax.security.jacc-api


                                                          in JBoss Maven
                                                          Repository)</div>
                                                          <div>3. Copy
                                                          "slf4j-api"
                                                          JAR into
                                                          TOMCAT_HOME/lib
                                                          (org.slf4j:artifactId=slf4j-api


                                                          in JBoss Maven
                                                          Repository)</div>
                                                          <div>4. Add
                                                          valve
                                                          configuration
                                                          into
                                                          TOMCAT_HOME/conf/server.xml
                                                          inside Host
                                                          element as
                                                          last valve
                                                          definition:</div>
                                                          <div><br>
                                                          </div>
                                                          <div>&Acirc;&nbsp; <font
                                                          face="courier
                                                          new,
                                                          monospace">&Acirc;&nbsp;&lt;Valve



                                                          className="org.kie.integration.tomcat.JACCValve"



                                                          /&gt;</font></div>
                                                          <div><br>
                                                          </div>
                                                          <div>5. Edit
                                                          TOMCAT_HOME/conf/tomcat-users.xml
                                                          to include
                                                          roles and
                                                          users, make
                                                          sure there
                                                          will be
                                                          'analyst' or
                                                          'admin' roles
                                                          defined as
                                                          it's required
                                                          to be
                                                          authorized to
                                                          use kie-wb</div>
                                                          <div>
                                                          <div
                                                          style="font-weight:normal">6.



                                                          Start Tomcat
                                                          with&Acirc;&nbsp;<font
                                                          face="courier
                                                          new,
                                                          monospace">TOMCAT_HOME/bin/startup.sh<br>
                                                          </font></div>
                                                          <div
                                                          style="font-weight:normal">7.



                                                          Go to
                                                          Management
                                                          Console,&Acirc;&nbsp;<font
                                                          face="courier
                                                          new,
                                                          monospace"><a
moz-do-not-send="true" href="http://localhost:8080/management"
                                                          target="_blank">http://localhost:8080/management</a></font></div>
                                                          <div
                                                          style="font-weight:normal">8.



                                                          Deploy
                                                          modified WAR</div>
                                                          <div
                                                          style="font-weight:bold"><br>
                                                          </div>
                                                          <div>With kind
                                                          regards,</div>
                                                          <div><br>
                                                          </div>
                                                          <div>Mike</div>
                                                          </div>
                                                          </div>
                                                          <div><b><br>
                                                          </b></div>
                                                          <div><br>
                                                          </div>
                                                          </div>
                                                          <div
                                                          class="gmail_extra"><br>
                                                          <br>
                                                          <div
                                                          class="gmail_quote">On


                                                          10 April 2014
                                                          19:25, Ven
                                                          Tadipatri <span
                                                          dir="ltr">&lt;<a
moz-do-not-send="true" href="mailto:ven.tadipatri@ll.mit.edu"
                                                          target="_blank">ven.tadipatri@ll.mit.edu</a>&gt;</span>
                                                          wrote:<br>
                                                          <blockquote
                                                          class="gmail_quote"
                                                          style="margin:0
                                                          0 0
                                                          .8ex;border-left:1px
                                                          #ccc
                                                          solid;padding-left:1ex">
                                                          <div
                                                          bgcolor="#FFFFFF"
                                                          text="#000000"><font
                                                          face="Times
                                                          New Roman,
                                                          Times, serif">Hi,<br>
                                                          &Acirc;&nbsp; I'm trying
                                                          to get set up
                                                          with Drools
                                                          and Guvnor.&Acirc;&nbsp;
                                                          I've had some
                                                          success
                                                          building a
                                                          test program
                                                          with Drools,
                                                          but when I saw
                                                          that there's a
                                                          webapp<br>
                                                          to manage and
                                                          view rules, I
                                                          was interested
                                                          in getting
                                                          that working
                                                          as well.
                                                          Unfortunately
                                                          I haven't had
                                                          much success
                                                          with that.<br>
                                                          &Acirc;&nbsp; I
                                                          downloaded the
                                                          kie-drools-wb-distribution-6.0.1.Final.zip

                                                          file from the
                                                          JBoss drools
                                                          website and
                                                          dropped the
                                                          binaries/kie-drools-wb-distribution-wars-6.0.1.Final-tomcat7.0.war<br>
                                                          into my Tomcat
                                                          directory.&Acirc;&nbsp;
                                                          Tomcat was
                                                          just hanging
                                                          for a while,
                                                          then spit out
                                                          a bunch of
                                                          error
                                                          messages:<br>
                                                          Apr 10, 2014
                                                          2:21:40 PM
                                                          org.apache.catalina.core.StandardContext
                                                          startInternal<br>
                                                          INFO:
                                                          Deploying web
                                                          application
                                                          archive
/opt/tomcat/tomcat7/webapps/kie-drools-wb-distribution-wars-6.0.1.Final-tomcat7.0.war<br>
                                                          Apr 10, 2014
                                                          2:21:40 PM
                                                          org.apache.catalina.core.StandardContext
                                                          startInternal<br>
                                                          SEVERE: Error
                                                          listenerStart<br>
                                                          Apr 10, 2014
                                                          2:21:40 PM
                                                          org.apache.catalina.core.StandardContext
                                                          startInternal<br>
                                                          S</font><font
                                                          face="Times
                                                          New Roman,
                                                          Times, serif">EVERE:



                                                          Context
                                                          [/kie-drools-wb-distribution-wars-6.0.1.Final-tomcat7.0]
                                                          startup failed
                                                          due to
                                                          previous
                                                          errors<br>
                                                          Apr 10, 2014
                                                          2:21:40 PM
                                                          org.apache.catalina.loader.WebappClassLoader
clearReferencesThreads<br>
                                                          SEVERE: The
                                                          web
                                                          application
                                                          [/kie-drools-wb-distribution-wars-6.0.1.Final-tomcat7.0]
                                                          appears to
                                                          have started a
                                                          thread named
                                                          [pool-4-thread-1]
                                                          but has failed
                                                          to stop it.
                                                          This is very
                                                          likely to
                                                          create a
                                                          memory leak.<br>
                                                          Apr 10, 2014
                                                          2:21:40 PM
                                                          org.apache.catalina.loader.WebappClassLoader
clearReferencesThreads<br>
                                                          SEVERE: The
                                                          web
                                                          application
                                                          [/kie-drools-wb-distribution-wars-6.0.1.Final-tomcat7.0]
                                                          appears to
                                                          have started a
                                                          thread named
                                                          [Thread-3] but
                                                          has failed to
                                                          stop it. This
                                                          is very likely
                                                          to create a
                                                          memory leak.<br>
                                                          Apr 10, 2014
                                                          2:21:40 PM
                                                          org.apache.catalina.loader.WebappClassLoader
clearReferencesThreads<br>
                                                          SEVERE: The
                                                          web
                                                          application
                                                          [/kie-drools-wb-distribution-wars-6.0.1.Final-tomcat7.0]
                                                          appears to
                                                          have started a
                                                          thread named
                                                          [pool-7-thread-1]
                                                          but has failed
                                                          to stop it.
                                                          This is very
                                                          likely to
                                                          create a
                                                          memory leak.<br>
                                                          Apr 10, 2014
                                                          2:21:40 PM
                                                          org.apache.catalina.loader.WebappClassLoader
clearReferencesThreads<br>
                                                          SEVERE: The
                                                          web
                                                          application
                                                          [/kie-drools-wb-distribution-wars-6.0.1.Final-tomcat7.0]
                                                          appears to
                                                          have started a
                                                          thread named
                                                          [Git-Daemon-Accept]
                                                          but has failed
                                                          to stop it.
                                                          This is very
                                                          likely to
                                                          create a
                                                          memory leak.<br>
                                                          Apr 10, 2014
                                                          2:21:40 PM
                                                          org.apache.catalina.loader.WebappClassLoader
checkThreadLocalMapForLeaks<br>
                                                          SEVERE: The
                                                          web
                                                          application
                                                          [/kie-drools-wb-distribution-wars-6.0.1.Final-tomcat7.0]
                                                          created a
                                                          ThreadLocal
                                                          with key of
                                                          type
                                                          [org.jboss.errai.config.util.ClassScanner$1]
                                                          (value
                                                          [org.jboss.errai.config.util.ClassScanner$1@1b3870a5])
                                                          and a value of
                                                          type
                                                          [java.lang.Boolean]
                                                          (value [true])
                                                          but failed to
                                                          remove it when
                                                          the web
                                                          application
                                                          was stopped.
                                                          Threads are
                                                          going to be
                                                          renewed over
                                                          time to try
                                                          and avoid a
                                                          probable
                                                          memory leak.<br>
                                                          Apr 10, 2014
                                                          2:21:40 PM
                                                          org.apache.catalina.loader.WebappClassLoader
checkThreadLocalMapForLeaks<br>
                                                          SEVERE: The
                                                          web
                                                          application
                                                          [/kie-drools-wb-distribution-wars-6.0.1.Final-tomcat7.0]
                                                          created a
                                                          ThreadLocal
                                                          with key of
                                                          type
                                                          [org.jboss.solder.servlet.beanManager.ServletContextAttributeProvider$1]
                                                          (value
                                                          [org.jboss.solder.servlet.beanManager.ServletContextAttributeProvider$1@166b6e99])






                                                          and a value of
                                                          type
                                                          [org.apache.catalina.core.ApplicationContextFacade]
                                                          (value
                                                          [org.apache.catalina.core.ApplicationContextFacade@672a0a4e])
                                                          but failed to
                                                          remove it when
                                                          the web
                                                          application
                                                          was stopped.
                                                          Threads are
                                                          going to be
                                                          renewed over
                                                          time to try
                                                          and avoid a
                                                          probable
                                                          memory leak.<br>
                                                          Apr 10, 2014
                                                          2:21:40 PM
                                                          org.apache.catalina.loader.WebappClassLoader
checkThreadLocalMapForLeaks<br>
                                                          SEVERE: The
                                                          web
                                                          application
                                                          [/kie-drools-wb-distribution-wars-6.0.1.Final-tomcat7.0]
                                                          created a
                                                          ThreadLocal
                                                          with key of
                                                          type
                                                          [org.eclipse.jgit.nls.NLS$1]
                                                          (value
                                                          [org.eclipse.jgit.nls.NLS$1@790abbcb])
                                                          and a value of
                                                          type
                                                          [org.eclipse.jgit.nls.NLS]
                                                          (value
                                                          [org.eclipse.jgit.nls.NLS@2faf4a82])
                                                          but failed to
                                                          remove it when
                                                          the web
                                                          application
                                                          was stopped.
                                                          Threads are
                                                          going to be
                                                          renewed over
                                                          time to try
                                                          and avoid a
                                                          probable
                                                          memory leak.<br>
                                                          <br>
                                                          &Acirc;&nbsp;Next I tried
                                                          building the
                                                          workbench from
                                                          source:<br>
                                                          </font><a
                                                          moz-do-not-send="true"
href="https://github.com/droolsjbpm/drools-wb/archive/6.0.1.Final.zip"
                                                          target="_blank">https://github.com/droolsjbpm/drools-wb/archive/6.0.1.Final.zip</a><br>
                                                          &Acirc;&nbsp;The maven
                                                          build worked,
                                                          and I dropped
                                                          the tomcat war
                                                          into the
                                                          tomcat
                                                          directory
                                                          (removing any
                                                          existing
                                                          webapps and
                                                          wars).
                                                          Starting
                                                          Tomcat now
                                                          produced these
                                                          errors:<br>
                                                          <font
                                                          face="Times
                                                          New Roman,
                                                          Times, serif"><br>
                                                          </font>INFO:
                                                          Deploying web
                                                          application
                                                          archive
                                                          /opt/tomcat/tomcat7/webapps/drools-workbench-6.0.1.Final-tomcat7.0.war
                                                          2014-04-10
                                                          13:46:31,975
                                                          [localhost-startStop-1]<br>
                                                          <br>
                                                          ERROR Failed
                                                          to setup
                                                          Repository
                                                          'uf-playground'
                                                          java.lang.RuntimeException:


                                                          <a
                                                          moz-do-not-send="true"
href="https://github.com/guvnorngtestuser1/guvnorng-playground.git"
                                                          target="_blank">
https://github.com/guvnorngtestuser1/guvnorng-playground.git</a>: cannot
                                                          open
                                                          git-upload-pack
                                                          <br>
                                                          <br>
                                                          What is the
                                                          webapp trying
                                                          to do with
                                                          Git? Do I need
                                                          to point it at
                                                          some git repo?<br>
                                                          <br>
                                                          I tried the
                                                          jboss
                                                          instructions
                                                          here:<br>
                                                          <br>
                                                          <a
                                                          moz-do-not-send="true"
href="http://blog.athico.com/2013/05/how-to-build-and-run-drools-and-guvnor.html"
target="_blank">http://blog.athico.com/2013/05/how-to-build-and-run-drools-and-guvnor.html</a><br>
                                                          <br>
                                                          But that
                                                          didn't work
                                                          either, with
                                                          Jboss just
                                                          hanging as
                                                          well.&Acirc;&nbsp; Any
                                                          clues on what
                                                          might be going
                                                          wrong?<br>
                                                          <br>
                                                          Thanks,<br>
                                                          Ven<br>
                                                          </div>
                                                          <br>
_______________________________________________<br>
                                                          rules-users
                                                          mailing list<br>
                                                          <a
                                                          moz-do-not-send="true"
href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a><br>
                                                          <a
                                                          moz-do-not-send="true"
href="https://lists.jboss.org/mailman/listinfo/rules-users"
                                                          target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
                                                          </blockquote>
                                                          </div>
                                                          <br>
                                                          </div>
                                                          </blockquote>
                                                          <br>
                                                          </div>
                                                          </div>
                                                          </div>
                                                          <br>
_______________________________________________<br>
                                                          rules-users
                                                          mailing list<br>
                                                          <a
                                                          moz-do-not-send="true"
href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a><br>
                                                          <a
                                                          moz-do-not-send="true"
href="https://lists.jboss.org/mailman/listinfo/rules-users"
                                                          target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
                                                          </blockquote>
                                                          </div>
                                                          <br>
                                                          </div>
                                                          <br>
                                                          <fieldset></fieldset>
                                                          <br>
                                                          <pre>_______________________________________________
rules-users mailing list
<a moz-do-not-send="true" href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a>
<a moz-do-not-send="true" href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a></pre>
                                                          </blockquote>
                                                          <br>
                                                          </div>
                                                        </div>
                                                      </div>
                                                    </div>
                                                  </div>
                                                  <div>
                                                    <div class="h5"> <br>
_______________________________________________<br>
                                                      rules-users
                                                      mailing list<br>
                                                      <a
                                                        moz-do-not-send="true"
href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a><br>
                                                      <a
                                                        moz-do-not-send="true"
href="https://lists.jboss.org/mailman/listinfo/rules-users"
                                                        target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
                                                    </div>
                                                  </div>
                                                </blockquote>
                                              </div>
                                              <br>
                                            </div>
                                            <div>
                                              <div class="h5"> <br>
                                                <fieldset></fieldset>
                                                <br>
                                                <pre>_______________________________________________
rules-users mailing list
<a moz-do-not-send="true" href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a>
<a moz-do-not-send="true" href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a></pre>
                                              </div>
                                            </div>
                                          </blockquote>
                                          <br>
                                        </div>
                                      </div>
                                    </div>
                                    <div>
                                      <div class="h5"> <br>
_______________________________________________<br>
                                        rules-users mailing list<br>
                                        <a moz-do-not-send="true"
                                          href="mailto:rules-users@lists.jboss.org"
                                          target="_blank">rules-users@lists.jboss.org</a><br>
                                        <a moz-do-not-send="true"
                                          href="https://lists.jboss.org/mailman/listinfo/rules-users"
                                          target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
                                      </div>
                                    </div>
                                  </blockquote>
                                </div>
                                <br>
                              </div>
                              <div>
                                <div class="h5"> <br>
                                  <fieldset></fieldset>
                                  <br>
                                  <pre>_______________________________________________
rules-users mailing list
<a moz-do-not-send="true" href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a>
<a moz-do-not-send="true" href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a></pre>
                                </div>
                              </div>
                            </blockquote>
                            <br>
                          </div>
                        </div>
                      </div>
                      <div>
                        <div class="h5"> <br>
_______________________________________________<br>
                          rules-users mailing list<br>
                          <a moz-do-not-send="true"
                            href="mailto:rules-users@lists.jboss.org"
                            target="_blank">rules-users@lists.jboss.org</a><br>
                          <a moz-do-not-send="true"
                            href="https://lists.jboss.org/mailman/listinfo/rules-users"
                            target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
                        </div>
                      </div>
                    </blockquote>
                  </div>
                  <br>
                </div>
                <div>
                  <div class="h5"> <br>
                    <fieldset></fieldset>
                    <br>
                    <pre>_______________________________________________
rules-users mailing list
<a moz-do-not-send="true" href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a>
<a moz-do-not-send="true" href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a></pre>
                  </div>
                </div>
              </blockquote>
              <br>
            </div>
            <br>
            _______________________________________________<br>
            rules-users mailing list<br>
            <a moz-do-not-send="true"
              href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
            <a moz-do-not-send="true"
              href="https://lists.jboss.org/mailman/listinfo/rules-users"
              target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
          </blockquote>
        </div>
        <br>
      </div>
      <br>
    </div>
    <br>
  </body>
</html>