Announcement Announcement Module

Spring Dynamic Modules forum decommissioned in favor of Eclipse Gemini Blueprint

With the official first release of Eclipse Gemini Blueprint shipped, the migration of the Spring Dynamic Modules code base to the Eclipse Foundation, as part of the Gemini project, has been completed.

As such, this forum has been decommissioned in favour of the Eclipse Gemini forums.
See more
See less
Integrating jsf 1.2 with spring Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Integrating jsf 1.2 with spring


    I'm trying to develop a web bundle using jsf framework in which I want to consume an osgi service called from a external bundle. To do so, I found in some tutos that I have to add that line in the face-config file :
    Then I just declared in my applicationContext file my bean in which there is a reference to an osgi service declared in that same file as follows :
    <?xml version="1.0" encoding="UTF-8"?>
    <beans xmlns=""
    	<bean id="xentityView"
    	<osgi:reference id="xentityService" interface="org.cynapsys.cssf.em.service.Xentity_Service"></osgi:reference>	
    Unfortunately, when I try to run my bundle on the spring dm server, it fails to start, showing this error on the console :
    [2010-09-20 13:03:04.034] Thread-3                     <WE0005E> Failed to start web bundle 'org.cynapsys.cssf.web.em' version '1.0.0': consult the serviceability log for further details. 
    [2010-09-20 13:03:04.041] start-signalling-5           <DE0006E> Start failed for bundle 'org.cynapsys.cssf.web.em' version '1.0.0'. com.springsource.kernel.deployer.core.DeploymentException: Web application failed to start
    	at com.springsource.server.web.core.internal.WebBundleLifecycleListener.onStarted(
    	at com.springsource.kernel.install.artifact.internal.ArtifactStateMonitor.onStarted(
    	at com.springsource.kernel.install.artifact.internal.AbstractInstallArtifact.asyncStartSucceeded(
    	at com.springsource.kernel.install.artifact.internal.AbstractInstallArtifact.access$0(
    	at com.springsource.kernel.install.artifact.internal.AbstractInstallArtifact$StateMonitorSignal.signalSuccessfulCompletion(
    	at com.springsource.kernel.core.internal.BundleStartTracker$
    	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(
    	at java.util.concurrent.ThreadPoolExecutor$
    Caused by: com.springsource.osgi.webcontainer.core.WebApplicationStartFailedException: com.springsource.osgi.webcontainer.core.spi.ServletContainerException: Web application at '/cssfem' failed to start. Check the logs for more details.
    	at com.springsource.osgi.webcontainer.internal.StandardWebApplication.start(
    	at com.springsource.server.web.core.internal.WebBundleLifecycleListener.onStarted(
    	... 8 common frames omitted
    Caused by: com.springsource.osgi.webcontainer.core.spi.ServletContainerException: Web application at '/cssfem' failed to start. Check the logs for more details.
    	at com.springsource.osgi.webcontainer.tomcat.internal.TomcatServletContainer.startWebApplication(
    	at com.springsource.osgi.webcontainer.internal.StandardWebApplication.start(
    	... 9 common frames omitted
    But then, I realized that only the osgi-reference who is causing a trouble. Because when I remove it, my web bundle is deployed without any problem!

    I tryed to find out on the web a way to integrate osgi services as beans in a jsf web bundle, but without any success!
    Could anyone help me to find out a solution to that problem?

    Thanks a lot in advance!