added JAX-WS workaround for WebLogic 10.3 (SPR-5771)

This commit is contained in:
Juergen Hoeller 2009-06-09 14:16:18 +00:00
parent 9a5c4cab72
commit a1f1717d03
1 changed files with 5 additions and 1 deletions

View File

@ -1,5 +1,5 @@
/* /*
* Copyright 2002-2008 the original author or authors. * Copyright 2002-2009 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -65,6 +65,10 @@ public class SimpleJaxWsServiceExporter extends AbstractJaxWsServiceExporter {
@Override @Override
protected void publishEndpoint(Endpoint endpoint, WebService annotation) { protected void publishEndpoint(Endpoint endpoint, WebService annotation) {
String fullAddress = this.baseAddress + annotation.serviceName(); String fullAddress = this.baseAddress + annotation.serviceName();
if (endpoint.getClass().getName().startsWith("weblogic.")) {
// Workaround for WebLogic 10.3
fullAddress = fullAddress + "/";
}
endpoint.publish(fullAddress); endpoint.publish(fullAddress);
} }