I am trying to test an EJB stateless session bean that I want to expose as a web service deployed in WebSpehere 6.0 App Server.
I am also adding a handler and the relevant tags in the session bean are as follows:
* @wsee.handler
* name="TestCardHandler"
* handler-class="mytestpackage.MyHandler"
* display-name="TestHandler"
XDoclet generates the webservices.xml with the following fragment for handlers:
<handler>
<handler-name>TestCardHandler</handler-name>
<handler-class>mytestpackage.MyHandler</handler-class>
<!-- init paramter should go here -->
<soap-header xmlns:local="">local:</soap-header>
<soap-role></soap-role>
<!-- init parameters are still lacking -->
</handler>
When I try to deploy this in WebSphere 6.0 App Server, using their web deployment tool, I get
the following error
[4/8/05 12:33:04:781 PDT] 00000029 WSModels E WSWS1000E: Error: Wrapped exception
org.xml.sax.SAXParseException: The value of the attribute "prefix="xmlns",localpart="local",rawname="xmlns:local"" is invalid. Prefixed namespace bindings may not be empty.
at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanAttribute(Unknown Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
at javax.xml.parsers.DocumentBuilder.parse(Unknown Source)
at com.ibm.wtp.internal.emf.xml.util.DOMUtilities.loadDocument(DOMUtilities.java:506)
When I removed the following section, it went past this problem.
<soap-header xmlns:local="">local:</soap-header>
<soap-role></soap-role
Is this a known bug? If so, what is the bug#?
Thanks,
Shantanu Sen