Microsoft Outlook 2010 – Free Quick Reference Card


You can Use Linkedin Credentials to Download.

Microsoft Outlook 2010 - Free Quick Reference Card
Microsoft Outlook 2010 – Free Quick Reference Card

This Microsoft Outlook 2010 Quick Reference provides shortcuts, tips, and tricks for the e-mail management software.

Use it to brush up on the basics and to find alternate methods to your favorite commands. This printable quick reference is yours to use, distribute, and share at your organization!

Cloud Computing – Download Free EBooks and Whitepapers
Java – Download Free EBooks and Whitepapers
Windows – Download Free EBooks and Whitepapers

Vodpod videos no longer available.

 

Advertisements

SSL tutorial – with HTTPS example (Good One)


SSL tutorial

 

Cloud Computing – Download Free EBooks and Whitepapers
Java – Download Free EBooks and Whitepapers
Windows – Download Free EBooks and Whitepapers

 

How to debug Web Application remotely with Eclipse Indigo and Tomcat 7.0.22?


Lets create and simple Web Application with Single Servlet.

Java – Download Free EBooks and Whitepapers

Visit How to Create and Run Web Project (Java) in Eclipse

Once the Web Application is ready, lets export .war file to Tomcat 7.0.22.

Visit How to Export WAR file from Eclipse to Tomcat

Now let’s verify whether debug property is set or not in catalina.bat file;

it is available at apache-tomcat-7.0.22bin; By default settings are done for debugging in Tomcat 7.0.22. If it is not done or modified then do the following changes.

catalina.bat in Tomcat
catalina.bat in Tomcat

Open the Servlet source file of the web application in Eclipse and set the BREAK point.

Breakpoint in Eclipse to debug web application remotely
Breakpoint in Eclipse to debug web application remotely

Select Debug Configurations

Now. Change the Debug Configurations.

Debug Configuration in Eclipse
Debug Configuration in Eclipse

Open command prompt -> Go to the path of Tomcat distribution Directory/bin

catalina jpda start

Start Tomcat in Debug Mode
Start Tomcat in Debug Mode

Click on Debug on Eclipse

Debug in Eclipse
Debug in Eclipse

Open the Browser and enter the URL (in our case it is http://localhost:8080/JavaWebProject/HelloWorldExample)

Run Web Application Firefox
Run Web Application Firefox

The moment you press enter, you will see debug mode indicator in taskbar,

Debug Mode
Debug Mode

Now the flow will be paused on the breakpoint we created earlier.

Remote debugging of an Application in Eclipse
Remote debugging of an Application in Eclipse

Now you can use Step Into (f5), Step Over (f6), Step Return (f7) to debug as per the application code and your requirement to debug, for simplicity we have only one statement for debugging.

Debug Buttons in Eclipse
Debug Buttons in Eclipse

Now in browser you will be able to see the output.

Servlet Output
Servlet Output

Other Interesting Tomcat related Articles:

How to Export WAR file from Eclipse to Tomcat


To export WAR file from the Dynamic Web Project in Eclipse, Follow below steps:

Export WAR File
Export WAR File

Java – Download Free EBooks and Whitepapers

Now select the destination where you want to deploy the WAR file; in our case, it will be Tomcat‘s “webapps” directory.

Select Destination to Deploy WAR file
Select Destination to Deploy WAR file

If you want to maintain source files (.java) then click on export source files as well.

Select Destination to Deploy WAR file
Select Destination to Deploy WAR file

Now verify the webapps directory in Tomcat’s distribution folder.

webapps directory in Tomcat's distribution folder
webapps directory in Tomcat’s distribution folder

Lets run the Web Application and verify

Run Tomcat, and you will notice that the WAR file content will be extracted into the folder

Once tomcat is Up and Running, Open Browser and open the URL http://localhost:8080/JavaWebProject/HelloWorldExample, you will see

Successful Servlet Execution in Tomcat Server in Browser
Successful Servlet Execution in Tomcat Server in Browser

Done!!! 🙂

Other Interesting Tomcat related Articles:

How to Create and Run Web Project (Java) in Eclipse


Open Eclipse – > /*Click on File Menu

New Project in Eclipse
New Project

Java – Download Free EBooks and Whitepapers

Select Web -> Dynamic Web Project

Web Project in Eclipse
Web Project

Provide proper Project Name

New Dynamic Web Project in Eclipse
New Dynamic Web Project in Eclipse

Keep the Source Folder default

New Dynamic Web Project Configuration in Eclipse
New Dynamic Web Project Configuration

Keep the Context Root and Content Directory default

New Dynamic Web Project Configure Web Module Settings in Eclipse
New Dynamic Web Project Configure Web Module Settings

Click on Finish.

Now Verify Project Explorer in Eclipse

New Web Project in Eclipse (Project Explorer)
New Web Project (Project Explorer)

In Java Resource -> src

create servlet

New Servlet in Eclipse
New Servlet

Give Source Folder, Package and Class Name

Create a Servlet in Eclipse
Create a Servlet

Give Deployment Descriptor Specific Information

Specify modifiers, interfaces to implement, and method stubs to generate

Specify modifiers, interfaces to implement, and method stubs to generate
Specify modifiers, interfaces to implement, and method stubs to generate

Click Finish.

HelloWorldExample will contain…
===================================================================
import java.io.IOException;
import java.io.PrintWriter;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
* Servlet implementation class HelloWorldExample
*/
@WebServlet(“/HelloWorldExample”)
public class HelloWorldExample extends HttpServlet {
private static final long serialVersionUID = 1L;

/**
* Default constructor.
*/
public HelloWorldExample() {
// TODO Auto-generated constructor stub
}

/**
* @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response)
*/
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
// TODO Auto-generated method stub
PrintWriter out = response.getWriter();
out.println(“Hello World!!!!!!!!!!!!!!”);
}

/**
* @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response)
*/
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
// TODO Auto-generated method stub
}

}
===================================================================

Now you will see:

servlet-api.jar errors in eclipse
servlet-api.jar errors

Please Visit How to Solve Servlet Errors in Eclipse? (clean-clouds.com) to find the solution.

Once all errors are resolved

Servlet errors resolved
Servlet errors resolved

Now lets do entries in Deployment Descriptor, web.xml

======================================================================

xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xmlns=”http://java.sun.com/xml/ns/javaee” xmlns:web=”http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd” xsi:schemaLocation=”http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd” metadata-complete=”true” version=”3.0″>
<description>
Servlet and JSP Examples.
</description>
Servlet and JSP Examples
<servlet>
<servlet-name>HelloWorldExample</servlet-name>
<servlet-class>HelloWorldExample</servlet-class>
</servlet>

<servlet-mapping>
<servlet-name>HelloWorldExample</servlet-name>
<url-pattern>/HelloWorldExample</url-pattern>
</servlet-mapping>

</web-app>

======================================================================

Now lets try to run the project from the eclipse; but for that we need to add web server in eclipse. We will add tomcat 7.x in eclipse

Please visit How to add Tomcat 7.x in Eclipse?

Now lets try to run it in eclipse after adding Tomcat Server in Eclipse

Run Dynamic Web Project on Server From Eclipse
Run Dynamic Web Project on Server
Run Dynamic Web Project on Server From Eclipse-Select Resources
Run Dynamic Web Project on Server -Select Resources

Unblock Features in Windows Firewall

Unblock Features in Windows Firewall
Unblock Features in Windows Firewall

Now Tomcat will start

Tomcat Console in Eclipse
Tomcat Console

Verify the Tomcat status from the Server Tab

Tomcat Server Status in Eclipse
Tomcat Server Status

And we can see servlet is successfully executed at

Successful Servlet Execution in Tomcat Server in Eclipse
Successful Servlet Execution in Tomcat Server

You can copy same path and verify in any browser.

http://localhost:8080/JavaWebProject/HelloWorldExample

Successful Servlet Execution in Tomcat Server in Browser
Successful Servlet Execution in Tomcat Server in Browser

Done!!! 🙂

Other Interesting Tomcat related Articles:

How to Solve Servlet Errors in Eclipse?


Servlet Errors in Eclipse

For new users, it’s common to encounter following errors while developing servlet in Eclipse (I am using eclipse-jee-indigo-SR2-win32) or without it:

HttpServlet cannot be resolved to a type
HttpServletRequest cannot be resolved to a type
HttpServletResponse cannot be resolved to a type
ServletException cannot be resolved to a type
The import javax.servlet cannot be resolved
WebServlet cannot be resolved to a type

servlet-api.jar errors in eclipse
servlet-api.jar errors in eclipse

Java – Download Free EBooks and Whitepapers

The problem is “servlet-api.jar” is not on classpath.

How to add servlet-api.jar in classpath from Eclipse?

Right Click on the Web Project and Click on Properties

Dynamic Web Project Properties in Eclipse
Dynamic Web Project Properties in Eclipse

Select Java Build Path

Java Build Path in Eclipse
Java Build Path in Eclipse

Click on the Library Tab

Java Build Path in Eclipse-Libraries
Java Build Path in Eclipse-Libraries

Click on “Add External Jar” -> Locate servlet-api.jar from your local system (It’s available in Tomcat Distribution directory.)

Add External Jar servlet-api.jar from tomcat installation dir
Add External Jar servlet-api.jar from tomcat installation dir
servlet-api.jar external jar added
servlet-api.jar external jar added

Click OK and all errors will be resolved.

Servlet errors resolved
Servlet errors resolved

Done!!!

Other Interesting Tomcat related Articles:

Microsoft Visio 2010 – Free Quick Reference Card


Microsoft Visio 2010 – Free Quick Reference Card

 This Microsoft Visio 2010 Reference provides shortcuts, tips, and tricks for the popular diagramming software. Use this reference to brush up on the basics and to find alternative methods to your favorite commands.

Cloud Computing – Download Free EBooks and Whitepapers
Java – Download Free EBooks and Whitepapers
Windows – Download Free EBooks and Whitepapers
Microsoft Visio 2010 - Free Quick Reference Card
Microsoft Visio 2010 – Free Quick Reference Card

This printable quick reference is yours to use, distribute, and share at your organization!

Along with this free reference card, if you are eligible, you will also receive a 30-day trial of CustomGuide training, including over 7,000 Online Skills Assessments and Interactive Tutorials.

To Download Click Here.