diff options
author | kchan | 2008-01-24 04:07:36 +0000 |
---|---|---|
committer | kchan | 2008-01-24 04:07:36 +0000 |
commit | 120f80d15cbcbfae02ecca5d6a8735d3771ba024 (patch) | |
tree | 0d6d9cb779ba607f2e3a54bc5dccd03b9b2caed6 /bundles/org.eclipse.jst.ws/src/org/eclipse | |
parent | a6dbbc1643c0d2786055a72b5ac9e1cac9539fd1 (diff) | |
download | webtools.webservices-120f80d15cbcbfae02ecca5d6a8735d3771ba024.tar.gz webtools.webservices-120f80d15cbcbfae02ecca5d6a8735d3771ba024.tar.xz webtools.webservices-120f80d15cbcbfae02ecca5d6a8735d3771ba024.zip |
[216345] Class can't be found error when starting a bujava scenario with a java project.
Diffstat (limited to 'bundles/org.eclipse.jst.ws/src/org/eclipse')
-rw-r--r-- | bundles/org.eclipse.jst.ws/src/org/eclipse/jst/ws/internal/common/J2EEUtils.java | 13 |
1 files changed, 9 insertions, 4 deletions
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 a533c0081..770635e64 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 @@ -16,6 +16,7 @@ * 20070723 194434 kathy@ca.ibm.com - Kathy Chan, Check for non-existing EAR with content not deleted * 20071218 200193 gilberta@ca.ibm.com - Gilbert Andrews * 20071221 213726 kathy@ca.ibm.com - Kathy Chan + * 20070123 216345 gilberta@ca.ibm.com - Gilbert Andrews *******************************************************************************/ package org.eclipse.jst.ws.internal.common; @@ -43,6 +44,8 @@ import org.eclipse.core.runtime.IStatus; import org.eclipse.core.runtime.NullProgressMonitor; import org.eclipse.core.runtime.Path; import org.eclipse.core.runtime.Status; +import org.eclipse.core.runtime.jobs.IJobManager; +import org.eclipse.core.runtime.jobs.Job; import org.eclipse.jem.util.emf.workbench.ProjectUtilities; import org.eclipse.jem.util.logger.proxy.Logger; import org.eclipse.jst.j2ee.application.internal.operations.AddComponentToEnterpriseApplicationDataModelProvider; @@ -1463,9 +1466,7 @@ public final class J2EEUtils { refdm.setProperty(ICreateReferenceComponentsDataModelProperties.TARGET_COMPONENT_LIST, targetCompList); refdm.setProperty(ICreateReferenceComponentsDataModelProperties.TARGET_COMPONENTS_DEPLOY_PATH, "/WEB-INF/lib"); refdm.getDefaultOperation().execute(monitor, null); - - forceClasspathUpdate(earProject); - + }catch (Exception e) { } @@ -1475,7 +1476,11 @@ public final class J2EEUtils { public static void forceClasspathUpdate (IProject project) { J2EEComponentClasspathUpdater classpathUpdater = J2EEComponentClasspathUpdater.getInstance(); Collection projCollection = Collections.singleton(project); - classpathUpdater.forceUpdate(projCollection, false); + classpathUpdater.forceUpdate(projCollection, true); + IJobManager jm = Job.getJobManager(); + try{ + jm.join(J2EEComponentClasspathUpdater.MODULE_UPDATE_JOB_NAME, null); + }catch(Exception exc){} } } |