[JBoss JIRA] (SHRINKWRAP-496) Implement CacheUrlAsset
by Alex Soto (JIRA)
Alex Soto created SHRINKWRAP-496:
------------------------------------
Summary: Implement CacheUrlAsset
Key: SHRINKWRAP-496
URL: https://issues.jboss.org/browse/SHRINKWRAP-496
Project: ShrinkWrap
Issue Type: Feature Request
Components: api
Affects Versions: 1.2.3
Reporter: Alex Soto
Priority: Minor
In ShrinkWrap UrlAsset downloaded an asset from a URL, which can be external and then it creates the Archive element with that info. The problem is that sometimes you might want to download a big file (2MB) to put inside an Archive, and this means that for each test class that you execute you end up by downloading this file.
A possible solution could be create a CacheUrlAsset that downloads the content and stores it in {java.io.tmp}/shrinkwrap so in successive calls before downloading the file again, it can take it directly from cache directory.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
8 years, 5 months
[JBoss JIRA] (SHRINKDESC-164) BeansDescriptor.exportAsString() yields empty xmlns attributes in child elements when Saxon is present on classpath
by Falko M. (JIRA)
[ https://issues.jboss.org/browse/SHRINKDESC-164?page=com.atlassian.jira.pl... ]
Falko M. edited comment on SHRINKDESC-164 at 11/13/15 5:38 AM:
---------------------------------------------------------------
It might be a SAXON bug instead but I don't think so because SAXON has been around for a *long* time.
I guess for fixing this problem, each child {{org.jboss.shrinkwrap.descriptor.spi.node.Node}} should "inherit" the {{xmlns}} attribute from it's parent unless specified differently.
was (Author: famod):
It might be a SAXON bug instead but I don't think so because SAXON has been around for a *long* time.
I guess each for fixing this problem, each child {{org.jboss.shrinkwrap.descriptor.spi.node.Node}} should "inherit" the {{xmlns}} attribute from it's parent unless specified differently.
> BeansDescriptor.exportAsString() yields empty xmlns attributes in child elements when Saxon is present on classpath
> -------------------------------------------------------------------------------------------------------------------
>
> Key: SHRINKDESC-164
> URL: https://issues.jboss.org/browse/SHRINKDESC-164
> Project: ShrinkWrap Descriptors
> Issue Type: Bug
> Affects Versions: 2.0.0-alpha-7, 2.0.0-alpha-8
> Environment: Apache Maven 3.2.5 (12a6b3acb947671f09b81f49094c53f426d8cea1; 2014-12-14T18:29:23+01:00)
> Maven home: C:\Program Files\apache-maven-3.2.5
> Java version: 1.7.0_80, vendor: Oracle Corporation
> Java home: C:\Develop\CCS\jdk1.7.0_80\jre
> Default locale: de_DE, platform encoding: Cp1252
> OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows"
> Reporter: Falko M.
> Attachments: SHRINKDESC-164-testproject.zip
>
>
> When an existing {{beans.xml}} with child elements like {{alternatives}} is loaded via {{Descriptors.importAs(BeansDescriptor.class).fromStream(...)}} *and [SAXON|http://saxon.sourceforge.net/] is on the classpath*, {{.exportAsString()}} yields child elements like the following :
> {noformat}<alternatives xmlns="">{noformat}
> This causes deployment warning in JBoss7 like (truncated):
> {noformat}
> WARN [org.jboss.weld.deployer] JBAS016011: .../META-INF/beans.xml:5 cvc-complex-type.2.4.a: Invalid content was found starting with element 'alternatives'. One of '{"http://java.sun.com/xml/ns/javaee":interceptors, "http://java.sun.com/xml/ns/javaee":decorators, "http://java.sun.com/xml/ns/javaee":alternatives, WC[##other:"http://java.sun.com/xml/ns/javaee"]}' is expected.
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
8 years, 5 months
[JBoss JIRA] (SHRINKDESC-164) BeansDescriptor.exportAsString() yields empty xmlns attributes in child elements when Saxon is present on classpath
by Falko M. (JIRA)
[ https://issues.jboss.org/browse/SHRINKDESC-164?page=com.atlassian.jira.pl... ]
Falko M. edited comment on SHRINKDESC-164 at 11/13/15 5:38 AM:
---------------------------------------------------------------
It might be a SAXON bug instead but I don't think so because SAXON has been around for a *long* time.
I guess each for fixing this problem, each child {{org.jboss.shrinkwrap.descriptor.spi.node.Node}} should "inherit" the {{xmlns}} attribute from it's parent unless specified differently.
was (Author: famod):
I might be a SAXON bug instead but I don't think so because SAXON has been around for a *long* time.
I guess each for fixing this problem, each child {{org.jboss.shrinkwrap.descriptor.spi.node.Node}} should "inherit" the {{xmlns}} attribute from it's parent unless specified differently.
> BeansDescriptor.exportAsString() yields empty xmlns attributes in child elements when Saxon is present on classpath
> -------------------------------------------------------------------------------------------------------------------
>
> Key: SHRINKDESC-164
> URL: https://issues.jboss.org/browse/SHRINKDESC-164
> Project: ShrinkWrap Descriptors
> Issue Type: Bug
> Affects Versions: 2.0.0-alpha-7, 2.0.0-alpha-8
> Environment: Apache Maven 3.2.5 (12a6b3acb947671f09b81f49094c53f426d8cea1; 2014-12-14T18:29:23+01:00)
> Maven home: C:\Program Files\apache-maven-3.2.5
> Java version: 1.7.0_80, vendor: Oracle Corporation
> Java home: C:\Develop\CCS\jdk1.7.0_80\jre
> Default locale: de_DE, platform encoding: Cp1252
> OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows"
> Reporter: Falko M.
> Attachments: SHRINKDESC-164-testproject.zip
>
>
> When an existing {{beans.xml}} with child elements like {{alternatives}} is loaded via {{Descriptors.importAs(BeansDescriptor.class).fromStream(...)}} *and [SAXON|http://saxon.sourceforge.net/] is on the classpath*, {{.exportAsString()}} yields child elements like the following :
> {noformat}<alternatives xmlns="">{noformat}
> This causes deployment warning in JBoss7 like (truncated):
> {noformat}
> WARN [org.jboss.weld.deployer] JBAS016011: .../META-INF/beans.xml:5 cvc-complex-type.2.4.a: Invalid content was found starting with element 'alternatives'. One of '{"http://java.sun.com/xml/ns/javaee":interceptors, "http://java.sun.com/xml/ns/javaee":decorators, "http://java.sun.com/xml/ns/javaee":alternatives, WC[##other:"http://java.sun.com/xml/ns/javaee"]}' is expected.
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
8 years, 5 months
[JBoss JIRA] (SHRINKDESC-164) BeansDescriptor.exportAsString() yields empty xmlns attributes in child elements when Saxon is present on classpath
by Falko M. (JIRA)
[ https://issues.jboss.org/browse/SHRINKDESC-164?page=com.atlassian.jira.pl... ]
Falko M. commented on SHRINKDESC-164:
-------------------------------------
I might be a SAXON bug instead but I don't think so because SAXON has been around for a *long* time.
I guess each for fixing this problem, each child {{org.jboss.shrinkwrap.descriptor.spi.node.Node}} should "inherit" the {{xmlns}} attribute from it's parent unless specified differently.
> BeansDescriptor.exportAsString() yields empty xmlns attributes in child elements when Saxon is present on classpath
> -------------------------------------------------------------------------------------------------------------------
>
> Key: SHRINKDESC-164
> URL: https://issues.jboss.org/browse/SHRINKDESC-164
> Project: ShrinkWrap Descriptors
> Issue Type: Bug
> Affects Versions: 2.0.0-alpha-7, 2.0.0-alpha-8
> Environment: Apache Maven 3.2.5 (12a6b3acb947671f09b81f49094c53f426d8cea1; 2014-12-14T18:29:23+01:00)
> Maven home: C:\Program Files\apache-maven-3.2.5
> Java version: 1.7.0_80, vendor: Oracle Corporation
> Java home: C:\Develop\CCS\jdk1.7.0_80\jre
> Default locale: de_DE, platform encoding: Cp1252
> OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows"
> Reporter: Falko M.
> Attachments: SHRINKDESC-164-testproject.zip
>
>
> When an existing {{beans.xml}} with child elements like {{alternatives}} is loaded via {{Descriptors.importAs(BeansDescriptor.class).fromStream(...)}} *and [SAXON|http://saxon.sourceforge.net/] is on the classpath*, {{.exportAsString()}} yields child elements like the following :
> {noformat}<alternatives xmlns="">{noformat}
> This causes deployment warning in JBoss7 like (truncated):
> {noformat}
> WARN [org.jboss.weld.deployer] JBAS016011: .../META-INF/beans.xml:5 cvc-complex-type.2.4.a: Invalid content was found starting with element 'alternatives'. One of '{"http://java.sun.com/xml/ns/javaee":interceptors, "http://java.sun.com/xml/ns/javaee":decorators, "http://java.sun.com/xml/ns/javaee":alternatives, WC[##other:"http://java.sun.com/xml/ns/javaee"]}' is expected.
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
8 years, 5 months
[JBoss JIRA] (SHRINKDESC-164) BeansDescriptor.exportAsString() yields empty xmlns attributes in child elements when Saxon is present on classpath
by Falko M. (JIRA)
[ https://issues.jboss.org/browse/SHRINKDESC-164?page=com.atlassian.jira.pl... ]
Falko M. updated SHRINKDESC-164:
--------------------------------
Attachment: SHRINKDESC-164-testproject.zip
> BeansDescriptor.exportAsString() yields empty xmlns attributes in child elements when Saxon is present on classpath
> -------------------------------------------------------------------------------------------------------------------
>
> Key: SHRINKDESC-164
> URL: https://issues.jboss.org/browse/SHRINKDESC-164
> Project: ShrinkWrap Descriptors
> Issue Type: Bug
> Affects Versions: 2.0.0-alpha-7, 2.0.0-alpha-8
> Environment: Apache Maven 3.2.5 (12a6b3acb947671f09b81f49094c53f426d8cea1; 2014-12-14T18:29:23+01:00)
> Maven home: C:\Program Files\apache-maven-3.2.5
> Java version: 1.7.0_80, vendor: Oracle Corporation
> Java home: C:\Develop\CCS\jdk1.7.0_80\jre
> Default locale: de_DE, platform encoding: Cp1252
> OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows"
> Reporter: Falko M.
> Attachments: SHRINKDESC-164-testproject.zip
>
>
> When an existing {{beans.xml}} with child elements like {{alternatives}} is loaded via {{Descriptors.importAs(BeansDescriptor.class).fromStream(...)}} *and [SAXON|http://saxon.sourceforge.net/] is on the classpath*, {{.exportAsString()}} yields child elements like the following :
> {noformat}<alternatives xmlns="">{noformat}
> This causes deployment warning in JBoss7 like (truncated):
> {noformat}
> WARN [org.jboss.weld.deployer] JBAS016011: .../META-INF/beans.xml:5 cvc-complex-type.2.4.a: Invalid content was found starting with element 'alternatives'. One of '{"http://java.sun.com/xml/ns/javaee":interceptors, "http://java.sun.com/xml/ns/javaee":decorators, "http://java.sun.com/xml/ns/javaee":alternatives, WC[##other:"http://java.sun.com/xml/ns/javaee"]}' is expected.
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
8 years, 5 months
[JBoss JIRA] (SHRINKDESC-164) BeansDescriptor.exportAsString() yields empty xmlns attributes in child elements when Saxon is present on classpath
by Falko M. (JIRA)
Falko M. created SHRINKDESC-164:
-----------------------------------
Summary: BeansDescriptor.exportAsString() yields empty xmlns attributes in child elements when Saxon is present on classpath
Key: SHRINKDESC-164
URL: https://issues.jboss.org/browse/SHRINKDESC-164
Project: ShrinkWrap Descriptors
Issue Type: Bug
Affects Versions: 2.0.0-alpha-8, 2.0.0-alpha-7
Environment: Apache Maven 3.2.5 (12a6b3acb947671f09b81f49094c53f426d8cea1; 2014-12-14T18:29:23+01:00)
Maven home: C:\Program Files\apache-maven-3.2.5
Java version: 1.7.0_80, vendor: Oracle Corporation
Java home: C:\Develop\CCS\jdk1.7.0_80\jre
Default locale: de_DE, platform encoding: Cp1252
OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows"
Reporter: Falko M.
When an existing {{beans.xml}} with child elements like {{alternatives}} is loaded via {{Descriptors.importAs(BeansDescriptor.class).fromStream(...)}} *and [SAXON|http://saxon.sourceforge.net/] is on the classpath*, {{.exportAsString()}} yields child elements like the following :
{noformat}<alternatives xmlns="">{noformat}
This causes deployment warning in JBoss7 like (truncated):
{noformat}
WARN [org.jboss.weld.deployer] JBAS016011: .../META-INF/beans.xml:5 cvc-complex-type.2.4.a: Invalid content was found starting with element 'alternatives'. One of '{"http://java.sun.com/xml/ns/javaee":interceptors, "http://java.sun.com/xml/ns/javaee":decorators, "http://java.sun.com/xml/ns/javaee":alternatives, WC[##other:"http://java.sun.com/xml/ns/javaee"]}' is expected.
{noformat}
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
8 years, 5 months