[Dspace-tech] Install dspace unsucessful

2009-03-31 Thread Panyarak Ngamsritragul

Hi,

I have been stuggling in installing dspace on Ubuntu 8.10 with 
dspace-1.5.1, PostgreSQL8.3, Apache Ant version 1.7.1, 
apache-maven-2.0.10, apache-tomcat-6.0.18 with no luck.

I notice in many instruction mention that after installing PostgreSQL, 
created a Unix user (name it dspace).  One needs to create a database user 
and database.  In this step, one has to become 'postgres' and issue a 
command to create a user:
   createuser -U postgres -d -A -P dspace
This could be done with no problem and I answer 'no' when asked:
   Shall the new role be allowed to create more new roles? (y/n)

As postgres, I tried to create a database:
   createdb -U dspace -E UNICODE dspace

But the command returned an error message:
createdb: could not connect to database postgres: FATAL:  Ident 
authentication failed for user "dspace"

It is possible to create the database when I 'sudo su dspace'.  This can 
even be done without specifying '-U dspace' in the command line.

Is there anything wrong in this step ?  I did do further to install the 
package, but finally failed.

--
Panyarak

On Fri, 27 Mar 2009, Ma, Wenling wrote:

> Hello everyone,
> I have successfully installed DSpace(version dspace-1.5.1, 
PostgreSQL8.3, apache-ant-1.7.1, apache-maven-2.0.10, apache-tomcat-6.0.18).

-- 
This message has been scanned for viruses and
dangerous content by MailScanner.


--
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Install dspace unsucessful

2009-03-31 Thread Mark H. Wood
On Tue, Mar 31, 2009 at 10:07:47PM +0700, Panyarak Ngamsritragul wrote:
> As postgres, I tried to create a database:
>createdb -U dspace -E UNICODE dspace
> 
> But the command returned an error message:
> createdb: could not connect to database postgres: FATAL:  Ident 
> authentication failed for user "dspace"

Rightly so.  Your user process is owned by 'postgres', not 'dspace',
and that is what the Ident daemon will report to PostgreSQL.  Your
user and database credentials do not match, and that match is required
for Ident authentication.

> It is possible to create the database when I 'sudo su dspace'.  This can 
> even be done without specifying '-U dspace' in the command line.

Yes.  Since the database/user pair in question is authenticated with
Ident, the matching usernames are sufficient.

> Is there anything wrong in this step ?  I did do further to install the 
> package, but finally failed.

Well, I think that the command should be 'createdb -O dspace -E
UNICODE dspace'.  The database needs to be owned by 'dspace' but it
need not be *created by* 'dspace'.  You should be able to use the
PostgreSQL superuser ('postgres') to create the database.

But it sounds like you have created the database properly.  Maybe you
should tell us how far you got and what the error was that has stopped you.

-- 
Mark H. Wood, Lead System Programmer   mw...@iupui.edu
Friends don't let friends publish revisable-form documents.


pgp2vHAjgpHiT.pgp
Description: PGP signature
--
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Install dspace unsucessful

2009-03-31 Thread Panyarak Ngamsritragul

Thanks a lot for your information.  I did not record all the details I did 
last time(s).  Sometimes I was stopped at 'maven package' which I learned 
from others experiences that it was the file permission issue.  Sometimes 
it seemed that I successfully went through the 'ant fresh_install', but 
could not see anything when called from browser.  I rebuilt DSpace again 
and was stopped at 'ant fresh_install'

Anyway, I will try again and let you know later.
Thanks again.
Panyarak

On Tue, 31 Mar 2009, Mark H. Wood wrote:

> On Tue, Mar 31, 2009 at 10:07:47PM +0700, Panyarak Ngamsritragul wrote:
>> As postgres, I tried to create a database:
>>createdb -U dspace -E UNICODE dspace
>>
>> But the command returned an error message:
>> createdb: could not connect to database postgres: FATAL:  Ident
>> authentication failed for user "dspace"
>
> Rightly so.  Your user process is owned by 'postgres', not 'dspace',
> and that is what the Ident daemon will report to PostgreSQL.  Your
> user and database credentials do not match, and that match is required
> for Ident authentication.
>
>> It is possible to create the database when I 'sudo su dspace'.  This can
>> even be done without specifying '-U dspace' in the command line.
>
> Yes.  Since the database/user pair in question is authenticated with
> Ident, the matching usernames are sufficient.
>
>> Is there anything wrong in this step ?  I did do further to install the
>> package, but finally failed.
>
> Well, I think that the command should be 'createdb -O dspace -E
> UNICODE dspace'.  The database needs to be owned by 'dspace' but it
> need not be *created by* 'dspace'.  You should be able to use the
> PostgreSQL superuser ('postgres') to create the database.
>
> But it sounds like you have created the database properly.  Maybe you
> should tell us how far you got and what the error was that has stopped you.

-- 
This message has been scanned for viruses and
dangerous content by MailScanner.


--
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Install dspace unsucessful

2009-03-31 Thread Van Ly
Hi Panyarak,

For next time, you'll find the createuser/createdb steps need to be done before 
the `ant fresh_install'. Something I use for testing is

# su --login dspace -c 'dropdb -i dspace'
# su --login postgres -c 'dropuser dspace'
# 
# su --login postgres -c 'createuser -U postgres -S -R -c 35 -d dspace'
# su --login dspace -c 'createdb -U dspace -E UTF8 -T template0 dspace 
"database for dspace"'

-- Van Ly 


From: Panyarak Ngamsritragul
Sent: Wed 1/04/2009 12:01 PM
To: dspace-tech@lists.sourceforge.net
Subject: Re: [Dspace-tech] Install dspace unsucessful


Thanks a lot for your information.  I did not record all the details I did 
last time(s).  Sometimes I was stopped at 'maven package' which I learned 
from others experiences that it was the file permission issue.  Sometimes 
it seemed that I successfully went through the 'ant fresh_install', but 
could not see anything when called from browser.  I rebuilt DSpace again 
and was stopped at 'ant fresh_install'

Anyway, I will try again and let you know later.
Thanks again.
Panyarak

On Tue, 31 Mar 2009, Mark H. Wood wrote:

> On Tue, Mar 31, 2009 at 10:07:47PM +0700, Panyarak Ngamsritragul wrote:
>> As postgres, I tried to create a database:
>>createdb -U dspace -E UNICODE dspace
>>
>> But the command returned an error message:
>> createdb: could not connect to database postgres: FATAL:  Ident
>> authentication failed for user "dspace"
>
> Rightly so.  Your user process is owned by 'postgres', not 'dspace',
> and that is what the Ident daemon will report to PostgreSQL.  Your
> user and database credentials do not match, and that match is required
> for Ident authentication.
>
>> It is possible to create the database when I 'sudo su dspace'.  This can
>> even be done without specifying '-U dspace' in the command line.
>
> Yes.  Since the database/user pair in question is authenticated with
> Ident, the matching usernames are sufficient.
>
>> Is there anything wrong in this step ?  I did do further to install the
>> package, but finally failed.
>
> Well, I think that the command should be 'createdb -O dspace -E
> UNICODE dspace'.  The database needs to be owned by 'dspace' but it
> need not be *created by* 'dspace'.  You should be able to use the
> PostgreSQL superuser ('postgres') to create the database.
>
> But it sounds like you have created the database properly.  Maybe you
> should tell us how far you got and what the error was that has stopped you.

-- 
This message has been scanned for viruses and
dangerous content by MailScanner.


--
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
--
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Install dspace unsucessful

2009-04-01 Thread Panyarak Ngamsritragul

Thanks for additional info.  I am now starting from the first step using 
Ubuntu's repository management system.  At the moment, I finished 
installing postgreSQL and now installing TomCat6.

In DSpace's installation instructions, I read:
"Note that DSpace will need to run as the same user as Tomcat, so you 
might want to install and run Tomcat as a user called 'dspace'."

This is very confused as it should not be possible to install any software 
package without being 'root' in Unix like system.

What should I do next ?

Panyarak

On Wed, 1 Apr 2009, Van Ly wrote:

> Hi Panyarak,
>
> For next time, you'll find the createuser/createdb steps need to be done 
> before the `ant fresh_install'. Something I use for testing is
>
> # su --login dspace -c 'dropdb -i dspace'
> # su --login postgres -c 'dropuser dspace'
> #
> # su --login postgres -c 'createuser -U postgres -S -R -c 35 -d dspace'
> # su --login dspace -c 'createdb -U dspace -E UTF8 -T template0 dspace 
> "database for dspace"'
>
> -- Van Ly
>
>
> From: Panyarak Ngamsritragul
> Sent: Wed 1/04/2009 12:01 PM
> To: dspace-tech@lists.sourceforge.net
> Subject: Re: [Dspace-tech] Install dspace unsucessful
>
>
> Thanks a lot for your information.  I did not record all the details I did
> last time(s).  Sometimes I was stopped at 'maven package' which I learned
> from others experiences that it was the file permission issue.  Sometimes
> it seemed that I successfully went through the 'ant fresh_install', but
> could not see anything when called from browser.  I rebuilt DSpace again
> and was stopped at 'ant fresh_install'
>
> Anyway, I will try again and let you know later.
> Thanks again.
> Panyarak
>
> On Tue, 31 Mar 2009, Mark H. Wood wrote:
>
>> On Tue, Mar 31, 2009 at 10:07:47PM +0700, Panyarak Ngamsritragul wrote:
>>> As postgres, I tried to create a database:
>>>createdb -U dspace -E UNICODE dspace
>>>
>>> But the command returned an error message:
>>> createdb: could not connect to database postgres: FATAL:  Ident
>>> authentication failed for user "dspace"
>>
>> Rightly so.  Your user process is owned by 'postgres', not 'dspace',
>> and that is what the Ident daemon will report to PostgreSQL.  Your
>> user and database credentials do not match, and that match is required
>> for Ident authentication.
>>
>>> It is possible to create the database when I 'sudo su dspace'.  This can
>>> even be done without specifying '-U dspace' in the command line.
>>
>> Yes.  Since the database/user pair in question is authenticated with
>> Ident, the matching usernames are sufficient.
>>
>>> Is there anything wrong in this step ?  I did do further to install the
>>> package, but finally failed.
>>
>> Well, I think that the command should be 'createdb -O dspace -E
>> UNICODE dspace'.  The database needs to be owned by 'dspace' but it
>> need not be *created by* 'dspace'.  You should be able to use the
>> PostgreSQL superuser ('postgres') to create the database.
>>
>> But it sounds like you have created the database properly.  Maybe you
>> should tell us how far you got and what the error was that has stopped you.
>
>

-- 
Panyarak Ngamsritragul
Department of Mechanical Engineering
Prince of Songkla University.

-- 
This message has been scanned for viruses and
dangerous content by MailScanner.


--
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Install dspace unsucessful

2009-04-01 Thread Sean Carte
2009/4/1 Panyarak Ngamsritragul :
> In DSpace's installation instructions, I read:
> "Note that DSpace will need to run as the same user as Tomcat, so you
> might want to install and run Tomcat as a user called 'dspace'."
>
> This is very confused as it should not be possible to install any software
> package without being 'root' in Unix like system.

That should probably be "might want to configure Tomcat to run as a
user called 'dspace'."

That instruction relates to the /etc/defaults/tomcat5.5 file:

TOMCAT5_USER=dspace

Sean
-- 
Sean Carte
esAL Library Systems Manager
+27 72 898 8775
+27 31 373 2490
fax: 0866741254
http://esal.dut.ac.za/

--
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Install dspace unsucessful

2009-04-01 Thread Mark H. Wood
On Wed, Apr 01, 2009 at 02:46:06PM +0700, Panyarak Ngamsritragul wrote:
> Thanks for additional info.  I am now starting from the first step using 
> Ubuntu's repository management system.  At the moment, I finished 
> installing postgreSQL and now installing TomCat6.
> 
> In DSpace's installation instructions, I read:
> "Note that DSpace will need to run as the same user as Tomcat, so you 
> might want to install and run Tomcat as a user called 'dspace'."
> 
> This is very confused as it should not be possible to install any software 
> package without being 'root' in Unix like system.

The account used to install software, and the account used to run it,
may be different.  The instructions here seem to be aimed at someone
who is installing Tomcat without the aid of a distribution's package
manager and solely for use with DSpace.  Since you are using Ubuntu's
package manager, it probably created a user account specifically for
Tomcat and installed the product to be run by that user.  I use Gentoo
Linux and the Tomcat packaged by Gentoo, and it does the same, setting
up Tomcat to run as a user named "tomcat".

The important thing here is that the user account used to run Tomcat
must have sufficient access to the DSpace files.  If Tomcat is set up
to run as a user "tomcat" then I would install DSpace in such a way
that it is owned by "tomcat", probably by just being 'su tomcat'
before installing.  You can use the 'root' account to create the
[DSpace] directory and set its ownership appropriately, before
installation.

It is difficult to document this process literally, because different
operating environments might use different account names.  If you have
some reason to run Tomcat as a particular user, then I would consider
every reference to "dspace" as a user account to be a placeholder for
the account that Tomcat uses, whatever that is.

-- 
Mark H. Wood, Lead System Programmer   mw...@iupui.edu
Friends don't let friends publish revisable-form documents.


pgpXkX1qNlkWm.pgp
Description: PGP signature
--
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Install dspace unsucessful

2009-04-01 Thread Panyarak Ngamsritragul

Dear Mark,

Your explanation is quite clear and I think I have been doing in a wrong 
way.  Someone even document something like setting directories of tomcat6 
(e.g. /etc/tomcat6 /var/lib/tomcat6 /var/cache/tomcat6 and 
/var/log/tomcat6) to be owned by user 'dspace' !!

Well, I was silly enough (ignorance enough) to follow that and finally 
caused tomcat6 unable to start !

Another big point, I read from someone's document saying that a command 
like:

update-alternatives --set java /usr/lib/jvm//usr/lib/jvm/java-6-sun/jre/bin/java

is also needed.  (Specific to Ubuntu 8.10 with sun-java6-jdk package).  Do 
we have to run this command every time when server is rebooted ?

Panyarak
Prince of Songkla University

On Wed, 1 Apr 2009, Mark H. Wood wrote:

> On Wed, Apr 01, 2009 at 02:46:06PM +0700, Panyarak Ngamsritragul wrote:
>> Thanks for additional info.  I am now starting from the first step using
>> Ubuntu's repository management system.  At the moment, I finished
>> installing postgreSQL and now installing TomCat6.
>>
>> In DSpace's installation instructions, I read:
>> "Note that DSpace will need to run as the same user as Tomcat, so you
>> might want to install and run Tomcat as a user called 'dspace'."
>>
>> This is very confused as it should not be possible to install any software
>> package without being 'root' in Unix like system.
>
> The account used to install software, and the account used to run it,
> may be different.  The instructions here seem to be aimed at someone
> who is installing Tomcat without the aid of a distribution's package
> manager and solely for use with DSpace.  Since you are using Ubuntu's
> package manager, it probably created a user account specifically for
> Tomcat and installed the product to be run by that user.  I use Gentoo
> Linux and the Tomcat packaged by Gentoo, and it does the same, setting
> up Tomcat to run as a user named "tomcat".
>
> The important thing here is that the user account used to run Tomcat
> must have sufficient access to the DSpace files.  If Tomcat is set up
> to run as a user "tomcat" then I would install DSpace in such a way
> that it is owned by "tomcat", probably by just being 'su tomcat'
> before installing.  You can use the 'root' account to create the
> [DSpace] directory and set its ownership appropriately, before
> installation.
>
> It is difficult to document this process literally, because different
> operating environments might use different account names.  If you have
> some reason to run Tomcat as a particular user, then I would consider
> every reference to "dspace" as a user account to be a placeholder for
> the account that Tomcat uses, whatever that is.
>
>

-- 
Panyarak Ngamsritragul
Department of Mechanical Engineering
Prince of Songkla University.

-- 
This message has been scanned for viruses and
dangerous content by MailScanner.


--
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Install dspace unsucessful

2009-04-01 Thread Panyarak Ngamsritragul

Hi,

I reinstall dspace using 'tomcat6' as the user of tomcat6 and dspace's 
database...  The installation seems to be alright, I guess.  You may help 
to take a look at:

The result from 'mvn package'
http://www.me.psu.ac.th/~panya/dspace/mvn_package.txt

The result from 'ant fresh_install'
http://www.me.psu.ac.th/~panya/dspace/ant_fresh.txt

I chose to create a file at /etc/tomcat6/Catalina/localhost which looks 
like:
http://www.me.psu.ac.th/~panya/dspace/dspace.xml

When I restart tomcat6, a log file says many errors:
http://www.me.psu.ac.th/~panya/dspace/catalina.2009-04-01.log

Could someone tell me what could be the causes of these errors.

Thanks in advance.
Panyarak
Prince of Songkla University, Thailand.

On Wed, 1 Apr 2009, Panyarak Ngamsritragul wrote:

> Dear Mark,
>
> Your explanation is quite clear and I think I have been doing in a wrong
> way.  Someone even document something like setting directories of tomcat6
> (e.g. /etc/tomcat6 /var/lib/tomcat6 /var/cache/tomcat6 and
> /var/log/tomcat6) to be owned by user 'dspace' !!
>
> Well, I was silly enough (ignorance enough) to follow that and finally
> caused tomcat6 unable to start !
>
> Another big point, I read from someone's document saying that a command
> like:
>
> update-alternatives --set java 
> /usr/lib/jvm//usr/lib/jvm/java-6-sun/jre/bin/java
>
> is also needed.  (Specific to Ubuntu 8.10 with sun-java6-jdk package).  Do
> we have to run this command every time when server is rebooted ?
>
> Panyarak
> Prince of Songkla University

-- 
This message has been scanned for viruses and
dangerous content by MailScanner.


--
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Install dspace unsucessful

2009-04-01 Thread Panyarak Ngamsritragul

Maybe my last post contains too much information...
In the process of 'mvn package', there is a warning:
[WARNING] The following patterns were never triggered in this artifact 
exclusion filter: o  '*:war:*'

It reported finally that the process was successful.

Running 'ant fresh_install' was also successful.

I created dspace.xml containing



in /etc/tomcat6/Catalina/localhost and then restart tomcat6.
When I read the tomcat6's log file, it contains warnings and errors like:

Apr 1, 2009 10:37:15 PM org.apache.catalina.users.MemoryUserDatabase save
WARNING: User database is not persistable - no write permissions on directory

Apr 1, 2009 10:37:16 PM org.apache.catalina.core.StandardContext processTlds
SEVERE: Error reading tld listeners javax.servlet.ServletException: Exception 
processing TLD at resource path /WEB-INF/fmt.tld in context /dspace
javax.servlet.ServletException: Exception processing TLD at resource path 
/WEB-INF/fmt.tld in context /dspace
at org.apache.catalina.startup.TldConfig.tldScanTld(TldConfig.java:557)
at org.apache.catalina.startup.TldConfig.execute(TldConfig.java:295)
at 
org.apache.catalina.core.StandardContext.processTlds(StandardContext.java:4448)
at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:4248)
at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
at 
org.apache.catalina.core.ContainerBase.access$000(ContainerBase.java:123)
at 
org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run(ContainerBase.java:145)
at java.security.AccessController.doPrivileged(Native Method)
at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:769)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
at 
org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:627)
at 
org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:553)
at 
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149)
at 
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at 
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at 
org.apache.catalina.core.StandardService.start(StandardService.java:516)
at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at 
org.apache.commons.daemon.support.DaemonLoader.start(DaemonLoader.java:177)
Caused by: java.security.AccessControlException: access denied 
(java.io.FilePermission /usr/share/java/jsp-api-2.1.jar read)
at 
java.security.AccessControlContext.checkPermission(AccessControlContext.java:342)
at 
java.security.AccessController.checkPermission(AccessController.java:553)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:549)
at java.lang.SecurityManager.checkRead(SecurityManager.java:888)
at java.util.zip.ZipFile.(ZipFile.java:126)
at java.util.jar.JarFile.(JarFile.java:150)
at java.util.jar.JarFile.(JarFile.java:87)
at sun.net.www.protocol.jar.URLJarFile.(URLJarFile.java:90)
at sun.net.www.protocol.jar.URLJarFile.getJarFile(URLJarFile.java:66)
at sun.net.www.protocol.jar.JarFileFactory.get(JarFileFactory.java:71)
at 
sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:122)
at 
sun.net.www.protocol.jar.JarURLConnection.getInputStream(JarURLConnection.java:150)
at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown 
Source)
at org.apache.xerces.impl.XMLEntityManager.startEntity(Unknown Source)
at org.apache.xerces.impl.XMLEntityManager.startDTDEntity(Unknown 
Source)
at org.a

Re: [Dspace-tech] Install dspace unsucessful

2009-04-02 Thread Robin Taylor
Hi,

It looks like you have a permissions problem somewhere. See the error in the 
log...

access denied (java.io.FilePermission /usr/share/java/jsp-api-2.1.jar read)

Could you enter 

ls -l /usr/share/java/jsp-api-2.1.jar

And tell me what it says ? Could you also run ls -l against the directory where 
you have installed tomcat and the 'dspace' directory ?

Cheers, Robin.

Actually I'm a little surprised that it is looking for that jar in that 
directory but that is another problem.

Robin Taylor
Main Library
University of Edinburgh
Tel. 0131 6515208  

> -Original Message-
> From: Panyarak Ngamsritragul [mailto:pa...@me.psu.ac.th] 
> Sent: 02 April 2009 01:10
> To: dspace-tech@lists.sourceforge.net
> Subject: Re: [Dspace-tech] Install dspace unsucessful
> 
> 
> Maybe my last post contains too much information...
> In the process of 'mvn package', there is a warning:
> [WARNING] The following patterns were never triggered in this 
> artifact exclusion filter: o  '*:war:*'
> 
> It reported finally that the process was successful.
> 
> Running 'ant fresh_install' was also successful.
> 
> I created dspace.xml containing
> 
>docBase="/dspace/webapps/jspui" debug="0"
>   reloadable="true" AllowLinking="true"
>   CachingAllowed="false"/>
> 
> in /etc/tomcat6/Catalina/localhost and then restart tomcat6.
> When I read the tomcat6's log file, it contains warnings and 
> errors like:
> 
> Apr 1, 2009 10:37:15 PM 
> org.apache.catalina.users.MemoryUserDatabase save
> WARNING: User database is not persistable - no write 
> permissions on directory
> 
> Apr 1, 2009 10:37:16 PM 
> org.apache.catalina.core.StandardContext processTlds
> SEVERE: Error reading tld listeners 
> javax.servlet.ServletException: Exception processing TLD at 
> resource path /WEB-INF/fmt.tld in context /dspace
> javax.servlet.ServletException: Exception processing TLD at 
> resource path /WEB-INF/fmt.tld in context /dspace
>   at 
> org.apache.catalina.startup.TldConfig.tldScanTld(TldConfig.java:557)
>   at 
> org.apache.catalina.startup.TldConfig.execute(TldConfig.java:295)
>   at 
> org.apache.catalina.core.StandardContext.processTlds(StandardC
> ontext.java:4448)
>   at 
> org.apache.catalina.core.StandardContext.start(StandardContext
> .java:4248)
>   at 
> org.apache.catalina.core.ContainerBase.addChildInternal(Contai
> nerBase.java:791)
>   at 
> org.apache.catalina.core.ContainerBase.access$000(ContainerBas
> e.java:123)
>   at 
> org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run(
> ContainerBase.java:145)
>   at java.security.AccessController.doPrivileged(Native Method)
>   at 
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.
> java:769)
>   at 
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
>   at 
> org.apache.catalina.startup.HostConfig.deployDescriptor(HostCo
> nfig.java:627)
>   at 
> org.apache.catalina.startup.HostConfig.deployDescriptors(HostC
> onfig.java:553)
>   at 
> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488)
>   at 
> org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149)
>   at 
> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConf
> ig.java:311)
>   at 
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(L
> ifecycleSupport.java:117)
>   at 
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
>   at 
> org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
>   at 
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
>   at 
> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
>   at 
> org.apache.catalina.core.StandardService.start(StandardService
> .java:516)
>   at 
> org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
>   at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
>   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>   at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess
> orImpl.java:57)
>   at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth
> odAccessorImpl.java:43)
>   at java.lang.reflect.Method.invoke(Method.java:616)
>   at 
> org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
>   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>   at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess
> orImpl.java:57)
>   at 
> sun.reflect.Delega

Re: [Dspace-tech] Install dspace unsucessful

2009-04-02 Thread Panyarak Ngamsritragul

ls -l /usr/share/java/jsp-api-2.1.jar gives:
-rw-r--r-- 1 root root 73029 2009-01-20 15:39 /usr/share/java/jsp-api-2.1.jar

ls -l /dspace/ gives:
total 44
drwxrwxrwx 2 tomcat6 tomcat6 4096 2009-04-01 22:00 assetstore
drwxrwxrwx 2 tomcat6 tomcat6 4096 2009-04-01 22:00 bin
drwxrwxrwx 6 tomcat6 tomcat6 4096 2009-04-01 22:00 config
drwxrwxrwx 3 tomcat6 tomcat6 4096 2009-04-01 22:00 etc
drwxrwxrwx 2 tomcat6 tomcat6 4096 2009-04-01 22:00 handle-server
drwxrwxrwx 2 tomcat6 tomcat6 4096 2009-04-01 22:00 lib
drwxrwxrwx 2 tomcat6 tomcat6 4096 2009-04-01 22:19 log
drwxrwxrwx 2 tomcat6 tomcat6 4096 2009-04-01 22:00 reports
drwxrwxrwx 2 tomcat6 tomcat6 4096 2009-04-01 22:00 search
drwxrwxrwx 2 tomcat6 tomcat6 4096 2009-04-01 22:00 upload
drwxrwxrwx 7 tomcat6 tomcat6 4096 2009-04-01 22:00 webapps

ls -l /etc/tomcat6/ gives:
total 88
drwxrwxr-x 3 root tomcat6  4096 2009-03-26 20:36 Catalina
-rw-r--r-- 1 root root 3665 2008-07-22 07:01 catalina.properties
-rw-r--r-- 1 root root 1396 2008-07-22 07:01 context.xml
-rw-r--r-- 1 root root 2370 2009-01-20 15:39 logging.properties
drwxr-xr-x 2 root root 4096 2009-04-01 20:29 policy.d
-rw-r--r-- 1 root root 6487 2009-04-01 22:32 server.xml
-rw-r- 1 root tomcat6  1274 2009-03-26 21:14 tomcat-users.xml
-rw-r--r-- 1 root root50106 2008-07-22 07:01 web.xml

ls -l /var/lib/tomcat6/ gives:
total 12
lrwxrwxrwx 1 rootroot  12 2009-04-01 20:29 conf -> /etc/tomcat6
drwxr-xr-x 2 rootroot4096 2009-04-01 20:29 lib
lrwxrwxrwx 1 rootroot  17 2009-04-01 20:29 logs -> ../../log/tomcat6
drwxr-xr-x 2 tomcat6 root4096 2009-01-20 15:40 temp
drwxrwxr-x 5 roottomcat6 4096 2009-04-01 22:09 webapps
lrwxrwxrwx 1 rootroot  19 2009-04-01 20:29 work -> ../../cache/tomcat6

--
Panyarak

On Thu, 2 Apr 2009, Robin Taylor wrote:

> Hi,
>
> It looks like you have a permissions problem somewhere. See the error in the 
> log...
>
> access denied (java.io.FilePermission /usr/share/java/jsp-api-2.1.jar read)
>
> Could you enter
>
> ls -l /usr/share/java/jsp-api-2.1.jar
>
> And tell me what it says ? Could you also run ls -l against the directory 
> where you have installed tomcat and the 'dspace' directory ?
>
> Cheers, Robin.
>
> Actually I'm a little surprised that it is looking for that jar in that 
> directory but that is another problem.
>
> Robin Taylor
> Main Library
> University of Edinburgh
> Tel. 0131 6515208

-- 
This message has been scanned for viruses and
dangerous content by MailScanner.


--
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Install dspace unsucessful

2009-04-02 Thread Mark H. Wood
On Thu, Apr 02, 2009 at 07:10:15AM +0700, Panyarak Ngamsritragul wrote:
> In the process of 'mvn package', there is a warning:
> [WARNING] The following patterns were never triggered in this artifact 
> exclusion filter: o  '*:war:*'

I always see that too.  It seems to be something we can ignore.

> It reported finally that the process was successful.
> 
> Running 'ant fresh_install' was also successful.
> 
> I created dspace.xml containing
> 
>docBase="/dspace/webapps/jspui" debug="0"
>   reloadable="true" AllowLinking="true"
>   CachingAllowed="false"/>

The 'path' attribute should only be used when the Context is defined
in server.xml -- which should not be done.  When a Context is defined
in a separate file, the name of the file (minus '.xml') determines the
path.  So, naming the file 'dspace.xml' has already specified that the
context path will be '/dspace'.

> in /etc/tomcat6/Catalina/localhost and then restart tomcat6.
> When I read the tomcat6's log file, it contains warnings and errors like:
> 
> Apr 1, 2009 10:37:15 PM org.apache.catalina.users.MemoryUserDatabase save
> WARNING: User database is not persistable - no write permissions on directory

That should not be a problem.  I consider it a bug in Tomcat that it
wants to open that file read-write.  It is complaining that
tomcat-users.xml is read-only for user 'tomcat'.  This should not
affect your application.

> Apr 1, 2009 10:37:16 PM org.apache.catalina.core.StandardContext processTlds
> SEVERE: Error reading tld listeners javax.servlet.ServletException: Exception 
> processing TLD at resource path /WEB-INF/fmt.tld in context /dspace
> javax.servlet.ServletException: Exception processing TLD at resource path 
> /WEB-INF/fmt.tld in context /dspace
[backtrace]
> Caused by: java.security.AccessControlException: access denied 
> (java.io.FilePermission /usr/share/java/jsp-api-2.1.jar read)
>   at 
> java.security.AccessControlContext.checkPermission(AccessControlContext.java:342)
>   at 
> java.security.AccessController.checkPermission(AccessController.java:553)
>   at java.lang.SecurityManager.checkPermission(SecurityManager.java:549)
>   at java.lang.SecurityManager.checkRead(SecurityManager.java:888)
>   at java.util.zip.ZipFile.(ZipFile.java:126)
>   at java.util.jar.JarFile.(JarFile.java:150)
>   at java.util.jar.JarFile.(JarFile.java:87)
[etc.]

That's your problem: access to jsp-api-1.2.jar denied.  You later
posted some 'ls' output which indicates that the file should be
readable.  I'm not very familiar with the SecurityManager, but seeing
it in the call stack suggests that your Java environment has been
configured to forbid fetching JARs from that path.  There's something
about this that doesn't look to me like an ordinary filesystem access
problem.

-- 
Mark H. Wood, Lead System Programmer   mw...@iupui.edu
Friends don't let friends publish revisable-form documents.


pgp5V38rFQmJ7.pgp
Description: PGP signature
--
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Install dspace unsucessful

2009-04-03 Thread Panyarak Ngamsritragul

I downloaded DSpace 1.5 Live CD from 
http://cadair.aber.ac.uk/dspace/bitstream/2160/565/3/DSpace%20Live%20CD%20-%201-5-0%20v2.iso
and have it booted as a virtual machine in VirtualBox.

I then try to figure out the settings in that installation and I could not 
find where in tomcat5.5 which set the user who run tomcat as dspace !  It 
is very clear from 'ps -axu' that tomcat is run by tomcat55.  But I 
noticed that tomcat55 belongs to group 'dspace' and 'dspace' also belongs 
to groups 'admin'.

All directories related to tomcat5.5 owned by tomcat55 but some files 
under /etc/tomcat5.5/Catalina/localhost.

In tomcat6, something called 'openjdk' is installed together with 
tomcat6 while this is not required in tomcat5.5.  Could this be the cause 
of Java's *.jar errors

Could someone who successfully installed DSpace in Ubuntu 8.10 be kind 
enough to document the installation instructions and post to this list ?

Thanks.
Panyarak

-- 
This message has been scanned for viruses and
dangerous content by MailScanner.


--
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Install dspace unsucessful

2009-04-03 Thread Sean Carte
2009/4/3 Panyarak Ngamsritragul :
> Could someone who successfully installed DSpace in Ubuntu 8.10 be kind
> enough to document the installation instructions and post to this list ?

Here are my install notes ... definitely a work in progress.

(One thing I have found is that problems may arise if your JAVA_HOME
in /etc/default/tomcat5.5 is different to the one actually in use
(java -version).)

1. Maven
sudo aptitude install maven2
2. Tomcat
sudo aptitude install tomcat5.5
3. DSpace
sudo su -
useradd -m dspace
mv /home/seanc/dspace-*.gz /home/dspace/
su - postgres
createuser -U postgres -d -A -P dspace
exit
su - dspace
createdb -U dspace -E UNICODE dspace
tar xvzf dspace-*tar.gz
ln -s dspace-1.5.1-release/dspace/ dspace-src
cd dspace-src
vi config/dspace.cfg
dspace.dir -- must be set to the [dspace] (installation) directory.
dspace.url -- complete URL of this server's DSpace home page.
dspace.hostname -- fully-qualified domain name of web server.
dspace.name -- "Proper" name of your server, e.g. "My Digital Library".
db.password -- the database password you entered in the previous step.
mail.server -- fully-qualified domain name of your outgoing mail server.
mail.from.address -- the "From:" address to put on email sent by DSpace.
feedback.recipient -- mailbox for feedback mail.
mail.admin -- mailbox for DSpace site administrator.
alert.recipient -- mailbox for server errors/alerts
registration.notify -- mailbox for emails when new users register (optional)

exit
mkdir /dspace
chown dspace.dspace /dspace
su - dspace
cd dspace-src
mvn package
cd target/dspace-1.5.1-build.dir/
ant fresh_install
/dspace/bin/create-administrator
exit

# set context path for /dspace/webapps/jspui and /dspace/webapps/oai
vi /var/lib/tomcat5.5/conf/server.xml
  










vi /etc/default/tomcat5.5
TOMCAT5_USER=dspace
JAVA_HOME=/usr/lib/jvm/java-6-sun
CATALINA_BASE=/var/lib/tomcat5.5
JAVA_OPTS="-Xmx1024M -Xms64M -Dfile.encoding=UTF-8"
JSP_COMPILER=jikes
TOMCAT5_SECURITY=no

chown -R dspace /etc/tomcat5.5/ /var/log/tomcat5.5/
/var/lib/tomcat5.5/ /var/cache/tomcat5.5/

/etc/init.d/tomcat5.5 start
tail -f /dspace/log/dspace.log

Sean
-- 
Sean Carte
esAL Library Systems Manager
+27 72 898 8775
+27 31 373 2490
fax: 0866741254
http://esal.dut.ac.za/

--
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Install dspace unsucessful

2009-04-03 Thread Panyarak Ngamsritragul

A million thanks to Sean !  That's it ! Now it works !

The problem was the setting of /etc/default/tomcat6 which is usually 
ignored in any installation instruction.  Maybe it is worth to just add a 
few lines about that, don't you think so ?  At least it is very useful for 
ones who do not know about tomcat before.

I also noticed that (I said this before) tomcat6 comes together with 
openjdk which can be substitution of sun-java6-jdk, but I have not tested 
it yet.

Thanks to everyone who has been willing to help.

Panyarak

On Fri, 3 Apr 2009, Sean Carte wrote:

> 2009/4/3 Panyarak Ngamsritragul :
>> Could someone who successfully installed DSpace in Ubuntu 8.10 be kind
>> enough to document the installation instructions and post to this list ?
>
> Here are my install notes ... definitely a work in progress.
>
> (One thing I have found is that problems may arise if your JAVA_HOME
> in /etc/default/tomcat5.5 is different to the one actually in use
> (java -version).)
>
> 1. Maven
> sudo aptitude install maven2
> 2. Tomcat
> sudo aptitude install tomcat5.5
> 3. DSpace
> sudo su -
> useradd -m dspace
> mv /home/seanc/dspace-*.gz /home/dspace/
> su - postgres
> createuser -U postgres -d -A -P dspace
> exit
> su - dspace
> createdb -U dspace -E UNICODE dspace
> tar xvzf dspace-*tar.gz
> ln -s dspace-1.5.1-release/dspace/ dspace-src
> cd dspace-src
> vi config/dspace.cfg
> dspace.dir -- must be set to the [dspace] (installation) directory.
> dspace.url -- complete URL of this server's DSpace home page.
> dspace.hostname -- fully-qualified domain name of web server.
> dspace.name -- "Proper" name of your server, e.g. "My Digital Library".
> db.password -- the database password you entered in the previous step.
> mail.server -- fully-qualified domain name of your outgoing mail server.
> mail.from.address -- the "From:" address to put on email sent by DSpace.
> feedback.recipient -- mailbox for feedback mail.
> mail.admin -- mailbox for DSpace site administrator.
> alert.recipient -- mailbox for server errors/alerts
> registration.notify -- mailbox for emails when new users register (optional)
>
> exit
> mkdir /dspace
> chown dspace.dspace /dspace
> su - dspace
> cd dspace-src
> mvn package
> cd target/dspace-1.5.1-build.dir/
> ant fresh_install
> /dspace/bin/create-administrator
> exit
>
> # set context path for /dspace/webapps/jspui and /dspace/webapps/oai
> vi /var/lib/tomcat5.5/conf/server.xml
> unpackWARs="true" autoDeploy="true"
>   xmlValidation="false" xmlNamespaceAware="false">
>
> 
> reloadable="true" cachingAllowed="false"
>allowLinking="true"/>
>
> 
> reloadable="true" cachingAllowed="false"
>allowLinking="true"/>
>
> 
> reloadable="true" cachingAllowed="false"
>allowLinking="true"/>
>
> vi /etc/default/tomcat5.5
> TOMCAT5_USER=dspace
> JAVA_HOME=/usr/lib/jvm/java-6-sun
> CATALINA_BASE=/var/lib/tomcat5.5
> JAVA_OPTS="-Xmx1024M -Xms64M -Dfile.encoding=UTF-8"
> JSP_COMPILER=jikes
> TOMCAT5_SECURITY=no
>
> chown -R dspace /etc/tomcat5.5/ /var/log/tomcat5.5/
> /var/lib/tomcat5.5/ /var/cache/tomcat5.5/
>
> /etc/init.d/tomcat5.5 start
> tail -f /dspace/log/dspace.log
>
> Sean
>

-- 
Panyarak Ngamsritragul
Department of Mechanical Engineering
Prince of Songkla University.

-- 
This message has been scanned for viruses and
dangerous content by MailScanner.


--
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Install dspace unsucessful

2010-07-05 Thread Volodymyr_G


Sean Carte wrote:
> 
> 2009/4/3 Panyarak Ngamsritragul :
>> Could someone who successfully installed DSpace in Ubuntu 8.10 be kind
>> enough to document the installation instructions and post to this list ?
> 
> Here are my install notes ... definitely a work in progress.
> 
> (One thing I have found is that problems may arise if your JAVA_HOME
> in /etc/default/tomcat5.5 is different to the one actually in use
> (java -version).)
> 
> 1. Maven
> sudo aptitude install maven2
> 2. Tomcat
> sudo aptitude install tomcat5.5
> 3. DSpace
> sudo su -
> useradd -m dspace
> mv /home/seanc/dspace-*.gz /home/dspace/
> su - postgres
> createuser -U postgres -d -A -P dspace
> exit
> su - dspace
> createdb -U dspace -E UNICODE dspace
> tar xvzf dspace-*tar.gz
> ln -s dspace-1.5.1-release/dspace/ dspace-src
> cd dspace-src
> vi config/dspace.cfg
> dspace.dir -- must be set to the [dspace] (installation) directory.
> dspace.url -- complete URL of this server's DSpace home page.
> dspace.hostname -- fully-qualified domain name of web server.
> dspace.name -- "Proper" name of your server, e.g. "My Digital Library".
> db.password -- the database password you entered in the previous step.
> mail.server -- fully-qualified domain name of your outgoing mail server.
> mail.from.address -- the "From:" address to put on email sent by DSpace.
> feedback.recipient -- mailbox for feedback mail.
> mail.admin -- mailbox for DSpace site administrator.
> alert.recipient -- mailbox for server errors/alerts
> registration.notify -- mailbox for emails when new users register
> (optional)
> 
> exit
> mkdir /dspace
> chown dspace.dspace /dspace
> su - dspace
> cd dspace-src
> mvn package
> cd target/dspace-1.5.1-build.dir/
> ant fresh_install
> /dspace/bin/create-administrator
> exit
> 
> # set context path for /dspace/webapps/jspui and /dspace/webapps/oai
> vi /var/lib/tomcat5.5/conf/server.xml
>   unpackWARs="true" autoDeploy="true"
>xmlValidation="false" xmlNamespaceAware="false">
> 
> 
>  reloadable="true" cachingAllowed="false"
> allowLinking="true"/>
> 
> 
>  reloadable="true" cachingAllowed="false"
> allowLinking="true"/>
> 
> 
>  reloadable="true" cachingAllowed="false"
> allowLinking="true"/>
> 
> vi /etc/default/tomcat5.5
> TOMCAT5_USER=dspace
> JAVA_HOME=/usr/lib/jvm/java-6-sun
> CATALINA_BASE=/var/lib/tomcat5.5
> JAVA_OPTS="-Xmx1024M -Xms64M -Dfile.encoding=UTF-8"
> JSP_COMPILER=jikes
> TOMCAT5_SECURITY=no
> 
> chown -R dspace /etc/tomcat5.5/ /var/log/tomcat5.5/
> /var/lib/tomcat5.5/ /var/cache/tomcat5.5/
> 
> /etc/init.d/tomcat5.5 start
> tail -f /dspace/log/dspace.log
> 
> Sean
> -- 
> Sean Carte
> esAL Library Systems Manager
> +27 72 898 8775
> +27 31 373 2490
> fax: 0866741254
> http://esal.dut.ac.za/
> 
> --
> ___
> DSpace-tech mailing list
> DSpace-tech@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/dspace-tech
> 
> 


Hi Sean
I did exactly as you wrote, but issued an error.


 [java] Exception in thread "main" java.lang.ExceptionInInitializerError
[java] Caused by: java.lang.NullPointerException
[java] at java.io.File.(File.java:222)
[java] at
org.apache.lucene.index.IndexReader.indexExists(IndexReader.java:484)
[java] at org.dspace.search.DSIndexer.(DSIndexer.java:235)
[java] Could not find the main class: org.dspace.search.DSIndexer. 
Program will exit.

BUILD FAILED
/opt/dspace/dspace-src/dspace/target/dspace-1.6.2-build.dir/build.xml:745:
Java returned: 1


Can you tell me what to do?
-- 
View this message in context: 
http://old.nabble.com/internal-system-error-occurs-while-submitting-an-item-for-collection-tp22743840p29077932.html
Sent from the DSpace - Tech mailing list archive at Nabble.com.


--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Install dspace unsucessful

2010-07-06 Thread Sean Carte
On 5 July 2010 19:16, Volodymyr_G  wrote:
> Hi Sean
> I did exactly as you wrote, but issued an error.
>
>
>  [java] Exception in thread "main" java.lang.ExceptionInInitializerError
>    [java] Caused by: java.lang.NullPointerException
>    [java] at java.io.File.(File.java:222)
>    [java] at
> org.apache.lucene.index.IndexReader.indexExists(IndexReader.java:484)
>    [java] at org.dspace.search.DSIndexer.(DSIndexer.java:235)
>    [java] Could not find the main class: org.dspace.search.DSIndexer.
> Program will exit.
>
> BUILD FAILED
> /opt/dspace/dspace-src/dspace/target/dspace-1.6.2-build.dir/build.xml:745:
> Java returned: 1
>
>
> Can you tell me what to do?

*I* no longer do exactly as I wrote: not only was that for 1.5.x, but
I now keep my /dspace directory owned by the tomcat user to avoid
having to do chown all the tomcat directories.

I'd highly recommend that you start again, and this time rather follow
the installation documentation than the lunatic advice you might find
in the list archives!

Sean
-- 
Sean Carte
esAL Library Systems Manager
+27 72 898 8775
+27 31 373 2490
fax: 0866741254
http://esal.dut.ac.za/

--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Install dspace unsucessful

2010-07-08 Thread Volodymyr_G


Sean Carte wrote:
> 
> On 5 July 2010 19:16, Volodymyr_G  wrote:
>> Hi Sean
>> I did exactly as you wrote, but issued an error.
>>
>>
>>  [java] Exception in thread "main" java.lang.ExceptionInInitializerError
>>    [java] Caused by: java.lang.NullPointerException
>>    [java] at java.io.File.(File.java:222)
>>    [java] at
>> org.apache.lucene.index.IndexReader.indexExists(IndexReader.java:484)
>>    [java] at org.dspace.search.DSIndexer.(DSIndexer.java:235)
>>    [java] Could not find the main class: org.dspace.search.DSIndexer.
>> Program will exit.
>>
>> BUILD FAILED
>> /opt/dspace/dspace-src/dspace/target/dspace-1.6.2-build.dir/build.xml:745:
>> Java returned: 1
>>
>>
>> Can you tell me what to do?
> 
> *I* no longer do exactly as I wrote: not only was that for 1.5.x, but
> I now keep my /dspace directory owned by the tomcat user to avoid
> having to do chown all the tomcat directories.
> 
> I'd highly recommend that you start again, and this time rather follow
> the installation documentation than the lunatic advice you might find
> in the list archives!
> 
> Sean
> 

Thanks for the reply. But I did as in the documentation and the instructions
which I found in the internet and always had this error. I do not know what
to do, and nobody responsible on the forum.
-- 
View this message in context: 
http://old.nabble.com/internal-system-error-occurs-while-submitting-an-item-for-collection-tp22743840p29105435.html
Sent from the DSpace - Tech mailing list archive at Nabble.com.


--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Install dspace unsucessful

2010-07-08 Thread Sean Carte
On 8 July 2010 12:21, Volodymyr_G  wrote:
>> On 5 July 2010 19:16, Volodymyr_G  wrote:
>>> Hi Sean
>>> I did exactly as you wrote, but issued an error.
>>>
>>>
>>>  [java] Exception in thread "main" java.lang.ExceptionInInitializerError
>>>    [java] Caused by: java.lang.NullPointerException
>>>    [java] at java.io.File.(File.java:222)
>>>    [java] at
>>> org.apache.lucene.index.IndexReader.indexExists(IndexReader.java:484)
>>>    [java] at org.dspace.search.DSIndexer.(DSIndexer.java:235)
>>>    [java] Could not find the main class: org.dspace.search.DSIndexer.
>>> Program will exit.
>>>
>>> BUILD FAILED
>>> /opt/dspace/dspace-src/dspace/target/dspace-1.6.2-build.dir/build.xml:745:
>>> Java returned: 1
>
> Thanks for the reply. But I did as in the documentation and the instructions
> which I found in the internet and always had this error. I do not know what
> to do, and nobody responsible on the forum.

When does this error occur, during `ant fresh_install`?

If so, you probably just need to drop and recreate your database.
 *N.B. I'm assuming you don't have anything in there yet!*

As the dspace user (who owns the database):

dropdb dspace
createdb -U dspace -E UNICODE dspace

Then run the ant command again from within your target/dspace-build.dir/.

Sean
-- 
Sean Carte
esAL Library Systems Manager
+27 72 898 8775
+27 31 373 2490
fax: 0866741254
http://esal.dut.ac.za/

--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Install dspace unsucessful

2010-07-08 Thread Volodymyr_G



Sean Carte wrote:
> 
> 
> When does this error occur, during `ant fresh_install`?
> 
> If so, you probably just need to drop and recreate your database.
>  *N.B. I'm assuming you don't have anything in there yet!*
> 
> As the dspace user (who owns the database):
> 
> dropdb dspace
> createdb -U dspace -E UNICODE dspace
> 
> Then run the ant command again from within your target/dspace-build.dir/.
> 
> Sean
> 
> 

Yes, this error occur after ant fresh_install. I run this comand from
/target/dspace-build.dir/.
I recreate database, but this error:

>>>[java] Could not find the main class: org.dspace.search.DSIndexer.
>>> Program will exit. 

always appeared.
Please, Can you tell what does this error mean and how resolve this problem?

Thanks
-- 
View this message in context: 
http://old.nabble.com/internal-system-error-occurs-while-submitting-an-item-for-collection-tp22743840p29105651.html
Sent from the DSpace - Tech mailing list archive at Nabble.com.


--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Install dspace unsucessful

2010-07-08 Thread Sean Carte
On 8 July 2010 12:52, Volodymyr_G  wrote:
> Yes, this error occur after ant fresh_install. I run this comand from
> /target/dspace-build.dir/.

You mean: target/dspace-1.6.2-build.dir/
?

> I recreate database, but this error:
>
    [java] Could not find the main class: org.dspace.search.DSIndexer.
 Program will exit.
>
> always appeared.
> Please, Can you tell what does this error mean and how resolve this problem?
>

Another stab in the dark: did you get any errors during `mvn package`?

I would try the following as the dspace user:

dropdb dspace
createdb -U dspace -E UNICODE dspace

cd [dspace-src]/dspace
mvn clean
mvn package

cd target/dspace-1.6.2-build.dir/
ant fresh_install


Also check that your dspace directory as defined in dspace.cfg is
owned by the dspace user.

Sean
-- 
Sean Carte
esAL Library Systems Manager
+27 72 898 8775
+27 31 373 2490
fax: 0866741254
http://esal.dut.ac.za/

--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Install dspace unsucessful

2010-07-08 Thread Panyarak Ngamsritragul


Dear Volodymyr,

I followed what Sean has suggested and everything was OK.
Could you please let us know some more basic information, e.g. what is 
your base OS? which version.


I recently install DSpace 1.6.2 in Ubuntu 10.04LTS with no problem.
The important steps are:

1. Install all necessary components
sudo apt-get install tomcat6 maven2 ant-optional postgresql sun-java6-jdk 
apache2 libapache2-mod-jk

2. Add a line like 'host dspace tomcat6 127.0.0.1/32 md5'
to /etc/postgresql/8.3/main/pg_hba.conf (or 
/etc/postgresql/8.4/main/pg_hba.conf)
In this case your DSpace database name is 'dspace' and DSpace instance is 
run by user 'tomcat6'


3. Create a user name 'tomcat6' for postgreSQL
sudo su postgres
createuser -U postgres -d -A -P tomcat6
exit
(Remember your password for tomcat6 here, you need it for step 11)

4. Modify 'shell' of user 'tomcat6' and create a database 'dspace'
sudo chsh -s /bin/bash tomcat6
sudo chown -R tomcat6.tomcat6 /usr/share/tomcat6
sudo su tomcat6
createdb -U tomcat6 -E UNICODE dspace
exit

5. Make sure that settings in /etc/default/tomcat6 look like this
TOMCAT6_USER=tomcat6
JAVA_HOME=/usr/lib/jvm/java-6-sun
CATALINA_BASE=/var/lib/tomcat6
JAVA_OPTS="-Xmx1024M -Xms64M -Dfile.encoding=UTF-8"
JSP_COMPILER=jikes
TOMCAT6_SECURITY=no
LOGFILE_DAYS=180

6. at URIEncoding="UTF-8" to a tag in /etc/tomcat6/server.xml so that it 
looks like:



7. Tell the system to use correct 'java'
sudo update-alternatives --set java /usr/lib/jvm/java-6-sun/jre/bin/java

8. Test if tomcat6 runs correctly
sudo /etc/init.d/tomcat6 restart
or
sudo /etc/init.d/tomcat6 start

The following steps invlove installation of DSpace, and started from 
step 10, all commands must be run by user 'tomcat6'.

9. Create the install location (I chose /opt/dspace here)
sudo mkdir /opt/dspace
sudo chown tomcat6.tomcat6 /opt/dspace

10. Download DSpace source (I chose /usr/share/tomcat6 as my working 
directory, you can make your own choice)

sudo su tomcat6
cd
wget 
http://nchc.dl.sourceforge.net/sourceforge/dspace/dspace-1.6.2-src-release.tar.bz2
bzip2 -dc dspace-1.6.2-src-release.tar.bz2|tar xf -
(You should have DSpace source codes reside in ./dspace-1.6.2-src-release)

11. Modify some settings in ./dspace-1.6.2-src-release/dspace/config/dspace.cfg
dspace.dir=/opt/dspace
dspace.hostname={put your host name here}
dspace.baseUrl = http://${dspace.hostname}:8080
dspace.url = ${dspace.baseUrl}/jspui
dspace.oai.url = ${dspace.baseUrl}/oai
dspace.name="Your DSpace Instance Name"
db.name = postgres
db.url = jdbc:postgresql://localhost:5432/dspace
db.username = tomcat6
db.password = (Your password entered in step 3)
mail.server={set this if you have one}
mail.from.address=ds-nore...@domain.name
feedback.recipient=ds-ad...@domain.name
mail.admin=ds-ad...@domain.name
alert.recipient=ds-h...@domain.name
registration.notify=ds-h...@domain.name
handle.canonical.prefix = ${dspace.url}/handle/handle/
handle.prefix = 123456
handle.dir = ${dspace.dir}/handle-server
webui.submit.enable-cc = true
webui.submit.cc-jurisdiction = {your country, e.g. en}
webui.strengths.show = true
webui.strengths.cache = false
webui.feed.localresolve = true
webui.session.invalidate = false
webui.supported.locales = en, ja
xmlui.supported.locales = en, ja
xmlui.force.ssl = true
solr.log.server = http://localhost:8080/solr/statistics

12. Build the package.  (You can run this command either in 
./dspace-1.6.2-src-release/dspace or ./dspace-1.6.2-src-release)

mvn package

13. If there is no error in previous step, proceed to install your 
DSpace instance:

cd target/dspace-1.6.2-build.dir
ant fresh_install

The last 2 lines of step 13 should read like:
BUILD SUCCESSFUL
Total time: 2 minutes 0 seconds

Hope this helps.

Panyarak Ngamsritragul
Prince of Songkla University.

On Thu, 8 Jul 2010, Volodymyr_G wrote:


Yes, this error occur after ant fresh_install. I run this comand from
/target/dspace-build.dir/.
I recreate database, but this error:


   [java] Could not find the main class: org.dspace.search.DSIndexer.
Program will exit.


always appeared.
Please, Can you tell what does this error mean and how resolve this problem?

Thanks

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Install dspace unsucessful

2010-07-12 Thread Volodymyr_G



Panyarak Ngamsritragul wrote:
> 
> 
> Dear Volodymyr,
> 
> I followed what Sean has suggested and everything was OK.
> Could you please let us know some more basic information, e.g. what is 
> your base OS? which version.
> 

I'm not saying that is wrong, if I offended anyone by this, then sorry.
Even when followed what you has suggested, I made mistakes. several times
started over again.
But I finally installed and thank you for your help!
-- 
View this message in context: 
http://old.nabble.com/internal-system-error-occurs-while-submitting-an-item-for-collection-tp22743840p29146952.html
Sent from the DSpace - Tech mailing list archive at Nabble.com.


--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Install dspace unsucessful

2010-07-13 Thread Panyarak Ngamsritragul

Dear Volodymyr,

Good that you have successfully got it done.  There are always some points 
we did not notice...  My IT man also failed to installed many times...

Cheers.

Panyarak

On Mon, 12 Jul 2010, Volodymyr_G wrote:

> Panyarak Ngamsritragul wrote:
>>
>>
>> Dear Volodymyr,
>>
>> I followed what Sean has suggested and everything was OK.
>> Could you please let us know some more basic information, e.g. what is
>> your base OS? which version.
>>
>
> I'm not saying that is wrong, if I offended anyone by this, then sorry.
> Even when followed what you has suggested, I made mistakes. several times
> started over again.
> But I finally installed and thank you for your help!
> -- 
> View this message in context: 
> http://old.nabble.com/internal-system-error-occurs-while-submitting-an-item-for-collection-tp22743840p29146952.html
> Sent from the DSpace - Tech mailing list archive at Nabble.com.
>
>
> --
> This SF.net email is sponsored by Sprint
> What will you do first with EVO, the first 4G phone?
> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
> ___
> DSpace-tech mailing list
> DSpace-tech@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/dspace-tech
>
> -- 
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
>

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.


--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Install dspace unsucessful

2010-07-17 Thread Volodymyr_G

I have one more problem. After installing Dspace I can`t enter as admin. I
think i forgot password or typed wrong password so I reinstall Dspace but I
still can`t enter. I try to submit new user but it shows 'Internal System
Error'. During installation in dspace.cfg and at 'create dspace-admin' I
type my real email.
Can you help with this problem?
-- 
View this message in context: 
http://old.nabble.com/internal-system-error-occurs-while-submitting-an-item-for-collection-tp22743840p29192887.html
Sent from the DSpace - Tech mailing list archive at Nabble.com.


--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech