You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Clovis (JIRA)" <de...@myfaces.apache.org> on 2011/02/15 11:09:57 UTC

[jira] Created: (MYFACES-3044) Resource jsf.js not found when using the OSGi bundle

Resource jsf.js not found when using the OSGi bundle
----------------------------------------------------

                 Key: MYFACES-3044
                 URL: https://issues.apache.org/jira/browse/MYFACES-3044
             Project: MyFaces Core
          Issue Type: Bug
    Affects Versions: 2.0.3
            Reporter: Clovis


First there is a
{color:red}WARNING: Resource referenced by resourceName jsf.js and libraryName javax.faces not found in call to ResourceHandler.createResource. It will be silenty ignored.{color:red}
and later a NullPointerException

Using javax.faces.PROJECT_STAGE=Development, the class loader was trying to load META-INF/internal-resources/javax.faces/jsf-uncompressed-full.js (so I added the "package" META-INF.internal-resources.javax.faces to the list of exported packages of myfaces-bundle.jar). But then I changed it from Development to Production, and myfaces tried to load something else (and I decided to write a bug).

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MYFACES-3044) Resource jsf.js not found when using the OSGi bundle

Posted by "Jakob Korherr (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/MYFACES-3044?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12997728#comment-12997728 ] 

Jakob Korherr commented on MYFACES-3044:
----------------------------------------

Maybe this issue can also be fixed without adding these entries to the MANIFEST.MF, but by changing the resource loading mechanism to use multiple ClassLoaders..

> Resource jsf.js not found when using the OSGi bundle
> ----------------------------------------------------
>
>                 Key: MYFACES-3044
>                 URL: https://issues.apache.org/jira/browse/MYFACES-3044
>             Project: MyFaces Core
>          Issue Type: Bug
>    Affects Versions: 2.0.3
>            Reporter: Clovis
>
> First there is a
> WARNING: Resource referenced by resourceName jsf.js and libraryName javax.faces not found in call to ResourceHandler.createResource. It will be silenty ignored.
> and later a NullPointerException
> Using javax.faces.PROJECT_STAGE=Development, the class loader was trying to load META-INF/internal-resources/javax.faces/jsf-uncompressed-full.js (so I added the "package" META-INF.internal-resources.javax.faces to the list of exported packages of myfaces-bundle.jar). But then I changed it from Development to Production, and myfaces tried to load something else (and I decided to write a bug).

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MYFACES-3044) Resource jsf.js not found when using the OSGi bundle

Posted by "Jakob Korherr (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/MYFACES-3044?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12997742#comment-12997742 ] 

Jakob Korherr commented on MYFACES-3044:
----------------------------------------

Hehe, yes. That's why I am trying to fix this issue via MYFACES-3051.

> Resource jsf.js not found when using the OSGi bundle
> ----------------------------------------------------
>
>                 Key: MYFACES-3044
>                 URL: https://issues.apache.org/jira/browse/MYFACES-3044
>             Project: MyFaces Core
>          Issue Type: Bug
>    Affects Versions: 2.0.3
>            Reporter: Clovis
>
> First there is a
> WARNING: Resource referenced by resourceName jsf.js and libraryName javax.faces not found in call to ResourceHandler.createResource. It will be silenty ignored.
> and later a NullPointerException
> Using javax.faces.PROJECT_STAGE=Development, the class loader was trying to load META-INF/internal-resources/javax.faces/jsf-uncompressed-full.js (so I added the "package" META-INF.internal-resources.javax.faces to the list of exported packages of myfaces-bundle.jar). But then I changed it from Development to Production, and myfaces tried to load something else (and I decided to write a bug).

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MYFACES-3044) Resource jsf.js not found when using the OSGi bundle

Posted by "Jakob Korherr (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/MYFACES-3044?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12997722#comment-12997722 ] 

Jakob Korherr commented on MYFACES-3044:
----------------------------------------

Adding this to the export packages of the maven-bundle-plugin configuration should fix this issue:

META-INF.internal-resources.javax.faces;version="${project.version}",
META-INF.resources;version="${project.version}",
META-INF.services;version="${project.version}"

However, I am not sure if this is the expected thing to do here. Is anyone here more familiar with OSGi?

> Resource jsf.js not found when using the OSGi bundle
> ----------------------------------------------------
>
>                 Key: MYFACES-3044
>                 URL: https://issues.apache.org/jira/browse/MYFACES-3044
>             Project: MyFaces Core
>          Issue Type: Bug
>    Affects Versions: 2.0.3
>            Reporter: Clovis
>
> First there is a
> WARNING: Resource referenced by resourceName jsf.js and libraryName javax.faces not found in call to ResourceHandler.createResource. It will be silenty ignored.
> and later a NullPointerException
> Using javax.faces.PROJECT_STAGE=Development, the class loader was trying to load META-INF/internal-resources/javax.faces/jsf-uncompressed-full.js (so I added the "package" META-INF.internal-resources.javax.faces to the list of exported packages of myfaces-bundle.jar). But then I changed it from Development to Production, and myfaces tried to load something else (and I decided to write a bug).

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MYFACES-3044) Resource jsf.js not found when using the OSGi bundle

Posted by "Clovis (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/MYFACES-3044?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12997740#comment-12997740 ] 

Clovis commented on MYFACES-3044:
---------------------------------

I don't know if you are willing to add exported packages every time someone realizes that, for some configuration, a file from a non-exported package is required... For example, with PROJECT_STATE=Production, META-INF.resources.javax.faces is also needed as exported package.


> Resource jsf.js not found when using the OSGi bundle
> ----------------------------------------------------
>
>                 Key: MYFACES-3044
>                 URL: https://issues.apache.org/jira/browse/MYFACES-3044
>             Project: MyFaces Core
>          Issue Type: Bug
>    Affects Versions: 2.0.3
>            Reporter: Clovis
>
> First there is a
> WARNING: Resource referenced by resourceName jsf.js and libraryName javax.faces not found in call to ResourceHandler.createResource. It will be silenty ignored.
> and later a NullPointerException
> Using javax.faces.PROJECT_STAGE=Development, the class loader was trying to load META-INF/internal-resources/javax.faces/jsf-uncompressed-full.js (so I added the "package" META-INF.internal-resources.javax.faces to the list of exported packages of myfaces-bundle.jar). But then I changed it from Development to Production, and myfaces tried to load something else (and I decided to write a bug).

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Reopened: (MYFACES-3044) Resource jsf.js not found when using the OSGi bundle

Posted by "Jakob Korherr (JIRA)" <de...@myfaces.apache.org>.
     [ https://issues.apache.org/jira/browse/MYFACES-3044?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jakob Korherr reopened MYFACES-3044:
------------------------------------

      Assignee:     (was: Leonardo Uribe)

I disagree that this is the expected behavior.

Users will use our OSGi-bundle also if ProjectStage==Development and not only in Production. So if we do not fix it, users would have to use ProjectStage==Production for development too and that's just wrong!

Also it should be really easy to fix. From the dev-list: add META-INF.internal-resources.javax.faces and META-INF.services to the exported packages in MANIFEST.MF.

> Resource jsf.js not found when using the OSGi bundle
> ----------------------------------------------------
>
>                 Key: MYFACES-3044
>                 URL: https://issues.apache.org/jira/browse/MYFACES-3044
>             Project: MyFaces Core
>          Issue Type: Bug
>    Affects Versions: 2.0.3
>            Reporter: Clovis
>
> First there is a
> WARNING: Resource referenced by resourceName jsf.js and libraryName javax.faces not found in call to ResourceHandler.createResource. It will be silenty ignored.
> and later a NullPointerException
> Using javax.faces.PROJECT_STAGE=Development, the class loader was trying to load META-INF/internal-resources/javax.faces/jsf-uncompressed-full.js (so I added the "package" META-INF.internal-resources.javax.faces to the list of exported packages of myfaces-bundle.jar). But then I changed it from Development to Production, and myfaces tried to load something else (and I decided to write a bug).

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Resolved: (MYFACES-3044) Resource jsf.js not found when using the OSGi bundle

Posted by "Jakob Korherr (JIRA)" <de...@myfaces.apache.org>.
     [ https://issues.apache.org/jira/browse/MYFACES-3044?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jakob Korherr resolved MYFACES-3044.
------------------------------------

       Resolution: Fixed
    Fix Version/s: 2.0.5-SNAPSHOT
         Assignee: Jakob Korherr

code committed in MYFACES-3051 fixes this problem (confirmed by Clovis Seragiotto on the mailing list).

> Resource jsf.js not found when using the OSGi bundle
> ----------------------------------------------------
>
>                 Key: MYFACES-3044
>                 URL: https://issues.apache.org/jira/browse/MYFACES-3044
>             Project: MyFaces Core
>          Issue Type: Bug
>    Affects Versions: 2.0.3
>            Reporter: Clovis
>            Assignee: Jakob Korherr
>             Fix For: 2.0.5-SNAPSHOT
>
>
> First there is a
> WARNING: Resource referenced by resourceName jsf.js and libraryName javax.faces not found in call to ResourceHandler.createResource. It will be silenty ignored.
> and later a NullPointerException
> Using javax.faces.PROJECT_STAGE=Development, the class loader was trying to load META-INF/internal-resources/javax.faces/jsf-uncompressed-full.js (so I added the "package" META-INF.internal-resources.javax.faces to the list of exported packages of myfaces-bundle.jar). But then I changed it from Development to Production, and myfaces tried to load something else (and I decided to write a bug).

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira