Re: [Dspace-tech] java.net.UnknownHostException

2008-08-06 Thread Mohamad Asmawi Bin Abdul Rahman
Im already try to change SMTP Server from the file dspace.cfg, but still
not working. After I made the changing, I need to compile "ant update"
or how? 

-Original Message-
From: James Rutherford [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 05, 2008 5:02 PM
To: Mohamad Asmawi Bin Abdul Rahman
Cc: dspace-tech@lists.sourceforge.net
Subject: Re: [Dspace-tech] java.net.UnknownHostException

On Tue, Aug 05, 2008 at 08:54:28AM +, Mohamad Asmawi Bin Abdul
Rahman wrote:
> Java full stacktrace

This is what we need. Are you sure you've set up the SMTP server
correctly, and configured it properly in your dspace.cfg?

Jim

> -Original Message-
> From: James Rutherford [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, August 05, 2008 4:40 PM
> To: Mohamad Asmawi Bin Abdul Rahman
> Cc: dspace-tech@lists.sourceforge.net
> Subject: Re: [Dspace-tech] java.net.UnknownHostException
> 
> Please send a full stack trace and any other relevant information
> (including the email address of the user you are trying to register).
> It's probably either a typo in the domain of the email address, or the
> machine DSpace is running on is having DNS issues.
> 
> Jim
> 
> On Tue, Aug 05, 2008 at 08:33:13AM +, Mohamad Asmawi Bin Abdul
> Rahman wrote:
> >
> > Hi All
> >
> >
> >  1.  I hav a problem related to registration of new user. When I put
> the users email, dspace noticed me "Unable to sent email to this
> Address". Until now I cannot complete any new registrations.
> >
> >
> >
> >  1.  when I want to reset password dspace showed me the error
> "Java.net.UnknownHostException"
> >
> >
> > please help me!!
> 
> Content-Description: ATT1.txt
> >
>

> -
> > This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> > Build the coolest Linux based applications with Moblin SDK & win
great
> prizes
> > Grand prize is a trip for two to an Open Source event anywhere in
the
> world
> > http://moblin-contest.org/redirect.php?banner_id=100&url=/
> Content-Description: ATT2.txt
> > ___
> > DSpace-tech mailing list
> > DSpace-tech@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/dspace-tech
> 
> 
> --
> James Rutherford  |  Hewlett-Packard Limited registered
Office:
> Research Engineer |  Cain Road,
> HP Labs   |  Bracknell,
> Bristol, UK   |  Berks
> +44 117 312 7066  |  RG12 1HN.
> [EMAIL PROTECTED]   |  Registered No: 690597 England
> 
> The contents of this message and any attachments to it are
confidential
> and may be legally privileged. If you have received this message in
> error, you should delete it from your system immediately and advise
the
> sender. To any recipient of this message within HP, unless otherwise
> stated you should consider this message and attachments as "HP
> CONFIDENTIAL".

-- 
James Rutherford  |  Hewlett-Packard Limited registered Office:
Research Engineer |  Cain Road,
HP Labs   |  Bracknell,
Bristol, UK   |  Berks
+44 117 312 7066  |  RG12 1HN.
[EMAIL PROTECTED]   |  Registered No: 690597 England

The contents of this message and any attachments to it are confidential
and may be legally privileged. If you have received this message in
error, you should delete it from your system immediately and advise the
sender. To any recipient of this message within HP, unless otherwise
stated you should consider this message and attachments as "HP
CONFIDENTIAL".

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Author sorting

2008-08-06 Thread Blanco, Jose
When I was on version 7.3.15 of postgres I tested the order by just as I
described in my original email, and it gave me the undesired results.  

There must be some sort of setting to make this work.  I have seen sites
where it works just fine.

-Jose

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Kasthuri, Sriram
Sent: Wednesday, August 06, 2008 9:30 AM
To: Mark H. Wood; dspace-tech@lists.sourceforge.net
Subject: Re: [Dspace-tech] Author sorting

We are using postgresql v 7.3 and it worked fine with ORDER BY
text_value. But not sure whether anything got changed in the later
versions of postgre?

- Sri
 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mark H.
Wood
Sent: 06 August 2008 14:26
To: dspace-tech@lists.sourceforge.net
Subject: Re: [Dspace-tech] Author sorting

Well, it does indeed seem that this is not dependent on the PostgreSQL
version, because I see the same incorrect behavior out of version 8.3.3.

The immediate problem is not the lack of ORDER BY; the immediate problem
is that ORDER BY does not seem to work for these data.  I tried the same
experiment, completely unconnected with DSpace, and got the same result:
"b" sorts before some "," and after others...or, more likely, the data
are returned in entry order regardless of ORDER BY.  I've tested both
CHAR and VARCHAR and they both do this.  INT columns are ordered
properly.

-- 
Mark H. Wood, Lead System Programmer   [EMAIL PROTECTED]
Typically when a software vendor says that a product is "intuitive" he
means the exact opposite.



-
This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge Build the coolest Linux based applications with Moblin SDK &
win great prizes Grand prize is a trip for two to an Open Source event
anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] [EMAIL PROTECTED] upgrades to DSpace 1.5.x

2008-08-06 Thread Mark Diggory
Dear DSpace Community,

Earlier this week we completed the upgrade of [EMAIL PROTECTED] from DSpace  
1.4.1 (JSPUI) to the latest DSpace 1.5.x revision. Likewise, we  
switched over completely to use the Texas A&M Manakin based XMLUI  
during this upgrade process.  The service can now be explored at  
original [EMAIL PROTECTED] host.

http://dspace.mit.edu

For MIT Libraries, this upgrade represents the culmination of more  
than a years worth of effort done in collaboration with other  
individuals and organizations within the DSpace community, beginning  
with the reorganization of the DSpace 1.4.2 code-base, the  
establishment of the Maven based build process, and culminating in the  
in the release of DSpace 1.5.0, the addition of maintenance fixes and  
the upgrade of our systems.  We at MIT feel that the DSpace 1.5.X  
branch, which now contains a significant load of bug fixes, is now  
prepared for a maintenance release. As release coordinator on the  
1.5.1 release, I expect to now begin testing the release of a 1.5.1  
beta update in the coming week.

I would like to thank all the developers and community members who  
contributed to the DSpace 1.5.X codebase in the past year. We could  
have not have accomplished our own production goals without your  
efforts within the community.

Cheers,
Mark Diggory

~
Mark R. Diggory - DSpace Developer and Systems Manager
MIT Libraries, Systems and Technology Services
Massachusetts Institute of Technology
Home Page: http://purl.org/net/mdiggory/homepage

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Problems with stat-initial and stat-monthly

2008-08-06 Thread Stuart Lewis
Hi Sean,

> Anybody have any idea what I've done wrong here? I get the following
> error when I try to run stat-initial or stat-monthy:
> 
> [EMAIL PROTECTED]:/dspace$ bin/stat-initial
> Exception in thread "main" org.postgresql.util.PSQLException: ERROR:
> syntax error at or near "FROM"
> 
> This is on a 1.5 installation.

You'll be pleased to know that you've not done anything wrong - it is a
small bug in 1.5, which has been fixed ready for 1.5.1

You need to update the following file:

/dspace-api/src/main/java/org/dspace/app/statistics/LogAnalyser.java

You can download an up to date version from:

http://dspace.svn.sourceforge.net/viewvc/dspace/branches/dspace-1_5_x/dspace
-api/src/main/java/org/dspace/app/statistics/LogAnalyser.java

(or http://tinyurl.com/dspace15-stat-patch)

You'll then need to recompile and redeploy DSpace, and it should then work.

> Could it be a configuration problem? In 1.4 I know I had to set
> $start_year and $start_month in the stat-* files, but that no longer
> seems to be the case. Is there somewhere else I should be setting that
> information?

start.year and start.month should now be set in [dspace]/config/dstat.cfg

start.year = 2005
start.month = 1

Thanks,


Stuart
_

Gwasanaethau Gwybodaeth  Information Services
Prifysgol Aberystwyth  Aberystwyth University

E-bost / E-mail: [EMAIL PROTECTED]
 Ffon / Tel: (01970) 622860
_


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] pstgresql password question

2008-08-06 Thread Mark H. Wood
On Wed, Aug 06, 2008 at 10:10:31AM -0400, Kieffer, Paul wrote:
> [EMAIL PROTECTED] dspace-1.5.0-build.dir]$ psql -U dspace -W -h localhost
> Password for user dspace:
> psql: FATAL:  Ident authentication failed for user "dspace"

It appears that PostgreSQL is set up to use Ident authentication when
a connection to database "dspace" is requested by user "dspace", and
that this is failing.  Does the host run an Ident service?

Ident authentication means that the DBMS will ask a network service on
the client host, "what user owns the process which is connecting to me
on this socket" and compare the reply with the client's claim.  Ident
is almost never the best way to authenticate, because it's not
reliable in the general case.

To answer your question directly:  the PostgreSQL administrator (or
"superuser") can set any user's password.  This user account will have
been created when the database cluster was created with 'initdb', so I
hope that someone knows what the account was named and what password
it was given.  Like most DBMS, PostgreSQL has its own accounts table
independent of that used by the OS, so passwords and even account
names may not correspond between DBMS and OS.  However, none of this
has anything to do with "Ident" authentication, except that the
claimed user account name must name an account in the DBMS' accounts
table.

The easiest authentication method to get working is "trust", but this
is dangerous:  "trust" authentication accepts the user's claim of
identity without any proof -- no password, no Ident check, nothing.  I
would use "trust" only until I got something safer to work.

I typically use "md5" authentication.  This is based on passwords and
will be familiar to most.  It's probably a good method to replace
"trust" as you are setting things up.

If you have central identity services such as Kerberos or an LDAP
directory, and you want to use those, Pg supports them.  Pg can also
call out to PAM for authentication if you want to go that route.  All
of these are more complicated to configure than the methods mentioned
above, and I wouldn't recommend them until you are more familiar with
running PostgreSQL.

Authentication is set up in the file pg_hba.conf in the database
cluster's home directory.

-- 
Mark H. Wood, Lead System Programmer   [EMAIL PROTECTED]
Typically when a software vendor says that a product is "intuitive" he
means the exact opposite.



pgpsoBM5LjgV2.pgp
Description: PGP signature
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] pstgresql password question

2008-08-06 Thread Kieffer, Paul
I tried the following process after generating the dspace package...

[EMAIL PROTECTED] dspace-1.5.0-build.dir]$ ant fresh_install
Buildfile: build.xml

init_installation:

BUILD FAILED
/ds/dspace-1.5.0-release/dspace/target/dspace-1.5.0-build.dir/build.xml:325: 
Directory /dspace/bin creation was not successful for an unknown reason

Total time: 0 seconds
[EMAIL PROTECTED] dspace-1.5.0-build.dir]$ psql -U dspace -W -h localhost
Password for user dspace:
psql: FATAL:  Ident authentication failed for user "dspace"
[EMAIL PROTECTED] dspace-1.5.0-build.dir]$ psql -U dspace -W -h localhost
Password for user dspace:
psql: FATAL:  Ident authentication failed for user "dspace"
[EMAIL PROTECTED] dspace-1.5.0-build.dir]$

Is there a way to set the password for postgresql?  I have not used it 
before


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Author sorting

2008-08-06 Thread Kasthuri, Sriram
We are using postgresql v 7.3 and it worked fine with ORDER BY
text_value. But not sure whether anything got changed in the later
versions of postgre?

- Sri
 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mark H.
Wood
Sent: 06 August 2008 14:26
To: dspace-tech@lists.sourceforge.net
Subject: Re: [Dspace-tech] Author sorting

Well, it does indeed seem that this is not dependent on the PostgreSQL
version, because I see the same incorrect behavior out of version
8.3.3.

The immediate problem is not the lack of ORDER BY; the immediate
problem is that ORDER BY does not seem to work for these data.  I
tried the same experiment, completely unconnected with DSpace, and got
the same result:  "b" sorts before some "," and after others...or,
more likely, the data are returned in entry order regardless of ORDER
BY.  I've tested both CHAR and VARCHAR and they both do this.  INT
columns are ordered properly.

-- 
Mark H. Wood, Lead System Programmer   [EMAIL PROTECTED]
Typically when a software vendor says that a product is "intuitive" he
means the exact opposite.


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Author sorting

2008-08-06 Thread Mark H. Wood
Well, it does indeed seem that this is not dependent on the PostgreSQL
version, because I see the same incorrect behavior out of version
8.3.3.

The immediate problem is not the lack of ORDER BY; the immediate
problem is that ORDER BY does not seem to work for these data.  I
tried the same experiment, completely unconnected with DSpace, and got
the same result:  "b" sorts before some "," and after others...or,
more likely, the data are returned in entry order regardless of ORDER
BY.  I've tested both CHAR and VARCHAR and they both do this.  INT
columns are ordered properly.

-- 
Mark H. Wood, Lead System Programmer   [EMAIL PROTECTED]
Typically when a software vendor says that a product is "intuitive" he
means the exact opposite.



pgplKeVAPPbeU.pgp
Description: PGP signature
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] utf8 problems. Some chars are stored correctly in database, others are not.

2008-08-06 Thread KlausDK

We just upgraded to rev. 3035 . The problem is still there.

It works fine in jspui, but not in xmlui. 
-- 
View this message in context: 
http://www.nabble.com/utf8-problems.-Some-chars-are-stored-correctly-in-database%2C-others-are-not.-tp18733315p18848345.html
Sent from the DSpace - Tech mailing list archive at Nabble.com.


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Author sorting

2008-08-06 Thread Kasthuri, Sriram
 
I feel the problem is not with the postgres version. If you look into
org.dspace.browse.BrowseItem.java you can see the below SQL's holding
the values for browse display and you can notice the query is not
ordered by the text_value. We have our dspace running on 1.4.2 and I'm
not sure whether it's already been taken care in 1.5 version.

You need to change it as below and run your build script for compiling
the class to make the browse display ordered by Author


/** query to get the text value of a metadata element only (qualifier is
NULL) */
private String getByMetadataElement = "SELECT
text_value,text_lang,element,qualifier FROM metadatavalue,
metadatafieldregistry, metadataschemaregistry " +
"WHERE metadatavalue.item_id = ? " +
" AND
metadatavalue.metadata_field_id =
metadatafieldregistry.metadata_field_id " +
" AND metadatafieldregistry.element
= ? " +
" AND
metadatafieldregistry.qualifier IS NULL " +
" AND
metadatafieldregistry.metadata_schema_id=metadataschemaregistry.metadata
_schema_id " +
" AND
metadataschemaregistry.short_id = ? order by text_value";

/** query to get the text value of a metadata element and
qualifier */
private String getByMetadata = "SELECT
text_value,text_lang,element,qualifier FROM metadatavalue,
metadatafieldregistry, metadataschemaregistry " +
"WHERE metadatavalue.item_id = ? " +
" AND
metadatavalue.metadata_field_id =
metadatafieldregistry.metadata_field_id " +
" AND metadatafieldregistry.element
= ? " +
" AND
metadatafieldregistry.qualifier = ? " +
" AND
metadatafieldregistry.metadata_schema_id=metadataschemaregistry.metadata
_schema_id " +
" AND
metadataschemaregistry.short_id = ? order by text_value";

/** query to get the text value of a metadata element with the
wildcard qualifier (*) */
private String getByMetadataAnyQualifier = "SELECT
text_value,text_lang,element,qualifier FROM metadatavalue,
metadatafieldregistry, metadataschemaregistry " +
"WHERE metadatavalue.item_id = ? " +
" AND
metadatavalue.metadata_field_id =
metadatafieldregistry.metadata_field_id " +
" AND metadatafieldregistry.element
= ? " +
" AND
metadatafieldregistry.metadata_schema_id=metadataschemaregistry.metadata
_schema_id " +
" AND
metadataschemaregistry.short_id = ? order by text_value";



Cheers,
Sri

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Blanco,
Jose
Sent: 05 August 2008 19:07
To: dspace-tech@lists.sourceforge.net
Subject: [Dspace-tech] Author sorting

I was hoping that the our new version of postgres ( 8.1.11 ) would solve
the problem we see when authors are browsed.  Here is the problem:

Suppose we have the following 3 authors:

 Ta, A
 Ta, Z
 Tab, A

I would expect them to show up in the oder shown above when browsing by
author, but instead I get:

 Ta, A
 Tab, A
 Ta, Z

Which as you can see is not really the desired behavior. I created a
test table and loaded these values into a field of type text, and then
issued the following query:

 select * from test order by 1;
   a

 Ta, A
 Tab, A
 Ta, Z
(3 rows)

So I can see why Dspace is displaying this in this order.

The funny thing is that I'm fairly certain that I have seen the desired
ordering in some Dspace instances, so I'm not sure why ours is not
sorting correctly.  I'm running dspace 1.5.  Does this have to do with a
postgres or dspace setting?

Thank you!
Jose


-
This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the
world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
DSpace-tech mailing list
DSpace-tech@lists.sour