[241466] [hotbug] EarArtifactEdit.getModuleURI not returning accurate value
diff --git a/plugins/org.eclipse.jst.server.generic.core/src/org/eclipse/jst/server/generic/core/internal/publishers/EarModuleAssembler.java b/plugins/org.eclipse.jst.server.generic.core/src/org/eclipse/jst/server/generic/core/internal/publishers/EarModuleAssembler.java
index 8cc4d4e..94d9c60 100644
--- a/plugins/org.eclipse.jst.server.generic.core/src/org/eclipse/jst/server/generic/core/internal/publishers/EarModuleAssembler.java
+++ b/plugins/org.eclipse.jst.server.generic.core/src/org/eclipse/jst/server/generic/core/internal/publishers/EarModuleAssembler.java
@@ -53,7 +53,8 @@
 			if( jeeModule != null && jeeModule.isBinary() ){//Binary module just copy
 				ProjectModule pm = (ProjectModule) module.loadAdapter(ProjectModule.class, null);
 				IModuleResource[] resources = pm.members();
-				publishHelper.publishFull(resources, parent, monitor);
+				// It's assumed here that the URI at least includes the name, and so removing 1 segment is safe
+				publishHelper.publishFull(resources, parent.append(uri).removeLastSegments(1), monitor);
 				continue;//done! no need to go further
 			}
 			if( shouldRepack( module ) ){