[jira] [Commented] (MYFACES-4639) Implementation ClassUtils needs "newInstance" methods added to support OSGI runtimes
[ https://issues.apache.org/jira/browse/MYFACES-4639?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17784375#comment-17784375 ] Thomas Andraschko commented on MYFACES-4639: Cant we just pass the classloader? > Implementation ClassUtils needs "newInstance" methods added to support OSGI > runtimes > > > Key: MYFACES-4639 > URL: https://issues.apache.org/jira/browse/MYFACES-4639 > Project: MyFaces Core > Issue Type: Bug >Reporter: Volodymyr Siedlecki >Priority: Major > > This is basically the same issue as > https://issues.apache.org/jira/browse/MYFACES-4449 > This variant was originally reported here: > [https://github.com/OpenLiberty/open-liberty/issues/26760] > However, the CNFE occurs with the newInstance methods since the classes are > looked up via the API classloader and therefore not found (since the classes > exist in the Impl and OSGI creates seperate between bundles. See the > discussion in 4449 for more information) > Example of error: > [ERROR ] Class org.apache.myfaces.push.WebsocketInitRenderer not found > org.apache.myfaces.push.WebsocketInitRenderer cannot be found by > io.openliberty.jakarta.faces.4.0_1.0.84.202311061333 > This error is related to whether the renderkit is an instance of > LazyRenderKit. If it's not, then the standard form look up used (via > newInstance). > LazyRenderKit code was added via MYFACES-3815 : > [https://github.com/apache/myfaces/commit/93a2ddf060d04cea658f58f9223c22b5badeea90] > > I'm not entirely sure how this happens in the users case above, but we should > move these methods again to avoid these errors. I'll have a PR up soon. -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Commented] (MYFACES-4639) Implementation ClassUtils needs "newInstance" methods added to support OSGI runtimes
[ https://issues.apache.org/jira/browse/MYFACES-4639?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17784211#comment-17784211 ] Volodymyr Siedlecki commented on MYFACES-4639: -- Question: Should I duplicate the whole ClassUtils class to avoid further errors like this or just copy over the newInstance methods into the impl ...? > Implementation ClassUtils needs "newInstance" methods added to support OSGI > runtimes > > > Key: MYFACES-4639 > URL: https://issues.apache.org/jira/browse/MYFACES-4639 > Project: MyFaces Core > Issue Type: Bug >Reporter: Volodymyr Siedlecki >Priority: Major > > This is basically the same issue as > https://issues.apache.org/jira/browse/MYFACES-4449 > This variant was originally reported here: > [https://github.com/OpenLiberty/open-liberty/issues/26760] > However, the CNFE occurs with the newInstance methods since the classes are > looked up via the API classloader and therefore not found (since the classes > exist in the Impl and OSGI creates seperate between bundles. See the > discussion in 4449 for more information) > Example of error: > [ERROR ] Class org.apache.myfaces.push.WebsocketInitRenderer not found > org.apache.myfaces.push.WebsocketInitRenderer cannot be found by > io.openliberty.jakarta.faces.4.0_1.0.84.202311061333 > This error is related to whether the renderkit is an instance of > LazyRenderKit. If it's not, then the standard form look up used (via > newInstance). > LazyRenderKit code was added via MYFACES-3815 : > [https://github.com/apache/myfaces/commit/93a2ddf060d04cea658f58f9223c22b5badeea90] > > I'm not entirely sure how this happens in the users case above, but we should > move these methods again to avoid these errors. I'll have a PR up soon. -- This message was sent by Atlassian Jira (v8.20.10#820010)