Browsing the archives for the eclipse tag.

tricks-in-creating-web-application-with-eclipse

research

1.Check if there is intalled JRE-jdk
Windows-preferences-Java-Installed JREs
If there is not add one

2.Check if there is server runtime environment set
Windows-preferences-Server-Runtime Environments
If there is not add one

3. Now start developing application
Create project
New-Web-DynamiC Web Project-give a name
4.Add application to tomcat server and run/stop the server
R-click on Server
R-Click-New-Server to add a server to the application

then right clik and select start to run
second way to run
R-click on the JSP page Run As-Run on server-select server

//==========How to create servelt:
R-Click on the project name-New-Servlet-give package name-Give servlet name

In order to invoke servlet …projectName/ServletName
//==========How to export the application as War file
File-Export-Web-War File-Give a name
Then you can run this application developed in Eclipse under webapp directory of any tomcat installations
java source files will be going into “Java Resources: src”
jsp, html go to WebContent
jars go to WebContent/lib

No Comments

Development of Java Web Services with Eclipse

research

Web Service applications require a couple of libraries such as axis, servlet-container and java software development kits. If you want to build a Web Service application on the Eclipse IDE, you have to be careful. Below you will see the basic steps when you go through any tutorial you find on the web.

Before starting, please download/install the below list.
Please do NOT use any other versions of these software/library packages. In other case you will encounter many debugging problems that you can not cope with in eclipse.

0.
Get the below packages with the right versions

axis2-1.2
Dynamic web module 2.4 (you dont need to download it is already in eclipse)
apacxhe tomcat 5.5
java 5
1. Setting axis2 runtime env
Window-preferences-WebServices-Axis2 Preferences
C:Program Filesaxis2-1.5 and ok

2.
Next we need to create a project with the support of Axis2 features. Open File -> New -> Other… -> Web -> Dynamic Web Project

Give the project a name
set the target runtime Apache Tomcat v5.5
Dynamic Web Module version 2.4
Add java 1.4 and set

3.
Right click on the project name and select Project facets
click “Axis2 Web Services”

4.
Select Converter.java, open File -> New -> Other… -> Web Services -> Web Service
-chose web service runtime first
Apache Axis2

5.
TEST:
http://localhost:8080/Axis2WSTest/

No Comments