Hi Mike

I know exactly the problem you mean. The difficulty is that fedora does not
like the "file:\\Server\folder\file.ext" form. Apparently this is an
intentional feature for security reasons. So in order to reference your
local file as external content you need to  sit it on a web server. If you
are running tomcat you can sit your images in a subdirectory within the
webapps/root folder and then refer to
"http://server:8080/subfolder/file.ext"; as the url. The hazard here is that
you are probably using the same tomcat to run fedora and its obviously then
all too easy to accidentally delete your images when working on the fedora
installation!(you would need to backup the image directory outside tomcat
before any reinstallation of tomcat) So an alternative would be to host your
image files on another machine, possibly on apache web server(which is
suited to serving static files) or tomcat. Or, alternatively, on the same
machine but a second instance of tomcat or some other web server (it is
possible to run multiple instances of tomcat on one machine, the tomcat
documentation gives instructions)


Then for each image to be referenced you need a datastream in the FoXML,
which will look a bit like this example (control group E is for external
content)

<foxml:datastream CONTROL_GROUP="E" ID="FULL_IMAGE_JPEG" STATE="A" >
<foxml:datastreamVersion ID="FULL_IMAGE_JPEG.0" MIMETYPE="image/jpeg"
LABEL="FULL_IMAGE_JPEG"> <foxml:contentLocation
REF="http://<our_host_name:port>/<our
subdirectory>/<actual_image_file_name>.jpg" TYPE="URL"/>
</foxml:datastreamVersion> </foxml:datastream>


Of course a third alternative would be to treat your image files as managed
content and let fedora deal with them along with the metadata, but I guess
you have already looked into that and decided for good reasons not to do it
(as we decided, for example, on the grounds of file size)  


Hope this helps

Peri Stracchino
Digital Library Team
University of York
ext 4082 
-----Original Message-----
From: [email protected]
[mailto:[email protected]] 
Sent: 09 January 2009 16:34
To: [email protected]
Subject: Fedora-commons-users Digest, Vol 23, Issue 3

Send Fedora-commons-users mailing list submissions to
        [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.sourceforge.net/lists/listinfo/fedora-commons-users
or, via email, send a message with subject or body 'help' to
        [email protected]

You can reach the person managing the list at
        [email protected]

When replying, please edit your Subject line so it is more specific than
"Re: Contents of Fedora-commons-users digest..."


Today's Topics:

   1. Error Executing Migration Analyzer (Matthew Cordial)
   2. Fedora 3 admin client and server on Windows (Richard Green)
   3. create FOXML for local files (Park, Michael)


----------------------------------------------------------------------

Message: 1
Date: Thu, 8 Jan 2009 13:22:27 -0700
From: Matthew Cordial <[email protected]>
Subject: [Fedora-commons-users] Error Executing Migration Analyzer
To: <[email protected]>
Message-ID:
        <[email protected]>
Content-Type: text/plain; charset="us-ascii"

I am not able to successfully run the analyzer supplied with the latest
release of the migration utilities (version 3.1). Initially I tried using
the pre-built JARs supplied in the distribution. When this did not work I
tried building the utilities with the ant script supplied. I have tried
running the analyzer with different permutations of commandline-supplied
classpath values. I even downloaded the JRDF jar from Sourceforge (see stack
trace below). Any insights are appreciated. 

 

~Matt

 

-----------------------------------------------------------------------

ERROR: Analysis failed due to an unexpected error

fedora.common.FaultException: Error constructing class:
fedora.server.storage.translation.FOXML1_1DOSerializer

        at
fedora.utilities.config.ConfigUtil.constructionFailed(ConfigUtil.java:19
1)

        at
fedora.utilities.config.ConfigUtil.construct(ConfigUtil.java:175)

        at
fedora.utilities.cma.analyzer.Analyzer.<init>(Analyzer.java:179)

        at
fedora.utilities.cma.analyzer.Analyzer.main(Analyzer.java:416)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)

        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)

        at java.lang.reflect.Method.invoke(Method.java:597)

        at com.simontuffs.onejar.Boot.run(Boot.java:306)

        at com.simontuffs.onejar.Boot.main(Boot.java:159)

Caused by: java.lang.NoClassDefFoundError: org/jrdf/graph/PredicateNode

        at java.lang.Class.forName0(Native Method)

        at java.lang.Class.forName(Class.java:169)

        at
fedora.utilities.config.ConfigUtil.construct(ConfigUtil.java:166)

        ... 8 more

Caused by: java.lang.ClassNotFoundException:
org.jrdf.graph.PredicateNode

        at
com.simontuffs.onejar.JarClassLoader.findClass(JarClassLoader.java:602)

        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)

        at java.lang.ClassLoader.loadClass(ClassLoader.java:252)

        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)

        ... 11 more

 

 

----------------------

Matt Cordial

Digital Libray Software Engineer

Informatics and Cyberinfrastructure Services

Arizona State University Libraries

480.965.9094

 

-------------- next part --------------
An HTML attachment was scrubbed...

------------------------------

Message: 2
Date: Fri, 9 Jan 2009 12:03:42 -0000
From: "Richard Green" <[email protected]>
Subject: [Fedora-commons-users] Fedora 3 admin client and server on
        Windows
To: <[email protected]>,
        <[email protected]>,      "Chris
Wilper"
        <[email protected]>
Message-ID:
        <ee007af7077b7749b57fd9b55a75709503d12...@excl1vs1.adir.hull.ac.uk>
Content-Type: text/plain; charset="us-ascii"

Apologies for posting to both Fedora lists but I'm hoping for a quick reply.

 

In August, helping run a summer school in Canada, I had a problem with
Fedora 3.0's admin client.  Any attempt to save a new datastream in an
object produced:

 

java.io.IOException: Upload failed: Internal Server Error:
java.io.IOException: Corrupt form data: premature ending

        at fedora.client.FedoraClient.uploadFile(FedoraClient.java:196)

        at fedora.client.Uploader$1.construct(Uploader.java:133)

        at fedora.client.SwingWorker$2.run(SwingWorker.java:132)

        at java.lang.Thread.run(Thread.java:619)

 

-          though it would create a new object with DC.  

 

This was running both the server and client on a Windows XP SP2 laptop with
Java 1.6.  At the time, I gave up on the problem thinking it was just
something weird about the config on my laptop and, in any case, the same
client would talk nicely to a remote Fedora instance on a Unix (?) box.
However, I now really need Fedora 3 on a machine at home for some
development work (all our production and development machines are still
running Fedora 2).  Fedora 3.1 on my laptop does just the same thing.
I've tried various Java 1.6.x jdk's and jre's and even reverted to 1.5.
I've tried putting a brand new install of Fedora 3.1 on my desktop machine's
Vista - same error message.  And, no, the client on one won't play nicely
with the server on the other.

 

Looking a bit further into the error logs in August we had:

 

INFO 2008-08-15 10:38:22.156 [http-8080-Processor25] (Cache) Authenticating
user [fedoraAdmin] INFO 2008-08-15 10:38:22.171 [http-8080-Processor25]
(DefaultManagement) Completed getDatastreamHistory(pid: changeme:Page_1,
datastreamID:
THUMB)
INFO 2008-08-15 10:39:25.359 [http-8080-Processor24] (Cache) Authenticating
user [fedoraAdmin] ERROR 2008-08-15 10:39:25.359 [http-8080-Processor24]
(UploadServlet) Failed upload: Client must use HTTP Multipart POST INFO
2008-08-15 10:39:25.421 [http-8080-Processor24] (Cache) Authenticating user
[fedoraAdmin] ERROR 2008-08-15 10:39:25.484 [http-8080-Processor24]
(UploadServlet) Failed upload: java.io.IOException: Corrupt form data:
premature ending

 

Has anyone else seen this?  Does anyone have a solution?

 

Thanks in anticipation!

 

___________________________________________________________________

 

Richard Green

Manager, RepoMMan, RIDIR and REMAP Projects

e-Services Integration Group

 

www.hull.ac.uk/esig/repomman

www.hull.ac.uk/ridir

www.hull.ac.uk/remap

http://edocs.hull.ac.uk

 

-------------- next part --------------
An HTML attachment was scrubbed...
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: not available

------------------------------

Message: 3
Date: Fri, 9 Jan 2009 11:34:01 -0500
From: "Park, Michael" <[email protected]>
Subject: [Fedora-commons-users] create FOXML for local files
To: <[email protected]>
Message-ID:
        <[email protected]>
Content-Type: text/plain; charset="us-ascii"

Hi,

 

Does anyone know how to create FOXML that can be ingested for local file
content?  More specifically what should the following node's REF and TYPE
attributes equal?

 

<foxml:contentLocation REF="" TYPE="INTERNAL_ID"/>

 

Thanks,

Mike

 

Michael Park 

Digital Library Programmer

Brown University Library

 

-------------- next part --------------
An HTML attachment was scrubbed...

------------------------------

----------------------------------------------------------------------------
--
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for just about anything Open
Source.
http://p.sf.net/sfu/Xq1LFB

------------------------------

_______________________________________________
Fedora-commons-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fedora-commons-users


End of Fedora-commons-users Digest, Vol 23, Issue 3
***************************************************


------------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
_______________________________________________
Fedora-commons-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fedora-commons-users

Reply via email to