[
http://jira.jboss.com/jira/browse/JBAS-4891?page=comments#action_12383840 ]
Scott M Stark commented on JBAS-4891:
-------------------------------------
There is a usage of such qname type elments in the EjbJar3xUnitTestCase.java, and this is
parsing correctly.
https://svn.jboss.org/repos/jbossas/projects/metadata/trunk/src/test/java...
https://svn.jboss.org/repos/jbossas/projects/metadata/trunk/src/test/reso...
<ejb-jar
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd"
version="3.0"
id="ejb-jar-service-refs">
<enterprise-beans>
<session id="session1">
<description>A secured trival echo session bean</description>
<ejb-name>StatelessSession1</ejb-name>
<home>org.jboss.test.security.interfaces.StatelessSessionHome</home>
<remote>org.jboss.test.security.interfaces.StatelessSession</remote>
<local-home>org.jboss.test.security.interfaces.StatelessSessionLocalHome</local-home>
<local>org.jboss.test.security.interfaces.StatelessSessionLocal</local>
<ejb-class>org.jboss.test.security.ejb.StatelessSessionBean</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
<service-ref id="session1-service-ref">
<!-- JNDI name bound to the service interface in the client's
environment context -->
<service-ref-name>session1/Hello</service-ref-name>
<!-- service interface class -->
<service-interface>org.jboss.test.security.interfaces.HelloWorldService</service-interface>
<service-ref-type>org.jboss.test.security.interfaces.HelloWorldRef</service-ref-type>
<!-- placeholder for published WSDL file -->
<wsdl-file>session1-wsdl-file</wsdl-file>
<!-- Java<->XML mapping file -->
<jaxrpc-mapping-file>META-INF/jaxrpc-mapping.xml</jaxrpc-mapping-file>
<service-qname
xmlns:session1="http://www.jboss.org">session1:Session1Qname</service-qname>
<port-component-ref>
<!-- service endpoint interface class -->
<service-endpoint-interface>org.jboss.test.security.interfaces.HelloEndPoint</service-endpoint-interface>
</port-component-ref>
<handler-chains>
<handler-chain id="session1-chain1">
<service-name-pattern>*</service-name-pattern>
<handler id="sesion1-chain1-handler1">
<handler-name>session1.Handler1</handler-name>
<handler-class>session1.Handler1</handler-class>
<init-param>
<param-name>param1</param-name>
<param-value>value1</param-value>
</init-param>
<soap-header
xmlns:session1="http://www.jboss.org">session1:soap-header</soap-header>
<soap-role>session1:soap-role</soap-role>
<port-name>session1:soap-role</port-name>
</handler>
</handler-chain>
</handler-chains>
</service-ref>
</session>
What is an example descriptor that is failing?
Cannot unmarshall qname elements
--------------------------------
Key: JBAS-4891
URL:
http://jira.jboss.com/jira/browse/JBAS-4891
Project: JBoss Application Server
Issue Type: Sub-task
Security Level: Public(Everyone can see)
Reporter: Thomas Diesler
Assigned To: Alexey Loubyansky
Fix For: JBossAS-5.0.0.Beta3
jboss descriptors cannot have qname elements like this
<service-ref>
<service-ref-name>SecurePort1</service-ref-name>
<service-qname
xmlns:ns1="http://org.jboss.ws/wsref">ns1:SecureEndpointService</service-qname>
...
</service-ref>
Caused by: org.xml.sax.SAXException: Attribute "xmlns:ns1" must be declared for
element type "service-qname". @ *unknown*[21,62]
at
org.jboss.xb.binding.parser.sax.SaxJBossXBParser$MetaDataErrorHandler.error(SaxJBossXBParser.java:427)
at org.apache.xerces.util.ErrorHandlerWrapper.error(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.dtd.XMLDTDValidator.addDTDDefaultAttrsAndValidate(Unknown Source)
at org.apache.xerces.impl.dtd.XMLDTDValidator.handleStartElement(Unknown Source)
at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(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.AbstractSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at
org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:199)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira