Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Fateh Alchhabi
after upgrade LifeRay 6.0.5 images does not display
January 25, 2011 7:32 AM
Answer

Fateh Alchhabi

Rank: Junior Member

Posts: 58

Join Date: December 1, 2010

Recent Posts

i was using liferay 5.2 after upgrade to LifeRay 6 images does not display ... any ideas


PS : when run liferay locally all image display but i when i move it to local server it disappear all the images path are absolute path ?
Minhchau Dang
RE: after upgrade LifeRay 6.0.5 images does not display
January 24, 2011 10:50 AM
Answer

Minhchau Dang

LIFERAY STAFF

Rank: Expert

Posts: 349

Join Date: October 22, 2007

Recent Posts

You forgot to add the contents of portal-legacy-5.2.properties to your portal-ext.properties, which (among several other things) includes this property:

1image.hook.impl=com.liferay.portal.image.DatabaseHook
Fateh Alchhabi
RE: after upgrade LifeRay 6.0.5 images does not display
January 25, 2011 7:34 AM
Answer

Fateh Alchhabi

Rank: Junior Member

Posts: 58

Join Date: December 1, 2010

Recent Posts

thank's for your replay but it's already added in my portal-ext.properties
and the root dir for image also added ,,,, ^_^

PS : when run liferay locally all image display but i when i move it to local server it disappear all the images path are absolute path ?
Hitoshi Ozawa
RE: after upgrade LifeRay 6.0.5 images does not display
January 30, 2011 5:21 PM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7952

Join Date: March 23, 2010

Recent Posts

Have you checked your logs? You may be getting errors about not finding the image files.
Fateh Alchhabi
RE: after upgrade LifeRay 6.0.5 images does not display
January 31, 2011 6:30 AM
Answer

Fateh Alchhabi

Rank: Junior Member

Posts: 58

Join Date: December 1, 2010

Recent Posts

thanks Hitoshi Ozawa for you replay
in my log give exception image not loaded,,,
if you can clear it up ,, i want to know how lifeRay store the image in folders or serialize in the database

  1
  29:59:36,634 ERROR [ImageImpl:40] Error reading image 13875
  3com.liferay.documentlibrary.NoSuchFileException: /tb/data/images/13/87/13875.png
  4    at com.liferay.portal.image.FileSystemHook.getImageAsBytes(FileSystemHook.java:57)
  5    at com.liferay.portal.model.impl.ImageImpl.getTextObj(ImageImpl.java:37)
  6    at com.liferay.portal.servlet.ImageServlet.getImageBytes(ImageServlet.java:265)
  7    at com.liferay.portal.servlet.ImageServlet.writeImage(ImageServlet.java:370)
  8    at com.liferay.portal.servlet.ImageServlet.service(ImageServlet.java:121)
  9    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
 10    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
 11    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 12    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
 13    at com.liferay.portal.servlet.filters.cache.CacheFilter.processFilter(CacheFilter.java:398)
 14    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
 15    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
 16    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 17    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
 18    at com.liferay.portal.servlet.filters.etag.ETagFilter.processFilter(ETagFilter.java:45)
 19    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
 20    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
 21    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 22    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
 23    at com.liferay.portal.servlet.filters.header.HeaderFilter.processFilter(HeaderFilter.java:129)
 24    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
 25    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
 26    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 27    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
 28    at com.liferay.portal.servlet.filters.sso.ntlm.NtlmPostFilter.processFilter(NtlmPostFilter.java:81)
 29    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
 30    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
 31    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 32    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
 33    at com.liferay.portal.sharepoint.SharepointFilter.processFilter(SharepointFilter.java:179)
 34    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
 35    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
 36    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 37    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
 38    at com.liferay.portal.servlet.filters.virtualhost.VirtualHostFilter.processFilter(VirtualHostFilter.java:239)
 39    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
 40    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
 41    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 42    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
 43    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:126)
 44    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
 45    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 46    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
 47    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:126)
 48    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
 49    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 50    at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:738)
 51    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
 52    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 53    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
 54    at com.liferay.portal.servlet.filters.threadlocal.ThreadLocalFilter.processFilter(ThreadLocalFilter.java:35)
 55    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
 56    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
 57    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 58    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
 59    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
 60    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:465)
 61    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
 62    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
 63    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
 64    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
 65    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)
 66    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
 67    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
 68    at java.lang.Thread.run(Thread.java:619)
 6909:59:36,633 ERROR [ImageImpl:40] Error reading image 13870
 70com.liferay.documentlibrary.NoSuchFileException: /tb/data/images/13/87/13870.png
 71    at com.liferay.portal.image.FileSystemHook.getImageAsBytes(FileSystemHook.java:57)
 72    at com.liferay.portal.model.impl.ImageImpl.getTextObj(ImageImpl.java:37)
 73    at com.liferay.portal.servlet.ImageServlet.getImageBytes(ImageServlet.java:265)
 74    at com.liferay.portal.servlet.ImageServlet.writeImage(ImageServlet.java:370)
 75    at com.liferay.portal.servlet.ImageServlet.service(ImageServlet.java:121)
 76    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
 77    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
 78    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 79    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
 80    at com.liferay.portal.servlet.filters.cache.CacheFilter.processFilter(CacheFilter.java:398)
 81    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
 82    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
 83    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 84    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
 85    at com.liferay.portal.servlet.filters.etag.ETagFilter.processFilter(ETagFilter.java:45)
 86    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
 87    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
 88    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 89    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
 90    at com.liferay.portal.servlet.filters.header.HeaderFilter.processFilter(HeaderFilter.java:129)
 91    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
 92    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
 93    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 94    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
 95    at com.liferay.portal.servlet.filters.sso.ntlm.NtlmPostFilter.processFilter(NtlmPostFilter.java:81)
 96    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
 97    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
 98    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 99    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
100    at com.liferay.portal.sharepoint.SharepointFilter.processFilter(SharepointFilter.java:179)
101    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
102    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
103    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
104    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
105    at com.liferay.portal.servlet.filters.virtualhost.VirtualHostFilter.processFilter(VirtualHostFilter.java:239)
106    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
107    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
108    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
109    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
110    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:126)
111    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
112    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
113    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
114    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:126)
115    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
116    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
117    at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:738)
118    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
119    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
120    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
121    at com.liferay.portal.servlet.filters.threadlocal.ThreadLocalFilter.processFilter(ThreadLocalFilter.java:35)
122    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
123    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
124    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
125    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
126    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
127    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:465)
128    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
129    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
130    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
131    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
132    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)
133    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
134    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
135    at java.lang.Thread.run(Thread.java:619)
Minhchau Dang
RE: after upgrade LifeRay 6.0.5 images does not display
January 31, 2011 9:25 AM
Answer

Minhchau Dang

LIFERAY STAFF

Rank: Expert

Posts: 349

Join Date: October 22, 2007

Recent Posts

Fateh Alchhabi:
if you can clear it up ,, i want to know how lifeRay store the image in folders or serialize in the database

In Liferay 5.2.x, Liferay stores all the images in the database. Based on your stack trace, Liferay is checking for images on the file system. This means that you did not set the "image.hook.impl" property, and therefore the expected behavior at this time is that no images uploaded on Liferay 5.2 will be accessible until they are migrated onto the file system.

In order to resolve this issue, you will need to change your portal-ext.properties so that "image.hook.impl" uses the database hook, run the image gallery migration tool available in the control panel, and set the "image.hook.impl" back to the file system.
Fateh Alchhabi
RE: after upgrade LifeRay 6.0.5 images does not display
February 7, 2011 5:24 AM
Answer

Fateh Alchhabi

Rank: Junior Member

Posts: 58

Join Date: December 1, 2010

Recent Posts

thank you Minhchau Dang

it working now ^_^
Apoorva Prakash
RE: after upgrade LifeRay 6.0.5 images does not display
November 14, 2011 1:50 AM
Answer

Apoorva Prakash

Rank: Liferay Master

Posts: 659

Join Date: June 15, 2010

Recent Posts

Hello All,
I hope my problem is also somewhere similar the difference is I'm using LR6.05,and I'm not upgrading.
I'm getting problem in web content using a template. Image is not getting displayed.
But when I'm opening for preview or display, the image is not coming.
I've tried without template too. Same thing is happening.
When I tried to debug it through FireBug, it gives the following URI
1/image/journal/article?img_id=26172&t=1320151467035

I've checked the journalArticleImage table, the imageId is valid... But I was unable to find this struts path in struts-config.xml.

Thanks and Regards.