WSWS0052E, WSWS1066W, and CHFW0029E messages in Server logs when Enterprise JavaBeans contain ibm-webservicesclient-bnd.xmi has a broken or missing client binding
 Technote (troubleshooting)
 
Problem(Abstract)
The following error message indicates that the mapping in the ibm-webservicesclient-bnd.xmi file between the Enterprise JavaBeans and the Web service is incorrect. This indicates an error in the mapping.

WSWS0052E: Preferred port mapping could not be created for module ISOClaimSearchEJB.jar client Web service service/ISOXmlWebService

This may also lead to other errors when the WebService is run. The messages that may be logged are:

WSWS1066W: WARNING: ClientBinding in META-INF/ibm-webservicesclient-bnd.xmi does not contain a componentScopedRefs element, which is required if configuring security.

and:

WSWS1066W: WARNING: WsClientExtension in META-INF/ibm-webservicesclient-bnd.xmi does not contain a componentScopedRefs element, which is required if configuring security.

And finally, when the Web service tries to get the connection (channel) open, it generates this error:

CHFW0029E: Error initializing chain httpclient-https-chain:10.11.1.80:80:null because of exception com.ibm.wsspi.channel.framework.exception.ChannelException: com.ibm.wsspi.channel.framework.exception.ChannelException: Invalid trust file name of null
 
Cause
The WSWS0052E message is generated when the ibm-webservicesclient-bnd.xmi file is read and it indicates that the port mapping could not be found.

The WSWS1066W message is generated when the client binding is created. The message means that there is no ejb-name that matches the client binding in the ibm-webservicesclient-bnd.xmi file. Since the mapped resource is not found, WebSphere® Application Server generates this warning:

WSWS1066W: WARNING: ClientBinding in META-INF/ibm-webservicesclient-bnd.xmi does not contain a componentScopedRefs element, which is required if configuring security.

The configuration that caused this warning message is the Enterprise JavaBeans name in the ejb-jar.xml file:
<ejb-name>ISOProxy</ejb-name>

The ibm-webservicesclient-bnd.xmi file has a componentScopedRef of:

<componentScopedRefs xmi:id="ComponentScopedRefs_1106920593880" componentNameLink="ejb/iso/proxy/ISOProxyLocalHome">

 
Resolving the problem
The solution is to fix the component scooped references in the ibm-webservicesclient-bnd.xmi file. This screen shot shows both a correct reference and an incorrect reference. The correct reference is to the ejb-name from the ejb-jar.xml file, which is to the name ISOProxy. The incorrect reference, the one which causes the WSWS0052E and WSWS1066W messages is to ejb/iso/proxy/ISOProxyLocalHome.

This configuration change can be done using either of the following:

1. Modify the ibm-webservicesclient-bnd.xmi file to correct the following line to read:
<componentScopedRefs xmi:id="ComponentScopedRefs_1106920593880" componentNameLink="ISOProxy">

2. Add the link to the ejb-name using the deployment descriptor editor in Rational® Application Developer and remove the incorrect link, as illustrated here:


References:

See this link for a WSClientExtension sample configuration:
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=vela&product=was-base-dist&topic=xwbs_sampconfig

For a list of valid ibm-webservicesclient-bnd.xmi tags for WebSphere Application Server V6.0 Web services, see:
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=vela&product=was-base-dist&topic=twbs_configibmclientdd

For a list of valid ibm-webservicesclient-bnd.xmi tags for WebSphere Application Server V5.1 Web services, see:
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=v51x&product=was-base-dist&topic=rwbs_assembpropclient

 
 
Cross Reference information
Segment Product Component Platform Version Edition
Application Servers Runtimes for Java Technology Java SDK
 
 


Document Information


Product categories: Software > Application Servers > Distributed Application & Web Servers > WebSphere Application Server > Web Services Security
Operating system(s): Windows
Software version: 6.0.2
Software edition:
Reference #: 1255940
IBM Group: Software Group
Modified date: Feb 27, 2007