[JBoss JIRA] Created: (JBXB-201) Cannot parse schema/jbxb_1_0.xsd
by Thomas Diesler (JIRA)
Cannot parse schema/jbxb_1_0.xsd
--------------------------------
Key: JBXB-201
URL: https://jira.jboss.org/jira/browse/JBXB-201
Project: JBoss XML Binding (JBossXB)
Issue Type: Bug
Reporter: Thomas Diesler
This code
String jbxbSchema = "schema/jbxb_1_0.xsd";
URL jbxbXSD = context.getBundle().getResource(jbxbSchema);
if (jbxbXSD == null)
throw new IllegalStateException("Cannot find: " + jbxbSchema);
XSModel xsModel = Util.loadSchema(jbxbXSD.toExternalForm(), (SchemaBindingResolver)null);
if (xsModel == null)
throw new IllegalStateException("Cannot load schema: " + jbxbSchema);
fails with
Caused by: org.jboss.xb.binding.JBossXBRuntimeException: -1:-1 94:47 src-element.3: Element 'class' has both a 'type' attribute and a 'anonymous type' child. Only one of these is allowed for an element.
at org.jboss.xb.binding.sunday.unmarshalling.XsdBinderTerminatingErrorHandler.handleError(XsdBinderTerminatingErrorHandler.java:40)
at org.apache.xerces.impl.xs.XMLSchemaLoader.reportDOMFatalError(Unknown Source)
at org.apache.xerces.impl.xs.XSLoaderImpl.loadURI(Unknown Source)
at org.jboss.xb.binding.Util.loadSchema(Util.java:367)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 5 months
[JBoss JIRA] Created: (JBXB-202) Incosistent initialization of XSImplementation
by Thomas Diesler (JIRA)
Incosistent initialization of XSImplementation
----------------------------------------------
Key: JBXB-202
URL: https://jira.jboss.org/jira/browse/JBXB-202
Project: JBoss XML Binding (JBossXB)
Issue Type: Bug
Reporter: Thomas Diesler
Fix For: JBossXB-2.0.1.GA
In Util there is
private static XSImplementation xsImpl;
which gets initialized lazily in
public static XSModel loadSchema(String xsdURL, SchemaBindingResolver schemaResolver)
{
if(xsImpl == null)
{
xsImpl = getXSImplementation();
}
All other loadSchema method do not reuse the static property
Also,
private static XSImplementation getXSImplementation()
relies on the thread context classloader, which is not available in an OSGi environment.
Could you please provide an JBossXB initialization entry point that is public and does not make an assumption on the availability of the TCCL
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 5 months
[JBoss JIRA] Created: (EJBTHREE-1152) service-ref in ejb-jar.xml is ignored
by Thomas Diesler (JIRA)
service-ref in ejb-jar.xml is ignored
-------------------------------------
Key: EJBTHREE-1152
URL: http://jira.jboss.com/jira/browse/EJBTHREE-1152
Project: EJB 3.0
Issue Type: Bug
Reporter: Thomas Diesler
Fix For: AS 5.0.0.Beta3
[tdiesler@tddell trunk]$ ant -Dtest=org.jboss.test.ws.jaxws.samples.serviceref.ServiceRefEJBTestCase one-test
one-test:
[junit] Running org.jboss.test.ws.jaxws.samples.serviceref.ServiceRefEJBTestCase
[junit] Tests run: 3, Failures: 0, Errors: 1, Time elapsed: 8.761 sec
[junit] Test org.jboss.test.ws.jaxws.samples.serviceref.ServiceRefEJBTestCase FAILED
Caused by: javax.naming.NameNotFoundException: service1 not bound
at org.jnp.server.NamingServer.getBinding(NamingServer.java:542)
at org.jnp.server.NamingServer.getBinding(NamingServer.java:550)
at org.jnp.server.NamingServer.getObject(NamingServer.java:556)
at org.jnp.server.NamingServer.lookup(NamingServer.java:296)
at org.jnp.server.NamingServer.lookup(NamingServer.java:270)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:669)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:776)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:629)
at javax.naming.InitialContext.lookup(InitialContext.java:351)
at org.jboss.test.ws.jaxws.samples.serviceref.EJBClient.echo(EJBClient.java:52)
<ejb-jar version="3.0"
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">
<enterprise-beans>
<session>
<ejb-name>EJBClient</ejb-name>
<remote>org.jboss.test.ws.jaxws.samples.serviceref.EJBRemote</remote>
<ejb-class>org.jboss.test.ws.jaxws.samples.serviceref.EJBClient</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
<service-ref>
<service-ref-name>service1</service-ref-name>
<service-interface>javax.xml.ws.Service</service-interface>
<wsdl-file>META-INF/wsdl/TestEndpoint.wsdl</wsdl-file>
<service-qname xmlns:ns1="http://serviceref.samples.jaxws.ws.test.jboss.org/">ns1:TestEndpointService</service-qname>
</service-ref>
<service-ref>
<service-ref-name>service2</service-ref-name>
<service-interface>org.jboss.test.ws.jaxws.samples.serviceref.TestEndpointService</service-interface>
<wsdl-file>META-INF/wsdl/TestEndpoint.wsdl</wsdl-file>
<service-qname xmlns:ns1="http://serviceref.samples.jaxws.ws.test.jboss.org/">ns1:TestEndpointService</service-qname>
<port-component-ref>
<service-endpoint-interface>org.jboss.test.ws.jaxws.samples.serviceref.TestEndpoint</service-endpoint-interface>
<enable-mtom>true</enable-mtom>
</port-component-ref>
</service-ref>
</session>
</enterprise-beans>
</ejb-jar>
--
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
13 years, 5 months