DK,
  see http://tapestry.apache.org/integrating-with-spring-framework.html for
details on how to set up the spring application context in T5.

  On how to inject the service into your page : injecting by ID from the
spring context doesn't work (hence the message that there is no service
named dispatcher - actually, the Tapestry service IDs are different things
from the IDs you specify on the spring beans). If you just use @Inject (w/o
specifying a service ID) should be sufficient, as long as you don't have
multiple implementations of the same service in the spring application
context. If you do, inject the application context and pull the bean
directly from it

Regards,

Alex K

On Tue, Feb 1, 2011 at 11:08 AM, Duruk_Kab <durgesh.ka...@nuware.com> wrote:

>
> Apologies... Web module is not an OSGi module. Other two App and JPA are
> OSGi
> modules. Web is a traditional Java Web module having webapp folder and all
> the configuratiion files.
>
> I tried adding below settings to my web.xml but it gave me deployment
> error.
>
> <!-- CONFIGURE A PARENT APPLICATION CONTEXT -->
>  <context-param>
>    <param-name>contextClass</param-name>
>
>
> <param-value>org.eclipse.virgo.web.dm.ServerOsgiBundleXmlWebApplicationContext</param-value>
>  </context-param>
>  <listener>
>
>
> <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
>  </listener>
>  <!-- DISPATCHER SERVLET CONFIG -->
>  <servlet>
>    <servlet-name>t5osgi</servlet-name>
>
>
> <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
>  </servlet>
>  <servlet-mapping>
>    <servlet-name>t5osgi</servlet-name>
>    <url-pattern>/app/*</url-pattern>
>  </servlet-mapping>
>
> How do i specify dispatcher servlet or application context info? Is this a
> right way? Can anyone help me to get a sample project. Please advice.
>
> Thanks,
> DK
> --
> View this message in context:
> http://tapestry-users.832.n2.nabble.com/Tapestry-5-1-0-5-with-Virgo-server-OSGi-tp5980927p5981568.html
> Sent from the Tapestry Users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>

Reply via email to