![]() |
T-Plan Robot Enterprise Robot Home |
20 February 2017 |
RAP features:
Specification:
Requirements on the Robot machines:
http://dev.mysql.com/downloads/windows/installer/5.7.html
NOTE: The same can be done from the CLI using:
"C:\Program Files\MySQL\MySQL Server 5.7\bin\mysqladmin.exe" -u root -p create tplanrap
IMPORTANT: As the RAP schema stores zero TIMESTAMP values the MySQL instance must have the ALLOW_INVALID_DATES mode enabled. This is the default setting for Windows. On other systems such as Ubuntu Linux it must be configured manually or the RAP fails to create the DB correctly. The workaround is to delete all tables, enable the mode and restart the RAP app (the app server domain).
http://download.java.net/glassfish/4.0/release/glassfish-4.0-windows.exe
NOTE: Do NOT download release 4.1.1 because it contains a bug which makes any attempt to create the JDBC connection pool to fail with IllegalStateException. The workaround is to create the pool through the "asadmin" CLI utility.
C:\Users\Admin\development\glassfish-4.1.1\glassfish4\bin>
asadmin start-domain domain1
Waiting for domain1 to start
......................................
Successfully started
the domain : domain1
domain
Location:
C:\Users\Robert\development\glassfish-4.1.1\glassfish4\glassfish\domains\domain1
Log File:
C:\Users\Robert\development\glassfish-4.1.1\glassfish4\glassfish\domains\domain1\logs\server.log
Admin Port: 4848
Command start-domain
executed successfully.
https://dev.mysql.com/downloads/connector/j/
mysql-connector-java-xxxx-bin.jar
file and put it to <glassfish>\glassfish\domains\domain1\lib
.
This will make the domain load the MySQL driver on start up. If
the domain is already running restart it:asadmin stop-domain domain1
asadmin start-domain domain1
http://localhost:4848
NOTE: The admin console is just a front end working on top of the "asadmin" tool. Any operation described below can be alternatively performed through the CLI.
- Select Resources->JDBC->JDBC Connection Pools in the tree
- Select New
- Pool Name:
tplanpool
- Resource Type:
javax.sql.ConnectionPoolDataSource
- Database Driver Vendor:
MySQL
- Leave the other settings on defaults
jdbc:mysql://localhost:3306/tplanrap?zeroDateTimeBehavior=convertToNull
.
If your MySQL DB is on another machine replace 'localhost'
with the machine name or IP address accordingly.tplanpool
(it will
associate the connection with the pool we
created) asadmin stop-domain domain1
asadmin start-domain domain1
tplanrap.war
file (you'll receive it from the T-Plan support)NOTE: The app can be also deployed from CLI using the "asadmin" command. See https://glassfish.java.net/docs/4.0/quick-start-guide.pdf for details.
Required
table
DUAL
- MySQL is either down or the authentication failed. Check if it's running in the system Services. To verify the user and password go to the connection pool in the GlassFish admin console and select the "ping" button. It must succeed.
- This means that RAP can connect to MySQL but it doesn't know which DB to work with. The URL property in the connection pool properties is likely to be wrong.
tplanrap.war
file from
the T-Plan supporthttp://localhost:4848