Management Console in Tomcat
429
<WatchedResource>WEB-INF/web.xml</WatchedResource>
<Resource name="jdbc/kapow/platform" auth="Container" type="javax.sql.DataSource"
maxActive="100" maxIdle="30" maxWait="-1"
validationQuery="/* ping */" testOnBorrow="true"
username="MyUser" password="MyPassword" driverClassName="com.mysql.jdbc.Driver"
url="jdbc:mysql://localhost:3306/KAPOW_MC?useUnicode=yes&amp;characterEncoding=UTF-8"/>
</Context>
The url parameter above is a JDBC URL. The username and password attributes are used by Tomcat
to create a connection pool used when connecting to the database.
The data sources are defined differently for other databases. For instance, if you are using Microsoft SQL
Server 2005/2008, the relevant three lines above should instead be:
username="MyUser" password="MyPassword"
driverClassName="com.microsoft.sqlserver.jdbc.SQLServerDriver"
validationQuery="SELECT 1" testOnBorrow="true"
url="jdbc:sqlserver://localhost:1433;DatabaseName=MyDbName"/> 
Note that if you are using Microsoft SQL Server, you need to configure it to use mixed mode authentication.
Generally, you should consult the JDBC documentation to identify which values to use in the data sources.
The 
URL 
jdbc:mysql://localhost:3306/
KAPOW_MC?useUnicode=yes&amp;characterEncoding=UTF-8  refers  to  a  database
named  KAPOW_MC  in  our  local  MySQL.  For  MySQL  it  is  recommended  that  you  add
?useUnicode=yes&characterEncoding=UTF-8 to all connection strings, otherwise the JDBC
driver will not handle Chinese, Japanese or other 3-byte utf-8 characters correctly, since we can't have &
directly inside the context xml file, we must encode it as &amp;
The driverClassName parameter controls which JDBC driver is used; each database vendor provides
a JDBC driver for their database, which you will have to download. The JDBC driver, typically a single
.jar file, must be copied into the /lib folder on Tomcat 6/7, or commons/lib on Tomcat 5.5.
The validationQuery is used by Tomcat to verify that the connection obtained from the connection
pool is still valid (as the database server may have closed the connection). The validation query is
lightweight and uses very few resources on the database server, this list contains validation queries for
the supported databases.
Table 153. Validation queries
Database
Query
MySQL
/* ping */
Microsoft SQL Server 2005/2008
SELECT 1
Sybase Adaptive Server Enterprise
SELECT 1
IBM DB2
VALUES(1)
Oracle
SELECT 1 FROM DUAL
Note that the MySQL JDBC driver supports a special lightweight /*  ping  */ 'request', check
JConnector manual [http://downloads.mysql.com/docs/connector-j-en.a4.pdf] section 6.1 for details
Add links in pdf - insert, remove PDF links in C#.net, ASP.NET, MVC, Ajax, WinForms, WPF
Free C# example code is offered for users to edit PDF document hyperlink (url), like inserting and deleting
adding hyperlinks to pdf documents; active links in pdf
Add links in pdf - VB.NET PDF url edit library: insert, remove PDF links in vb.net, ASP.NET, MVC, Ajax, WinForms, WPF
Help to Insert a Hyperlink to Specified PDF Document Page
adding links to pdf in preview; adding hyperlinks to pdf
Management Console in Tomcat
430
For more information on context configuration and data sources, see JNDI Resources HOW-TO [http:/
/tomcat.apache.org/tomcat-6.0-doc/jndi-resources-howto.html] and JNDI data source HOW-TO [http://
tomcat.apache.org/tomcat-6.0-doc/jndi-datasource-examples-howto.html].
We are now ready to start the Tomcat server
Starting Tomcat
Start your Tomcat server, wait a couple of seconds for the application to be deployed, then navigate to
http://localhost:8080/ManagementConsole [http://localhost:8080/ManagementConsole]. You should see
the following page.
C# PDF Convert to HTML SDK: Convert PDF to html files in C#.net
HTML converter toolkit SDK, preserves all the original anchors, links, bookmarks and to Use C#.NET Demo Code to Convert PDF Document to Add necessary references
chrome pdf from link; convert a word document to pdf with hyperlinks
.NET PDF Document Viewing, Annotation, Conversion & Processing
PDF Write. Insert text, text box into PDF. Edit, delete text from PDF. Insert images into PDF. Edit, remove images from PDF. Add, edit, delete links. Form Process
add a link to a pdf in acrobat; change link in pdf
Management Console in Tomcat
431
VB.NET PDF Convert to HTML SDK: Convert PDF to html files in vb.
Turn PDF images to HTML images in VB.NET. Embed PDF hyperlinks to HTML links in VB.NET. Convert PDF to HTML in VB.NET Demo Code. Add necessary references:
pdf links; clickable links in pdf
C# PDF Convert to Word SDK: Convert PDF to Word library in C#.net
the original text style (including font, size, color, links and boldness). C#.NET DLLs and Demo Code: Convert PDF to Word Document in C# Add necessary references
add hyperlink to pdf; add hyperlinks pdf file
Management Console in Tomcat
432
No Providers
For this  guide,  we  will use  the  predefined  hard  coded  users.  Go  to  WEB-INF/login.xml  and
uncomment <!--ref bean="hardCoded"/--> Then restart Tomcat
After restart, press F5 to refresh you browser, you should no be redirected the  http://localhost:8080/
ManagementConsole [http://localhost:8080/ManagementConsole] you should see the following login
screen.
How to C#: Basic SDK Concept of XDoc.PDF for .NET
You may add PDF document protection functionality into your C# program. to edit hyperlink of PDF document, including editing PDF url links and quick
add hyperlink to pdf acrobat; check links in pdf
C# Create PDF Library SDK to convert PDF from other file formats
PDF with a blank page, bookmarks, links, signatures, etc. PDF document in C#.NET using this PDF document creating toolkit, if you need to add some text
add email link to pdf; change link in pdf file
Management Console in Tomcat
433
VB.NET PDF: Basic SDK Concept of XDoc.PDF
You may add PDF document protection functionality into your VB.NET program. to edit hyperlink of PDF document, including editing PDF url links and quick
pdf link; clickable links in pdf files
C# Image: Tutorial for Document Management Using C#.NET Imaging
more detailed C# tutorials on each part by following the links respectively are dedicated to provide powerful & profession imaging controls, PDF document, image
adding a link to a pdf; add hyperlinks to pdf
Management Console in Tomcat
434
Login page
Enter "admin" as username and password and click the login button.
Enter License
After logging in, the following dialog is displayed:
No License
Now enter the Kapow Katalyst license information and click the Save button. You should see the following
popup displaying which features your license key enables.
Management Console in Tomcat
435
License updated
Project Permissions
The admin user we logged in with bypasses the normal project permission applied to regular users. The
admin user is a member of the group named ADMINISTRATOR. This group name is listed as one of the
values in the list of adminGroups.
<bean id="adminGroups" class="com.kapowtech.mc.config.AdminGroups">
<property name="adminGroups">
<list>
<value>ADMINISTRATOR</value>
</list>
</property>
</bean>
Any group listed here is considered an administrator group, and members of these groups will always be
able to login, and have permission to perform all actions. They are the only users who can export and
restore backups, and change the license keys.
If you try to login with the dev user (password dev), you should see the following page
Management Console in Tomcat
436
User not mapped
For non-administrator users, permissions is based on the user's group membership. The dev user is a
member of the group DEVELOPER, and since we have not given users in the DEVELOPER group access
to any projects, they are not able to log in.
To allow the dev user to log in, we must log in as administrator and go to the Projects tab which is a sub
tab of the Admin tab. It looks like this:
Management Console in Tomcat
437
Initial project permissions
As we can see in the Permission column, there are 0 permission mappings.
We now click edit to open the Edit Project dialog and go to the permissions tab. Here we see a grid with
columns Project Role, and Security Group. A project role determines a set of actions that may be performed
inside the Management Console, such as uploading robots, creating schedules, viewing logs etc. (more
details on this later). Within a project you assign a project role to a security group. That way, all users of
the selected security group will be able to perform the actions allowed by the assigned project role.
Click the "Add Permission" button to add permissions in this project. This adds a new line to the grid, and
inserts a dropdown allowing us to select a project role, select the project role developer. Now double click
in the Security Group column, get the the dropdown allowing you to select the DEVELOPER security
group (of which our dev user is a member). It should look like this:
Management Console in Tomcat
438
Adding project permissions
Now click Save.
All members of the DEVELOPER group can now perform the actions allowed by the role developer. All
roles are defined in the WEB-INF/roles.xml file. The roles defined in roles.xml defines low level
permission for each tab. Here is an example Developer role:
<bean class="com.kapowtech.scheduler.client.auth.Role">
<property name="roleName" value="Developer"/>
<property name="description" value="A user than can edit/delete schedules, robots, types, snippets and resources, but only view logs and data"/>
<property name="permissions">
<bean class="com.kapowtech.scheduler.client.auth.Permissions">
<property name="dashBoardPermissions">
<bean class="com.kapowtech.scheduler.client.auth.DashBoardPermissions">
<property name="viewDashboard" value="true"/>
</bean>
</property>
<property name="schedulesTabPermissions">
<bean class="com.kapowtech.scheduler.client.auth.SchedulesTabPermissions">
<property name="viewSchedules" value="true"/>
Documents you may be interested
Documents you may be interested