Hi Adrien, jsf turns out to be a real PITA right now :( could you provide us with a simple sample for reproduction. It's probably best to open a jira issue at pax-web [1] for this. This way I can start using it as a integration test and maybe find a solution for it :) right now i do have a similar issue with the ServletContextListener which I still try to solve ( if I find the spare time to solve this :/ )
regards, Achim [1] - http://team.ops4j.org/browse/PAXWEB 2012/7/3 Adrien DAO-LENA <[email protected]>: > Hi, > I have JSF working 1.2 and 2.0, I have another question, did some of you > guys have tried to use a library like richfaces or primefaces in karaf? > I don't find any documentation / blog / forum topic, I have deployed the > bundle primefaces and some jar for the dependencies, all the imports are > resolved but there is a conflict on the use of javax.faces.component > package, although the only bundle which export this package is apache > myFaces I don't see any conflict there, I have tried to clean the cache but > no effect... > Thanks > Best regards, > Adrien. > > > 2012/6/29 Achim Nierbeck <[email protected]> >> >> Hi, >> >> well this is due to the fact that your bundle has been resolved >> before. and therefore keeps the references. >> Now if you stop/uninstall the not needed bundles they are now not >> available for "new" bundles. >> But the bundles being resolved before keep the references to the old >> bundles. This stays this way until >> you refresh the reference holding bundle. >> >> regards, Achim >> >> 2012/6/29 Adrien DAO-LENA <[email protected]>: >> > thank you very much it works. >> > actually my issue come from the cache, it seems that even if the bundle >> > is >> > stop, sometimes the data in the cache are still available, I am not 100% >> > sure about that but I clean the cache of only one stopped bundle and I >> > got >> > rid of from class cast exception. >> > >> > Anyway thanks again :). >> > regards >> > Adrien. >> > >> > >> > 2012/6/29 Achim Nierbeck <[email protected]> >> >> >> >> Hi Adrien, >> >> >> >> you need to make sure you have only one servlet-spec bundle available >> >> probably only the one needed by the pax-web featues file :) >> >> second you need to make sure you have the ServletContextListener for >> >> myfaces configured in your web.xml >> >> >> >> regards, Achim >> >> >> >> 2012/6/29 Adrien DAO-LENA <[email protected]>: >> >> > Hi thanks for the tip, >> >> > I am using karaf 2.2.7, I have updated jetty to version 8.1.4, I have >> >> > upgraded pax web to 2.0.0, I have modified some features and now I >> >> > am >> >> > facing some exceptions: >> >> > >> >> > like: >> >> > javax.servlet.UnavailableException: Servlet class >> >> > org.ops4j.pax.web.jsp.JspServletWrapper is not a >> >> > javax.servlet.Servlet >> >> > >> >> > or >> >> > >> >> > java.lang.ClassCastException: com.sun.el.ExpressionFactoryImpl cannot >> >> > be >> >> > cast to javax.el.ExpressionFactory >> >> > >> >> > or >> >> > >> >> > java.lang.IllegalStateException: No Factories configured for this >> >> > Application. This happens if the faces-initialization does not work >> >> > at >> >> > all - >> >> > make sure that you properly include all configuration settings >> >> > necessary >> >> > for >> >> > a basic faces application and that all the necessary libs are >> >> > included. >> >> > Also >> >> > check the logging output of your web application and your container >> >> > for >> >> > any >> >> > exceptions! >> >> > >> >> > >> >> > any tips will be strongly appeciated. :) >> >> > >> >> > Thanks you. >> >> > >> >> > Best regards, >> >> > >> >> > Adrien. >> >> > >> >> > >> >> > >> >> > >> >> > >> >> > >> >> > 2012/6/27 Achim Nierbeck <[email protected]> >> >> >> >> >> >> Hi Adrien, >> >> >> >> >> >> yes there is a features file available for pax-web. >> >> >> So you might want to try to install the required bundles yourself. >> >> >> >> >> >> Regarding JSF 2.0 I strongly suggest you have a ContextListener >> >> >> defined in your web.xml >> >> >> cause the scanning for a context-listener in your bundles isn't >> >> >> supported for pax-web 2.0 yet. >> >> >> I'm working on it but do face some classloading issues I need to >> >> >> work >> >> >> around. >> >> >> >> >> >> regards, Achim >> >> >> >> >> >> >> >> >> 2012/6/27 Adrien DAO-LENA <[email protected]>: >> >> >> > Hello, >> >> >> > I am currently trying to make things work with karaf 2.2.7, and a >> >> >> > war >> >> >> > with >> >> >> > JSF 2.0, and it is not going well :p. >> >> >> > I need pax web 2, but I understand that pax web will be ship with >> >> >> > karaf >> >> >> > 3.0, >> >> >> > when can I expect a release of karaf 3.0? (or a beta / snapshot). >> >> >> > In the case I try to upgrade pax web version, and upgrade to 2.0 >> >> >> > in a >> >> >> > karaf >> >> >> > 2.2.7, can I found some features (war) using pax web 2? >> >> >> > >> >> >> > Is there any other work around or whatever to deal with this >> >> >> > problem. >> >> >> > >> >> >> > thank you, >> >> >> > Bast regards, >> >> >> > Adrien DAO-LENA. >> >> >> >> >> >> >> >> >> >> >> >> -- >> >> >> >> >> >> Apache Karaf <http://karaf.apache.org/> Committer & PMC >> >> >> OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> >> >> >> Committer & Project Lead >> >> >> OPS4J Pax for Vaadin >> >> >> <http://team.ops4j.org/wiki/display/PAXVAADIN/Home> Commiter & >> >> >> Project >> >> >> Lead >> >> >> blog <http://notizblog.nierbeck.de/> >> >> > >> >> > >> >> >> >> >> >> >> >> -- >> >> >> >> Apache Karaf <http://karaf.apache.org/> Committer & PMC >> >> OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> >> >> Committer & Project Lead >> >> OPS4J Pax for Vaadin >> >> <http://team.ops4j.org/wiki/display/PAXVAADIN/Home> Commiter & Project >> >> Lead >> >> blog <http://notizblog.nierbeck.de/> >> > >> > >> >> >> >> -- >> >> Apache Karaf <http://karaf.apache.org/> Committer & PMC >> OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> >> Committer & Project Lead >> OPS4J Pax for Vaadin >> <http://team.ops4j.org/wiki/display/PAXVAADIN/Home> Commiter & Project >> Lead >> blog <http://notizblog.nierbeck.de/> > > -- Apache Karaf <http://karaf.apache.org/> Committer & PMC OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer & Project Lead OPS4J Pax for Vaadin <http://team.ops4j.org/wiki/display/PAXVAADIN/Home> Commiter & Project Lead blog <http://notizblog.nierbeck.de/>
