I attached myfaces-test-helloworld-osgi-pax-web.war

that did work for me and I tested the jsf functionalities with it.

The following steps were also needed in karaf shell (just verified once
more with Karaf-2.99.99-SNAPSHOT):

install mvn:org.apache.myfaces.core/myfaces-api/1.2.9
install mvn:org.apache.myfaces.core/myfaces-impl/1.2.9
install mvn:commons-beanutils/commons-beanutils/1.8.3
install mvn:commons-collections/commons-collections/3.2.1
install mvn:commons-codec/commons-codec/1.4
install
mvn:org.apache.commons/com.springsource.org.apache.commons.digester/1.8.0
install
mvn:org.apache.commons/com.springsource.org.apache.commons.discovery/0.4.0

Now the attached myfaces-test-helloworld-osgi.war is started and deployed
And running, there is some sort of variable replacement issue with this test
but in principle I think it is working :)

Regards, Achim


> I have removed everything and still get the same error from the war
> containing all the jars file.
>
> karaf@root> packages:exports | grep javax.faces
> karaf@root> packages:exports | grep jsf
>   1929 org.springframework.web.jsf
>   1929 org.springframework.web.jsf.el
>
> 10:42:36,444 | WARN  | FelixStartLevel  | /prime-showcase-1
>     | .eclipse.jetty.util.log.Slf4jLog   50 | 1834 -
> org.eclipse.jetty.util - 7.2.2.v20101205 | unavailable
> java.lang.IllegalStateException: Application was not properly
> initialized at startup, could not find Factory:
> javax.faces.context.FacesContextFactory
>       at 
> javax.faces.FactoryFinder$FactoryManager.getFactory(FactoryFinder.java:804)[1958:prime-showcase-1:0]
>       at 
> javax.faces.FactoryFinder.getFactory(FactoryFinder.java:306)[1958:prime-showcase-1:0]
>       at 
> javax.faces.webapp.FacesServlet.init(FacesServlet.java:166)[1958:prime-showcase-1:0]
>       at 
> org.eclipse.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:432)[1842:org.eclipse.jetty.servlet:7.2.2.v20101205]
>
>
> On Fri, Feb 11, 2011 at 9:26 AM, Jean-Baptiste Onofré <j...@nanthrax.net> 
> wrote:
>> Could you make:
>>
>> la|grep -i jsf
>>
>> to see if JSF api and implementation are not outside your bundle.
>> Else you have to use fragment to gather all in the same classloader.
>>
>> Regards
>> JB
>>
>> On 02/11/2011 09:22 AM, Charles Moulliard wrote:
>>> The WAR contains the spec and the implementation.
>>>
>>> aristo-1.0.0.jar
>>> barbecue-1.5-beta1.jar
>>> bcmail-jdk14-1.38.jar
>>> bcmail-jdk14-138.jar
>>> bcprov-jdk14-1.38.jar
>>> bcprov-jdk14-138.jar
>>> bctsp-jdk14-1.38.jar
>>> black-tie-1.0.0.jar
>>> blitzer-1.0.0.jar
>>> bluesky-1.0.0.jar
>>> casablanca-1.0.0.jar
>>> commons-fileupload-1.2.1.jar
>>> commons-io-1.4.jar
>>> commons-logging-1.1.1.jar
>>> cupertino-1.0.0.jar
>>> dark-hive-1.0.0.jar
>>> dot-luv-1.0.0.jar
>>> eggplant-1.0.0.jar
>>> excite-bike-1.0.0.jar
>>> facestrace-1.1.0.jar
>>> flick-1.0.0.jar
>>> hot-sneaks-1.0.0.jar
>>> humanity-1.0.0.jar
>>> itext-2.1.7.jar
>>> jcommon-1.0.0.jar
>>> jdom-1.0.jar
>>> jfreechart-1.0.0.jar
>>>
>>> -->
>>> jsf-api-2.0.4-b09.jar
>>> jsf-impl-2.0.4-b09.jar
>>> -->
>>>
>>> jstl-1.2.jar
>>> junit-3.8.jar
>>> le-frog-1.0.0.jar
>>> log4j-1.2.13.jar
>>> midnight-1.0.0.jar
>>> mint-choc-1.0.0.jar
>>> overcast-1.0.0.jar
>>> pepper-grinder-1.0.0.jar
>>> poi-3.2-FINAL.jar
>>> primefaces-3.0-SNAPSHOT.jar
>>> redmond-1.0.0.jar
>>> rocket-1.0.0.jar
>>> rome-1.0.jar
>>> smoothness-1.0.0.jar
>>> south-street-1.0.0.jar
>>> start-1.0.0.jar
>>> sunny-1.0.0.jar
>>> swanky-purse-1.0.0.jar
>>> trontastic-1.0.0.jar
>>> ui-darkness-1.0.0.jar
>>> ui-lightness-1.0.0.jar
>>> vader-1.0.0.jar
>>>
>>>
>>> On Fri, Feb 11, 2011 at 5:06 AM, David Jencks<david_jen...@yahoo.com>
>>>  wrote:
>>>> You need both the api jar and the implementation in your war.  Which jsf
>>>> implementation?
>>>>
>>>> You might consider trying myfaces-bundle deployed outside your web app
>>>> (removing jsf jars from the web app). This works find in geronimo but I'm
>>>> not sure at the moment if we do extra initialization to get around this
>>>> problem.
>>>>
>>>>
>>>> thanks
>>>> david jencks
>>>>
>>>>
>>>> On Feb 10, 2011, at 5:33 AM, Charles Moulliard wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> I have deployed a WAR project on Karaf which is JSF technology based
>>>>> but get this issue :
>>>>>
>>>>> 14:05:19,408 | WARN  | FelixStartLevel  | war
>>>>>    | .eclipse.jetty.util.log.Slf4jLog   50 | 1834 -
>>>>> org.eclipse.jetty.util - 7.2.2.v20101205 | unavailable
>>>>> java.lang.IllegalStateException: Application was not properly
>>>>> initialized at startup, could not find Factory:
>>>>> javax.faces.context.FacesContextFactory
>>>>>       at
>>>>> javax.faces.FactoryFinder$FactoryManager.getFactory(FactoryFinder.java:804)[1957:file__Users_charlesmoulliard_Apache_karaf_assembly_target_apache-karaf-2.1.99-SNAPSHOT_deploy_prime-showcase-1.0.0-SNAPSHOT.war:0]
>>>>>       at
>>>>> javax.faces.FactoryFinder.getFactory(FactoryFinder.java:306)[1957:file__Users_charlesmoulliard_Apache_karaf_assembly_target_apache-karaf-2.1.99-SNAPSHOT_deploy_prime-showcase-1.0.0-SNAPSHOT.war:0]
>>>>>       at
>>>>> javax.faces.webapp.FacesServlet.init(FacesServlet.java:166)[1957:file__Users_charlesmoulliard_Apache_karaf_assembly_target_apache-karaf-2.1.99-SNAPSHOT_deploy_prime-showcase-1.0.0-SNAPSHOT.war:0]
>>>>>       at
>>>>> org.eclipse.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:432)[1842:org.eclipse.jetty.servlet:7.2.2.v20101205]
>>>>>       at
>>>>> org.eclipse.jetty.servlet.ServletHolder.doStart(ServletHolder.java:260)[1842:org.eclipse.jetty.servlet:7.2.2.v20101205]
>>>>>       at
>>>>> org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55)[1834:org.eclipse.jetty.util:7.2.2.v20101205]
>>>>>
>>>>> The lib directory of the WAR contains well the jar of jsf api -->
>>>>> jsf-api-2.0.4-b09
>>>>>
>>>>> Remark : the same WAR deployed on Tomcat works fine
>>>>>
>>>>> Is it something that you already experienced ?
>>>>>
>>>>> Regards,
>>>>>
>>>>> Charles Moulliard
>>>>>
>>>>> Sr. Principal Solution Architect - FuseSource
>>>>> Apache Committer
>>>>>
>>>>> Blog : http://cmoulliard.blogspot.com
>>>>> Twitter : http://twitter.com/cmoulliard
>>>>> Linkedin : http://www.linkedin.com/in/charlesmoulliard
>>>>> Skype: cmoulliard
>>>>

Attachment: myfaces-test-helloworld-osgi-pax-web.war
Description: Binary data

Reply via email to