• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Can't find portlet

 
Ranch Hand
Posts: 229
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,

With Liferay 5.2.8 + tomcat 6.0, I deployed a spring (3.0.5) portlet to liferay deploy directory, without error.
But I can't find this portlet in the Application list in Liferay.

Here is the log from the spring app:

2011-06-30 02:47:04,487 [INFO ] [ContainerBackgroundProcessor[StandardEngine[Catalina]]] org.springframework.web.context.ContextLoader - Root WebApplicationContext: initialization started
2011-06-30 02:47:04,528 [INFO ] [ContainerBackgroundProcessor[StandardEngine[Catalina]]] org.springframework.web.context.support.XmlWebApplicationContext - Refreshing Root WebApplicationContext: startup date [Thu Jun 30 02:47:04 GMT 2011]; root of context hierarchy
2011-06-30 02:47:04,586 [INFO ] [ContainerBackgroundProcessor[StandardEngine[Catalina]]] org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean definitions from ServletContext resource [/WEB-INF/context/applicationContext.xml]
2011-06-30 02:47:04,741 [INFO ] [ContainerBackgroundProcessor[StandardEngine[Catalina]]] org.springframework.beans.factory.support.DefaultListableBeanFactory - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@c767719: defining beans [messageSource,viewResolver,defaultExceptionHandlerTemplate,bookService,bookValidator]; root of factory hierarchy
2011-06-30 02:47:04,765 [INFO ] [ContainerBackgroundProcessor[StandardEngine[Catalina]]] org.springframework.web.context.ContextLoader - Root WebApplicationContext: initialization completed in 276 ms
2011-06-30 02:47:05,062 [INFO ] [ContainerBackgroundProcessor[StandardEngine[Catalina]]] org.springframework.web.portlet.DispatcherPortlet - Initializing portlet 'books'
2011-06-30 02:47:05,069 [INFO ] [ContainerBackgroundProcessor[StandardEngine[Catalina]]] org.springframework.web.portlet.DispatcherPortlet - FrameworkPortlet 'books': initialization started
2011-06-30 02:47:05,070 [DEBUG] [ContainerBackgroundProcessor[StandardEngine[Catalina]]] org.springframework.web.portlet.DispatcherPortlet - Portlet with name 'books' will try to create custom ApplicationContext context of class 'org.springframework.web.portlet.context.XmlPortletApplicationContext', using parent context [Root WebApplicationContext: startup date [Thu Jun 30 02:47:04 GMT 2011]; root of context hierarchy]
2011-06-30 02:47:05,073 [INFO ] [ContainerBackgroundProcessor[StandardEngine[Catalina]]] org.springframework.web.portlet.context.XmlPortletApplicationContext - Refreshing PortletApplicationContext for namespace 'books-portlet': startup date [Thu Jun 30 02:47:05 GMT 2011]; parent: Root WebApplicationContext
2011-06-30 02:47:05,075 [INFO ] [ContainerBackgroundProcessor[StandardEngine[Catalina]]] org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean definitions from PortletContext resource [/WEB-INF/context/portlet/books.xml]
2011-06-30 02:47:05,180 [DEBUG] [ContainerBackgroundProcessor[StandardEngine[Catalina]]] org.springframework.web.portlet.context.XmlPortletApplicationContext - Bean factory for PortletApplicationContext for namespace 'books-portlet': org.springframework.beans.factory.support.DefaultListableBeanFactory@6af13a2c: defining beans [org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,portletMultipartResolver,booksController,booksHelpController,org.springframework.web.portlet.mvc.annotation.DefaultAnnotationHandlerMapping#0,portletModeHandlerMapping,defaultExceptionHandler]; parent: org.springframework.beans.factory.support.DefaultListableBeanFactory@c767719
2011-06-30 02:47:05,259 [DEBUG] [ContainerBackgroundProcessor[StandardEngine[Catalina]]] org.springframework.web.portlet.context.XmlPortletApplicationContext - Unable to locate MessageSource with name 'messageSource': using default [org.springframework.context.support.DelegatingMessageSource@141c2fab]
2011-06-30 02:47:05,259 [DEBUG] [ContainerBackgroundProcessor[StandardEngine[Catalina]]] org.springframework.web.portlet.context.XmlPortletApplicationContext - Unable to locate ApplicationEventMulticaster with name 'applicationEventMulticaster': using default [org.springframework.context.event.SimpleApplicationEventMulticaster@467d8ddd]
2011-06-30 02:47:05,259 [INFO ] [ContainerBackgroundProcessor[StandardEngine[Catalina]]] org.springframework.beans.factory.support.DefaultListableBeanFactory - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@6af13a2c: defining beans [org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,portletMultipartResolver,booksController,booksHelpController,org.springframework.web.portlet.mvc.annotation.DefaultAnnotationHandlerMapping#0,portletModeHandlerMapping,defaultExceptionHandler]; parent: org.springframework.beans.factory.support.DefaultListableBeanFactory@c767719



Here is the deployed Spring portlet in the webapp directory:


sam@sam-PC /cygdrive/c/liferay-ee-sp4/bundles/liferay-portal-5.2-ee-sp4/tomcat-6.0.18/webapps/spring-portlet-sample-1.0.0-SNAPSHOT
$ ls -l
total 4
d---------+ 1 sam None 0 Jun 30 12:46 META-INF
d---------+ 1 sam None 0 Jun 30 12:46 WEB-INF
d---------+ 1 sam None 0 Jun 30 12:46 images



Here is my src/main/webapp/WEB-INF/portlet.xml:



Can anyone please suggest and pin-point what might have gone wrong in this Spring app?

Thanks
S
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic