Sunday, July 29, 2012

comment_icon 0 Creating Facebook Application Step By Step Part-1

Facebook Applications are the most popular way of publishing the products and several things today. so if you are a developer you should try this,because by this way you can understand that how Facebook apps works and how it can be so critical in some cases.

Do you Really Think its really Hard to build A Facebook App ??

if you say yes then you are wrongs because if you have a little programming concept and little bit web concept you can easily build Facebook Application.

In this tutorial  You are going through a Step by step process of creating Facebook Apps.We are going do build Facebook Application Using phpfog 

Prerequisite For This Tutorial :

  1. Little bit knowledge of  PHP, CSS, JavaScript
  2. A System with with internet Connection .

STEP -1 : Create  New Facebook Application

  1. got to  https://developers.facebook.com/apps  
  2. Click Create New App
  3. fill App Name : Tutorialapp (give some name)
  4. App Namespace: demotutorialapp (give some namespace i.e. going to be your app url)
  5. Don't tick in Check box
  6. Click Continue
  7. fill the Captcha 
  8. A new App will be created for you.
  9. just click Save Changes

Building Facebook Application











Friday, July 27, 2012

comment_icon 0 installation of DB2 Express-C 10.1 on Ubuntu 12.04

hey guys in this session we are going to see this how can we install DB2 Express-c  on Ubuntu System.i found this on Internet ,for more information you can visit the Actual Source link given below .
i hope you will find this useful so give a shot.

Install the base system

First of all you should install Ubuntu 12.04 with minimal packages, almost nothing else is required at the beginning.
After initial installation run the following command to upgrade your system as latest stable + some optional useful packages:
aptitude update && \
aptitude -y full-upgrade && \
tasksel install openssh-server && \
tasksel install server && \
tasksel install mail-server && \
aptitude -y install colordiff mlocate ntp pwgen rsync vim
In case you are NOT using remote X11 with SSH so local GUI is required, install additional packages as below:
tasksel install lubuntu-core
Once everything get ready you may start the GUI and test with:
startx
Check your /etc/hostname and update as below:
localhost.localdomain
Check your /etc/hosts and update as below:
127.0.0.1       localhost.localdomain   localhost
Check your /etc/resolv.conf and update as below:
search localdomain
In case of using OpenStack VM, default search domain assigned by DHCP would be "novalocal"; therefore we need to update /etc/dhcp/dhclient.conf as below:
supersede domain-name "localdomain";
supersede domain-search "localdomain", "novalocal";
Then restart network by:
/etc/init.d/networking restart
Running /etc/init.d/hostname.sh (or simply reboot your Ubuntu), then test the hostname of system with:
hostname
Remeber to double check if time zone setup correctly:
dpkg-reconfigure tzdata
Ok up to this point your Ubuntu 12.04 should basically configure for installing DB2 Express-C 10.1.

Check your hardware setup

First of all, you need to have AT LEAST 1GB of physical memory (I use 2GB here). Check it with:
grep MemTotal /proc/meminfo
On the other hand, it is suggest to have swap with 1.5 time of your physical memory, e.g. around 2GB. Check it with:
grep SwapTotal /proc/meminfo
In case I am using libvirt + KVM VM client, I don't hope to create swap partition by default or else if all VMs are running out of resourse they will all keep on swapping to harddisk and finally all gone...
Here I will create a temperate swap file and activate it during installation; once reboot it will gone automatically (or manually disable it with swapoff /tmp/swap):
dd if=/dev/zero of=/tmp/swap bs=1M count=4096
chmod 600 /tmp/swap
mkswap /tmp/swap
swapon /tmp/swap
grep SwapTotal /proc/meminfo
Shared memory is very important, too. Or else you may face the ORA-00845 error message. First check it with:
df -kh /dev/shm/
If you have less than 512MB (I will suggest for 1GB), edit your /etc/fstab and add/modify the following line:
tmpfs           /dev/shm        tmpfs   defaults,size=1024M    0       0
Then remount it and check the size once again:
mount -o remount /dev/shm
df -kh /dev/shm/

Install dependence packages

As I assume you have Ubuntu 12.04 installed correctly with X11, we just need to dig into dependence packages installation directly (in case of AMD64):
aptitude -y install alien binutils build-essential cpp-4.4 debhelper g++-4.4 gawk gcc-4.4 gcc-4.4-base gettext html2text ia32-libs intltool-debian ksh lesstif2 lib32bz2-dev lib32z1-dev libaio-dev libaio1 libbeecrypt7 libc6 libc6-dev libc6-dev-i386 libdb4.8 libelf-dev libelf1 libltdl-dev libltdl7 libmotif4 libodbcinstq4-1 libodbcinstq4-1:i386 libqt4-core libqt4-gui libsqlite3-0 libstdc++5 libstdc++6 libstdc++6-4.4-dev lsb lsb-core lsb-cxx lsb-desktop lsb-graphics lsb-qt4 make odbcinst openjdk-6-jdk pax po-debconf rpm rpm-common sysstat tzdata-java unixodbc unixodbc-dev unzip

Configure kernel parameters

Check your existing setup with:
/sbin/sysctl -a | grep sem
/sbin/sysctl -a | grep shm
/sbin/sysctl -a | grep file-max
/sbin/sysctl -a | grep ip_local_port_range
/sbin/sysctl -a | grep rmem_default
/sbin/sysctl -a | grep rmem_max
/sbin/sysctl -a | grep wmem_default
/sbin/sysctl -a | grep wmem_max
Then edit your /etc/sysctl.conf and add the following lines:
fs.aio-max-nr = 1048576
fs.file-max = 6815744
kernel.shmall = 2097152
kernel.shmmax = 536870912
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
net.ipv4.ip_local_port_range = 9000 65500
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048586
Run the following command to reload these kernel parameters:
sysctl -p

Last step before installation start

First of all, login with root, with X enabled.
If you are using PuTTY + Xming, for sure that the X11 forward is enabled.
Copy the file db2_v101_linuxx64_expc.tar.gz to temporary directory, then extract it:
cp db2_v101_linuxx64_expc.tar.gz /usr/local/src
cp db2_v101_linuxx64_nlpack.tar.gz /usr/local/src
cd /usr/local/src
tar zxvf db2_v101_linuxx64_expc.tar.gz
tar zxvf db2_v101_linuxx64_nlpack.tar.gz
rsync -av /usr/local/src/nlpack/ /usr/local/src/expc
rm -rf /usr/local/src/nlpack
I will STRONGLY suggest for a complete reboot, and double-check ALL pre-installation BEFORE starting the next step.
First of all login with root and start the X11 with startx, then start the installer with:
cd /usr/local/src/expc/ && ./db2setup
Next we go though the installation:
Choose "Install a Product" then press on "Install New":
The "Welcome to the DB2 Setup wizard" screen will now show up:
We must accept the "Software License Agreement";
During "Select the installation type" I would like to use "Custom: 10 - 390 MB" installation so able to get full control:
In "Select installation, response file creation, or both" just use default setup:
In "Select the features to install" I just click "Select all" so everything should install correctly as expected for R&D:
In "Select the languages to install" again I choose all languages:
In "Specify the location of the DB2 Information Center" I will get information by "On the IBM Web site":
In "Set user information for the DB2 Administration Server", create the user for DAS (1/3 or DB2 users):
In "Set up a DB2 instance", choose "Create a DB2 instance":
In "Set user information for the DB2 instance owner", we will create an user account for our new instance (2/3 or DB2 users):
In "Set user information for the fenced user", create user account as similar as above (3/3 or DB2 users):
In "Configure instance communication and startup", just keep as default:
In "Set up notifications" just keep as default (for sure that you should also setup local SMTP server correctly):
In "Specify a contact for health monitor notification" just keep as default:
In "Configure the DB2 Text Search service", again just keep as default:
Ok is time for final confirmation, we also get it done:
And now let's go for a coffee break ;-)
Ok you get it!

Post-installation procedure

Before we go to next step, let's check the following tasks:
  • The default shell for dasuser1, db2instl and db2fencl are sh. Edit /etc/passwd and update them as bash.
  • Kill your X, logout, re-login with db2instl, then run startx (or directly for db2fs/db2cc if you are using Putty + Xming)
Open a terminal and start db2fs:
db2fs
db2fs will ask for your default web browser. Answer /usr/bin/firefox here:
This will open the "First Steps for DB2 Database for Linux, UNIX, and Windows" in Firefox. Now click on "Create SAMPLE database:
In "First Steps - Create SAMPLE Database", just keep as default:
Again, let's have a coffee break and it should be done within 3 mins ;-)

HEY GUYS I Didn't installed this so for more information you can visit Actual Source 

Friday, July 20, 2012

comment_icon 0 Getting Started with TGMC

If you doing the TGMC project then you have to use IBM  tools only
like
  1.  Rational Software Architect For  Unified modeling (UML ) and SRS 
  2. DB2 for Database
  3. Rational Application Developer or Eclipse (only open source not Commercial)
  4. WebSphere Application Server or WebSphere Community addition For Deployment 
But When you are Installing or using The Rational Application Developer (RAD)  in some cases it didn't get installed so What you can do for that ?



My Advice is that you  can for Eclipse it is available free 

but there are few things where you have to compromise i just list few of them
  1. No Drag N Drop : Eclipse did't provide pallete view 
  2. You have to use  WebSphere Community Edition server only 
these two are major compromises but eclipse works pretty well so you can go for it if you face any problem with RAD in installation .

So From Where you can download these Tools ?
This is the most Common Questions Regarding the TGMC
So i just give a brief on that
 IBM will provide their toolkit Disks but it will take time so better download them by own 
1st thing 1st so 1st in the list is
  • RSA(Rational Software Architect ) : you can download the trial version form the website they will give atleast 1 month which is enough for creating your SRS 
  • DB2 : its community edition is free and you can download it from ibm website
  • RAD/Eclipse : you have to download the trial version of RAD or you can use Eclipse which is free of charge
  • Server : for deployment and testing you need a server so you can go for  WebSphere Community addition because its free and works pretty well
  Download Links :

 Note: Before downloding Register yourself on IBM -Site (it s free) make suer you will download Installation manager . it will be available on same download page  .

Thursday, July 19, 2012

comment_icon 1 Project scenarios for TGMC 2012


Today i just seen the list of TGMC scenarios an i am quite surprised because this time  scenarios are  new and quite challenging . These  scenario's fit quite well in student's final year Academic projects.

if you are reading this blog and you are final year student then my only advice to you is go for the TGMC project as FINAL year Academic project because there your 40% work is already done what left is 60% and you will also become eligible for blue scholar if you  make TGMC project and get 2 IBM certifications .
you can do IBM-DB2, and Z-OS both are free for students jo just go for it .
all the best to all students


Friday, July 13, 2012

comment_icon 0 The Great Mind Challenge 2012 - Registrations Opened

One more pillar in TGMC's history . TGMC 2011 Completed and TGMC 2012 registrations opened.
TGMC provides  a  very good opportunity to the students who are studying in 3rd year or final year.
i started working for tgmc in 3rd year and my experience is that every computer science engineer should participate in TGMC. Congrats to TGMC 2011 winners and all the best for 2012's .click the  register button for registration of your team





For more details and regular updates on tutorial please follow us on Facebook


https://www.facebook.com/Tutorials-For-TGMC

Friday, April 6, 2012

comment_icon 0 working with Java Beans

In this tutorial i am going to talk about the java beans.
i am going to cover the following  things


  1. what is  Java Bean ?
  2. how we use java beans in JSP
  3. scope of java Beans
what is  Java Bean ?
   If i say in general wordings java beans is the component that can be reused again and again .it just follow write once and use whenever required.

for more details and basics follow the link java Beans

how we use java beans in JSP

JSP provides a usebean tag for using beans in java

 Syntax :
   <jsp:useBean 
id="beanInstanceName" 
  scope="page|request|session|application"
 { class="package.class" | 
  type="package.class" | 
  class="package.class" type="package.class" |
  beanName="{ package.class | <%= expression %> }" type="package.class"  
 }
/>
Example:

Examples

<jsp:useBean id="db" scope="session" class="database.DataConnect" />
How it works (from  http://java.sun.com ) ? 
The <jsp:useBean> tag attempts to locates a Bean, or if the Bean does not exist, instantiates it from a class or serialized template. To locate or instantiate the Bean, <jsp:useBean> takes the following steps, in this order:
  1. Attempts to locate a Bean with the scope and name you specify.
  2. Defines an object reference variable with the name you specify.
  3. If it finds the Bean, stores a reference to it in the variable. If you specified type, gives the Bean that type.
  4. If it does not find the Bean, instantiates it from the class you specify, storing a reference to it in the new variable. If the class name represents a serialized template, the Bean is instantiated byjava.beans.Beans.instantiate.
  5. If it has instantiated (rather than located) the Bean, and if it has body tags (between <jsp:useBean> and </jsp:useBean>), executes the body tags.
Attributes and their Usage 
  • id="beanInstanceName"Names a variable that identifies the Bean in the scope you specify. You can use the variable name in expressions or scriptlets in the same JSP file. The name is case sensitive and must conform to the naming conventions of the page scripting language.
  • scope="page|request|session|application"Defines a scope in which the Bean exists and the variable named in id is available. The default value is page. latter we see explanation about other scopes
  • class="package.class"Instantiates a Bean from a class, using the new keyword and the class constructor. The class must not be abstract and must have a public, no-argument constructor. The package and class name are case sensitive.
  • class="package.class" type="package.class"Instantiates a Bean from a class, using the new keyword and the class constructor, and gives the Bean the type you specify in type. The class you specify in class must not be abstract and must have a public, no-argument constructor. The package and class names you use with both class and type are case sensitive. The value of type can be the same as class, a superclass of class, or an interface implemented by class.
  • type="package.class"If the Bean already exists in the specified scope, gives the Bean the type you specify. If you use type without class or beanName, no Bean is instantiated. The package and class name are case sensitive
 Bean Scopes page Scope:in this scope bean is available for that particular page, as soon as page finishes the the processing the bean will disappear. request scope :if a bean is set to request scope it will be available until that request get processed , if the request results in the page redirection the bean will be also available on the redirected page. session Scope: when a bean is requested as session scope the bean instance will be available for the whole session Application scope: here the bean will be available for the entire application it will exist until application is running on server

Working demo of java Bean : using Bean For db2 connectivity

Download files used in demo  Demo.zip





Sunday, February 26, 2012

comment_icon 5 Sending E-Mail via G-mail using Java


package mymail;



import java.util.Properties;
import javax.mail.Message;
import javax.mail.MessagingException;
import javax.mail.Session;
import javax.mail.Transport;
import javax.mail.internet.AddressException;
import javax.mail.internet.InternetAddress;
import javax.mail.internet.MimeMessage;
public class Mymail   {
 
 
 public Mymail(){
  super();
 }


/*REMOVE THIS TO TEST AS JAVA APPLICATION 

public static void main(String args[]) throws AddressException, MessagingException{
  Mymail m =new Mymail();
  m.GmailSend("coolasr@gmail.com", "hello", "hello");
 }*/


public boolean GmailSend  (String to,String subject,String messageText) throws AddressException, MessagingException{
  
String host="smtp.gmail.com", user="YOUE USERNAME", pass="YOUR PASSWORD";

      
String SSL_FACTORY ="javax.net.ssl.SSLSocketFactory";       
boolean sessionDebug = true;
Properties props = System.getProperties();
props.put("mail.host", host);
props.put("mail.transport.protocol.", "smtp");
props.put("mail.smtp.auth", "true");
props.put("mail.smtp.", "true");
props.put("mail.smtp.port", "465");
props.put("mail.smtp.socketFactory.fallback", "false");
props.put("mail.smtp.socketFactory.class", SSL_FACTORY);
Session mailSession = Session.getDefaultInstance(props,null);
mailSession.setDebug(sessionDebug);
Message msg =new MimeMessage(mailSession);
//msg.setFrom(new InternetAddress(from));
 try
  {
   InternetAddress[] address = {new InternetAddress(to)};
 msg.setRecipients(Message.RecipientType.TO, address);
 msg.setSubject(subject);
 msg.setContent(messageText,"text/plain"); // use setText if you want to send text
 Transport transport = mailSession.getTransport("smtp");
 transport.connect(host, user, pass);
 transport.sendMessage(msg, msg.getAllRecipients());//WasEmailSent = true; // assume it was sent
 return true; 
      
 }
 catch(Exception err) {
      
 //WasEmailSent = false; // assume it's a fail
 return false; 
 //System.out.println("Error"+err.getMessage());
 }
         //transport.close();

 }
}














Monday, February 20, 2012

comment_icon 0 Installing the WASCE WTP Server Adapter


The WASCE Web Tools Platform (WTP) server adapter is a tool for deploying and testing Java EE assets to a WebSphere Application Server Community Edition server. Use the Eclipse Update Manger to install the WASCE WTP server adapter from the Eclipse Update Site for IBM WebSphere Application Server Community Edition.

NOTE: same process is followed for WASCE 3.0 JUST DOWNLOAD 3.0 adapter Click to Download Adapter
Information about this tool can be obtained from the Geronimo development tools site and from the tool's on-line help. The following tips supplement that information.
See Developing portable Java EE assets using Eclipse for information about the JEE Profiling feature.
See Using a server in Eclipse and Deploying in Eclipse for instructions on using the WTP Server Adapter after installing it.

About the WASCE WTP Server Adapters

WebSphere Application Server Community Edition Version 2 provides a new WASCE WTP server adapter which supports Version 1.1.0.x and Version 2.0.0.0 WebSphere Application Server Community Edition servers. These server runtimes can be downloaded from within eclipse after the appropriate WTP server adapter is installed. The Version 2 WASCE WTP server adapter may also be used to run Apache Geronimo Version 1.1.x and Version 2.0 servers, although this is not supported.

Compatible platforms

IBM has tested the WASCE WTP server adapter on Windows and Linux development environments supported by the Server runtime, running on Intel and AMD platforms with the provided IBM 32-bit Java software development kits (SDKs). The Eclipse IDE does support other platforms, which were not tested and therefore, cannot be recommended.
The tool may be compatible with other system platforms and operating system levels, but to obtain support for a suspected defect, you must demonstrate the defect on one of the recommended development platforms.

Installing the WASCE WTP Server Adapter

There are four options for installing the WASCE WTP Server Adapter:
  • the "Download additional server adapters" link
  • the Eclipse Update Manager
  • the updatesite.zip file
  • the deployable.zip file

Installing the WASCE WTP Server Adapter using the "Download additional server adapters" link

  1. In the Servers View panel at the bottom of the screen, right-click, select New and click Server.
    • To show the Servers View panel:
      1. On the Eclipse menu bar, click on Window, select Show View, and click Other....
      2. In the Show View panel, expand Server, select Servers and click OK.
  2. In the New Server panel, click the "Download additional server adapters" link.
  3. In the Install New Server Adapter panel, select "WASCE v2.0 Server Adapter", and click "Next>".
  4. Accept the license agreement, and click Finish.
  5. Click OK to install the server adapter, and restart eclipse for the changes to take effect.

Installing the WASCE WTP Server Adapter using the Eclipse Update Manager


Note: Be sure to install the Prerequisite Software before you attempt to install the WASCE WTP server adapter.
Instructions for users familiar with using the Eclipse Update Manager
  • Add the URL of the WASCE Eclipse Update site (http://download.boulder.ibm.com/ibmdl/pub/software/websphere/wasce/updates/) as a remote site in your Eclipse update manager, and search for features to install from it.
  • To install the Eclipse WTP server adapter for version 2.0 of the WebSphere Application Server Community Edition server, select this WTP Server Adapter:
    • WASCE v2.0 Server Adapter 2.0.0
  • To additionally install the Eclipse WTP server adapter for version 1.1.0.x of the WebSphere Application Server Community Edition server, also select:
    • WASCE v1.1.x Server Adapter 2.0.0
  • It is not necessary or recommended to install a server for development and test from the IBM WASCE Runtimes in the update manager list at this time. The appropriate server will be downloaded the first time you click the Download and install button when you define a new server.
Detailed Instructions
  1. Open the Eclipse Update Manager as follows:
    1. Help, Software Updates, Find and Install....
    2. Select Search for new features to install and click Next.
  2. Create a WASCE Eclipse Update Site as follows:
    1. Click the New Remote Site... button in the upper right corner.
    2. Type WASCE Eclipse Update Site (or other suitable unique name) in the Name: field.
    3. Put the URL of the WASCE Eclipse Update site (http://download.boulder.ibm.com/ibmdl/pub/software/websphere/wasce/updates/) in the URL: field.
    4. Click OK.
  3. Select only the WASCE Eclipse Update Site in the Sites to include in search selection box and click Finish.
  4. Select a mirror and click OK if prompted to do so.
  5. Expand WASCE Eclipse Update Site, and WTP Server Adapters.
  6. Install the desired WTP server adapters
  • To install the Eclipse WTP server adapter for version 2.0 of the WebSphere Application Server Community Edition server, select this WTP Server Adapter:
    • WASCE v2.0 Server Adapter 2.0.0
  • To additionally install the Eclipse WTP server adapter for version 1.1.0.x of the WebSphere Application Server Community Edition server, also select:
    • WASCE v1.1.x Server Adapter 2.0.0
  • It is not necessary or recommended to install a server for development and test from the IBM WASCE Runtimes in the update manager list at this time. The appropriate server will be downloaded the first time you click the Download and install button when you define a new server.
  1. Click Next.
  2. Accept the license agreement and click Next.
  3. Click Finish.
  4. Click Yes to restart eclipse for the changes to take effect.

Installing the WASCE WTP Server Adapter using the updatesite.zip file

Note: This installation option is only recommended if you can not use the Eclipse Update Manager to install code from the Internet due to firewall or proxy restrictions.
  1. Visit the welcome page from the Eclipse Update Site for IBM WebSphere Application Server Community Edition.
  2. Click the link at the bottom of the page to download the updatesite.zip package.
  3. Extract this package to a directory on your machine, and follow the instructions in Installing the WASCE WTP Server Adapter using the Eclipse Update Manager.
    • Instead of using a remote update site, create a local update site from the directory to which you extracted the updatesite.zip package.
    • Detailed Instructions
      1. Open the Eclipse Update Manager as follows:
        1. Help, Software Updates, Available Software
        2. Add Site
      2. Create a WASCE Eclipse Update Site as follows:
        1. Click the  Local Site... button in the upper right corner.
        2. Browse the Local site(extracted folder)
        3. Click OK
      3. Expand WASCE Eclipse Update Site, and WTP Server Adapters.
      4. Install the desired WTP server adapters
      • To install the Eclipse WTP server adapter for version 2.0 of the WebSphere Application Server Community Edition server, select this WTP Server Adapter:
        • WASCE v2.0 Server Adapter 2.0.0 
      • To additionally install the Eclipse WTP server adapter for version 1.1.0.x of the WebSphere Application Server Community Edition server, also select:
        • WASCE v1.1.x Server Adapter 2.0.0
      • It is not necessary or recommended to install a server for development and test from the IBM WASCE Runtimes in the update manager list at this time. The appropriate server will be downloaded the first time you click the Download and install button when you define a new server.
      1. Click Next.
      2. Accept the license agreement and click Next.
      3. Click Finish.
      4. Click Yes to restart eclipse for the changes to take effect.

Installing the WASCE WTP Server Adapter using the deployable.zip file

Note: Use this installation option only if all other options fail.
  1. Visit the welcome page from the Eclipse Update Site for IBM WebSphere Application Server Community Edition.
  2. Click the link at the bottom of the page to download the deployable.zip package.
  3. Stop Eclipse.
  4. Extract this package to your Eclipse directory.
  5. Use the eclipse -clean option after installing the WTP server adapter.

Troubleshooting the WASCE WTP Server Adapter

Use the eclipse -clean option after installing the WTP server adapter

After installing the WTP server adapter, whether it is the first installation or a subsequent installation of a newer version, start Eclipse with the -clean option. This allows Eclipse to recognize and use the newest version of the WTP server adapter.

Views synchronize when saved

While using the WTP server adapter to customize deployment plans, you may want to use both the form view and the source view. When you are using both views, remember that changes made in one view will not be reflected in the other view until the changes are saved. Be sure to save your changes before switching to a different view.

An IP address change can orphan the server

If the server is running on a host where the IP address has been assigned using DHCP, be sure to stop the server before the IP address changes. For example, you are using a laptop with an Ethernet connection, stop the server before you disconnect and switch to a wireless connection. If you don't, Eclipse will not be able to send a shutdown request to the hidden process where the server is running and if the server is not stopped gracefully, some of the server's configuration changes may be lost.
If the IP address changes while the server is running, you will need to stop the javaw process that contains the server or restart the host. In either case, you will have to repeat any configuration changes that were not saved correctly.

Unable to open Deployment plan editor in Eclipse

This error can occur when opening a WASCE- or geronimo-specific deployment plan without having a WASCE server specified as a "Targeted Runtime". An "IllegalArgumentException" may be thrown. To fix the problem, specify a WASCE runtime as the "Targeted Runtime" for the asset as described in Deploying in Eclipse.