[232309] fix truncation and missing string in New EJB bean wizard
diff --git a/plugins/org.eclipse.jst.j2ee/common/org/eclipse/jst/j2ee/internal/common/operations/NewJavaClassDataModelProvider.java b/plugins/org.eclipse.jst.j2ee/common/org/eclipse/jst/j2ee/internal/common/operations/NewJavaClassDataModelProvider.java
index 2f069e4..dc1c0a3 100644
--- a/plugins/org.eclipse.jst.j2ee/common/org/eclipse/jst/j2ee/internal/common/operations/NewJavaClassDataModelProvider.java
+++ b/plugins/org.eclipse.jst.j2ee/common/org/eclipse/jst/j2ee/internal/common/operations/NewJavaClassDataModelProvider.java
@@ -325,6 +325,11 @@
 	 * @return IStatus of if java class name is valid
 	 */
 	protected IStatus validateJavaClassName(String className) {
+		// Ensure the class name is not empty
+		if (className == null || className.trim().length() == 0) {
+			String msg = J2EECommonMessages.ERR_JAVA_CLASS_NAME_EMPTY;
+			return WTPCommonPlugin.createErrorStatus(msg);
+		}
 		// Do not allow qualified name
 		if (className.lastIndexOf('.') != -1) {
 			String msg = J2EECommonMessages.ERR_JAVA_CLASS_NAME_QUALIFIED;
diff --git a/plugins/org.eclipse.jst.j2ee/property_files/j2ee_common.properties b/plugins/org.eclipse.jst.j2ee/property_files/j2ee_common.properties
index 94bd329..4e14fcb 100644
--- a/plugins/org.eclipse.jst.j2ee/property_files/j2ee_common.properties
+++ b/plugins/org.eclipse.jst.j2ee/property_files/j2ee_common.properties
@@ -19,12 +19,12 @@
 ERR_JAVA_CLASS_FOLDER_STATIC_PROJECT=Cannot be a static web project.
 ERR_JAVA_CLASS_FOLDER_NOT_SOURCE=Not a Java source folder.
 ERR_JAVA_CLASS_NAME_QUALIFIED=Do not use qualified class name.
-ERR_JAVA_CLASS_NAME_INVALID=Invalid Java class name:
-ERR_JAVA_CLASS_NAME_WARNING=Warning:
+ERR_JAVA_CLASS_NAME_INVALID=Invalid Java class name: 
+ERR_JAVA_CLASS_NAME_WARNING=Warning: 
 ERR_JAVA_CLASS_SUPERCLASS_NOT_EXIST=The super class does not exist.
 ERR_JAVA_CLASS_SUPERCLASS_FINAL=The super class cannot be a final class.
-ERR_JAVA_PACAKGE_NAME_INVALID=Invalid Java package name:
-ERR_JAVA_PACKAGE_NAME_WARNING=Warning:
+ERR_JAVA_PACAKGE_NAME_INVALID=Invalid Java package name: 
+ERR_JAVA_PACKAGE_NAME_WARNING=Warning: 
 ERR_BOTH_FINAL_AND_ABSTRACT=Class cannot be both final and abstract.
 WebServiceClientGenerator_UI_0=Generic Java EE Container
 ERR_SECURITY_ROLE_LIST_EMPTY=The list of security roles to be removed cannot be empty.