Re: [Dspace-tech] kill handle server process ids (George Vernon)

2010-01-22 Thread Filippos Kolovos
Hi George,

You can also try ps cauxf | grep java,
the processes started as dspace, one of them is the handle server and the 
other
the tomcat. The one under dsrun is the handle server, unless you are not 
running anything else
with dsrun at the time

Regards,


-- 
Filippos Kolovos
Software Systems Analyst  Engineer
M.Sc. (Eng.) in Data Communications

Automation  Networking Department
University of Macedonia Library
Egnatia 156, P.O.Box 1591
540 06 Thessaloniki, Greece

E-Mail: f.kolo...@ieee.org,
   filip...@uom.gr
Profile: http://www.linkedin.com/in/filipposkolovos
---


- Original Message -  Message: 1
 Date: Thu, 21 Jan 2010 12:30:56 +
 From: George Vernon george.ver...@plymouth.ac.uk
 Subject: [Dspace-tech]  kill handle server process ids
 To: dspace-tech@lists.sourceforge.net
 dspace-tech@lists.sourceforge.net
 Message-ID:
 e3e8141563695f4da9fa39fa3c06e7c86849ab6...@ils130.uopnet.plymouth.ac.uk

 Content-Type: text/plain; charset=us-ascii


 I'm fairly new to Dspace

 Does anyone know a quick way to locate the process id of a handle 
 server. I need to kill the process.

 Cheers

 Kevin

 Hi Kevin,

 On a Unix type platform you could use:

  lsof | grep hdl

 the pid is the second column.

 George
 ILS, University of Plymouth




--
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Can't get LDAP to work in DSpace 1.5.1 - Please HELP!

2009-10-27 Thread Filippos Kolovos
Hello there,

I have enabled the LDAP server in our institution and I also had some 
problems during the process.

At first you have to make sure that there's no firewall behind the LDAP 
server that prohibits dspace from accessing the directory.

Secondly, to answer a question you pose below, if you need to authenticate 
via LDAP *only* then you do not need to use both authentication
methods for that. Only the LDAP method will suffice. However, please note 
that enabling only the LDAP method will prohibit existing users
in the dspace database (i.e. users that have registered themselves in 
dspace) to login in the future, since only the LDAP method will be 
available.

Third, the files that are actually used to authenticate in LDAP (and via 
password authentication) are in the directory:
dspace-source-release/dspace-api/src/main/java/org/dspace/authenticate and 
they are the files: LDAPAuthentication.java and PasswordAuthentication.java.
Furthermore, in the 
dspace-source-release/dspace-jspui/dspace-jspui-api/src/main/java/org/dspace/app/webui/servlet
 
you will find the LDAPServlet.java
file that controls what JSP file is being displayed to the user according to 
the parameter ldap.enable.

Also, in the dspace.cfg file, make sure where you edit the authentication 
methods, to edit them *in the file* and not pasting the authentication 
method
from an external source, since sometimes it can get somehow corrupted and 
it does not see that you have enabled an authentication method.

Also in the log directory of the running instance of dspace, e.g. 
/dspace/log/ the file dspace.log, or dspace.log.1, etc records some useful 
information
during the LDAP authentication process that may actually point the errors 
that prevent the LDAP from working properly.

I hope that I have helped.

Best Regards,

-Fk

-- 
Filippos Kolovos
Software Systems Analyst  Engineer
M.Sc. (Eng.) in Data Communications

Automation  Networking Department
University of Macedonia Library
Egnatia 156, P.O.Box 1591
540 06 Thessaloniki, Greece

E-Mail: f.kolo...@ieee.org,
   filip...@uom.gr
Profile: http://www.linkedin.com/in/filipposkolovos
---


- Original Message - 
Date: Thu, 22 Oct 2009 15:33:13 -0500
From: Thornton, Susan M. (LARC-B702)[RAYTHEON TECHNICAL SERVICES
   COMPANY]   susan.m.thorn...@nasa.gov
Subject: [Dspace-tech] Can't get LDAP to work in DSpace 1.5.1 - Please
   HELP!
To: dspace-tech@lists.sourceforge.net
   dspace-tech@lists.sourceforge.net
Message-ID:
   03de6124b1f32240b3692ed5e591ed1604de005...@ndmsscc07.ndc.nasa.gov
Content-Type: text/plain; charset=us-ascii

We have been struggling for awhile trying to get LDAP to work in DSpace 
1.5.1 and I hope someone can help.  I am new to LDAP and have followed the 
instructions in the doc. but something's still not right.

First, I want to make sure I understand what LDAP is supposed to do for me 
in DSpace:
1.   If I've never been on the DSpace site before, I click on 
Register, which takes me to another logon screen that prompts me to enter 
Userid, password, and email address.  When I have entered this information, 
DSpace goes out to LDAP and looks for whatever parameters I have set up in 
the dspace.cfg file and then, based on those parameters, it tries to find me 
in LDAP.  If it finds me, if I have autoregister turned on, I get registered 
and an e-person record gets added to DSpace with my appropriate netid.  If 
it doesn't find me, I can still register by filling out all the fields 
(registering myself).
 Or
2.  If I've never been on the DSpace site before, I click on Sign in which 
takes me to the logon screen that only prompts me to enter my Userid and 
password.  When I have entered this information, DSpace goes out to LDAP and 
looks for whatever parameters I have set up in the dspace.cfg file and then, 
based on those parameters, it tries to find me in LDAP.  If it finds me, if 
I have autoregister turned on, I get registered and an e-person record gets 
added to DSpace with my appropriate netid.  If it doesn't find me, I can 
still register by filling out all the fields (registering myself).

I downloaded an LDAP browser and here is how I find the record I want:

ou=people,dc=nasa,dc=gov
filter on agencyUID=swalkthor to get to record.

Here are my parameters from dspace.cfg:

 Stackable Authentication Methods #
# Stack of authentication methods
#  (See org.dspace.authenticate.AuthenticationManager)
plugin.sequence.org.dspace.authenticate.AuthenticationMethod = \
   org.dspace.authenticate.PasswordAuthentication, \
   org.dspace.authenticate.LDAPAuthentication
QUESTION:  Do I need both Password and LDAP Authentication in there if I'm 
using LDAP to authenticate?

 PasswordAuthentication options 
# Only emails ending in the following domains are allowed to self-register
# Example - example.com domain : @example.com

[Dspace-tech] Take Task button does not work

2009-05-20 Thread Filippos Kolovos

***


Has anybody else faced the same problem?

Thank you in advance,

-Fk

-- 
Filippos Kolovos
Software Systems Analyst  Engineer
M.Sc. (Eng.) in Data Communications

Automation  Networking Department
University of Macedonia Library
Egnatia 156, P.O.Box 1591
540 06 Thessaloniki, Greece

E-Mail: f.kolo...@ieee.org,
   filip...@uom.gr
Profile: http://www.linkedin.com/in/filipposkolovos
Phone: +30-2310-891-826
---

--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables 
unlimited royalty-free distribution of the report engine 
for externally facing server and web deployment. 
http://p.sf.net/sfu/businessobjects___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Generate Sitemaps script problem

2009-04-28 Thread Filippos Kolovos
Dear All,

I have found the answer to the problem below. Although I have installed jdk6 I 
hadn't updated my PATH
environment varibale nor the alternatives system, which used the 1.4 JRE 
installed at another time, which does not have
the method getCanonicalName because it was defined in JRE 1.5 and above.

I followed the easy way to correct this, by updating my PATH to include the bin 
subdir of my jdk6 and later on I'll update my alternatives
package as well.

-Fk

-- 
Filippos Kolovos
Software Systems Analyst  Engineer
M.Sc. (Eng.) in Data Communications

Automation  Networking Department
University of Macedonia Library
Egnatia 156, P.O.Box 1591
540 06 Thessaloniki, Greece

E-Mail: f.kolo...@ieee.org,
   filip...@uom.gr
Profile: http://www.linkedin.com/in/filipposkolovos
---


  - Original Message - 
  From: Filippos Kolovos 
  To: Dspace-general-list 
  Cc: Dspace-Tech-List 
  Sent: Tuesday, April 28, 2009 1:14 PM
  Subject: Generate Sitemaps script problem


  Dear all,

  I am using JDK 6 update 13, correctly have set my JAVA_HOME environment 
variable
  but when I execute the [dspace]/bin/generate-sitemaps script it fails with 
the error:

  Exception in thread main java.lang.NoSuchMethodError: method 
java.lang.Class.getCanonicalName with signature ()Ljava.lang.String; was not 
found.
 at org.dspace.app.sitemap.GenerateSitemaps.main(GenerateSitemaps.java:82)

  I am deploying Dspace 1.5.2. 

  Thanks for any help provided.

  -Fk

  -- 
  Filippos Kolovos
  Software Systems Analyst  Engineer
  M.Sc. (Eng.) in Data Communications

  Automation  Networking Department
  University of Macedonia Library
  Egnatia 156, P.O.Box 1591
  540 06 Thessaloniki, Greece

  E-Mail: f.kolo...@ieee.org,
 filip...@uom.gr
  Profile: http://www.linkedin.com/in/filipposkolovos
  Phone: +30-2310-891-826
  ---

--
Register Now  Save for Velocity, the Web Performance  Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance  Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] Generate Sitemaps script problem

2009-04-28 Thread Filippos Kolovos
Dear all,

I am using JDK 6 update 13, correctly have set my JAVA_HOME environment variable
but when I execute the [dspace]/bin/generate-sitemaps script it fails with the 
error:

Exception in thread main java.lang.NoSuchMethodError: method 
java.lang.Class.getCanonicalName with signature ()Ljava.lang.String; was not 
found.
   at org.dspace.app.sitemap.GenerateSitemaps.main(GenerateSitemaps.java:82)

I am deploying Dspace 1.5.2. 

Thanks for any help provided.

-Fk

-- 
Filippos Kolovos
Software Systems Analyst  Engineer
M.Sc. (Eng.) in Data Communications

Automation  Networking Department
University of Macedonia Library
Egnatia 156, P.O.Box 1591
540 06 Thessaloniki, Greece

E-Mail: f.kolo...@ieee.org,
   filip...@uom.gr
Profile: http://www.linkedin.com/in/filipposkolovos
Phone: +30-2310-891-826
---

--
Register Now  Save for Velocity, the Web Performance  Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance  Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Using apache mod_proxy to forward dspace/tomcat

2008-06-05 Thread Filippos Kolovos
-
Good morning.

I think that you should either use the mod_proxy_ajp module (distributed 
with Apache 2.2),
or mod_jk module (distributed with Apache 2.0) to forward requests from 
Apache to Tomcat.

I do not think that with the Rewrite Engine you could work out the 
configuration correctly.

With the mod_jk case, you have to load the module mod_jk.so with

LoadModule jk_module /path/to/apache/modules/apache/mod_jk.so in 
mod_jk.conf in /etc/httpd/conf.dand then in /etc/httpd/conf/httpd.conf to 
use the JkMount directive instead of the RewriteRule and Engine to
forward all jsp and servlet requests to the proper ajp worker. For example 
the following directives send all requests ending in .jsp or beginning with 
/servlet to the ajp13 worker: JkMount /*.jsp ajp13
JkMount /servlet/* ajp13
On the other hand, if you use Apache 2.2 then you possibly have the 
mod_proxy_ajp module instead of the mod_jk. Thelatter was replaced in the 
newer version of apache. In that case you have to go to the 
/etc/httpd/conf.d/proxy_ajp.conf and use ProxyPass directives and/or Proxy 
* directives
to allow/deny access to Tomcat serving. You can Google the directives above 
in order to check some examples on how to use them.Normally, mod_proxy_ajp 
is included in Apache 2.2, but just to make sure, check out its existence 
first before issuing the commands.
Best regards,-FkOn Wed, Jun 4, 2008 at 10:04 PM, 
[EMAIL PROTECTED] wrote:



  Message: 1
  Date: Wed, 04 Jun 2008 16:05:41 +0200
  From: [EMAIL PROTECTED]
  Subject: [Dspace-tech] Using apache mod_proxy to forward dspace/tomcat
  To: dspace-tech@lists.sourceforge.net
  Message-ID: [EMAIL PROTECTED]
  Content-Type: text/plain; charset=iso-8859-1


  Normally, forwarding tomcat apps with mod_proxy is easy.

  For example

  VirtualHost *:80

  ServerAdmin [EMAIL PROTECTED]

  ServerName coin.security-review.net:80

  ProxyRequests Off

  ProxyPreserveHost On

  RewriteEngine On

  RewriteRule ^/(.*) http://localhost:8080/xmlui/$1 [P,L]

  ProxyPassReverse / http://localhost:8080/xmlui/

  CustomLog /usr/local/apache2/logs/coin-access_log combined

  /VirtualHost

  By this does not work with dspace, server cannot find xmlui directory
  when accessing a page.

  Does someone have a solution?




-- 
Filippos Kolovos
Software Systems Analyst  Engineer
M.Sc. (Eng.) in Data Communications

Automation  Networking Department
University of Macedonia Library
Egnatia 156, P.O.Box 1591
540 06 Thessaloniki, Greece

E-Mail: [EMAIL PROTECTED],
   [EMAIL PROTECTED]
Profile: http://www.linkedin.com/in/filipposkolovos
Phone: +30-2310-891-826
---


-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Using apache mod_proxy to forward dspace/tomcat

2008-06-05 Thread Filippos Kolovos
-
 Good morning.

 I think that you should either use the mod_proxy_ajp module (distributed 
with Apache 2.2),
or mod_jk module (distributed with Apache 2.0) to forward requests from 
Apache to Tomcat.

 I do not think that with the Rewrite Engine you could work out the
 configuration correctly.

 With the mod_jk case, you have to load the module mod_jk.so with
LoadModule jk_module /path/to/apache/modules/apache/mod_jk.so in
 mod_jk.conf in /etc/httpd/conf.d and then in /etc/httpd/conf/httpd.conf
you have to use the JkMount directive instead of the RewriteRule and Engine 
to
forward all jsp and servlet requests to the proper ajp worker.

For example the following directives send all requests ending in .jsp or 
beginning with
 /servlet to the ajp13 worker:

JkMount /*.jsp ajp13
JkMount /servlet/* ajp13

On the other hand, if you use Apache 2.2 then you possibly have the
 mod_proxy_ajp module instead of the mod_jk. The latter was replaced in the
 newer version of apache. In that case you have to go to the 
/etc/httpd/conf.d/proxy_ajp.conf and
use ProxyPass directives and/or Proxy * directives to allow/deny access to 
Tomcat serving.
You can Google-up the directives above in order to check some examples on 
how to use them.
Normally, mod_proxy_ajp is included by default in Apache 2.2, but just to 
make sure, check out its existence
before configuring.

Best regards,

-Fk

On Wed, Jun 4, 2008 at 10:04 PM,

[EMAIL PROTECTED] wrote:



  Message: 1
  Date: Wed, 04 Jun 2008 16:05:41 +0200
  From: [EMAIL PROTECTED]
  Subject: [Dspace-tech] Using apache mod_proxy to forward dspace/tomcat
  To: dspace-tech@lists.sourceforge.net
  Message-ID: [EMAIL PROTECTED]
  Content-Type: text/plain; charset=iso-8859-1


  Normally, forwarding tomcat apps with mod_proxy is easy.

  For example

  VirtualHost *:80

  ServerAdmin [EMAIL PROTECTED]

  ServerName coin.security-review.net:80

  ProxyRequests Off

  ProxyPreserveHost On

  RewriteEngine On

  RewriteRule ^/(.*) http://localhost:8080/xmlui/$1 [P,L]

  ProxyPassReverse / http://localhost:8080/xmlui/

  CustomLog /usr/local/apache2/logs/coin-access_log combined

  /VirtualHost

  By this does not work with dspace, server cannot find xmlui directory
  when accessing a page.

  Does someone have a solution?




 -- 
 Filippos Kolovos
 Software Systems Analyst  Engineer
 M.Sc. (Eng.) in Data Communications

 Automation  Networking Department
 University of Macedonia Library
 Egnatia 156, P.O.Box 1591
 540 06 Thessaloniki, Greece

 E-Mail: [EMAIL PROTECTED],
   [EMAIL PROTECTED]
 Profile: http://www.linkedin.com/in/filipposkolovos
 ---


-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] Cleanup Utility

2008-05-09 Thread Filippos Kolovos
Dear All,

I would like to pose a question concerning the Clean utility of Dspace 1.4.1

When I execute it, it commences normally writing:
Cleaning the asset store
2008-05-09 12:52:50,590 INFO  org.dspace.storage.bitstore.Cleanup @ Cleaning up 
asset store
2008-05-09 12:52:50,644 INFO  org.dspace.core.ConfigurationManager @ DSpace 
logging installed using log4j.properties

an then it terminates with the error: 

Exception in thread main java.lang.OutOfMemoryError

or: 

GC Warning: Out of Memory!  Returning NIL!
GC Warning: Out of Memory!  Returning NIL!
GC Warning: Out of Memory!  Returning NIL!
*** Catastrophic failure while handling uncaught exception.

Our servers consist of 2 GB ram! I also tried to increase the Tomcat RAM in 
JAVA_OPTS
by issuing JAVA_OPTS=JAVA_OPTS=-Xmxother_value_here -Xmsand_here
but with no luck!

Has anybody else encountered the same problem?

Thank you for your time.

Kind Regards,

-Fk



-- 
Filippos Kolovos
Software Systems Analyst  Engineer
M.Sc. (Eng.) in Data Communications

Automation  Networking Department
University of Macedonia Library
Egnatia 156, P.O.Box 1591
540 06 Thessaloniki, Greece

E-Mail: [EMAIL PROTECTED],
   [EMAIL PROTECTED]
Profile: http://www.linkedin.com/in/filipposkolovos
---

-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] DSpace-tech Digest, Vol 23, Issue 3

2008-03-18 Thread Filippos Kolovos
Dear Satya,

I just came across your problem in the dspace lists and I think that we may 
be of assistance.
First of all, the problem is generated from Tomcat and not from Dspace, 
since this is a 500-server error.
Also, The problem to your situation is this I after the method call. It is 
not certain how it got there
but the sure thing about it is that when the application got compiled, this 
I got somehow appended
to the getSize() method, while it shouldn't.

First of all, according to the error message below, this erroneous call is 
made from the java file 
org.apache.jsp.submit.show_002duploaded_002dfile_jsp:258, at line 258,
which is an internal-to-the-Tomcat server file. Actually the call is made 
from it's corresponding .class file, but it is the same thing eventually.
In order to see this file as Tomcat sees it, you have to go to the 
directory tomcat-dir/work/Catalina/localhost/_/org/apache/jsp/submit/, or 
wherever
you can find this directory structure and edit the file 
show_002duploaded_002dfile_jsp.java at line 258. In that file you may,or 
may not see this irritating I but in it's corresponding .class file it 
exists. In order to correct this error you have to recompile Dspace but in a 
manner that the re-compilation will affect the erroneous file. A simple ant 
fresh-install won't do the job if you don't touch anything and in 
particular the file in question.

You essentially have to replace this file with the same-new version of it. 
These files at this work directory of Tomcat are generated during 
compilation from the corresponding
jsp directory of Dspace. So, in order to re-generate the erroneous file go 
to dspace-dir/jsp/submit and edit the jsp file show-uploaded-file.jsp. 
Go at the line where it
calls this erroneous method (i.e. getSize()), where you will not see any I's 
hanging around but it doesn't matter. Just do a backspace and a space 
right after the getSize(), so that the file will get modified and then go 
to dspace-dir and after stopping Tomcat issue ant update. This command 
will refresh the installation of the Dspace but without messing
with the database as the fresh-install method does. Then erase the dspace 
webapp from the Webapps directory of Tomcat and restart Tomcat.

Cross your fingers and retry. If it generates the same problem again but at 
a different method, repeat the process above.

We hope that we have helped you.

Kind Regards,

-Fk

-- 
Filippos Kolovos
Software Systems Analyst  Engineer
M.Sc. (Eng.) in Data Communications

Automation  Networking Department
University of Macedonia Library
Egnatia 156, P.O.Box 1591
540 06 Thessaloniki, Greece

E-Mail: [EMAIL PROTECTED],
   [EMAIL PROTECTED]
Profile: http://www.linkedin.com/in/filipposkolovos
---


- Original Message - 
From: [EMAIL PROTECTED]
To: dspace-tech@lists.sourceforge.net
Sent: Monday, March 03, 2008 1:48 PM
Subject: DSpace-tech Digest, Vol 23, Issue 3

  -Original Message-
  From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] Behalf Of Satya 
 Ranjan
 Sahu
  Sent: Friday, February 29, 2008 5:30 PM
  To: DSpace
  Subject: [Dspace-tech] Error in Submitting the Bitstream - Need help


  Dear members,
  I am facing problem at the step of file uploading. When I click on
 next after browsing the file, it shows the following error. Please help me
 to sort out the problem.

  -Original Message-
  From: Satya Ranjan Sahu [mailto:[EMAIL PROTECTED]
  Sent: Thursday, February 28, 2008 3:34 PM
  To: DSpace
  Subject: Error in submitting the Bitsream


  When I am trying to upload the bitsteam it is showing the following 
 error.
 The problem started showing after fresh_install today due to modification 
 in
 some configuration. The DSpace version is 1.4.2.
 java.lang.NoSuchMethodError: org.dspace.content.Bitstream.getSize()I

 org.apache.jsp.submit.show_002duploaded_002dfile_jsp._jspService(org.apache.
 jsp.submit.show_002duploaded_002dfile_jsp:258)
 org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3
 22)
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
 org.dspace.app.webui.util.JSPManager.showJSP(JSPManager.java:91)

 org.dspace.app.webui.servlet.SubmitServlet.showProgressAwareJSP(SubmitServle
 t.java:2053)

 org.dspace.app.webui.servlet.SubmitServlet.showUploadFileList(SubmitServlet.
 java:1987)

 org.dspace.app.webui.servlet.SubmitServlet.processChooseFile(SubmitServlet.j
 ava:1136)
 org.dspace.app.webui.servlet.SubmitServlet.doDSPost(SubmitServlet.java:332)

 org.dspace.app.webui.servlet.DSpaceServlet.processRequest(DSpaceServlet.java
 :147)
 org.dspace.app.webui.servlet.DSpaceServlet.doPost

Re: [Dspace-tech] Error in Submitting the Bitstream - Need help

2008-03-18 Thread Filippos Kolovos
Sorry for re-posting - I forgot to change the subject line in my previous 
post. :-)

Dear Satya,

I just came across your problem in the dspace lists and I think that we may
be of assistance.
First of all, the problem is generated from Tomcat and not from Dspace,
since this is a 500-server error.
Also, The problem to your situation is this I after the method call. It is
not certain how it got there
but the sure thing about it is that when the application got compiled, this
I got somehow appended
to the getSize() method, while it shouldn't.

First of all, according to the error message below, this erroneous call is
made from the java file
org.apache.jsp.submit.show_002duploaded_002dfile_jsp:258, at line 258,
which is an internal-to-the-Tomcat server file. Actually the call is made
from it's corresponding .class file, but it is the same thing eventually.
In order to see this file as Tomcat sees it, you have to go to the
directory tomcat-dir/work/Catalina/localhost/_/org/apache/jsp/submit/, or
wherever
you can find this directory structure and edit the file
show_002duploaded_002dfile_jsp.java at line 258. In that file you may,or
may not see this irritating I but in it's corresponding .class file it
exists. In order to correct this error you have to recompile Dspace but in a
manner that the re-compilation will affect the erroneous file. A simple ant
fresh-install won't do the job if you don't touch anything and in
particular the file in question.

You essentially have to replace this file with the same-new version of it.
These files at this work directory of Tomcat are generated during
compilation from the corresponding
jsp directory of Dspace. So, in order to re-generate the erroneous file go
to dspace-dir/jsp/submit and edit the jsp file show-uploaded-file.jsp.
Go at the line where it
calls this erroneous method (i.e. getSize()), where you will not see any I's
hanging around but it doesn't matter. Just do a backspace and a space
right after the getSize(), so that the file will get modified and then go
to dspace-dir and after stopping Tomcat issue ant update. This command
will refresh the installation of the Dspace but without messing
with the database as the fresh-install method does. Then erase the dspace
webapp from the Webapps directory of Tomcat and restart Tomcat.

Cross your fingers and retry. If it generates the same problem again but at
a different method, repeat the process above.

We hope that we have helped you.

Kind Regards,

-Fk

-- 
Filippos Kolovos
Software Systems Analyst  Engineer
M.Sc. (Eng.) in Data Communications

Automation  Networking Department
University of Macedonia Library
Egnatia 156, P.O.Box 1591
540 06 Thessaloniki, Greece

E-Mail: [EMAIL PROTECTED],
   [EMAIL PROTECTED]
Profile: http://www.linkedin.com/in/filipposkolovos
---


- Original Message - 
From: [EMAIL PROTECTED]
To: dspace-tech@lists.sourceforge.net
Sent: Monday, March 03, 2008 1:48 PM
Subject: DSpace-tech Digest, Vol 23, Issue 3

  Sent: Friday, February 29, 2008 5:30 PM
  To: DSpace
  Subject: [Dspace-tech] Error in Submitting the Bitstream - Need help


  Dear members,
  I am facing problem at the step of file uploading. When I click on
 next after browsing the file, it shows the following error. Please help me
 to sort out the problem.

  -Original Message-
  From: Satya Ranjan Sahu [mailto:[EMAIL PROTECTED]
  Sent: Thursday, February 28, 2008 3:34 PM
  To: DSpace
  Subject: Error in submitting the Bitsream


  When I am trying to upload the bitsteam it is showing the following
 error.
 The problem started showing after fresh_install today due to modification
 in
 some configuration. The DSpace version is 1.4.2.
 java.lang.NoSuchMethodError: org.dspace.content.Bitstream.getSize()I

 org.apache.jsp.submit.show_002duploaded_002dfile_jsp._jspService(org.apache.
 jsp.submit.show_002duploaded_002dfile_jsp:258)
 org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3
 22)
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
 org.dspace.app.webui.util.JSPManager.showJSP(JSPManager.java:91)

 org.dspace.app.webui.servlet.SubmitServlet.showProgressAwareJSP(SubmitServle
 t.java:2053)

 org.dspace.app.webui.servlet.SubmitServlet.showUploadFileList(SubmitServlet.
 java:1987)

 org.dspace.app.webui.servlet.SubmitServlet.processChooseFile(SubmitServlet.j
 ava:1136)
 org.dspace.app.webui.servlet.SubmitServlet.doDSPost(SubmitServlet.java:332)

 org.dspace.app.webui.servlet.DSpaceServlet.processRequest(DSpaceServlet.java
 :147)
 org.dspace.app.webui.servlet.DSpaceServlet.doPost(DSpaceServlet.java:105

Re: [Dspace-tech] Help! Unable to pg_restore, utterly confused

2008-01-24 Thread Filippos Kolovos
Dear Sir,

We had similar problems concerning the database restore.
The difference between us, is that we are using the pg_dumpall command, 
which exports
all the transactions of the database (i.e. with the relations creation, the 
user creations, etc).

Without knowing whether we could be of any help, I provide you with what we 
do in order
to restore our database.

1) With the pg_dumpall tool we create several bzipped2 dump files (i.e. 
database-dump-date.bzip2)
2) Choosing the desired bzipped file, we unzip it.
3) As root we execute psql -U postgres -f dbfilename, where the 
dbfilename is the extracted bzipped file.
4) We do an ant update to the dspace installation
5) We restart postgres and Tomcat

After that everything is OK. We have followed this prodecure to several 
dspace installations we have in our institution
and everything works out fine.

However, I would suggest to try this out to a test db first, because the 
information above is provided as is, with no warranty
of their success.

Hoping that we have helped you

Best Regards,

-Fk

-- 
Filippos Kolovos
Software Systems Analyst  Engineer
M.Sc. (Eng.) in Data Communications

Automation  Networking Department
University of Macedonia Library
Egnatia 156, P.O.Box 1591
540 06 Thessaloniki, Greece

E-Mail: [EMAIL PROTECTED],
   [EMAIL PROTECTED]
Profile: http://www.linkedin.com/in/filipposkolovos
---


- Original Message - 

 Message: 1
 Date: Thu, 24 Jan 2008 09:31:32 -0500
 From: Mark Diggory [EMAIL PROTECTED]
 Subject: Re: [Dspace-tech] Help! Unable to pg_restore, utterly
 confused
 To: Steve Thomas [EMAIL PROTECTED]
 Cc: Dspace-Tech dspace-tech@lists.sourceforge.net
 Message-ID: [EMAIL PROTECTED]
 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes

 On Jan 23, 2008, at 11:53 PM, Steve Thomas wrote:

 Yup, sorry -- should have included that.

 Dump was done using:

 /usr/local/pgsql/bin/pg_dump \
 --verbose \
 --oids \
 --create \
 --format=c \
 --username=dspace \
 dspace  dumpfile


 You might try dumping to a file explicitly ( -f dumpfile )


 pg_restore -C -d postgres -U dspace dumpfile

 but when I include -d postgres I get this error:

 I think you want to connect to the dspace database ( -d dspace )



 pg_restore: [archiver (db)] connection to database postgres
 failed: FATAL:  database postgres does not exist

 which is possibly a vital clue. Leaving out the -d postgres
 option, it seems to work -- outputs lots of CREATE TABLE messages
 etc. -- but ... results as below.

 Am I supposed to create a database named postgres after initdb?

 No


 createuser -U postgres -d -A -P dspace ; createdb -U dspace -E
 UNICODE dspace

 I usually use UTF8, I'm not sure if UNICODE is valid or not.


 -Mark



 ~
 Mark R. Diggory - DSpace Systems Manager
 MIT Libraries, Systems and Technology Services
 Massachusetts Institute of Technology
 


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Cannot delete collections from Dspace

2008-01-11 Thread Filippos Kolovos
Dear All,

Thank you very much!

Yes, that was the cause problem. With your suggestions I managed to overcome 
it.

Best Regards,

-Fk

-- 
Filippos Kolovos
Software Systems Analyst  Engineer
M.Sc. (Eng.) in Data Communications

Automation  Networking Department
University of Macedonia Library
Egnatia 156, P.O.Box 1591
540 06 Thessaloniki, Greece

E-Mail: [EMAIL PROTECTED],
   [EMAIL PROTECTED]
Profile: http://www.linkedin.com/in/filipposkolovos
---


- Original Message - 
From: Graham Triggs [EMAIL PROTECTED]
To: Filippos Kolovos [EMAIL PROTECTED]
Cc: Dspace-general-list [EMAIL PROTECTED]; Dspace-Tech-List 
dspace-tech@lists.sourceforge.net
Sent: Wednesday, January 09, 2008 4:03 PM
Subject: Re: [Dspace-tech] Cannot delete collections from Dspace


 Filippos,

 When you upgraded to 1.4.x, the DCVALUE table should have been deleted
 after it's contents were migrated over to METADATAVALUE, and a view put
 in it's place.

 It looks like this hasn't happened, and that you still have a DCVALUE
 table in your database, that has it's old contents (and there is no code
 in 1.4.x to maintain).

 Check that you correctly have a METADATAVALUE table (with the correct
 contents), and then you should be able to safely delete the DCVALUE
 table (and replace it with a view - although that probably won't be
 necessary).

 Take a look at etc/database_schema_13-14.sql for more information.

 G

 On Wed, 2008-01-09 at 15:47 +0200, Filippos Kolovos wrote:
 Dear all,

 Recently I am dealing with a problem with my Dspace installation
 (1.4.2).
 When I try to delete a collection and/or community from Dspace
 the system returns an Internal Server Error. The explanation
 of this error is shown below:

 Exception:
 org.postgresql.util.PSQLException: ERROR: update or delete on item
 violates foreign key constraint $1 on dcvalue

 at
 org.postgresql.util.PSQLException.parseServerError(PSQLException.java:139)
 at org.postgresql.core.QueryExecutor.executeV3(QueryExecutor.java:152)
 at org.postgresql.core.QueryExecutor.execute(QueryExecutor.java:100)
 at org.postgresql.core.QueryExecutor.execute(QueryExecutor.java:43)
 at
 org.postgresql.jdbc1.AbstractJdbc1Statement.execute(AbstractJdbc1Statement.java:517)
 at
 org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:50)
 at
 org.postgresql.jdbc1.AbstractJdbc1Statement.executeUpdate(AbstractJdbc1Statement.java:273)
 at
 org.apache.commons.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:101)
 at
 org.apache.commons.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:101)
 at
 org.dspace.storage.rdbms.DatabaseManager.updateQuery(DatabaseManager.java:519)
 etc, etc
 ..
 .

 The exact reason for this error seems to be that the collection id is
 referenced from another table, but isn't that what the
 system is supposed to do when deleting a community/collection?
 Shouldn't all the relations be deleted and/or get handled by
 the Dspace system?

 If I go manually into the Postgres and delete all the relations of
 one collection by hand then the items related to that collection
 remain
 in the tables. I then have to do the manual deletion process by hand
 for each item, something which is not very efficient when dealing
 with thousands of records (items).

 Does anyone have had this problem before?

 Kind Regards,

 -Fk




-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] Images in E-mail messages

2007-10-19 Thread Filippos Kolovos
Dear All,

Is there a way to include images in the e-mails that dspace sends to the users 
when they complete
certain actions? For example, when they submit an item, Dspace sends an e-mail 
to the submitter
with the message included in the dspace-dir/config/emails/submit_archive 
file. However, I tried
to include an image (with HTML), but it was unsuccessful.

Has anybody else tried that? Any response could be appreciated.

Thanks in advance.

-Fk


-- 
Filippos Kolovos
Software Systems Analyst  Engineer
M.Sc. (Eng.) in Data Communications

Automation  Networking Department
University of Macedonia Library
Egnatia 156, P.O.Box 1591
540 06 Thessaloniki, Greece

E-Mail: [EMAIL PROTECTED],
   [EMAIL PROTECTED]
Profile: http://www.linkedin.com/in/filipposkolovos
---

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Problem with altering language

2007-09-03 Thread Filippos Kolovos
Dear Hlia,

Check in the webapps directory of Tomcat that you have the new dspace.war 
file which was built during the
recompilation. If not, copy it from the dspace-install-dir/build directory 
to the webapps directory of Tomcat.
Also, I have noticed in my installation that if in the webapps directory a 
previous extracted war file (of dspace) exists
as a directory, then in order for the new file to be extracted you have to 
delete the old directory, otherwise nothing happens.

Shut down Tomcat, do all the above actions and then restart Tomcat. Wait a 
minute for the file to be extracted (it gets extracted
automatically during Tomcat restart) and then check it out.

Regards,

-Fk


-- 
Filippos N Kolovos
Software Systems Analyst  Engineer
M.Sc. (Eng.) in Data Communications

Automation  Networking Department
University of Macedonia Library
Egnatia 156, P.O.Box 1591
540 06 Thessaloniki, Greece

E-Mail: [EMAIL PROTECTED],
   [EMAIL PROTECTED]
---



 Message: 3
 Date: Mon, 3 Sep 2007 11:15:50 +0300
 From: Hlias Stavrakis [EMAIL PROTECTED]
 Subject: [Dspace-tech] Problem with altering language
 To: dspace-tech@lists.sourceforge.net
 Message-ID: [EMAIL PROTECTED]
 Content-Type: text/plain; charset=iso-8859-7

 Hi,
 i put the new Message_xx.properties in config/language_packs/ directory 
 and rebuilt the dspace.
 Then i restarted the tomcat but nothing happened, the language was the 
 same. Even if, when i remove
 the English Message.properties file and execute the same process the 
 English version is loaded properly.

 Any comment will be helpfull,
 Thanks
 -- next part --
 An HTML attachment was scrubbed...



-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now   http://get.splunk.com/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] How to build dspace with other language?

2007-07-03 Thread Filippos Kolovos
-
What you can do is make a backup copy of the Messages.properties file
and then change the messages in this file to the language you want Dspace
to be built.

However, there are two or three things that you must be careful with when 
doing
this procedure.

1) The encoding of the changed file must follow the encoding that you use in 
your web server (e.g. ISO-8859-7 for Greek), otherwise
 the characters might not display correctly.
2) The Messages.properties file that must be changed, resides in the 
/dspace/config/language-packs directory and not in /dspace/config.
 Any changes made to the file in /dspace/config will not have any 
difference to the output.
3) After any changes made, Dspace must be recompiled with ant. However, I 
would suggest closing the Postgres apart from Tomcat before doing so,
because the installation script will try to initialize the database and 
if the latter contains any data, it may be lost.

What we do in our institution for any changes we want to do to the greek 
output is that we first upload a file named greek-messages.txt with ANSI 
encoding
to a windows machine. We make the necessary changes to it and then 
re-download it to the Linux server. Then with a tool called native2ascii we 
re-encode
it to ISO8859-7, in order for the characters to display correctly according 
to our web server encoding. This was one procedure that worked for us when 
we dealt
with the same problem.

At the same time, we keep a backup of the ANSI file, since after the ISO 
encoding the output is not human-readable any more.

I hope that I have helped.

Kind Regards,



-- 
Filippos N Kolovos
Software Systems Analyst  Engineer
M.Sc. (Eng.) in Data Communications

Automation  Networking Department
University of Macedonia Library
Egnatia 156, P.O.Box 1591
540 06 Thessaloniki, Greece

E-Mail: [EMAIL PROTECTED],
   [EMAIL PROTECTED]
---


- Original Message - 
 Message: 3
 Date: Mon, 2 Jul 2007 10:59:09 +0300
 From: Hlias Stavrakis [EMAIL PROTECTED]
 Subject: [Dspace-tech] How to build dspace with other language?
 To: dspace-tech@lists.sourceforge.net
 Message-ID: [EMAIL PROTECTED]
 Content-Type: text/plain; charset=iso-8859-1

 Hi,
 i want to build dspace having a Messages_xx.properties file. What are the 
 changes that must be made
 in configuration files in order to build not with default 
 Messages.properties but with Messages_xx.properties file?

 Any comment will be helpfull,
 thanks



-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech