[JBoss JIRA] Created: (JBCL-167) Mixin interface for optimized requirement resolution
by Thomas Diesler (JIRA)
Mixin interface for optimized requirement resolution
----------------------------------------------------
Key: JBCL-167
URL: https://jira.jboss.org/browse/JBCL-167
Project: JBoss ClassLoader
Issue Type: Task
Reporter: Thomas Diesler
Assignee: Thomas Diesler
Fix For: JBossCL.2.2.0.Beta1
/**
* Mixin interface for custom resolution by a requirement
*/
public interface CustomResolution extends Requirement
{
/**
* Resolve the requirement
*
* @param domain the domain against which to resolve
* @return the resolved module or null if it is not resolved
*/
Module resolves(Domain domain);
}
if (requirement instanceof CustomResolution)
return requirement.resolves(this);
else
// do old code
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 5 months
[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-251) Dependency on deprecated artifacts
by Thomas Diesler (JIRA)
Dependency on deprecated artifacts
----------------------------------
Key: JBXB-251
URL: https://jira.jboss.org/jira/browse/JBXB-251
Project: JBoss XML Binding (JBossXB)
Issue Type: Bug
Affects Versions: JBossXB-2.0.2.Beta7
Reporter: Thomas Diesler
Assignee: Alexey Loubyansky
Fix For: JBossXB-2.0.2.GA
Missing:
----------
1) apache-xerces:xml-apis:jar:2.9.1
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=apache-xerces -DartifactId=xml-apis -Dversion=2.9.1 -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=apache-xerces -DartifactId=xml-apis -Dversion=2.9.1 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) org.jboss.osgi.bundles:jboss-osgi-xml-binding:bundle:2.0.2.Beta7-SNAPSHOT
2) org.jboss:jbossxb:jar:2.0.2.Beta7
3) apache-xerces:xml-apis:jar:2.9.1
--
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: (JBDEPLOY-263) Invalid dependency on apache-log4j:log4j:jar:1.2.14
by Thomas Diesler (JIRA)
Invalid dependency on apache-log4j:log4j:jar:1.2.14
---------------------------------------------------
Key: JBDEPLOY-263
URL: https://jira.jboss.org/browse/JBDEPLOY-263
Project: JBoss Deployers
Issue Type: Bug
Reporter: Thomas Diesler
deployers/trunk does not build
[INFO] Building JBoss Deployers Core
...
[INFO] Failed to resolve artifact.
Missing:
----------
1) apache-log4j:log4j:jar:1.2.14
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=apache-log4j -DartifactId=log4j -Dversion=1.2.14 -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=apache-log4j -DartifactId=log4j -Dversion=1.2.14 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) org.jboss.deployers:jboss-deployers-core:jar:2.2.0-SNAPSHOT
2) org.jboss.test:jboss-test:jar:1.1.1.GA
3) apache-log4j:log4j:jar:1.2.14
----------
1 required artifact is missing.
for artifact:
org.jboss.deployers:jboss-deployers-core:jar:2.2.0-SNAPSHOT
from the specified remote repositories:
jboss-developer-repository-group (https://repository.jboss.org/nexus/content/groups/developer/)
Perhaps this is a deprecated dependency
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/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: (JBCL-169) Support attribute matching from OSGi
by Thomas Diesler (JIRA)
Support attribute matching from OSGi
------------------------------------
Key: JBCL-169
URL: https://jira.jboss.org/browse/JBCL-169
Project: JBoss ClassLoader
Issue Type: Task
Reporter: Thomas Diesler
Assignee: Ales Justin
And another thing that needs to happen is to bubble the attribute matching from OSGi to jboss classloading.
The only reason I originally created OSGi*Capability/Requirement was to implement the attribute matching without modifying
jboss classloading so it could be used in older versions of jboss5. That restriction was broken by other changes a long time ago.
We might never have got into this horrible situation if I hadn't done that.
You should be able to do things like the following in jboss-classloading.xml:
<capabilities>
<package name="foo" attributes="a=b,c=d"/>
</capabilities>
<requirements>
<package name="bar" match-attributes="(vendor=acme)"/>
</requirements>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 5 months