[103401] NullPointerException when associating service project with EAR project.
diff --git a/bundles/org.eclipse.jst.ws/src/org/eclipse/jst/ws/internal/common/J2EEUtils.java b/bundles/org.eclipse.jst.ws/src/org/eclipse/jst/ws/internal/common/J2EEUtils.java
index bc572b9..d2185d6 100644
--- a/bundles/org.eclipse.jst.ws/src/org/eclipse/jst/ws/internal/common/J2EEUtils.java
+++ b/bundles/org.eclipse.jst.ws/src/org/eclipse/jst/ws/internal/common/J2EEUtils.java
@@ -1608,7 +1608,7 @@
 							IProject earProject, String earComponentName) {
 		
         IFlexibleProject flexearProj = ComponentCore.createFlexibleProject(earProject);
-		ComponentHandle earHandle = flexearProj.getComponent(componentName).getComponentHandle();
+		ComponentHandle earHandle = flexearProj.getComponent(earComponentName).getComponentHandle();
 		IFlexibleProject flexcompProj = ComponentCore.createFlexibleProject(project);
 		ComponentHandle compHandle = flexcompProj.getComponent(componentName).getComponentHandle();
         IDataModel addComponentToEARDataModel = DataModelFactory.createDataModel(new AddComponentToEnterpriseApplicationDataModelProvider());