Topic
  • No replies
SystemAdmin
SystemAdmin
5842 Posts

Pinned topic Special DOCLINKS setup. No DOCLINKS folder but al folders in root of filese

‏2013-03-18T13:55:44Z |
Hi,

I have a problem with setting up attached documents on Maximo 7.5 running on windows 2008 on Websphere.
My customer wants to use a fileserver without first having to set up a DOCLINKS folder and then put al content there, because it is already in all kind of folders directly set on the fileserver

How to use attached documents on a separate fileserver?

Seems straight forward in Maximo 7, like:

Part for saving docs

Create DOCLINKS folder => \\servername\DOCLINKS

Configure System Properties

You need to configure the following system properties

mxe.doclink.doctypes.defpath => \\servername\DOCLINKS
mxe.doclink.doctypes.topLevelPaths => \\servername\DOCLINKS

Configure Attachment folders in Maximo

Open an application in Maximo (e.g. Assets) and goto the Select Action Menu and select "Attachment Library/Folders -> Manage Folders".

For each folder you see, change the Default File Path.

So for example change the images folder to \\servername\DOCLINKS\images
You are able to save the document
Change httpd.conf

In websphere change httpd.conf file, either through Websphere console or stop http server and get into file

httpserver\conf\httpd.conf
  1. DocumentRoot "C:/DOCLINKS"

DocumentRoot "//servername/DOCLINKS"
  1. <Directory "C:/DOCLINKS">

<Directory "//servername/DOCLINKS">
Restart httpserver
In Maximo

Configure System Properties

You need to configure the following system properties

mxe.doclink.path01 => \\servername\DOCLINKS=http://applicationservername/

And you are able to display the document also.
Now back to the issue.

My customer has a fileserver with a lot of folders on it.

The root contains these folders, so not first a folder DOCLINKS, but the tree starts direct.

so it looks like:

\\FILESERVER

folder1

folder2

folder3

folder4

folderetc.
So my setup would be:

Part for saving docs

Create DOCLINKS folder (already there)

=> \\servername\folder1

=> \\servername\folder2

=> \\servername\folder3 etc

mxe.doclink.doctypes.defpath => \\servername
mxe.doclink.doctypes.topLevelPaths => \\servername
Configure Attachment folders in Maximo

Open an application in Maximo (e.g. Assets) and goto the Select Action Menu and select "Attachment Library/Folders -> Manage Folders".

For each folder you see, change the Default File Path.

So for example change the images folder to

=> \\servername\folder1

=> \\servername\folder2

=> \\servername\folder3
But Maximo just don't let me save the folders. In the error logs i can only find the following:

java.io.IOException: Invalid argument

at java.io.File.getCanonicalPath(File.java:570)

at psdi.util.LinkedDocumentInfo.getTopLevelFolders(LinkedDocumentInfo.java:201)

at psdi.app.doclink.FldDoctypesDefaultFilePath.isAllowedFolder(FldDoctypesDefaultFilePath.java:148)

at psdi.app.doclink.FldDoctypesDefaultFilePath.validate(FldDoctypesDefaultFilePath.java:77)

at psdi.mbo.MboValue.validate(MboValue.java:1693)

at psdi.mbo.MboValue.setValue(MboValue.java:887)

at psdi.mbo.MboValue._setValue(MboValue.java:1240)

at psdi.mbo.MboValue.setValue(MboValue.java:1136)

at psdi.mbo.Mbo.setValue(Mbo.java:2147)……………
So please help me out on this if you have any idea which I can try.