You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Dan Tran (JIRA)" <ji...@apache.org> on 2011/03/05 20:42:45 UTC

[jira] Created: (KARAF-499) Unable to load simple standalone JSF 2.0 webapp - JSF's implementation's META-INF/*.tld files are not scanned at startup

Unable to load simple standalone JSF 2.0 webapp - JSF's implementation's META-INF/*.tld files are not scanned at startup
------------------------------------------------------------------------------------------------------------------------

                 Key: KARAF-499
                 URL: https://issues.apache.org/jira/browse/KARAF-499
             Project: Karaf
          Issue Type: Bug
          Components: runtime
    Affects Versions: 2.2.0
         Environment: windows, linux, java 6
            Reporter: Dan Tran
            Priority: Blocker


A testable war file is at http://repo2.maven.org/maven2/org/apache/myfaces/commons/myfaces-commons-examples20/1.0.1/myfaces-commons-examples20-1.0.1.war

Discussion is at http://karaf.922171.n3.nabble.com/Unable-to-load-a-JSF-2-0-Spring-JPA-2-0-standalone-webapp-war-onto-Karaf-2-2-with-war-feature-instald-td2622522.html



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

        

[jira] Commented: (KARAF-499) Unable to load simple standalone JSF 2.0 webapp - JSF's implementation's META-INF/*.tld files are not scanned at startup

Posted by "Dan Tran (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/KARAF-499?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13008704#comment-13008704 ] 

Dan Tran commented on KARAF-499:
--------------------------------

awesome, thank you so much for looking into this issue.

> Unable to load simple standalone JSF 2.0 webapp - JSF's implementation's META-INF/*.tld files are not scanned at startup
> ------------------------------------------------------------------------------------------------------------------------
>
>                 Key: KARAF-499
>                 URL: https://issues.apache.org/jira/browse/KARAF-499
>             Project: Karaf
>          Issue Type: Bug
>          Components: runtime
>    Affects Versions: 2.2.0
>         Environment: windows, linux, java 6
>            Reporter: Dan Tran
>            Priority: Blocker
>
> A testable war file is at http://repo2.maven.org/maven2/org/apache/myfaces/commons/myfaces-commons-examples20/1.0.1/myfaces-commons-examples20-1.0.1.war
> Discussion is at http://karaf.922171.n3.nabble.com/Unable-to-load-a-JSF-2-0-Spring-JPA-2-0-standalone-webapp-war-onto-Karaf-2-2-with-war-feature-instald-td2622522.html

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

[jira] Commented: (KARAF-499) Unable to load simple standalone JSF 2.0 webapp - JSF's implementation's META-INF/*.tld files are not scanned at startup

Posted by "Achim Nierbeck (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/KARAF-499?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13008634#comment-13008634 ] 

Achim Nierbeck commented on KARAF-499:
--------------------------------------

I'm trying to fix pax-web for this, right now I do have the following, I do get a rendering of a jsf page but the evaluation of javax.el doesn't work right now because of classloader issues regarding the implementation of it, in this case it is com.sun.el.*. 
Revision https://github.com/ops4j/org.ops4j.pax.web/commit/fcb4d66ceb463633ca0547dc1d18c671cf98b0dc of pax-web does show this. 
So I'm still working on this :)

> Unable to load simple standalone JSF 2.0 webapp - JSF's implementation's META-INF/*.tld files are not scanned at startup
> ------------------------------------------------------------------------------------------------------------------------
>
>                 Key: KARAF-499
>                 URL: https://issues.apache.org/jira/browse/KARAF-499
>             Project: Karaf
>          Issue Type: Bug
>          Components: runtime
>    Affects Versions: 2.2.0
>         Environment: windows, linux, java 6
>            Reporter: Dan Tran
>            Priority: Blocker
>
> A testable war file is at http://repo2.maven.org/maven2/org/apache/myfaces/commons/myfaces-commons-examples20/1.0.1/myfaces-commons-examples20-1.0.1.war
> Discussion is at http://karaf.922171.n3.nabble.com/Unable-to-load-a-JSF-2-0-Spring-JPA-2-0-standalone-webapp-war-onto-Karaf-2-2-with-war-feature-instald-td2622522.html

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

[jira] [Commented] (KARAF-499) Unable to load simple standalone JSF 2.0 webapp - JSF's implementation's META-INF/*.tld files are not scanned at startup

Posted by "Dan Tran (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/KARAF-499?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13010433#comment-13010433 ] 

Dan Tran commented on KARAF-499:
--------------------------------

I am current having problems build both karaf's trunk and karaf' 2.2.x branch.  Will try to test again



> Unable to load simple standalone JSF 2.0 webapp - JSF's implementation's META-INF/*.tld files are not scanned at startup
> ------------------------------------------------------------------------------------------------------------------------
>
>                 Key: KARAF-499
>                 URL: https://issues.apache.org/jira/browse/KARAF-499
>             Project: Karaf
>          Issue Type: Bug
>          Components: runtime
>    Affects Versions: 2.2.0
>         Environment: windows, linux, java 6
>            Reporter: Dan Tran
>            Priority: Blocker
>
> A testable war file is at http://repo2.maven.org/maven2/org/apache/myfaces/commons/myfaces-commons-examples20/1.0.1/myfaces-commons-examples20-1.0.1.war
> Discussion is at http://karaf.922171.n3.nabble.com/Unable-to-load-a-JSF-2-0-Spring-JPA-2-0-standalone-webapp-war-onto-Karaf-2-2-with-war-feature-instald-td2622522.html

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

[jira] [Updated] (KARAF-499) Unable to load simple standalone JSF 2.0 webapp - JSF's implementation's META-INF/*.tld files are not scanned at startup

Posted by "Jean-Baptiste Onofré (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/KARAF-499?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jean-Baptiste Onofré updated KARAF-499:
---------------------------------------

      Component/s:     (was: runtime)
                   webcontainer
    Fix Version/s: 3.1.0

> Unable to load simple standalone JSF 2.0 webapp - JSF's implementation's META-INF/*.tld files are not scanned at startup
> ------------------------------------------------------------------------------------------------------------------------
>
>                 Key: KARAF-499
>                 URL: https://issues.apache.org/jira/browse/KARAF-499
>             Project: Karaf
>          Issue Type: Bug
>          Components: webcontainer
>    Affects Versions: 2.2.0
>         Environment: windows, linux, java 6
>            Reporter: Dan Tran
>            Priority: Blocker
>             Fix For: 3.1.0
>
>
> A testable war file is at http://repo2.maven.org/maven2/org/apache/myfaces/commons/myfaces-commons-examples20/1.0.1/myfaces-commons-examples20-1.0.1.war
> Discussion is at http://karaf.922171.n3.nabble.com/Unable-to-load-a-JSF-2-0-Spring-JPA-2-0-standalone-webapp-war-onto-Karaf-2-2-with-war-feature-instald-td2622522.html

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

       

[jira] Commented: (KARAF-499) Unable to load simple standalone JSF 2.0 webapp - JSF's implementation's META-INF/*.tld files are not scanned at startup

Posted by "Achim Nierbeck (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/KARAF-499?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13006257#comment-13006257 ] 

Achim Nierbeck commented on KARAF-499:
--------------------------------------

I did some research on this. 

After some refactoring in ops4j pax-web jsp bundle using the same jsp/jsf jars as used within jetty I end up with the exact same issue with a test environment I used. 
It seems to be a "race"-condition for the myfaces servlets. These Servlets need to be configured before they are started. 
I'm still researching how this can be done with pax-web, there is a issue for that at pax-web (http://issues.ops4j.org/browse/PAXWEB-255)

> Unable to load simple standalone JSF 2.0 webapp - JSF's implementation's META-INF/*.tld files are not scanned at startup
> ------------------------------------------------------------------------------------------------------------------------
>
>                 Key: KARAF-499
>                 URL: https://issues.apache.org/jira/browse/KARAF-499
>             Project: Karaf
>          Issue Type: Bug
>          Components: runtime
>    Affects Versions: 2.2.0
>         Environment: windows, linux, java 6
>            Reporter: Dan Tran
>            Priority: Blocker
>
> A testable war file is at http://repo2.maven.org/maven2/org/apache/myfaces/commons/myfaces-commons-examples20/1.0.1/myfaces-commons-examples20-1.0.1.war
> Discussion is at http://karaf.922171.n3.nabble.com/Unable-to-load-a-JSF-2-0-Spring-JPA-2-0-standalone-webapp-war-onto-Karaf-2-2-with-war-feature-instald-td2622522.html

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

[jira] [Commented] (KARAF-499) Unable to load simple standalone JSF 2.0 webapp - JSF's implementation's META-INF/*.tld files are not scanned at startup

Posted by "Dan Tran (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/KARAF-499?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13010898#comment-13010898 ] 

Dan Tran commented on KARAF-499:
--------------------------------

my sample comes from myface 2.0.3 implementation which does not require servlet 3.0. And I dont think it uses servlet 3.0 either

> Unable to load simple standalone JSF 2.0 webapp - JSF's implementation's META-INF/*.tld files are not scanned at startup
> ------------------------------------------------------------------------------------------------------------------------
>
>                 Key: KARAF-499
>                 URL: https://issues.apache.org/jira/browse/KARAF-499
>             Project: Karaf
>          Issue Type: Bug
>          Components: runtime
>    Affects Versions: 2.2.0
>         Environment: windows, linux, java 6
>            Reporter: Dan Tran
>            Priority: Blocker
>
> A testable war file is at http://repo2.maven.org/maven2/org/apache/myfaces/commons/myfaces-commons-examples20/1.0.1/myfaces-commons-examples20-1.0.1.war
> Discussion is at http://karaf.922171.n3.nabble.com/Unable-to-load-a-JSF-2-0-Spring-JPA-2-0-standalone-webapp-war-onto-Karaf-2-2-with-war-feature-instald-td2622522.html

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

[jira] [Commented] (KARAF-499) Unable to load simple standalone JSF 2.0 webapp - JSF's implementation's META-INF/*.tld files are not scanned at startup

Posted by "Dan Tran (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/KARAF-499?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13008988#comment-13008988 ] 

Dan Tran commented on KARAF-499:
--------------------------------

Cool, let me know when I can use latest Karaf to pick up this change.  Also, the monolithic webapp ( war file ) should work right?.  It will take me sometime to break my webapp into bundles 

> Unable to load simple standalone JSF 2.0 webapp - JSF's implementation's META-INF/*.tld files are not scanned at startup
> ------------------------------------------------------------------------------------------------------------------------
>
>                 Key: KARAF-499
>                 URL: https://issues.apache.org/jira/browse/KARAF-499
>             Project: Karaf
>          Issue Type: Bug
>          Components: runtime
>    Affects Versions: 2.2.0
>         Environment: windows, linux, java 6
>            Reporter: Dan Tran
>            Priority: Blocker
>
> A testable war file is at http://repo2.maven.org/maven2/org/apache/myfaces/commons/myfaces-commons-examples20/1.0.1/myfaces-commons-examples20-1.0.1.war
> Discussion is at http://karaf.922171.n3.nabble.com/Unable-to-load-a-JSF-2-0-Spring-JPA-2-0-standalone-webapp-war-onto-Karaf-2-2-with-war-feature-instald-td2622522.html

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

[jira] [Commented] (KARAF-499) Unable to load simple standalone JSF 2.0 webapp - JSF's implementation's META-INF/*.tld files are not scanned at startup

Posted by "Achim Nierbeck (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/KARAF-499?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13009409#comment-13009409 ] 

Achim Nierbeck commented on KARAF-499:
--------------------------------------

OK, looks good for me right now, the latest snapshot versions of Karaf 2.2.1-SNAPSHOT and 2.99.99-SNAPSHOT should work now. 
Could you please make a try with it?

> Unable to load simple standalone JSF 2.0 webapp - JSF's implementation's META-INF/*.tld files are not scanned at startup
> ------------------------------------------------------------------------------------------------------------------------
>
>                 Key: KARAF-499
>                 URL: https://issues.apache.org/jira/browse/KARAF-499
>             Project: Karaf
>          Issue Type: Bug
>          Components: runtime
>    Affects Versions: 2.2.0
>         Environment: windows, linux, java 6
>            Reporter: Dan Tran
>            Priority: Blocker
>
> A testable war file is at http://repo2.maven.org/maven2/org/apache/myfaces/commons/myfaces-commons-examples20/1.0.1/myfaces-commons-examples20-1.0.1.war
> Discussion is at http://karaf.922171.n3.nabble.com/Unable-to-load-a-JSF-2-0-Spring-JPA-2-0-standalone-webapp-war-onto-Karaf-2-2-with-war-feature-instald-td2622522.html

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

[jira] Commented: (KARAF-499) Unable to load simple standalone JSF 2.0 webapp - JSF's implementation's META-INF/*.tld files are not scanned at startup

Posted by "Dan Tran (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/KARAF-499?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13008605#comment-13008605 ] 

Dan Tran commented on KARAF-499:
--------------------------------

note: mojara-jsf implementation also has the same issue

> Unable to load simple standalone JSF 2.0 webapp - JSF's implementation's META-INF/*.tld files are not scanned at startup
> ------------------------------------------------------------------------------------------------------------------------
>
>                 Key: KARAF-499
>                 URL: https://issues.apache.org/jira/browse/KARAF-499
>             Project: Karaf
>          Issue Type: Bug
>          Components: runtime
>    Affects Versions: 2.2.0
>         Environment: windows, linux, java 6
>            Reporter: Dan Tran
>            Priority: Blocker
>
> A testable war file is at http://repo2.maven.org/maven2/org/apache/myfaces/commons/myfaces-commons-examples20/1.0.1/myfaces-commons-examples20-1.0.1.war
> Discussion is at http://karaf.922171.n3.nabble.com/Unable-to-load-a-JSF-2-0-Spring-JPA-2-0-standalone-webapp-war-onto-Karaf-2-2-with-war-feature-instald-td2622522.html

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

[jira] [Resolved] (KARAF-499) Unable to load simple standalone JSF 2.0 webapp - JSF's implementation's META-INF/*.tld files are not scanned at startup

Posted by "Achim Nierbeck (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/KARAF-499?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Achim Nierbeck resolved KARAF-499.
----------------------------------

    Resolution: Fixed

resolved with switching to pax web 2.0.0 line
                
> Unable to load simple standalone JSF 2.0 webapp - JSF's implementation's META-INF/*.tld files are not scanned at startup
> ------------------------------------------------------------------------------------------------------------------------
>
>                 Key: KARAF-499
>                 URL: https://issues.apache.org/jira/browse/KARAF-499
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-webcontainer
>    Affects Versions: 2.2.0
>         Environment: windows, linux, java 6
>            Reporter: Dan Tran
>            Assignee: Achim Nierbeck
>            Priority: Blocker
>             Fix For: 3.0.0
>
>
> A testable war file is at http://repo2.maven.org/maven2/org/apache/myfaces/commons/myfaces-commons-examples20/1.0.1/myfaces-commons-examples20-1.0.1.war
> Discussion is at http://karaf.922171.n3.nabble.com/Unable-to-load-a-JSF-2-0-Spring-JPA-2-0-standalone-webapp-war-onto-Karaf-2-2-with-war-feature-instald-td2622522.html

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (KARAF-499) Unable to load simple standalone JSF 2.0 webapp - JSF's implementation's META-INF/*.tld files are not scanned at startup

Posted by "Achim Nierbeck (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/KARAF-499?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13010236#comment-13010236 ] 

Achim Nierbeck commented on KARAF-499:
--------------------------------------

The current trunk of pax-web contains samples one of them is a war-jsf sample. You can take a look at that. 
There is also a integration test testing this. This might help you too to find out. 
Do you have any special servlet configuration for "/"? Cause it seems to me that your page isn't rendered but straight send to your browser, 
as if a servlet is waiting to provide everything from "/" :)

> Unable to load simple standalone JSF 2.0 webapp - JSF's implementation's META-INF/*.tld files are not scanned at startup
> ------------------------------------------------------------------------------------------------------------------------
>
>                 Key: KARAF-499
>                 URL: https://issues.apache.org/jira/browse/KARAF-499
>             Project: Karaf
>          Issue Type: Bug
>          Components: runtime
>    Affects Versions: 2.2.0
>         Environment: windows, linux, java 6
>            Reporter: Dan Tran
>            Priority: Blocker
>
> A testable war file is at http://repo2.maven.org/maven2/org/apache/myfaces/commons/myfaces-commons-examples20/1.0.1/myfaces-commons-examples20-1.0.1.war
> Discussion is at http://karaf.922171.n3.nabble.com/Unable-to-load-a-JSF-2-0-Spring-JPA-2-0-standalone-webapp-war-onto-Karaf-2-2-with-war-feature-instald-td2622522.html

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

[jira] [Assigned] (KARAF-499) Unable to load simple standalone JSF 2.0 webapp - JSF's implementation's META-INF/*.tld files are not scanned at startup

Posted by "Achim Nierbeck (Assigned) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/KARAF-499?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Achim Nierbeck reassigned KARAF-499:
------------------------------------

    Assignee: Achim Nierbeck
    
> Unable to load simple standalone JSF 2.0 webapp - JSF's implementation's META-INF/*.tld files are not scanned at startup
> ------------------------------------------------------------------------------------------------------------------------
>
>                 Key: KARAF-499
>                 URL: https://issues.apache.org/jira/browse/KARAF-499
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-webcontainer
>    Affects Versions: 2.2.0
>         Environment: windows, linux, java 6
>            Reporter: Dan Tran
>            Assignee: Achim Nierbeck
>            Priority: Blocker
>             Fix For: 3.0.0
>
>
> A testable war file is at http://repo2.maven.org/maven2/org/apache/myfaces/commons/myfaces-commons-examples20/1.0.1/myfaces-commons-examples20-1.0.1.war
> Discussion is at http://karaf.922171.n3.nabble.com/Unable-to-load-a-JSF-2-0-Spring-JPA-2-0-standalone-webapp-war-onto-Karaf-2-2-with-war-feature-instald-td2622522.html

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (KARAF-499) Unable to load simple standalone JSF 2.0 webapp - JSF's implementation's META-INF/*.tld files are not scanned at startup

Posted by "Dan Tran (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/KARAF-499?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13020172#comment-13020172 ] 

Dan Tran commented on KARAF-499:
--------------------------------

I downloaded teh latest apache-karaf 2.2.1-SNAPSHOT deployed on 4/15. However, the karaf' pax-web itself has issue:

20:19:39,249 | ERROR | g.ops4j.pax.web) | configadmin                      | ?                                   ? | 5 - org.apache.felix.configadmin - 1.2.8 | [org.osgi.service.cm.ManagedService, id=174, bundle=56]: Unexpected problem updating Configuration PID=org.ops4j.pax.web, factoryPID=null, b
undleLocation=mvn:org.ops4j.pax.web/pax-web-runtime/1.0.2
java.lang.NoSuchMethodError: org.eclipse.jetty.xml.XmlConfiguration.configure(Ljava/lang/Object;)V
        at org.ops4j.pax.web.service.jetty.internal.JettyServerImpl.start(JettyServerImpl.java:89)
        at org.ops4j.pax.web.service.jetty.internal.ServerControllerImpl$Stopped.start(ServerControllerImpl.java:356)
        at org.ops4j.pax.web.service.jetty.internal.ServerControllerImpl.start(ServerControllerImpl.java:67)
        at org.ops4j.pax.web.service.jetty.internal.ServerControllerImpl$Started.configure(ServerControllerImpl.java:261)
        at org.ops4j.pax.web.service.jetty.internal.ServerControllerImpl.configure(ServerControllerImpl.java:84)


Achim, could you give it a try by deploy the mention myface 2.x example ?


> Unable to load simple standalone JSF 2.0 webapp - JSF's implementation's META-INF/*.tld files are not scanned at startup
> ------------------------------------------------------------------------------------------------------------------------
>
>                 Key: KARAF-499
>                 URL: https://issues.apache.org/jira/browse/KARAF-499
>             Project: Karaf
>          Issue Type: Bug
>          Components: runtime
>    Affects Versions: 2.2.0
>         Environment: windows, linux, java 6
>            Reporter: Dan Tran
>            Priority: Blocker
>
> A testable war file is at http://repo2.maven.org/maven2/org/apache/myfaces/commons/myfaces-commons-examples20/1.0.1/myfaces-commons-examples20-1.0.1.war
> Discussion is at http://karaf.922171.n3.nabble.com/Unable-to-load-a-JSF-2-0-Spring-JPA-2-0-standalone-webapp-war-onto-Karaf-2-2-with-war-feature-instald-td2622522.html

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

[jira] [Commented] (KARAF-499) Unable to load simple standalone JSF 2.0 webapp - JSF's implementation's META-INF/*.tld files are not scanned at startup

Posted by "Raul Kripalani (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/KARAF-499?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13146381#comment-13146381 ] 

Raul Kripalani commented on KARAF-499:
--------------------------------------

This has been solved in PAX Web:

Regarding TLDs:

* http://team.ops4j.org/browse/PAXWEB-86
* http://team.ops4j.org/browse/PAXWEB-130

JSF2 classloading specifics:

* http://team.ops4j.org/browse/PAXWEB-310

Additionally, specific to MyFaces: https://issues.apache.org/jira/browse/MYFACES-3356.

Tested with MyFaces 2.1.x, Tomahawk, Primefaces. Please let me know if you find any issues.

Beware that you need to add the {{StartupServletContextListener}} listener to web.xml if you are using MyFaces. Additionally, if you are using Facelets you will need to specify your -taglib.xml files under the facelets.LIBRARIES context parameter (see http://shrubbery.mynetgear.net/c/display/W/Using+taglibs+with+Facelets). 

If your -taglib.xml files are located in imported bundles, you can use the {{classpath:}} URL from PAX URL, making sure that the bundle that provides this functionality is assigned a start-level lower than the ordinary start level. Start level 5 works well.

Regards,
Raúl.
                
> Unable to load simple standalone JSF 2.0 webapp - JSF's implementation's META-INF/*.tld files are not scanned at startup
> ------------------------------------------------------------------------------------------------------------------------
>
>                 Key: KARAF-499
>                 URL: https://issues.apache.org/jira/browse/KARAF-499
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-webcontainer
>    Affects Versions: 2.2.0
>         Environment: windows, linux, java 6
>            Reporter: Dan Tran
>            Priority: Blocker
>             Fix For: 3.1.0
>
>
> A testable war file is at http://repo2.maven.org/maven2/org/apache/myfaces/commons/myfaces-commons-examples20/1.0.1/myfaces-commons-examples20-1.0.1.war
> Discussion is at http://karaf.922171.n3.nabble.com/Unable-to-load-a-JSF-2-0-Spring-JPA-2-0-standalone-webapp-war-onto-Karaf-2-2-with-war-feature-instald-td2622522.html

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Commented] (KARAF-499) Unable to load simple standalone JSF 2.0 webapp - JSF's implementation's META-INF/*.tld files are not scanned at startup

Posted by "Achim Nierbeck (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/KARAF-499?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13010873#comment-13010873 ] 

Achim Nierbeck commented on KARAF-499:
--------------------------------------

Oh, one other thing though, 
the test that worked did work with myfaces in version 1.2.9. 
I did try with your "sample" app, that one doesn't seem to work. I looks to me like this might be because it needs servlet api 3.0?
Right now pax-web only supports servlet api in version 2.5. 
I planned to work on 3.0 with integration of Jetty 8 which will be in version 2.0 of Pax-web. 

> Unable to load simple standalone JSF 2.0 webapp - JSF's implementation's META-INF/*.tld files are not scanned at startup
> ------------------------------------------------------------------------------------------------------------------------
>
>                 Key: KARAF-499
>                 URL: https://issues.apache.org/jira/browse/KARAF-499
>             Project: Karaf
>          Issue Type: Bug
>          Components: runtime
>    Affects Versions: 2.2.0
>         Environment: windows, linux, java 6
>            Reporter: Dan Tran
>            Priority: Blocker
>
> A testable war file is at http://repo2.maven.org/maven2/org/apache/myfaces/commons/myfaces-commons-examples20/1.0.1/myfaces-commons-examples20-1.0.1.war
> Discussion is at http://karaf.922171.n3.nabble.com/Unable-to-load-a-JSF-2-0-Spring-JPA-2-0-standalone-webapp-war-onto-Karaf-2-2-with-war-feature-instald-td2622522.html

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

[jira] [Commented] (KARAF-499) Unable to load simple standalone JSF 2.0 webapp - JSF's implementation's META-INF/*.tld files are not scanned at startup

Posted by "Chris Dolan (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/KARAF-499?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13046517#comment-13046517 ] 

Chris Dolan commented on KARAF-499:
-----------------------------------

Belated reply to Dan regarding the "NoSuchMethodError: org.eclipse.jetty.xml.XmlConfiguration.configure(Ljava/lang/Object;)V"

This is a Jetty 7.3.1 regression, which changed the signature of the configure() method. You get this error when you compile against Jetty 7.3.0 or older and run against Jetty 7.3.1 or newer.

See these for a little more information:
  http://jira.codehaus.org/browse/JETTY-1331
  http://ops4j1.jira.com/browse/PAXWEB-278


> Unable to load simple standalone JSF 2.0 webapp - JSF's implementation's META-INF/*.tld files are not scanned at startup
> ------------------------------------------------------------------------------------------------------------------------
>
>                 Key: KARAF-499
>                 URL: https://issues.apache.org/jira/browse/KARAF-499
>             Project: Karaf
>          Issue Type: Bug
>          Components: runtime
>    Affects Versions: 2.2.0
>         Environment: windows, linux, java 6
>            Reporter: Dan Tran
>            Priority: Blocker
>
> A testable war file is at http://repo2.maven.org/maven2/org/apache/myfaces/commons/myfaces-commons-examples20/1.0.1/myfaces-commons-examples20-1.0.1.war
> Discussion is at http://karaf.922171.n3.nabble.com/Unable-to-load-a-JSF-2-0-Spring-JPA-2-0-standalone-webapp-war-onto-Karaf-2-2-with-war-feature-instald-td2622522.html

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

[jira] [Commented] (KARAF-499) Unable to load simple standalone JSF 2.0 webapp - JSF's implementation's META-INF/*.tld files are not scanned at startup

Posted by "Achim Nierbeck (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/KARAF-499?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13008987#comment-13008987 ] 

Achim Nierbeck commented on KARAF-499:
--------------------------------------

Looks good now, will port it into pax-web 1.0.2, the only "downside" right now the using bundle needs to import com.sun.el since this is the implementing provider for javax.el. 
Both packages are going to be exported by pax-web jsp bundle. 

> Unable to load simple standalone JSF 2.0 webapp - JSF's implementation's META-INF/*.tld files are not scanned at startup
> ------------------------------------------------------------------------------------------------------------------------
>
>                 Key: KARAF-499
>                 URL: https://issues.apache.org/jira/browse/KARAF-499
>             Project: Karaf
>          Issue Type: Bug
>          Components: runtime
>    Affects Versions: 2.2.0
>         Environment: windows, linux, java 6
>            Reporter: Dan Tran
>            Priority: Blocker
>
> A testable war file is at http://repo2.maven.org/maven2/org/apache/myfaces/commons/myfaces-commons-examples20/1.0.1/myfaces-commons-examples20-1.0.1.war
> Discussion is at http://karaf.922171.n3.nabble.com/Unable-to-load-a-JSF-2-0-Spring-JPA-2-0-standalone-webapp-war-onto-Karaf-2-2-with-war-feature-instald-td2622522.html

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

[jira] [Commented] (KARAF-499) Unable to load simple standalone JSF 2.0 webapp - JSF's implementation's META-INF/*.tld files are not scanned at startup

Posted by "Michael Van Geertruy (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/KARAF-499?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13020159#comment-13020159 ] 

Michael Van Geertruy commented on KARAF-499:
--------------------------------------------

Achim, is JIRA fixed now?

> Unable to load simple standalone JSF 2.0 webapp - JSF's implementation's META-INF/*.tld files are not scanned at startup
> ------------------------------------------------------------------------------------------------------------------------
>
>                 Key: KARAF-499
>                 URL: https://issues.apache.org/jira/browse/KARAF-499
>             Project: Karaf
>          Issue Type: Bug
>          Components: runtime
>    Affects Versions: 2.2.0
>         Environment: windows, linux, java 6
>            Reporter: Dan Tran
>            Priority: Blocker
>
> A testable war file is at http://repo2.maven.org/maven2/org/apache/myfaces/commons/myfaces-commons-examples20/1.0.1/myfaces-commons-examples20-1.0.1.war
> Discussion is at http://karaf.922171.n3.nabble.com/Unable-to-load-a-JSF-2-0-Spring-JPA-2-0-standalone-webapp-war-onto-Karaf-2-2-with-war-feature-instald-td2622522.html

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

[jira] [Updated] (KARAF-499) Unable to load simple standalone JSF 2.0 webapp - JSF's implementation's META-INF/*.tld files are not scanned at startup

Posted by "Achim Nierbeck (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/KARAF-499?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Achim Nierbeck updated KARAF-499:
---------------------------------

    Fix Version/s:     (was: 3.1.0)
                   3.0.0

this is fixed since switch to pax-web 2.0.0-SNAPSHOT
                
> Unable to load simple standalone JSF 2.0 webapp - JSF's implementation's META-INF/*.tld files are not scanned at startup
> ------------------------------------------------------------------------------------------------------------------------
>
>                 Key: KARAF-499
>                 URL: https://issues.apache.org/jira/browse/KARAF-499
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-webcontainer
>    Affects Versions: 2.2.0
>         Environment: windows, linux, java 6
>            Reporter: Dan Tran
>            Priority: Blocker
>             Fix For: 3.0.0
>
>
> A testable war file is at http://repo2.maven.org/maven2/org/apache/myfaces/commons/myfaces-commons-examples20/1.0.1/myfaces-commons-examples20-1.0.1.war
> Discussion is at http://karaf.922171.n3.nabble.com/Unable-to-load-a-JSF-2-0-Spring-JPA-2-0-standalone-webapp-war-onto-Karaf-2-2-with-war-feature-instald-td2622522.html

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (KARAF-499) Unable to load simple standalone JSF 2.0 webapp - JSF's implementation's META-INF/*.tld files are not scanned at startup

Posted by "Jean-Baptiste Onofré (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/KARAF-499?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13063250#comment-13063250 ] 

Jean-Baptiste Onofré commented on KARAF-499:
--------------------------------------------

We updated Karaf to use a new Jetty version. A new test should be perform to see if the issue is still there or not.

> Unable to load simple standalone JSF 2.0 webapp - JSF's implementation's META-INF/*.tld files are not scanned at startup
> ------------------------------------------------------------------------------------------------------------------------
>
>                 Key: KARAF-499
>                 URL: https://issues.apache.org/jira/browse/KARAF-499
>             Project: Karaf
>          Issue Type: Bug
>          Components: webcontainer
>    Affects Versions: 2.2.0
>         Environment: windows, linux, java 6
>            Reporter: Dan Tran
>            Priority: Blocker
>             Fix For: 3.1.0
>
>
> A testable war file is at http://repo2.maven.org/maven2/org/apache/myfaces/commons/myfaces-commons-examples20/1.0.1/myfaces-commons-examples20-1.0.1.war
> Discussion is at http://karaf.922171.n3.nabble.com/Unable-to-load-a-JSF-2-0-Spring-JPA-2-0-standalone-webapp-war-onto-Karaf-2-2-with-war-feature-instald-td2622522.html

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

       

[jira] [Commented] (KARAF-499) Unable to load simple standalone JSF 2.0 webapp - JSF's implementation's META-INF/*.tld files are not scanned at startup

Posted by "Dan Tran (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/KARAF-499?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13009535#comment-13009535 ] 

Dan Tran commented on KARAF-499:
--------------------------------

I dropped myfaces example war file mention in this issue.  I dont see the issue with loading any more.  However the first page show this

"<%@ page session="false"%> <% response.sendRedirect("home.jsf"); %>"

which is not expected.



> Unable to load simple standalone JSF 2.0 webapp - JSF's implementation's META-INF/*.tld files are not scanned at startup
> ------------------------------------------------------------------------------------------------------------------------
>
>                 Key: KARAF-499
>                 URL: https://issues.apache.org/jira/browse/KARAF-499
>             Project: Karaf
>          Issue Type: Bug
>          Components: runtime
>    Affects Versions: 2.2.0
>         Environment: windows, linux, java 6
>            Reporter: Dan Tran
>            Priority: Blocker
>
> A testable war file is at http://repo2.maven.org/maven2/org/apache/myfaces/commons/myfaces-commons-examples20/1.0.1/myfaces-commons-examples20-1.0.1.war
> Discussion is at http://karaf.922171.n3.nabble.com/Unable-to-load-a-JSF-2-0-Spring-JPA-2-0-standalone-webapp-war-onto-Karaf-2-2-with-war-feature-instald-td2622522.html

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

[jira] [Commented] (KARAF-499) Unable to load simple standalone JSF 2.0 webapp - JSF's implementation's META-INF/*.tld files are not scanned at startup

Posted by "Dan Tran (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/KARAF-499?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13009542#comment-13009542 ] 

Dan Tran commented on KARAF-499:
--------------------------------

Just want to make sure my build is not the problem, could you deploy a snapshot to test with?

> Unable to load simple standalone JSF 2.0 webapp - JSF's implementation's META-INF/*.tld files are not scanned at startup
> ------------------------------------------------------------------------------------------------------------------------
>
>                 Key: KARAF-499
>                 URL: https://issues.apache.org/jira/browse/KARAF-499
>             Project: Karaf
>          Issue Type: Bug
>          Components: runtime
>    Affects Versions: 2.2.0
>         Environment: windows, linux, java 6
>            Reporter: Dan Tran
>            Priority: Blocker
>
> A testable war file is at http://repo2.maven.org/maven2/org/apache/myfaces/commons/myfaces-commons-examples20/1.0.1/myfaces-commons-examples20-1.0.1.war
> Discussion is at http://karaf.922171.n3.nabble.com/Unable-to-load-a-JSF-2-0-Spring-JPA-2-0-standalone-webapp-war-onto-Karaf-2-2-with-war-feature-instald-td2622522.html

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

[jira] [Commented] (KARAF-499) Unable to load simple standalone JSF 2.0 webapp - JSF's implementation's META-INF/*.tld files are not scanned at startup

Posted by "Achim Nierbeck (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/KARAF-499?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13012896#comment-13012896 ] 

Achim Nierbeck commented on KARAF-499:
--------------------------------------

Karaf 2.2.1-SNAPSHOT now contains Pax Web 1.0.2 which supports JSF better. 

> Unable to load simple standalone JSF 2.0 webapp - JSF's implementation's META-INF/*.tld files are not scanned at startup
> ------------------------------------------------------------------------------------------------------------------------
>
>                 Key: KARAF-499
>                 URL: https://issues.apache.org/jira/browse/KARAF-499
>             Project: Karaf
>          Issue Type: Bug
>          Components: runtime
>    Affects Versions: 2.2.0
>         Environment: windows, linux, java 6
>            Reporter: Dan Tran
>            Priority: Blocker
>
> A testable war file is at http://repo2.maven.org/maven2/org/apache/myfaces/commons/myfaces-commons-examples20/1.0.1/myfaces-commons-examples20-1.0.1.war
> Discussion is at http://karaf.922171.n3.nabble.com/Unable-to-load-a-JSF-2-0-Spring-JPA-2-0-standalone-webapp-war-onto-Karaf-2-2-with-war-feature-instald-td2622522.html

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

[jira] [Commented] (KARAF-499) Unable to load simple standalone JSF 2.0 webapp - JSF's implementation's META-INF/*.tld files are not scanned at startup

Posted by "Achim Nierbeck (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/KARAF-499?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13020218#comment-13020218 ] 

Achim Nierbeck commented on KARAF-499:
--------------------------------------

strange didn't see that issue before, have to take a look. 

The thing about myfaces 2.0 it doesn't work right now, but I don't know how to solve that right now. 
So I guess with 2.2.1 we only get myfaces 1 to work and 3.0 might be able to support myfaces 2


> Unable to load simple standalone JSF 2.0 webapp - JSF's implementation's META-INF/*.tld files are not scanned at startup
> ------------------------------------------------------------------------------------------------------------------------
>
>                 Key: KARAF-499
>                 URL: https://issues.apache.org/jira/browse/KARAF-499
>             Project: Karaf
>          Issue Type: Bug
>          Components: runtime
>    Affects Versions: 2.2.0
>         Environment: windows, linux, java 6
>            Reporter: Dan Tran
>            Priority: Blocker
>
> A testable war file is at http://repo2.maven.org/maven2/org/apache/myfaces/commons/myfaces-commons-examples20/1.0.1/myfaces-commons-examples20-1.0.1.war
> Discussion is at http://karaf.922171.n3.nabble.com/Unable-to-load-a-JSF-2-0-Spring-JPA-2-0-standalone-webapp-war-onto-Karaf-2-2-with-war-feature-instald-td2622522.html

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