Welcome to Knowage Q&A, where you can ask questions and receive answers from other members of the community.
+1 vote
1 view

Dear All,

I'm having problems on adding a Cockpit. Once i add blank page appear.

Seeking your help. Thank you in advance

Environment CentOS, Firefox
in Document Browser by (140 points)

1 Answer

+3 votes
Hello,

for me the solution from this thread helped: https://www.knowage-suite.com/qa/752/problems-accessing-to-cockpits
As you were asking there which files to change here some more details.

Open the server.xml file in the conf directory.

the service_url can stay at localhost

and the host_url needs to be adjusted to the correct ip.

Below the lines in detail:

<Environment name="service_url" type="java.lang.String" value="http://localhost:8080/knowage"/>
<Environment name="host_url" type="java.lang.String" value="http://your_network_ip_here:8080"/>

Hope it helps.
by (710 points)
This solution is not working for me could you please let me know another solution. I am getting the blank page.

Thanks

Following is the Server.xml file please let me know if anything I did wrong.

-----------------------------------------------------------------------------------------------

    <Resource auth="Container" description="User database that can be updated and saved" factory="org.apache.catalina.users.MemoryUserDatabaseFactory" name="UserDatabase" pathname="conf/tomcat-users.xml" type="org.apache.catalina.UserDatabase"/>

 <Environment name="resource_path" type="java.lang.String" value="D:\BI\Knowage-Server-CE\resources"/>

<Environment name="service_url" type="java.lang.String" value="http://localhost:8080/knowage"/>

<Environment name="host_url" type="java.lang.String" value="http://192.168.1.10:8080"/>

<Environment name="sso_class" type="java.lang.String" value="it.eng.spagobi.services.common.FakeSsoService"/>

<Environment description="HMAC key" name="hmacKey" type="java.lang.String" value="abc123"/>

<Resource auth="Container" factory="de.myfoo.commonj.work.FooWorkManagerFactory" maxThreads="5" name="wm/SpagoWorkManager" type="commonj.work.WorkManager"/>

<Resource auth="Container" driverClassName="com.mysql.jdbc.Driver" maxActive="20" maxIdle="10" maxWait="-1" name="jdbc/knowage" password="iftikhar" type="javax.sql.DataSource" url="jdbc:mysql://192.168.1.10:3306/knowage_ce" username="knowagebi"/>

<Resource auth="Container" driverClassName="com.mysql.jdbc.Driver" maxActive="20" maxIdle="10" maxWait="-1" name="jdbc/foodmart" password="iftikhar" type="javax.sql.DataSource" url="jdbc:mysql://192.168.1.10:3306/foodmart_demo" username="knowagebi"/>

<Resource auth="Container" driverClassName="com.mysql.jdbc.Driver" maxActive="20" maxIdle="10" maxWait="-1" name="jdbc/ds_cache" password="iftikhar" type="javax.sql.DataSource" url="jdbc:mysql://192.168.1.10:3306/foodmart_demo" username="knowagebi"/>

</GlobalNamingResources>

  <!-- A "Service" is a collection of one or more "Connectors" that share

       a single "Container" Note:  A "Service" is not itself a "Container",

       so you may not define subcomponents such as "Valves" at this level.

       Documentation at /docs/config/service.html

   -->

  <Service name="Catalina">

    <!--The connectors can use a shared executor, you can define one or more named thread pools-->

    <!--

    <Executor name="tomcatThreadPool" namePrefix="catalina-exec-"

        maxThreads="150" minSpareThreads="4"/>

    -->

    <!-- A "Connector" represents an endpoint by which requests are received

         and responses are returned. Documentation at :

         Java HTTP Connector: /docs/config/http.html (blocking & non-blocking)

         Java AJP  Connector: /docs/config/ajp.html

         APR (HTTP/AJP) Connector: /docs/apr.html

         Define a non-SSL HTTP/1.1 Connector on port 8080

    -->

    <Connector compressableMimeType="text/html,text/html;charset=UTF-8,text/xml,text/css,text/plain,application/json,application/json;charset=utf-8,application/xml,application/javascript,application/x-font-woff" compression="off" compressionMinSize="2048" connectionTimeout="20000" noCompressionUserAgents="gozilla, traviata" port="8080" protocol="HTTP/1.1" redirectPort="8443"/>

    <!-- A "Connector" using the shared thread pool-->

    <!--

    <Connector executor="tomcatThreadPool"

               port="8080" protocol="HTTP/1.1"

               connectionTimeout="20000"

               redirectPort="8443" />

    -->

    <!-- Define a SSL HTTP/1.1 Connector on port 8443

         This connector uses the JSSE configuration, when using APR, the

         connector should be using the OpenSSL style configuration

         described in the APR documentation -->

    <!--

    <Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"

               maxThreads="150" scheme="https" secure="true"

               clientAuth="false" sslProtocol="TLS" />

    -->

    <!-- Define an AJP 1.3 Connector on port 8009 -->

    <Connector port="8009" protocol="AJP/1.3" redirectPort="8443"/>

    <!-- An Engine represents the entry point (within Catalina) that processes

         every request.  The Engine implementation for Tomcat stand alone

         analyzes the HTTP headers included with the request, and passes them

         on to the appropriate Host (virtual host).

         Documentation at /docs/config/engine.html -->

    <!-- You should set jvmRoute to support load-balancing via AJP ie :

    <Engine name="Catalina" defaultHost="192.168.1.10" jvmRoute="jvm1">

    -->

    <Engine defaultHost="192.168.1.10" name="Catalina" startStopThreads="0">

      <!--For clustering, please take a look at documentation at:

          /docs/cluster-howto.html  (simple how to)

          /docs/config/cluster.html (reference documentation) -->

      <!--

      <Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster"/>

      -->

      <!-- Use the LockOutRealm to prevent attempts to guess user passwords

           via a brute-force attack -->

      <Realm className="org.apache.catalina.realm.LockOutRealm">

        <!-- This Realm uses the UserDatabase configured in the global JNDI

             resources under the key "UserDatabase".  Any edits

             that are performed against this UserDatabase are immediately

             available for use by the Realm.  -->

        <Realm className="org.apache.catalina.realm.UserDatabaseRealm" resourceName="UserDatabase"/>

      </Realm>

      <Host appBase="webapps" autoDeploy="true" name="192.168.1.10" startStopThreads="0" unpackWARs="true">

        <!-- SingleSignOn valve, share authentication between web applications

             Documentation at: /docs/config/valve.html -->

        <!--

        <Valve className="org.apache.catalina.authenticator.SingleSignOn" />

        -->

        <!-- Access log processes all example.

             Documentation at: /docs/config/valve.html

             Note: The pattern used is equivalent to using pattern="common" -->

        <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" pattern="%h %l %u %t &quot;%r&quot; %s %b" prefix="localhost_access_log." suffix=".txt"/>

      </Host>

    </Engine>

  </Service>

</Server>
Thank you very much telopk.

This realy solved my problem.

Cheers!
Thank you very mcuh This solved my problem
...