Re: NPE in DefaultFaceletFactory._createViewMetadataFacelet from MyFaces 2.2.4 and Karaf 3.0.1

2014-09-08 Thread Paul Spencer
Leonardo, The URL, bundle://636.3:0/helloWorld.xhtml, passed to MyFaces is the same in v2.1.x and 2.2.x, so it appears the default resource resolver has changed in its support OSGi Resource URLs. Is there a ResourceResolver included in MyFaces that will properly resolve URL above? If not,

Re: NPE in DefaultFaceletFactory._createViewMetadataFacelet from MyFaces 2.2.4 and Karaf 3.0.1

2014-09-06 Thread Paul Spencer
The log entries below are from MyFaces 2.1.15 and 2.2.4, so is this a regression bug? *** * MyFaces 2.1.15 *** 2014-09-06 05:16:40,601 | TRACE | qtp195585050-76 | FaceletViewDeclarationLanguage | 640 - org.apache.myfaces.core.impl - 2.1.15 | Initializing 2014-09-06 05:16:40,657 | DEBUG |

Re: NPE in DefaultFaceletFactory._createViewMetadataFacelet from MyFaces 2.2.4 and Karaf 3.0.1

2014-09-06 Thread Leonardo Uribe
Hi The line that throw the exception has this code: String alias = / + _removeFirst(url.getFile(), getBaseUrl().getFile()); the base url is (/), so probably it is resolved as null. This reference is taken through ResourceResolver, so a custom implementation could fix the issue. regards,

NPE in DefaultFaceletFactory._createViewMetadataFacelet from MyFaces 2.2.4 and Karaf 3.0.1

2014-09-05 Thread Paul Spencer
I am getting the following exception when browsing to a JSF page when using MyFaces 2.2.4 and Karaf 3.0.1. No exception is thrown when using MyFaces 2.1.15 and the page displays as expected. The only difference is which version of myfaces-api and myfaces-impl are installed. I suspect

Re: NPE in DefaultFaceletFactory._createViewMetadataFacelet from MyFaces 2.2.4 and Karaf 3.0.1

2014-09-05 Thread Paul Spencer
I enabled TRACE logging to provide more information. Notice the URL starts used to create the facelet. 2014-09-05 19:59:31,889 | TRACE | qtp2017355996-82 | FaceletViewDeclarationLanguage | 638 - org.apache.myfaces.core.impl - 2.2.4 | Initializing 2014-09-05 19:59:31,919 | DEBUG |