Apache Authentication (basic-form)

Create the directory structure for the new context:

  • The directory that your application resides is called the context root or document base directory. You should keep all your HTML files and resources visible to the Internet users under the context root.
  • Create a directory called “WEB-INF” under the context root. This directory, although under the context root, is not visible to the users. This is where you keep your application’s configuration files such as web.xml.
  • Create a directory called “classes” under “WEB-INF“. This is where you keep all the Java classes such as servlets.
  • Create a dectory called “lib” under “WEB-INF“. This is where you keep the jar files and native libraries.
  • Optionally, create a directory called “src” under “WEB-INF“, for keeping the source files.

Basic authentication

just add

<realm-name>Example Basic Authentication Area</realm-name>

<web-resource-name>Security Example</web-resource-name>

<role-name>View Suppliers</role-name>

in web.xml

and add database credentials in context xml

<Context path=”/context path”
<Realm className=”org.apache.catalina.realm.JDBCRealm”
connectionURL=”jdbc:mysql://server host :port/ISSYSDB”
userRoleTable=”role table”
userTable=”User table”

form Authentication


in web.xml


About lorddisk

WebCenter Content, WebCenter Portal, WebCenter Sites,Weblogic, Identity and Access Management (IAM),SSO,OAM,OIM,OAAM,OUD, OPAM,OID, OVD ,Oracle API Gateway ,OBIEE,OEDQ, Oracle ADF, Oracle SOA,J2EE, CackePHP ,PHP,J2SE,J2EE,Spring,Hibernate,JQuery,CSS,Java Script ,Joomla,Drupal,Worpress
This entry was posted in java. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s