This is an old revision of the document!
The installation package contains a sample web application “Hello World” that serves as an example of ADUCID® technology integration. The installation DVD contains source files of the sample application.
Preliminary condition must be fulfilled to be sure that sample application is fully working:
To install the web application, follow these steps:
After installation, sample application is accessible on address:
http://[ip_address_of_your_container]:[port_of_your_container]/aducid-tomcat-webapp
For example on address:
http://10.20.29.189:8080/aducid-tomcat-webapp
In case of installing on Linux OS, consider also iptables settings.
The web application you have just installed contains two JSP pages.
/unsecured.jsp - this page is freely accessible.
/web/secured.jsp - this page is protected by the “RegAdmin” and “UserAdmin” roles.
<font 11.0pt/11;;inherit;;inherit>If both the application and Tomcat are configured properly, the /web/secured.jsp page will be accessible. Accessibility of individual sections depends on the role assigned.</font>
If the result of authentication process is not according previous figure check following:
The appendix shows the relevant part of the web.xml descriptor.
<security-constraint> <web-resource-collection> <web-resource-name>secured resources</web-resource-name> <url-pattern>/web/*</url-pattern> <url-pattern>/authCheck</url-pattern> </web-resource-collection> <auth-constraint> <role-name>RegAdmin</role-name> <role-name>UserAdmin</role-name> </auth-constraint> </security-constraint> <login-config> <auth-method>ADUCID</auth-method> </login-config> <security-role> <role-name>RegAdmin</role-name> </security-role> <security-role> <role-name>UserAdmin</role-name> </security-role>
Example of log4j.properties settings
log4j.rootCategory=INFO, CONSOLE log4j.logger.com.aducid.tomcat=DEBUG log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout log4j.appender.CONSOLE.layout.ConversionPattern=[%p] [%c] %m%n