Bug 134793 - Can't publish EAR to Websphere 6 server if WAS install root has a space
Summary: Can't publish EAR to Websphere 6 server if WAS install root has a space
Status: NEW
Alias: None
Product: WTP ServerTools
Classification: WebTools
Component: jst.server (show other bugs)
Version: 1.5   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Sinan Konya CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-04 12:16 EDT by Jonathan Whitall CLA
Modified: 2007-04-27 13:22 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Whitall CLA 2006-04-04 12:16:55 EDT
The Ant builder fails with no messages if the WAS install root has a space in it. This seems to be caused by org.eclipse.jst.server.websphere.core.AntPublisher (in the webspherecore.jar) on line 11:

wc.setAttribute(IJavaLaunchConfigurationConstants.ATTR_VM_ARGUMENTS,"-Duser.install.root="+wasProfile);

When I replaced that line with this (adding escaped quotes), it publishes fine:
wc.setAttribute(IJavaLaunchConfigurationConstants.ATTR_VM_ARGUMENTS,"\"-Duser.install.root="+wasProfile+"\"");
Comment 1 Jonathan Whitall CLA 2006-06-05 18:15:10 EDT
Has this been fixed?
Comment 2 Jonathan Whitall CLA 2006-07-03 13:10:57 EDT
This appears to have been fixed. Can anyone validate that it is so?
Comment 3 Brad Blancett CLA 2007-04-27 13:22:13 EDT
There is another twist to the defect. If the workbench is started in a directory with spaces, i.e: C:\Documents and Settings\Administrator\workspace.. the default for when starting eclipse, when you try to publish an ear the JACL script will fail with a com.ibm.bsf.BSFException because it cant resolve the ear file in the fully qualified temp server directory. 

Adding quotes to the path would also fix this problem.