-
Sub-task
-
Resolution: Done
-
Major
-
jbossws-native-3.0.4, jbossws-metro-3.0.4, jbossws-cxf-3.0.4
-
None
We do the following in <b>org.jboss.wsf.container.jboss50.deployer.ArchiveDeployerHook.getWebservicesMetaData(DeploymentUnit unit)</b>
<pre>
/** Unmrashall the webservices.xml if there is one
*/
protected WebservicesMetaData getWebservicesMetaData(DeploymentUnit unit)
{
WebservicesMetaData wsMetaData = unit.getAttachment(WebservicesMetaData.class);
UnifiedVirtualFile vfWebservices = getWebservicesFile(unit);
if (wsMetaData == null && vfWebservices != null)
{
try
{
URL wsURL = vfWebservices.toURL();
Element root = DOMUtils.parse(wsURL.openStream());
String namespaceURI = root.getNamespaceURI();
if (namespaceURI.equals("http://java.sun.com/xml/ns/j2ee"))
}
catch (Exception ex)
}
return wsMetaData;
}
</pre>
It integrates with deployers improperly. This method should be refactored to separate deployer that does this translation job from webservices.xml -> WebservicesMetaData class
- blocks
-
JBWS-2689 webservice.xml files are not validated against corresponding schema files
- Closed