0

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)

誰でも私が欠けているものを提案できますか?

4

1 に答える 1

1
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 6.1に伝えるためのものです

それらをどこに移行するかを伝えるには、新しいプロパティを使用する必要があります(これはあなたが見逃していたものです)

dl.store.impl=com.liferay.portlet.documentlibrary.store.FileSystemStore
dl.store.file.system.root.dir=/path/to/liferay6.1/document_library

dl.hook.file.system.root.dirアップグレード プロセスでは、イメージとドキュメントが新しい場所 (dl.store.file.system.root.dir) にコピーされるため、 との値が同じにならないようにしてください。dl.store.file.system.root.dir

編集

上記は 6.1 EE の場合です。

CE バージョンの場合のみ、画像は元の場所に残し、ドキュメントは手動で新しい場所に移動/コピーする必要があります。

于 2012-11-24T09:32:50.377 に答える