Admin account not recognized as administrator: Topbraid EDG deployment with tomcat

57 views
Skip to first unread message

Stefan Verweij

unread,
Apr 6, 2020, 3:33:22 AM4/6/20
to TopBraid Suite Users
Hi,

I would like to deploy TopBraid EDG with Tomcat through a docker-compose.yml file.

This is my docker-compose file:

version: '3.2'

services:
tomcat:
image: tomcat:jdk8-openjdk
deploy:
restart_policy:
condition: any
expose:
- "8432"
ports:
- "8432:8080"
environment:
- JAVA_OPTS=-Xmx4g
- TOPBRAID_DATA
volumes:
- ${TOPBRAID_DATA}/conf/tomcat-users.xml:/usr/local/tomcat/conf/tomcat-users.xml
- ${TOPBRAID_DATA}/webapps/edg.war:/usr/local/tomcat/webapps/edg.war
- ${TOPBRAID_DATA}/conf/web.xml:/usr/local/tomcat/conf/web.xml


When running the container everything seems to be set up accordingly and I can reach the login page at http://localhost:8432/edg/tbl/

I try to login with my admin credentials, but then I get redirected to the page saying:

This installation has not been registered yet.

Please contact your administrator to use the Configuration administration page as described in the documentation.

Which is strange since I am the administrator... Nevertheless I went to the registration page manually to register the license (http://localhost:8432/edg/tbl/admin/registration), but again I obtain the message stating I am not the admin

License Key Registration

You need to be an admin to see this page.


I got the roles defined in the tomcat.users.xml as it should be (changed usernames and passwords for this message):

<tomcat-users xmlns="http://tomcat.apache.org/xml"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://tomcat.apache.org/xml tomcat-users.xsd"
version="1.0">
<role rolename="ES-TB_Admin"/>
<role rolename="ES-TB_Manager"/>
<role rolename="ES-TB_Editor"/>
<role rolename="ES-TB_Viewer"/>
<user username="Admin" password="" roles="ES-TB_Admin,ES-TB_Manager"/>
<user username="Editor" password="" roles="ES-TB_Editor"/>
<user username="Guest" password="" roles="ES-TB_Viewer"/>
</tomcat-users>

And the roles are also described in the <auth-constraint> and <security-role>s in the web.xml

How can I configure Topbraid EDG to recognize my admin account is administrator?

Stefan Verweij

unread,
Apr 6, 2020, 3:54:08 AM4/6/20
to TopBraid Suite Users
I checked the Tomcat logs in the container but they seem to look normal, except for, the localhost logs, stating the dropins do not exist?

root@32a3rh338:/usr/local/tomcat/logs# cat localhost.2020-04-06.log 
06-Apr-2020 07:04:58.088 INFO [localhost-startStop-1] org.apache.catalina.core.ApplicationContext.log Creating new dropin jar
06-Apr-2020 07:04:58.088 INFO [localhost-startStop-1] org.apache.catalina.core.ApplicationContext.log Error reading dropin folder: /var/lib/topbraid/dropins: does not exist

and these are my localhost_access logs:

 - - [06/Apr/2020:07:05:30 +0000] "GET /edg/tbl/ HTTP/1.1" 200 3596
 - Admin [06/Apr/2020:07:05:45 +0000] "POST /edg/tbl/j_security_check HTTP/1.1" 303 -
 - Admin [06/Apr/2020:07:05:46 +0000] "GET /edg/tbl/ HTTP/1.1" 200 423
 - Admin [06/Apr/2020:07:05:46 +0000] "GET /edg/tbl/swp?_viewName=home HTTP/1.1" 200 5577
 - Admin [06/Apr/2020:07:05:50 +0000] "GET /edg/tbl/lib/6.3.1.v20200219-1730B/assets/images/tqicon.ico HTTP/1.1" 200 293171
 - Admin [06/Apr/2020:07:05:53 +0000] "GET /edg/tbl/ HTTP/1.1" 200 423
 - Admin [06/Apr/2020:07:05:55 +0000] "GET /edg/tbl/admin/registration HTTP/1.1" 200 2377
 - Admin [06/Apr/2020:07:05:55 +0000] "GET /edg/tbl/lib/6.3.1.v20200219-1730B/server/build/server.bundle.js HTTP/1.1" 200 39687
 - Admin [06/Apr/2020:07:05:55 +0000] "GET /edg/tbl/lib/6.3.1.v20200219-1730B/server/build/images/EDG-Logo.png HTTP/1.1" 200 27522
 - Admin [06/Apr/2020:07:05:56 +0000] "GET /edg/tbl/lib/assets/build/fonts/OpenSans-Bold.woff2 HTTP/1.1" 200 61324
 - Admin [06/Apr/2020:07:05:56 +0000] "GET /edg/tbl/lib/assets/build/fonts/fa-solid-900.woff2 HTTP/1.1" 200 74340

my manager and host-manager logs are empty

The catalina log shows nothing special as well (all paths are specified and all config settings look okay)


Reply all
Reply to author
Forward
Message has been deleted
Message has been deleted
0 new messages