liferay 5.2.3 から 6.0.6 にアップグレードしましたが、エラーが発生することなく正常に完了しました。しかし、6.0.6 から 6.1.0 GA1 にアップグレードすると、画像とドキュメントが表示されません。移行中に行ったイメージとドキュメントに関連する手順 (ドキュメントに関連するもののみが記載されています)。
6.0.6 への移行中に、portal-ext.propeties ファイルに次の行を書きました。
image.hook.impl=com.liferay.portal.image.FileSystemHook
image.hook.file.system.root.dir=${liferay.home}/data/images
dl.hook.impl=com.liferay.documentlibrary.util.FileSystemHook
dl.hook.file.system.root.dir=${liferay.home}/data/document_library
liferay 5.2.3 では、画像とドキュメントをファイル システムに保存しました。この後、サーバーを起動し、従来のパーミッションを 6 に移行しました。成功し、ドキュメントと画像を表示することができました。
次に、6.0.6 から 6.1.0 GA1 に移行します。そのために、これらの行に書きました
image.hook.impl=com.liferay.portal.image.FileSystemHook
image.hook.file.system.root.dir=${liferay.home}/data/images
dl.hook.impl=com.liferay.documentlibrary.util.FileSystemHook
dl.hook.file.system.root.dir=${liferay.home}/data/document_library
Tomcat を起動し、権限を 6 に移行します。移行が成功したら、サーバーを再起動しますが、ドキュメントと画像を表示できません。tomcatコンソールでこのエラーが発生する内容のファイルにアクセスしようとすると
Current URL /c/document_library/get_file?uuid=be4eecc7-8e9a-416c-aa4d-f3cbd855d759&groupId=14 generates exception: No file versions found for fileEntryId 61901
05:50:48,093 INFO [PortalImpl:4894] com.liferay.portlet.documentlibrary.NoSuchFileVersionException: No file versions found for fileEntryId 61901
com.liferay.portlet.documentlibrary.NoSuchFileVersionException: No file versions found for fileEntryId 61901
at com.liferay.portlet.documentlibrary.service.impl.DLFileVersionLocalServiceImpl.getLatestFileVersion(DLFileVersionLocalServiceImpl.java:67)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
誰でも私が欠けているものを提案できますか?