If you get the following exceptions while deploying a Mosaic application to Oracle WebLogic 10.3, you might need to perform additional configuration:
com.adobe.livecycle.mosaic.repository.api.RepositoryException: An error occured during operation callWebDAV on repository WebDAV with Method: PROPFIND, Path: /repository/LiveCycleMosaic/Catalogs/SalesDashboardCatalog/descriptor.xml
Caused by: java.net.ConnectException: Connection refused: connect
These configuration changes require that you change an XML file inside the mosaic.war file. So you need a fairly funtional zip tool such as WinZip, WinRAR or 7Zip.
1. Change Repository from LiveCycle DB to the Local Filesystem
The file system repository is better performant than the LiveCycle database repository. As the readme notes, you have to edit the file mosaic-context.xml in the mosaic.war file (in /META-INF/spring/) so that the following is uncommented:
<alias name=”mosaicFileSystemRepository” alias=”mosaicStorageRepository”/>
and the following is commented out:<alias name=”mosaicWebdavRepository” alias=”mosaicStorageRepository”/>
Also uncomment the File-System Repository Configuration Bean and specify the location of the folder that would serve as the filesystem repository – make sure this is on high performance local storage:
<bean id=”mosaicFileSystemRepository” class=”com.adobe.livecycle.mosaic.repository.filesystem.FileSystemRepository”>
<property name=”fileSystemRootPath” value=”D:\WL_DOMAINS\lc_domain\lc_mosaic_repository” />
<property name=”pathComponentSeparator” value=”\” />
</bean>
2. Change User from Default ‘Administrator’ to Custom
The LiveCycle Mosaic Administrator Guide provides instructions on how to do this..
a) Create a new user (‘mosaicwebdav’ in this example) in LiveCycle using the LiveCycle AdminUI. Create a new role for this user with following system privileges:
- Repository Read
- Repository Traverse
- Repository Write
- Service Invoke
b) Edit mosaic-context.xml and comment out ‘WebDAV Repository Configuration 1 (default) ‘ and uncomment ‘WebDAV Repository Configuration 2‘ to make it active.
<bean id=”mosaicWebDAVAuthenticationParams” class=”com.adobe.livecycle.mosaic.webdav.config.BasicAuthenticationParams”>
<property name=”username” value=”mosaicwebdav” />
<property name=”password” value=”password” />
</bean>
3. Specify WebLogic Host Name and Port
Edit mosaic-context.xml.
<bean id=”mosaicWebDAVConfigParams” class=”com.adobe.livecycle.mosaic.webdav.config.ConfigParams”>
<property name=”protocol” value=”http” />
<property name=”hostname” value=”server.company.com” />
<property name=”port” value=”8001” />
<property name=”authenticationParams”><ref bean=”mosaicWebDAVAuthenticationParams”/></property>
</bean>
Tidak ada komentar:
Posting Komentar