Announcement Announcement Module
Collapse
No announcement yet.
Spring Portlet MVC on weblogic - Annotation Issue Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Spring Portlet MVC on weblogic - Annotation Issue

    All,

    I developed a portlet based on example that i found online and deployed on liferay. It works without any issue. However when i deploy this on weblogic for consumption with oracle webcenter, i am getting the following error. I also put the spring context xml below the error.

    Please let me know what you think.

    Thanks in advance,
    Prasad.

    javax.portlet.PortletException: No adapter for handler [sample.code.listing.controller.AddBookController@1 9284c5]: Does your handler implement a supported interface like Controller?
    at org.springframework.web.portlet.DispatcherPortlet. getHandlerAdapter(DispatcherPortlet.java:971)
    at org.springframework.web.portlet.DispatcherPortlet. doRenderService(DispatcherPortlet.java:810)
    at org.springframework.web.portlet.FrameworkPortlet.p rocessRequest(FrameworkPortlet.java:483)
    at org.springframework.web.portlet.FrameworkPortlet.d oDispatch(FrameworkPortlet.java:453)
    at javax.portlet.GenericPortlet.render(GenericPortlet .java:233)
    at com.bea.portlet.container.PortletStub.doRender(Por tletStub.java:1003)
    at com.bea.portlet.container.FilterChainGenerator.run FilterChain(FilterChainGenerator.java:127)
    at com.bea.portlet.container.PortletStub.render(Portl etStub.java:438)
    at com.bea.portlet.container.AppContainer.renderStub( AppContainer.java:1144)
    at com.bea.portlet.container.AppContainer.invokeRende r(AppContainer.java:1076)
    at com.bea.wsrp.producer.adapter.javaportlet.JavaPort letAdapter.doGetMarkup(JavaPortletAdapter.java:294 )
    at com.bea.wsrp.producer.handlers.markup.MarkupServic eHandler.doGetMarkup(MarkupServiceHandler.java:449 )
    at com.bea.wsrp.producer.handlers.markup.MarkupServic eHandler.doService(MarkupServiceHandler.java:264)
    at com.bea.wsrp.producer.handlers.AbstractServiceHand ler.service(AbstractServiceHandler.java:71)
    at com.bea.wsrp.producer.container.ProducerEndPoint.p rocessNow(ProducerEndPoint.java:349)
    at com.bea.wsrp.producer.container.ProducerEndPoint.p rocessNow(ProducerEndPoint.java:250)
    at com.bea.wsrp.producer.container.ProducerEndPoint.p rocessNow(ProducerEndPoint.java:208)
    at oracle.portlet.server.adapter.web.WSRP_v2_Markup_P ortTypeSoapToEndpoint.getMarkup(WSRP_v2_Markup_Por tTypeSoapToEndpoint.java:74)
    at oasis.names.tc.wsrp.v2.bind.runtime.WSRP_v2_Markup _Binding_SOAP_Tie.invoke_getMarkup(WSRP_v2_Markup_ Binding_SOAP_Tie.java:66)
    at oasis.names.tc.wsrp.v2.bind.runtime.WSRP_v2_Markup _Binding_SOAP_Tie.processingHook(WSRP_v2_Markup_Bi nding_SOAP_Tie.java:1445)
    at oracle.j2ee.ws.server.StreamingHandler.handle(Stre amingHandler.java:299)
    at oracle.j2ee.ws.server.JAXRPCProcessor.doEndpointPr ocessing(JAXRPCProcessor.java:442)
    at oracle.j2ee.ws.server.WebServiceProcessor.invokeEn dpointImplementation(WebServiceProcessor.java:1081 )
    at oracle.j2ee.ws.server.JAXRPCProcessor.doRequestPro cessing(JAXRPCProcessor.java:333)
    at oracle.j2ee.ws.server.WebServiceProcessor.processR equest(WebServiceProcessor.java:232)
    at oracle.j2ee.ws.server.JAXRPCProcessor.doService(JA XRPCProcessor.java:185)
    at oracle.j2ee.ws.server.WebServiceServlet.doPost(Web ServiceServlet.java:459)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:727)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:820)
    at weblogic.servlet.internal.StubSecurityHelper$Servl etServiceAction.run(StubSecurityHelper.java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invok eServlet(StubSecurityHelper.java:125)


    My portlet name in portlet.xml is bookCatalog

    Below is my bookCatalog-servlet.xml:

    <?xml version="1.0" encoding="UTF-8"?>
    <beans xmlns="http://www.springframework.org/schema/beans"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.springframework.org/schema/p"
    xmlns:context="http://www.springframework.org/schema/context"
    xmlns:util="http://www.springframework.org/schema/util"
    xsi:schemaLocation="
    http://www.springframework.org/schema/beans
    http://www.springframework.org/schem...-beans-3.0.xsd
    http://www.springframework.org/schema/context
    http://www.springframework.org/schem...ontext-3.0.xsd
    http://www.springframework.org/schema/util
    http://www.springframework.org/schem...g-util-3.0.xsd
    ">
    <context:component-scan base-package="sample.code.listing" />
    <bean class="org.springframework.web.servlet.mvc.SimpleC ontrollerHandlerAdapter"/>

    <bean
    class="org.springframework.web.portlet.mvc.annotat ion.AnnotationMethodHandlerAdapter">
    <property name="webBindingInitializer">
    <bean
    class="org.springframework.web.bind.support.Config urableWebBindingInitializer">
    <property name="propertyEditorRegistrars">
    <list>
    <ref bean="myPropertyEditorRegistrar" />
    </list>
    </property>
    </bean>
    </property>
    </bean>

    <bean id="myPropertyEditorRegistrar" class="sample.code.listing.utils.MyPropertyEditorR egistrar"/>

    <bean id="messageSource"
    class="org.springframework.context.support.Resourc eBundleMessageSource">
    <property name="basenames">
    <list>
    <value>content.Language-ext</value>
    </list>
    </property>
    </bean>

    <bean id="viewResolver"
    class="org.springframework.web.servlet.view.Intern alResourceViewResolver">
    <property name="viewClass"
    value="org.springframework.web.servlet.view.JstlVi ew" />
    <property name="prefix" value="/BookPortlet/html" />
    <property name="suffix" value=".jsp" />
    </bean>
    </beans>
Working...
X