Showing posts with label Apache Tomcat. Show all posts
Showing posts with label Apache Tomcat. Show all posts

Thursday, April 12, 2012

How to use HTTP Basic Authentication to secure services

HTTP Basic authentication is a popular topic in the SCWCD/OCWCD (Oracle Certified Web Component Developer exam).  It can be used to secure web services too.
While i was reading some blog posts during the vacation i came across an interesting post related to securing web services using HTTP Basic Auth and invoking the secured service with a web service client.

Here is the link to the post : http://blog.facilelogin.com/2008/11/secure-your-service-with-http-basic.html



Sunday, September 18, 2011

How to install Apache Tomcat server on Ubuntu

Apache Tomcat is an open source software implementation of the Java Servlet and JavaServer Pages technologies. The Java Servlet and JavaServer Pages specifications are developed under the Java Community Process.

Prior to installing tomcat make sure that your have installed java.

Then Follow the following steps to install the tomcat servlet container.

  1. Download Apache tomcat from the Apache web site
  2. Unzip (extract) the downloaded zip file using the 'unzip' command
  3. Open the terminal and go to the bin folder of the tomcat directory
  4. Then run this command './startup.sh'
  5. You will see something similar to  following in the terminal

achala@achala-HP-Pavilion-dv6-Notebook-PC:~/tomcat/apache-tomcat-7.0.21/bin$ ./startup.sh
Using CATALINA_BASE:   /home/achala/tomcat/apache-tomcat-7.0.21
Using CATALINA_HOME:   /home/achala/tomcat/apache-tomcat-7.0.21
Using CATALINA_TMPDIR: /home/achala/tomcat/apache-tomcat-7.0.21/temp
Using JRE_HOME:        /usr
Using CLASSPATH:       /home/achala/tomcat/apache-tomcat-7.0.21/bin/bootstrap.jar:/home/achala/tomcat/apache-tomcat-7.0.21/bin/tomcat-juli.jar
achala@achala-HP-Pavilion-dv6-Notebook-PC:~/tomcat/apache-tomcat-7.0.21/bin$ 



Open your web browser and type http://localhost:8080/ 
 
Next you can try a jsp

Go to apache-tomcat-7.0.21/webapps/ROOT and place your .jsp file there.
Then open your web browser and type  
http://localhost:8080/yourfilename.jsp


Using Zotero for academic writing