Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Gemini » OsgiBundleXmlWebApplication can not access the controller in another Bundle?
OsgiBundleXmlWebApplication can not access the controller in another Bundle? [message #900817] Wed, 08 August 2012 11:22 Go to next message
Yang Lu is currently offline Yang Lu
Messages: 3
Registered: August 2012
Junior Member
I encountered some problems in spring-osgi-1.2.1.

OsgiBundleXmlWebApplication cannot access the controller in another Bundle?

BundleA

META-INF
--spring
----spring-bundleA-controller.xml

Code:

    <!-- pageA -->
    <bean id="pageA.do" name="/pageA.do" class="com.foo.PageAController">
        <property name="methodNameResolver" ref="paraMethodResolver" />           
    </bean>   

    <osgi:service ref="pageA.do" interface="com.foo.PageAController">
    </osgi:service>



WarBundle

META-INF
--spring
----spring-bundleA-controller-reference.xml

Code:

    <!-- pageA -->
    <osgi:reference id="pageA.do" interface="com.foo.PageAController">
    </osgi:reference>



----web.xml

Code:

    <context-param>
        <param-name>contextClass</param-name>
        <param-value>org.springframework.osgi.web.context.support.OsgiBundleXmlWebApplicationContext</param-value>
    </context-param>

    <servlet>
        <servlet-name>DispatcherServlet</servlet-name>
        <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
        <init-param>
            <param-name>contextClass</param-name>
            <param-value>org.springframework.osgi.web.context.support.OsgiBundleXmlWebApplicationContext</param-value>
        </init-param>                   
        <load-on-startup>2</load-on-startup>
    </servlet>           
 
    <servlet-mapping>
        <servlet-name>DispatcherServlet</servlet-name>
        <url-pattern>*.do</url-pattern>
    </servlet-mapping>


ERROR
Code:

[org.springframework.web.servlet.PageNotFound][WARN] http-8080-1
[No mapping found for HTTP request with URI [/pageA.do] in DispatcherServlet with name 'DispatcherServlet']
[org.springframework.web.servlet.DispatcherServlet.noHandlerFound(DispatcherServlet.java:1077)]


thanks:-)
Re: OsgiBundleXmlWebApplication can not access the controller in another Bundle? [message #901598 is a reply to message #900817] Mon, 13 August 2012 11:28 Go to previous message
Glyn Normington is currently offline Glyn Normington
Messages: 1222
Registered: July 2009
Senior Member
Spring DM (formerly known as Spring OSGi) has been superseded by Gemini Blueprint and the web support has been dropped in favour of Gemini Web.
Previous Topic:Service/References status
Next Topic:Gemini Blueprint 1.0.1.RELEASE
Goto Forum:
  


Current Time: Sat Aug 23 15:22:29 EDT 2014

Powered by FUDForum. Page generated in 0.01726 seconds