Discussion:
[Dspace-tech] Installation
Antonio González
2005-05-30 22:10:11 UTC
Permalink
Hello everybody, hope you can help me.

I have been trying to install dspace-1.3alpha1 on a Debian Sarge
server without any luck. The problem is that when I run 'ant
fresh_install -debug' the following messages are shown:

'-classpath'
'/home/dspace/dspace-1.3alpha1-source/lib:/home/dspace/dspace-1.3alpha1-source/build/classes:/home/dspace/dspace-1.3alpha1-sou
rce/lib/PDFBox.jar:/home/dspace/dspace-1.3alpha1-source/lib/activation.jar:/home/dspace/dspace-1.3alpha1-source/lib/commons-cl
i.jar:/home/dspace/dspace-1.3alpha1-source/lib/commons-collections.jar:/home/dspace/dspace-1.3alpha1-source/lib/commons-dbcp.j
ar:/home/dspace/dspace-1.3alpha1-source/lib/commons-pool.jar:/home/dspace/dspace-1.3alpha1-source/lib/cos.jar:/home/dspace/dsp
ace-1.3alpha1-source/lib/handle.jar:/home/dspace/dspace-1.3alpha1-source/lib/jakarta-poi.jar:/home/dspace/dspace-1.3alpha1-sou
rce/lib/jargon.jar:/home/dspace/dspace-1.3alpha1-source/lib/jena.jar:/home/dspace/dspace-1.3alpha1-source/lib/jstl.jar:/home/d
space/dspace-1.3alpha1-source/lib/log4j.jar:/home/dspace/dspace-1.3alpha1-source/lib/lucene.jar:/home/dspace/dspace-1.3alpha1-
source/lib/mail.jar:/home/dspace/dspace-1.3alpha1-source/lib/mets.jar:/home/dspace/dspace-1.3alpha1-source/lib/oaicat.jar:/hom
e/dspace/dspace-1.3alpha1-source/lib/oro.jar:/home/dspace/dspace-1.3alpha1-source/lib/pg74.216.jdbc3.jar:/home/dspace/dspace-1
.3alpha1-source/lib/servlet.jar:/home/dspace/dspace-1.3alpha1-source/lib/standard.jar:/home/dspace/dspace-1.3alpha1-source/lib
/tm-extractors.jar:/home/dspace/dspace-1.3alpha1-source/lib/xalan.jar:/home/dspace/dspace-1.3alpha1-source/lib/xerces.jar'
'org.dspace.storage.rdbms.InitializeDatabase'
'etc/database_schema.sql'

The ' characters around the executable and arguments are
not part of the command.
[java] 2005-05-30 16:15:55,229 INFO
org.dspace.storage.rdbms.InitializeDatabase @ Initializing Database
[java] 2005-05-30 16:15:55,262 WARN
org.dspace.storage.rdbms.DatabaseManager @ Exception initializing DB
pool
[java] java.lang.ClassNotFoundException: pg74.216.jdbc3.jar

I can see that the error is that the program can't find the
'pg74.216.jdbc3.jar' file but if you see the '-classpath' section file
is there. I don't know what else to do :-S

Thanks
PRAT
2005-06-29 08:22:09 UTC
Permalink
Hello !

I'm try de upgrade dspace 1.2.1 to 1.2.2 but when i start tomcat i've got an
error in Catalina.out.
This error doesn't occurs with dpsace v1.2.1.
I regenerate my file log4j.properties why dspace/bin/install-configs but the
error kept alive!

Thanks everybody! ;-)


log4j:WARN No appenders could be found for logger
(org.dspace.core.ConfigurationManager).
log4j:WARN Please initialize the log4j system properly.


Prat | CINES | france !
Jim Downing
2005-07-06 15:20:40 UTC
Permalink
Hi,
Post by PRAT
log4j:WARN No appenders could be found for logger
(org.dspace.core.ConfigurationManager).
log4j:WARN Please initialize the log4j system properly.
Does the logging work? i.e. is there output in dspace.log? If so, this
is a known wrinkle - the ConfigurationManager sets up the logging
configuration, which means that it doesn't have anywhere to log to
itself until it has done so.

Best regards,
jim
Navalkishore H Sarda
2005-06-29 10:06:35 UTC
Permalink
Directory in which file log4j.properties exists should be in classpath.
dsrun script generates all the classpath information.

# Assume we're in the bin subdirectory of the DSpace installation directory
BINDIR=`dirname $0`
DSPACEDIR=`cd "$BINDIR/.." ; pwd`
This clause suggests that you should be either be in dspace directory or dspace/bin
to execute install-configs.
Otherwise, explicitly you can add the directory where log4j.properties is present in your CLASSPATH.
-Naval



________________________________

From: dspace-tech-***@lists.sourceforge.net on behalf of PRAT
Sent: Wed 6/29/2005 4:22 AM
To: dspace-***@lists.sourceforge.net
Subject: [Dspace-tech] (no subject)



Hello !

I'm try de upgrade dspace 1.2.1 to 1.2.2 but when i start tomcat i've got an
error in Catalina.out.
This error doesn't occurs with dpsace v1.2.1.
I regenerate my file log4j.properties why dspace/bin/install-configs but the
error kept alive!

Thanks everybody! ;-)


log4j:WARN No appenders could be found for logger
(org.dspace.core.ConfigurationManager).
log4j:WARN Please initialize the log4j system properly.


Prat | CINES | france !



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
Jim Downing
2005-07-11 10:52:50 UTC
Permalink
Hi Prat,
Have you got some documentation on : how to transform a complex directory
and relational structure like a web site to ingest format.
-----Message d'origine-----
De la part de Jim Downing
Envoyé : mercredi 6 juillet 2005 17:13
Objet : Re: [Dspace-tech] (no subject)
I want to import files with a complex directory and relational
structure like a web site.
It is possible to do this with the import tool ?
It's not possible to do this with the importer directly. The usual
solution is to transform the website into the ingest format and then to
use the import tool.
Best regards,
jim
I think people tend to use whatever gets the job done - I've used a
mixture of Bash, groovy, XSLT and Java for different batches and my
sysadmin usually uses perl. So there aren't specific docs beyond the
general description of the import format:
http://dspace.org/technology/system-docs/application.html#itemimporter

The difficult step for you is going to be preserving the structure in
the DSpace Item storage format, which currently doesn't support
arbitrary hierarchical structures. A couple of ideas: -

1) If the rendering of the page is the only important thing, then you
can lay the files out in the format that IE uses for saving pages.

2) Larry Stone and William Reilly on the CWSpace project at MIT have
customised their DSpace to support arbitrary web pages (I think). Worth
looking at their stuff.

3) METS support in Items is in the pipeline, being developed by (I
think) Eduworks. You could use a METS structure map to describe the
complex structure, even if DSpace couldn't directly support it.

Best regards,
jim
--
Jim Downing <***@cam.ac.uk>
***@Cambridge
Larry Stone
2005-07-11 22:15:59 UTC
Permalink
Have you got some documentation on : how to transform a complex directory
and relational structure like a web site to ingest format.
The batch importer org.dspace.app.itemimport.ItemImport can handle
items with multiple files in subdirectories; it preserves the relative
paths in bitstream names, so if e.g. your "contents" file includes
lines like:

subdir/index.html
subdir/page2.html
images/foo.jpg

then there will be bitstreams named "subdir/index.html", etc.

I think what Jim is thinking of is a patch I made a while ago to the
HTMLServlet to fix its rendering of bitstreams with embedded '/'s --
It's in 1.3, probably 1.2.2 as well.
See patch 1143570, https://sourceforge.net/tracker/index.php?func=detail&aid=1143570&group_id=19984&atid=319984

Do note that your website must refer to its pages with _relative_ links
only, e.g. <img src="../images/foo.jpg"> and <a href="subdir/page2.html">.
That way, when you render a page through the DSpace web UI, the internal
links, images, and style sheets will work. You don't need to change the
file/directory layout at all, must make sure (a) all necessary files
(including images and CSS stylesheets) are within the tree you're importing;
(b) all internal references are relative URIs as above.

There are two problems remaining:

1. You have to set the "primary bitstream" for the item, manually, to
the top-level web page -- e.g. usually index.html. The ItemImporter
doesn't have any way to set a primary bitstream, although this seems
like a very good thing to add. The only way I know to do this is in
the administrative GUI for the Item.

2. None of this code has been tested when running on a MS windows
platform, where the pathname separators are different from the URL
pathname separator '/'. That may screw up the item importer.

good luck,

-- Larry

Loading...