Lines 23-28
Link Here
|
23 |
* 20071107 203826 kathy@ca.ibm.com - Kathy Chan |
23 |
* 20071107 203826 kathy@ca.ibm.com - Kathy Chan |
24 |
* 20071130 203826 kathy@ca.ibm.com - Kathy Chan |
24 |
* 20071130 203826 kathy@ca.ibm.com - Kathy Chan |
25 |
* 20080205 170141 kathy@ca.ibm.com - Kathy Chan |
25 |
* 20080205 170141 kathy@ca.ibm.com - Kathy Chan |
|
|
26 |
* 20080416 215084 gilberta@ca.ibm.com - Gilbert Andrews |
26 |
*******************************************************************************/ |
27 |
*******************************************************************************/ |
27 |
package org.eclipse.jst.ws.internal.consumption.ui.common; |
28 |
package org.eclipse.jst.ws.internal.consumption.ui.common; |
28 |
|
29 |
|
Lines 79-87
Link Here
|
79 |
import org.eclipse.wst.common.project.facet.core.VersionFormatException; |
80 |
import org.eclipse.wst.common.project.facet.core.VersionFormatException; |
80 |
import org.eclipse.wst.server.core.IRuntime; |
81 |
import org.eclipse.wst.server.core.IRuntime; |
81 |
import org.eclipse.wst.server.core.IRuntimeType; |
82 |
import org.eclipse.wst.server.core.IRuntimeType; |
|
|
83 |
import org.eclipse.wst.server.core.IServer; |
82 |
import org.eclipse.wst.server.core.IServerType; |
84 |
import org.eclipse.wst.server.core.IServerType; |
83 |
import org.eclipse.wst.server.core.ServerCore; |
85 |
import org.eclipse.wst.server.core.ServerCore; |
84 |
import org.eclipse.wst.server.core.ServerUtil; |
|
|
85 |
import org.eclipse.wst.ws.internal.parser.wsil.WebServicesParser; |
86 |
import org.eclipse.wst.ws.internal.parser.wsil.WebServicesParser; |
86 |
import org.eclipse.wst.ws.internal.wsrt.IWebServiceRuntimeChecker; |
87 |
import org.eclipse.wst.ws.internal.wsrt.IWebServiceRuntimeChecker; |
87 |
import org.eclipse.wst.ws.internal.wsrt.WebServiceScenario; |
88 |
import org.eclipse.wst.ws.internal.wsrt.WebServiceScenario; |
Lines 271-277
Link Here
|
271 |
* IStatus with severity IStatus.ERROR otherwise. |
272 |
* IStatus with severity IStatus.ERROR otherwise. |
272 |
*/ |
273 |
*/ |
273 |
public IStatus checkErrorStatus(int validationState, String typeId, String runtimeId, String serverId, |
274 |
public IStatus checkErrorStatus(int validationState, String typeId, String runtimeId, String serverId, |
274 |
String serverInstanceId, String projectName, boolean needEar, String earProjectName, String projectTypeId, |
275 |
String serverInstanceId, String projectName, String initialProjectName, boolean needEar, String earProjectName, String projectTypeId, |
275 |
boolean isClient) { |
276 |
boolean isClient) { |
276 |
|
277 |
|
277 |
// Ensure server, Web service runtime, and Web service type are |
278 |
// Ensure server, Web service runtime, and Web service type are |
Lines 311-316
Link Here
|
311 |
} |
312 |
} |
312 |
} |
313 |
} |
313 |
} |
314 |
} |
|
|
315 |
|
316 |
if (serverId != null && !initialProjectName.equals(projectName) && |
317 |
(WebServiceRuntimeExtensionUtils2.getScenarioFromTypeId(typeId) == WebServiceScenario.BOTTOMUP) && |
318 |
J2EEUtils.isJavaComponent(ProjectUtilities.getProject(initialProjectName))){ |
319 |
|
320 |
Set javaSet = FacetUtils.getFacetsForProject(initialProjectName); |
321 |
if(!doesServerSupportFacets(serverId,javaSet)){ |
322 |
return StatusUtils.errorStatus(NLS.bind( |
323 |
ConsumptionUIMessages.MSG_SERVICE_SERVER_DOES_NOT_SUPPORT_JAVAPROJECT, |
324 |
new String[] { serverLabel, initialProjectName })); |
325 |
} |
326 |
} |
314 |
} |
327 |
} |
315 |
|
328 |
|
316 |
// If the project exists, ensure it supports the Web service type, Web |
329 |
// If the project exists, ensure it supports the Web service type, Web |
Lines 464-474
Link Here
|
464 |
runtimeChecker = WebServiceRuntimeExtensionUtils2.getServiceRuntimeChecker(serviceRuntimeId); |
477 |
runtimeChecker = WebServiceRuntimeExtensionUtils2.getServiceRuntimeChecker(serviceRuntimeId); |
465 |
} |
478 |
} |
466 |
if (runtimeChecker != null) { |
479 |
if (runtimeChecker != null) { |
467 |
return runtimeChecker.checkRuntimeCompatibility(serverId, serverInstanceId, projectName, projectTypeId, earProjectName); |
480 |
return runtimeChecker.checkRuntimeCompatibility(serverId, serverInstanceId, projectName, projectTypeId, earProjectName); |
468 |
} |
481 |
} |
469 |
} |
482 |
} |
470 |
|
483 |
|
471 |
|
|
|
472 |
return Status.OK_STATUS; |
484 |
return Status.OK_STATUS; |
473 |
|
485 |
|
474 |
} |
486 |
} |