[JBoss JIRA] (JBOSGI-794) WAB Fragment resources are not available through host
by Arcadiy Ivanov (JIRA)
[ https://issues.jboss.org/browse/JBOSGI-794?page=com.atlassian.jira.plugin... ]
Arcadiy Ivanov updated JBOSGI-794:
----------------------------------
Summary: WAB Fragment resources are not available through host (was: WAB Fragment resources are not available post-deployment)
> WAB Fragment resources are not available through host
> -----------------------------------------------------
>
> Key: JBOSGI-794
> URL: https://issues.jboss.org/browse/JBOSGI-794
> Project: JBoss OSGi
> Issue Type: Bug
> Components: webapp, wildfly
> Affects Versions: JBossOSGI 2.3.1, JBossOSGI 2.5.1, JBossOSGI 2.4.1
> Reporter: Arcadiy Ivanov
> Assignee: Arcadiy Ivanov
> Attachments: com.mrs.budget.portal.jar, com.mrs.budget.portal.resources.jar, standalone.xml
>
>
> {quote}
> Actually my bundle-fragment gives me no possibility to load extra resources from it. I get only 404 when try to load /budget/portal/resources/angular-material/1.0.7/angular-material.css. I have found in log, that it was created an osgi-storage for my bundle-fragment withe start=false. Is it correct so? May be you could give me some advices, how to make it work.
> {quote}
> ----
> OSGI EE spec is as follows:
> {quote}
> 128.6.3 Resource Lookup
> The getResource and getResourceAsStream methods of the ServletContext interface are used to access resources in the web application. For a WAB, these resources must be found according to the findEntries method, this method includes fragments. For the getResource and getResourceAsStream method, if multiple resources are found, then the first one must be used.
> Since the getResource and getResourceAsStream methods do not support wildcards while the findEntries method does it is necessary to escape the wildcard asterisk (’*’ \u002A) with prefixing it with a reverse solidus (backslash ’\’ \u005C). This implies that a reverse solidus must be escaped with an extra reverse solidus. For example, the path foo\bar* must be escaped to foo\\bar\*.
> The getResourcePaths method must map to the Bundle getEntryPaths method, its return type is a Set and can not handle multiples. However, the paths from the getEntryPaths method are relative while the methods of the getResourcePaths must be absolute.
> For example, assume the following manifest for a bundle:
> Bundle-ClassPath: localized, WEB-INF
> ...
> This WAB has an attached fragment acme-de.jar with the following content:
> META-INF/MANIFEST.MF
> localized/logo.png
> The getResource method for localized/logo.png uses the findEntries method to find a resource in the directory /localized and the resource logo.png. Assuming the host bundle has no localized/ directory, the Web Runtime must serve the logo.png resource from the acme-de.jar.
> {quote}
> ----
> Default Undertow servlet delegates to ServletResourceManager.getResource() that goes straight for the physical path, bypassing OSGi entirely.
> One possible solution is to use a servlet for all static content, but more investigation is needed.
> ----
> WarMetadata.setOverlays() should provide necessary overlay handling for ServletResourceManager.getResource()
> ----
> http://stackoverflow.com/questions/11029768/when-is-an-osgi-fragment-atta...
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
7 years, 11 months
[JBoss JIRA] (JBOSGI-794) WAB Fragment resources are not available post-deployment
by Arcadiy Ivanov (JIRA)
[ https://issues.jboss.org/browse/JBOSGI-794?page=com.atlassian.jira.plugin... ]
Arcadiy Ivanov updated JBOSGI-794:
----------------------------------
Description:
{quote}
Actually my bundle-fragment gives me no possibility to load extra resources from it. I get only 404 when try to load /budget/portal/resources/angular-material/1.0.7/angular-material.css. I have found in log, that it was created an osgi-storage for my bundle-fragment withe start=false. Is it correct so? May be you could give me some advices, how to make it work.
{quote}
----
OSGI EE spec is as follows:
{quote}
128.6.3 Resource Lookup
The getResource and getResourceAsStream methods of the ServletContext interface are used to access resources in the web application. For a WAB, these resources must be found according to the findEntries method, this method includes fragments. For the getResource and getResourceAsStream method, if multiple resources are found, then the first one must be used.
Since the getResource and getResourceAsStream methods do not support wildcards while the findEntries method does it is necessary to escape the wildcard asterisk (’*’ \u002A) with prefixing it with a reverse solidus (backslash ’\’ \u005C). This implies that a reverse solidus must be escaped with an extra reverse solidus. For example, the path foo\bar* must be escaped to foo\\bar\*.
The getResourcePaths method must map to the Bundle getEntryPaths method, its return type is a Set and can not handle multiples. However, the paths from the getEntryPaths method are relative while the methods of the getResourcePaths must be absolute.
For example, assume the following manifest for a bundle:
Bundle-ClassPath: localized, WEB-INF
...
This WAB has an attached fragment acme-de.jar with the following content:
META-INF/MANIFEST.MF
localized/logo.png
The getResource method for localized/logo.png uses the findEntries method to find a resource in the directory /localized and the resource logo.png. Assuming the host bundle has no localized/ directory, the Web Runtime must serve the logo.png resource from the acme-de.jar.
{quote}
----
Default Undertow servlet delegates to ServletResourceManager.getResource() that goes straight for the physical path, bypassing OSGi entirely.
One possible solution is to use a servlet for all static content, but more investigation is needed.
----
WarMetadata.setOverlays() should provide necessary overlay handling for ServletResourceManager.getResource()
----
http://stackoverflow.com/questions/11029768/when-is-an-osgi-fragment-atta...
was:
{quote}
Actually my bundle-fragment gives me no possibility to load extra resources from it. I get only 404 when try to load /budget/portal/resources/angular-material/1.0.7/angular-material.css. I have found in log, that it was created an osgi-storage for my bundle-fragment withe start=false. Is it correct so? May be you could give me some advices, how to make it work.
{quote}
----
OSGI EE spec is as follows:
{quote}
128.6.3 Resource Lookup
The getResource and getResourceAsStream methods of the ServletContext interface are used to access resources in the web application. For a WAB, these resources must be found according to the findEntries method, this method includes fragments. For the getResource and getResourceAsStream method, if multiple resources are found, then the first one must be used.
Since the getResource and getResourceAsStream methods do not support wildcards while the findEntries method does it is necessary to escape the wildcard asterisk (’*’ \u002A) with prefixing it with a reverse solidus (backslash ’\’ \u005C). This implies that a reverse solidus must be escaped with an extra reverse solidus. For example, the path foo\bar* must be escaped to foo\\bar\*.
The getResourcePaths method must map to the Bundle getEntryPaths method, its return type is a Set and can not handle multiples. However, the paths from the getEntryPaths method are relative while the methods of the getResourcePaths must be absolute.
For example, assume the following manifest for a bundle:
Bundle-ClassPath: localized, WEB-INF
...
This WAB has an attached fragment acme-de.jar with the following content:
META-INF/MANIFEST.MF
localized/logo.png
The getResource method for localized/logo.png uses the findEntries method to find a resource in the directory /localized and the resource logo.png. Assuming the host bundle has no localized/ directory, the Web Runtime must serve the logo.png resource from the acme-de.jar.
{quote}
----
Default Undertow servlet delegates to ServletResourceManager.getResource() that goes straight for the physical path, bypassing OSGi entirely.
One possible solution is to use a servlet for all static content, but more investigation is needed.
----
WarMetadata.setOverlays() should provide necessary overlay handling for ServletResourceManager.getResource()
> WAB Fragment resources are not available post-deployment
> --------------------------------------------------------
>
> Key: JBOSGI-794
> URL: https://issues.jboss.org/browse/JBOSGI-794
> Project: JBoss OSGi
> Issue Type: Bug
> Components: webapp, wildfly
> Affects Versions: JBossOSGI 2.3.1, JBossOSGI 2.5.1, JBossOSGI 2.4.1
> Reporter: Arcadiy Ivanov
> Assignee: Arcadiy Ivanov
> Attachments: com.mrs.budget.portal.jar, com.mrs.budget.portal.resources.jar, standalone.xml
>
>
> {quote}
> Actually my bundle-fragment gives me no possibility to load extra resources from it. I get only 404 when try to load /budget/portal/resources/angular-material/1.0.7/angular-material.css. I have found in log, that it was created an osgi-storage for my bundle-fragment withe start=false. Is it correct so? May be you could give me some advices, how to make it work.
> {quote}
> ----
> OSGI EE spec is as follows:
> {quote}
> 128.6.3 Resource Lookup
> The getResource and getResourceAsStream methods of the ServletContext interface are used to access resources in the web application. For a WAB, these resources must be found according to the findEntries method, this method includes fragments. For the getResource and getResourceAsStream method, if multiple resources are found, then the first one must be used.
> Since the getResource and getResourceAsStream methods do not support wildcards while the findEntries method does it is necessary to escape the wildcard asterisk (’*’ \u002A) with prefixing it with a reverse solidus (backslash ’\’ \u005C). This implies that a reverse solidus must be escaped with an extra reverse solidus. For example, the path foo\bar* must be escaped to foo\\bar\*.
> The getResourcePaths method must map to the Bundle getEntryPaths method, its return type is a Set and can not handle multiples. However, the paths from the getEntryPaths method are relative while the methods of the getResourcePaths must be absolute.
> For example, assume the following manifest for a bundle:
> Bundle-ClassPath: localized, WEB-INF
> ...
> This WAB has an attached fragment acme-de.jar with the following content:
> META-INF/MANIFEST.MF
> localized/logo.png
> The getResource method for localized/logo.png uses the findEntries method to find a resource in the directory /localized and the resource logo.png. Assuming the host bundle has no localized/ directory, the Web Runtime must serve the logo.png resource from the acme-de.jar.
> {quote}
> ----
> Default Undertow servlet delegates to ServletResourceManager.getResource() that goes straight for the physical path, bypassing OSGi entirely.
> One possible solution is to use a servlet for all static content, but more investigation is needed.
> ----
> WarMetadata.setOverlays() should provide necessary overlay handling for ServletResourceManager.getResource()
> ----
> http://stackoverflow.com/questions/11029768/when-is-an-osgi-fragment-atta...
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
7 years, 11 months
[JBoss JIRA] (JBOSGI-794) WAB Fragment resources are not available post-deployment
by Arcadiy Ivanov (JIRA)
[ https://issues.jboss.org/browse/JBOSGI-794?page=com.atlassian.jira.plugin... ]
Arcadiy Ivanov updated JBOSGI-794:
----------------------------------
Description:
{quote}
Actually my bundle-fragment gives me no possibility to load extra resources from it. I get only 404 when try to load /budget/portal/resources/angular-material/1.0.7/angular-material.css. I have found in log, that it was created an osgi-storage for my bundle-fragment withe start=false. Is it correct so? May be you could give me some advices, how to make it work.
{quote}
----
OSGI EE spec is as follows:
{quote}
128.6.3 Resource Lookup
The getResource and getResourceAsStream methods of the ServletContext interface are used to access resources in the web application. For a WAB, these resources must be found according to the findEntries method, this method includes fragments. For the getResource and getResourceAsStream method, if multiple resources are found, then the first one must be used.
Since the getResource and getResourceAsStream methods do not support wildcards while the findEntries method does it is necessary to escape the wildcard asterisk (’*’ \u002A) with prefixing it with a reverse solidus (backslash ’\’ \u005C). This implies that a reverse solidus must be escaped with an extra reverse solidus. For example, the path foo\bar* must be escaped to foo\\bar\*.
The getResourcePaths method must map to the Bundle getEntryPaths method, its return type is a Set and can not handle multiples. However, the paths from the getEntryPaths method are relative while the methods of the getResourcePaths must be absolute.
For example, assume the following manifest for a bundle:
Bundle-ClassPath: localized, WEB-INF
...
This WAB has an attached fragment acme-de.jar with the following content:
META-INF/MANIFEST.MF
localized/logo.png
The getResource method for localized/logo.png uses the findEntries method to find a resource in the directory /localized and the resource logo.png. Assuming the host bundle has no localized/ directory, the Web Runtime must serve the logo.png resource from the acme-de.jar.
{quote}
----
Default Undertow servlet delegates to ServletResourceManager.getResource() that goes straight for the physical path, bypassing OSGi entirely.
One possible solution is to use a servlet for all static content, but more investigation is needed.
----
WarMetadata.setOverlays() should provide necessary overlay handling for ServletResourceManager.getResource()
was:
{quote}
Actually my bundle-fragment gives me no possibility to load extra resources from it. I get only 404 when try to load /budget/portal/resources/angular-material/1.0.7/angular-material.css. I have found in log, that it was created an osgi-storage for my bundle-fragment withe start=false. Is it correct so? May be you could give me some advices, how to make it work.
{quote}
----
OSGI EE spec is as follows:
{quote}
128.6.3 Resource Lookup
The getResource and getResourceAsStream methods of the ServletContext interface are used to access resources in the web application. For a WAB, these resources must be found according to the findEntries method, this method includes fragments. For the getResource and getResourceAsStream method, if multiple resources are found, then the first one must be used.
Since the getResource and getResourceAsStream methods do not support wildcards while the findEntries method does it is necessary to escape the wildcard asterisk (’*’ \u002A) with prefixing it with a reverse solidus (backslash ’\’ \u005C). This implies that a reverse solidus must be escaped with an extra reverse solidus. For example, the path foo\bar* must be escaped to foo\\bar\*.
The getResourcePaths method must map to the Bundle getEntryPaths method, its return type is a Set and can not handle multiples. However, the paths from the getEntryPaths method are relative while the methods of the getResourcePaths must be absolute.
For example, assume the following manifest for a bundle:
Bundle-ClassPath: localized, WEB-INF
...
This WAB has an attached fragment acme-de.jar with the following content:
META-INF/MANIFEST.MF
localized/logo.png
The getResource method for localized/logo.png uses the findEntries method to find a resource in the directory /localized and the resource logo.png. Assuming the host bundle has no localized/ directory, the Web Runtime must serve the logo.png resource from the acme-de.jar.
{quote}
----
Default Undertow servlet delegates to ServletResourceManager.getResource() that goes straight for the physical path, bypassing OSGi entirely.
One possible solution is to use a servlet for all static content, but more investigation is needed.
> WAB Fragment resources are not available post-deployment
> --------------------------------------------------------
>
> Key: JBOSGI-794
> URL: https://issues.jboss.org/browse/JBOSGI-794
> Project: JBoss OSGi
> Issue Type: Bug
> Components: webapp, wildfly
> Affects Versions: JBossOSGI 2.3.1, JBossOSGI 2.5.1, JBossOSGI 2.4.1
> Reporter: Arcadiy Ivanov
> Assignee: Arcadiy Ivanov
> Attachments: com.mrs.budget.portal.jar, com.mrs.budget.portal.resources.jar, standalone.xml
>
>
> {quote}
> Actually my bundle-fragment gives me no possibility to load extra resources from it. I get only 404 when try to load /budget/portal/resources/angular-material/1.0.7/angular-material.css. I have found in log, that it was created an osgi-storage for my bundle-fragment withe start=false. Is it correct so? May be you could give me some advices, how to make it work.
> {quote}
> ----
> OSGI EE spec is as follows:
> {quote}
> 128.6.3 Resource Lookup
> The getResource and getResourceAsStream methods of the ServletContext interface are used to access resources in the web application. For a WAB, these resources must be found according to the findEntries method, this method includes fragments. For the getResource and getResourceAsStream method, if multiple resources are found, then the first one must be used.
> Since the getResource and getResourceAsStream methods do not support wildcards while the findEntries method does it is necessary to escape the wildcard asterisk (’*’ \u002A) with prefixing it with a reverse solidus (backslash ’\’ \u005C). This implies that a reverse solidus must be escaped with an extra reverse solidus. For example, the path foo\bar* must be escaped to foo\\bar\*.
> The getResourcePaths method must map to the Bundle getEntryPaths method, its return type is a Set and can not handle multiples. However, the paths from the getEntryPaths method are relative while the methods of the getResourcePaths must be absolute.
> For example, assume the following manifest for a bundle:
> Bundle-ClassPath: localized, WEB-INF
> ...
> This WAB has an attached fragment acme-de.jar with the following content:
> META-INF/MANIFEST.MF
> localized/logo.png
> The getResource method for localized/logo.png uses the findEntries method to find a resource in the directory /localized and the resource logo.png. Assuming the host bundle has no localized/ directory, the Web Runtime must serve the logo.png resource from the acme-de.jar.
> {quote}
> ----
> Default Undertow servlet delegates to ServletResourceManager.getResource() that goes straight for the physical path, bypassing OSGi entirely.
> One possible solution is to use a servlet for all static content, but more investigation is needed.
> ----
> WarMetadata.setOverlays() should provide necessary overlay handling for ServletResourceManager.getResource()
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
7 years, 11 months
[JBoss JIRA] (JBOSGI-794) WAB Fragment resources are not available post-deployment
by Arcadiy Ivanov (JIRA)
[ https://issues.jboss.org/browse/JBOSGI-794?page=com.atlassian.jira.plugin... ]
Arcadiy Ivanov updated JBOSGI-794:
----------------------------------
Description:
{quote}
Actually my bundle-fragment gives me no possibility to load extra resources from it. I get only 404 when try to load /budget/portal/resources/angular-material/1.0.7/angular-material.css. I have found in log, that it was created an osgi-storage for my bundle-fragment withe start=false. Is it correct so? May be you could give me some advices, how to make it work.
{quote}
----
OSGI EE spec is as follows:
{quote}
128.6.3 Resource Lookup
The getResource and getResourceAsStream methods of the ServletContext interface are used to access resources in the web application. For a WAB, these resources must be found according to the findEntries method, this method includes fragments. For the getResource and getResourceAsStream method, if multiple resources are found, then the first one must be used.
Since the getResource and getResourceAsStream methods do not support wildcards while the findEntries method does it is necessary to escape the wildcard asterisk (’*’ \u002A) with prefixing it with a reverse solidus (backslash ’\’ \u005C). This implies that a reverse solidus must be escaped with an extra reverse solidus. For example, the path foo\bar* must be escaped to foo\\bar\*.
The getResourcePaths method must map to the Bundle getEntryPaths method, its return type is a Set and can not handle multiples. However, the paths from the getEntryPaths method are relative while the methods of the getResourcePaths must be absolute.
For example, assume the following manifest for a bundle:
Bundle-ClassPath: localized, WEB-INF
...
This WAB has an attached fragment acme-de.jar with the following content:
META-INF/MANIFEST.MF
localized/logo.png
The getResource method for localized/logo.png uses the findEntries method to find a resource in the directory /localized and the resource logo.png. Assuming the host bundle has no localized/ directory, the Web Runtime must serve the logo.png resource from the acme-de.jar.
{quote}
----
Default Undertow servlet delegates to ServletResourceManager.getResource() that goes straight for the physical path, bypassing OSGi entirely.
One possible solution is to use a servlet for all static content, but more investigation is needed.
was:
{quote}
Actually my bundle-fragment gives me no possibility to load extra resources from it. I get only 404 when try to load /budget/portal/resources/angular-material/1.0.7/angular-material.css. I have found in log, that it was created an osgi-storage for my bundle-fragment withe start=false. Is it correct so? May be you could give me some advices, how to make it work.
{quote}
> WAB Fragment resources are not available post-deployment
> --------------------------------------------------------
>
> Key: JBOSGI-794
> URL: https://issues.jboss.org/browse/JBOSGI-794
> Project: JBoss OSGi
> Issue Type: Bug
> Components: webapp, wildfly
> Affects Versions: JBossOSGI 2.3.1, JBossOSGI 2.5.1, JBossOSGI 2.4.1
> Reporter: Arcadiy Ivanov
> Assignee: Arcadiy Ivanov
> Attachments: com.mrs.budget.portal.jar, com.mrs.budget.portal.resources.jar, standalone.xml
>
>
> {quote}
> Actually my bundle-fragment gives me no possibility to load extra resources from it. I get only 404 when try to load /budget/portal/resources/angular-material/1.0.7/angular-material.css. I have found in log, that it was created an osgi-storage for my bundle-fragment withe start=false. Is it correct so? May be you could give me some advices, how to make it work.
> {quote}
> ----
> OSGI EE spec is as follows:
> {quote}
> 128.6.3 Resource Lookup
> The getResource and getResourceAsStream methods of the ServletContext interface are used to access resources in the web application. For a WAB, these resources must be found according to the findEntries method, this method includes fragments. For the getResource and getResourceAsStream method, if multiple resources are found, then the first one must be used.
> Since the getResource and getResourceAsStream methods do not support wildcards while the findEntries method does it is necessary to escape the wildcard asterisk (’*’ \u002A) with prefixing it with a reverse solidus (backslash ’\’ \u005C). This implies that a reverse solidus must be escaped with an extra reverse solidus. For example, the path foo\bar* must be escaped to foo\\bar\*.
> The getResourcePaths method must map to the Bundle getEntryPaths method, its return type is a Set and can not handle multiples. However, the paths from the getEntryPaths method are relative while the methods of the getResourcePaths must be absolute.
> For example, assume the following manifest for a bundle:
> Bundle-ClassPath: localized, WEB-INF
> ...
> This WAB has an attached fragment acme-de.jar with the following content:
> META-INF/MANIFEST.MF
> localized/logo.png
> The getResource method for localized/logo.png uses the findEntries method to find a resource in the directory /localized and the resource logo.png. Assuming the host bundle has no localized/ directory, the Web Runtime must serve the logo.png resource from the acme-de.jar.
> {quote}
> ----
> Default Undertow servlet delegates to ServletResourceManager.getResource() that goes straight for the physical path, bypassing OSGi entirely.
> One possible solution is to use a servlet for all static content, but more investigation is needed.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
7 years, 11 months
[JBoss JIRA] (JBOSGI-793) Can't deploy wab fragment
by Arcadiy Ivanov (JIRA)
[ https://issues.jboss.org/browse/JBOSGI-793?page=com.atlassian.jira.plugin... ]
Arcadiy Ivanov updated JBOSGI-793:
----------------------------------
Affects Version/s: JBossOSGI 2.4.1
JBossOSGI 2.5.1
JBossOSGI 2.4.0
JBossOSGI 2.3.1
> Can't deploy wab fragment
> -------------------------
>
> Key: JBOSGI-793
> URL: https://issues.jboss.org/browse/JBOSGI-793
> Project: JBoss OSGi
> Issue Type: Bug
> Components: wildfly
> Affects Versions: JBossOSGI 2.3.1, JBossOSGI 2.4.0, JBossOSGI 2.5.0, JBossOSGI 2.5.1, JBossOSGI 2.4.1
> Reporter: Roman Smushkevich
> Assignee: Arcadiy Ivanov
> Fix For: JBossOSGI 2.5.2, JBossOSGI 2.4.2
>
> Attachments: com.mrs.budget.portal.jar, com.mrs.budget.portal.resources.jar, standalone.xml
>
>
> If you try to deploy a wab fragment to already deployed wab comes exception:
> {code:java}
> 00:26:42,178 INFO [org.jboss.osgi.framework] (MSC service thread 1-7) JBOSGI011001: Bundle installed: com.mrs.budget.portal:1.0.0
> 00:26:42,180 INFO [org.jboss.osgi.framework] (MSC service thread 1-8) JBOSGI011001: Bundle installed: com.mrs.budget.portal.resources:1.0.0
> 00:26:50,267 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-3) MSC000001: Failed to start service jboss.deployment.unit."com.mrs.budget.portal.resources.jar".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.unit."com.mrs.budget.portal.resources.jar".POST_MODULE: WFLYSRV0153: Failed to process phase POST_MODULE of deployment "com.mrs.budget.portal.resources.jar"
> at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:154)
> at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948)
> at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> at java.lang.Thread.run(Thread.java:745)
> Caused by: java.lang.NullPointerException
> at org.jboss.as.webservices.deployers.WSClassVerificationProcessor.deploy(WSClassVerificationProcessor.java:75)
> at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:147)
> ... 5 more
> 00:26:55,362 INFO [org.wildfly.extension.undertow] (MSC service thread 1-8) WFLYUT0021: Registered web context: /budget
> 00:26:55,374 INFO [org.jboss.osgi.framework] (MSC service thread 1-8) JBOSGI011002: Bundle started: com.mrs.budget.portal:1.0.0
> 00:26:55,376 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("deploy") failed - address: ([("deployment" => "com.mrs.budget.portal.resources.jar")]) - failure description: {"WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"com.mrs.budget.portal.resources.jar\".POST_MODULE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"com.mrs.budget.portal.resources.jar\".POST_MODULE: WFLYSRV0153: Failed to process phase POST_MODULE of deployment \"com.mrs.budget.portal.resources.jar\"
> Caused by: java.lang.NullPointerException"}}
> 00:26:55,393 INFO [org.jboss.as.server] (ServerService Thread Pool -- 36) WFLYSRV0010: Deployed "com.mrs.budget.portal.resources.jar" (runtime-name : "com.mrs.budget.portal.resources.jar")
> 00:26:55,394 INFO [org.jboss.as.server] (ServerService Thread Pool -- 36) WFLYSRV0010: Deployed "com.mrs.budget.portal.jar" (runtime-name : "com.mrs.budget.portal.jar")
> 00:26:55,397 INFO [org.jboss.as.controller] (Controller Boot Thread) WFLYCTL0183: Service status report
> WFLYCTL0186: Services which failed to start: service jboss.deployment.unit."com.mrs.budget.portal.resources.jar".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.unit."com.mrs.budget.portal.resources.jar".POST_MODULE: WFLYSRV0153: Failed to process phase POST_MODULE of deployment "com.mrs.budget.portal.resources.jar"
> {code}
> Debugging showd, that the deployment of wab Fragment tryes to pass through WS verification, that needs a deployment unit module:
> {code:java}
> @Override
> public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
> final DeploymentUnit unit = phaseContext.getDeploymentUnit();
> final JAXWSDeployment wsDeployment = unit.getAttachment(JAXWS_ENDPOINTS_KEY);
> if (wsDeployment != null) {
> final Module module = unit.getAttachment(Attachments.MODULE);
> final DeploymentReflectionIndex deploymentReflectionIndex = unit
> .getAttachment(org.jboss.as.server.deployment.Attachments.REFLECTION_INDEX);
> final ClassLoader moduleClassLoader = module.getClassLoader();
> for (AbstractEndpoint pojoEndpoint : wsDeployment.getPojoEndpoints()) {
> verifyEndpoint(pojoEndpoint, moduleClassLoader, deploymentReflectionIndex);
> }
> for (AbstractEndpoint ejbEndpoint : wsDeployment.getEjbEndpoints()) {
> verifyEndpoint(ejbEndpoint, moduleClassLoader, deploymentReflectionIndex);
> }
> verifyApacheCXFModuleDependencyRequirement(unit);
> }
> }
> {code}
> but according to ModelManager - fragment is not a module
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
7 years, 11 months
[JBoss JIRA] (JBOSGI-794) WAB Fragment resources are not available post-deployment
by Arcadiy Ivanov (JIRA)
[ https://issues.jboss.org/browse/JBOSGI-794?page=com.atlassian.jira.plugin... ]
Arcadiy Ivanov commented on JBOSGI-794:
---------------------------------------
[~herr_romich] Tagging you here for the reference.
> WAB Fragment resources are not available post-deployment
> --------------------------------------------------------
>
> Key: JBOSGI-794
> URL: https://issues.jboss.org/browse/JBOSGI-794
> Project: JBoss OSGi
> Issue Type: Bug
> Components: webapp, wildfly
> Affects Versions: JBossOSGI 2.3.1, JBossOSGI 2.5.1, JBossOSGI 2.4.1
> Reporter: Arcadiy Ivanov
> Assignee: Arcadiy Ivanov
> Attachments: com.mrs.budget.portal.jar, com.mrs.budget.portal.resources.jar, standalone.xml
>
>
> {quote}
> Actually my bundle-fragment gives me no possibility to load extra resources from it. I get only 404 when try to load /budget/portal/resources/angular-material/1.0.7/angular-material.css. I have found in log, that it was created an osgi-storage for my bundle-fragment withe start=false. Is it correct so? May be you could give me some advices, how to make it work.
> {quote}
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
7 years, 11 months
[JBoss JIRA] (JBOSGI-794) WAB Fragment resources are not available post-deployment
by Arcadiy Ivanov (JIRA)
[ https://issues.jboss.org/browse/JBOSGI-794?page=com.atlassian.jira.plugin... ]
Work on JBOSGI-794 started by Arcadiy Ivanov.
---------------------------------------------
> WAB Fragment resources are not available post-deployment
> --------------------------------------------------------
>
> Key: JBOSGI-794
> URL: https://issues.jboss.org/browse/JBOSGI-794
> Project: JBoss OSGi
> Issue Type: Bug
> Components: webapp, wildfly
> Affects Versions: JBossOSGI 2.3.1, JBossOSGI 2.5.1, JBossOSGI 2.4.1
> Reporter: Arcadiy Ivanov
> Assignee: Arcadiy Ivanov
> Attachments: com.mrs.budget.portal.jar, com.mrs.budget.portal.resources.jar, standalone.xml
>
>
> {quote}
> Actually my bundle-fragment gives me no possibility to load extra resources from it. I get only 404 when try to load /budget/portal/resources/angular-material/1.0.7/angular-material.css. I have found in log, that it was created an osgi-storage for my bundle-fragment withe start=false. Is it correct so? May be you could give me some advices, how to make it work.
> {quote}
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
7 years, 11 months
[JBoss JIRA] (JBOSGI-794) WAB Fragment resources are not available post-deployment
by Arcadiy Ivanov (JIRA)
[ https://issues.jboss.org/browse/JBOSGI-794?page=com.atlassian.jira.plugin... ]
Arcadiy Ivanov updated JBOSGI-794:
----------------------------------
Attachment: standalone.xml
com.mrs.budget.portal.resources.jar
com.mrs.budget.portal.jar
> WAB Fragment resources are not available post-deployment
> --------------------------------------------------------
>
> Key: JBOSGI-794
> URL: https://issues.jboss.org/browse/JBOSGI-794
> Project: JBoss OSGi
> Issue Type: Bug
> Components: webapp, wildfly
> Affects Versions: JBossOSGI 2.3.1, JBossOSGI 2.5.1, JBossOSGI 2.4.1
> Reporter: Arcadiy Ivanov
> Assignee: Arcadiy Ivanov
> Attachments: com.mrs.budget.portal.jar, com.mrs.budget.portal.resources.jar, standalone.xml
>
>
> {quote}
> Actually my bundle-fragment gives me no possibility to load extra resources from it. I get only 404 when try to load /budget/portal/resources/angular-material/1.0.7/angular-material.css. I have found in log, that it was created an osgi-storage for my bundle-fragment withe start=false. Is it correct so? May be you could give me some advices, how to make it work.
> {quote}
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
7 years, 11 months
[JBoss JIRA] (JBOSGI-794) WAB Fragment resources are not available post-deployment
by Arcadiy Ivanov (JIRA)
[ https://issues.jboss.org/browse/JBOSGI-794?page=com.atlassian.jira.plugin... ]
Arcadiy Ivanov updated JBOSGI-794:
----------------------------------
Description:
{quote}
Actually my bundle-fragment gives me no possibility to load extra resources from it. I get only 404 when try to load /budget/portal/resources/angular-material/1.0.7/angular-material.css. I have found in log, that it was created an osgi-storage for my bundle-fragment withe start=false. Is it correct so? May be you could give me some advices, how to make it work.
{quote}
> WAB Fragment resources are not available post-deployment
> --------------------------------------------------------
>
> Key: JBOSGI-794
> URL: https://issues.jboss.org/browse/JBOSGI-794
> Project: JBoss OSGi
> Issue Type: Bug
> Components: webapp, wildfly
> Affects Versions: JBossOSGI 2.3.1, JBossOSGI 2.5.1, JBossOSGI 2.4.1
> Reporter: Arcadiy Ivanov
> Assignee: Arcadiy Ivanov
>
> {quote}
> Actually my bundle-fragment gives me no possibility to load extra resources from it. I get only 404 when try to load /budget/portal/resources/angular-material/1.0.7/angular-material.css. I have found in log, that it was created an osgi-storage for my bundle-fragment withe start=false. Is it correct so? May be you could give me some advices, how to make it work.
> {quote}
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
7 years, 11 months