aspose file tools*
The moose likes Portals and Portlets and the fly likes Can't find portlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Portals and Portlets
Bookmark "Can Watch "Can New topic
Author

Can't find portlet

sam White
Ranch Hand

Joined: Feb 18, 2011
Posts: 208
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
 
wood burning stoves
 
subject: Can't find portlet