Hi Chris,

You can manually reset the destination installation environment by  
emptying out the [dspace] directory and re-creating the database:

# the first dollar sign is your shell prompt

# in my case I would do for the [dspace] directory where `x=/usr/ 
local/dspace'
$ x=/usr/local/dspace
$ test -d $x && rm -fr $x
$ mkdir $x
$ ls -ld $x
# and then make sure the permissions are as desired

# to re-create the database where
$ role=dspace
$ db=dspace
$ dropdb $db
$ createdb -U $role -E UNICODE $db

and to check which java implementation your are using, in my case I  
obtained

$ type javac
javac is /usr/bin/javac
$ readlink -e /usr/bin/javac
/usr/lib/jvm/java-1.6.0-sun-1.6.0.15/bin/javac

and running `javac -version' shows, for instance

javac 1.6.0_15          # for java-1.6.0-sun-1.6.0.15
javac 1.6.0-internal    # for java-1.6.0-openjdk-1.6.0.0.x86_64

Hope that helps.

-- Van Ly

On 14/08/2009, at 7:33 PM, Chris Ward wrote:

>
>
> I have not got a dspace install, i am installing a new fresh copy.
>
> running ant clean_database game me the following:
> clean_database:
>      [java] 2009-08-14 09:29:23,804 INFO   
> org.dspace.core.ConfigurationManager @ Loading system provided  
> config property (-Ddspace.configuration): config/dspace.cfg
>      [java] 2009-08-14 09:29:23,814 INFO   
> org.dspace.core.ConfigurationManager @ Using default log4j provided  
> log configuration,if uninitended, check your dspace.cfg for  
> (log.init.config)
>      [java] 2009-08-14 09:29:23,814 INFO   
> org.dspace.storage.rdbms.InitializeDatabase @ Initializing Database
>      [java] 2009-08-14 09:29:24,009 ERROR  
> org.dspace.storage.rdbms.InitializeDatabase @ The configuration for  
> db.name is either invalid, or contains an unrecognised database
>      [java] org.dspace.browse.BrowseException: The configuration  
> for db .name is either invalid, or contains an unrecognised database
>      [java]     at  
> org.dspace.browse.BrowseDAOFactory.getCreateInstance 
> (BrowseDAOFactory.java:101)
>      [java]     at org.dspace.browse.IndexBrowse.<init> 
> (IndexBrowse.java:153)
>      [java]     at org.dspace.browse.IndexBrowse.<init> 
> (IndexBrowse.java:131)
>      [java]     at org.dspace.storage.rdbms.InitializeDatabase.main 
> (InitializeDatabase.java:83)
>      [java] 2009-08-14 09:29:24,011 FATAL  
> org.dspace.storage.rdbms.InitializeDatabase @ Caught exception:
>      [java] java.lang.RuntimeException: The configuration for  
> db.name is either invalid, or contains an unrecognised database
>      [java]     at org.dspace.storage.rdbms.InitializeDatabase.main 
> (InitializeDatabase.java:91)< br>     [java] Caused by:  
> org.dspace.browse.BrowseException: The configuration for db.name is  
> either invalid, or contains an unrecognised database
>      [java]     at  
> org.dspace.browse.BrowseDAOFactory.getCreateInstance 
> (BrowseDAOFactory.java:101)
>      [java]     at org.dspace.browse.IndexBrowse.<init> 
> (IndexBrowse.java:153)
>      [java]     at org.dspace.browse.IndexBrowse.<init> 
> (IndexBrowse.java:131)
>      [java]     at org.dspace.storage.rdbms.InitializeDatabase.main 
> (InitializeDatabase.java:83)
>
>
> it mentions soem erros in my sspace.cfg, btu the details in there  
> are correct for the database. and when i use the fresh_install i  
> get warnings saying the table already exists. why does the install  
> script get access to the db but not the clean_database one?
>
> Chris
>
> <!-- .style1 { font-family: Verdana, Arial, Helvetica, sans-serif;  
> font-size: 12px; text-align:center; } .style2 { color: #666666;  
> text-decoration:none;} -->
>
>
> http://www.ico3.com
> ch...@ico3.com
>
> Chris Ward
> Web Developer
> ICO3 Limited
> Tamar Science Park
> Davy Rd
> Plymouth
> 01752 764400
>
>
> -----Original Message-----
>
> Hi Chris,
>
> if you already used ant fresh_install and want to use it again run ant
> clean_database to clear the db and then ant fresh_install.
>
> If you successfully set up a fresh install and want to update it use
> ant update and/or ant init_configs.
>
> Hope that helps
>
> Claudia J?rgen
>
>
> Chris Ward schrieb:
> > I have been following this wiki:
> > http://wiki.dspace.org/index.php/ 
> Installing_DSpace_1.5_on_Ubuntu_8.04
> >
> > I have edited dspace/config/dspace.cfg to add in my postgresql  
> settings
> > I have then gone to dspace and run 'mvn package' which  
> downloadeds a log of jar
> > files and says complete
> >
> >
> > [WARNING] Using platform encoding (UTF-8 actually) to copy  
> filtered resources,
> > i.e. build is platform dependent!
> >
> > When running it i get lots of [info] lines, a few of these lnes:
> > [WARNING] Using platform encoding (UTF-8 actually) to copy  
> filtered resources,
> > i.e. build is platform dependent
> >
> > and these:
> > [WARNING] The following patterns were never triggered in this  
> artifact exclusion
> > filter:
> > o 'org.dspace:dspace-xmlui-webapp'
> > o 'org.dspace:dspace-xmlui-lang'
> > o 'org.dspace:dspace-lni-webapp'
> > o 'org.dspace:dspace-sword-webapp'
> > o 'org.dspace:dspace-jspui-webapp'
> > o 'org.dspace:dspace-oai-webapp'
> > < br>[WARNING] The following patterns were never triggered in  
> this artifact
> > exclusion filter:
> > o '*:war:*'
> >
> > It then says build successfull
> >
> > i have gone to dspace/target/dspace-1.5.2-build.dir/ and ran 'ant  
> fresh_install'
> > which spit out some java warnings saying the database already has  
> a table
> > (because this is the second time i have run it) then it gives the  
> error:
> >
> > BUILD FAILED
> > /var/lib/tomcat5.5/webapps/dspace-1.5.2-release/dspace/target/ 
> dspace-1.5.2-build.dir/build.xml:585:
> > Java returned: 1
> >
> >
> > This is really frustrating and the compiling works its jus tthe  
> install that
> > failes. Why isnt the error more usefull. Could it be a permitino  
> problem or
> > something?
> >
> >
> >
> >
> >
> >
> > http://www.ico3.com
> > ch...@ico3.com
> >
> > Chris Ward
> > Web Developer
> > ICO3 Limited
> > Tamar Science Park
> > Davy Rd
> > Plymouth
> > 01752 764400
> >
> >
> >
> > -----Original Message-----
> >
> > Hi Chris,
> >
> > I think you want 'ant fresh_install', not 'ant clean'. AFAIA  
> there's no
> > "clean" target for ant for the DSpace project. The closest thing is
> > clean_database, which you probably don't need for a fresh install.
> >
> > Have you first run mvn [clean] package from the [dspace-source]/ 
> dspace
> > directory? If so, then cd to
> > [dspace-source]/dspace/target/dspace-X.X.X-build.dir directory  
> and run
> > 'ant fresh_install' from there.
> >
> > Please post a little more information about the exact commands  
> you have
> > been using.
> >
> > Thanks,
> > Gary
> >
> >
> > Gary Browne
> > Development Programmer
> > Library IT Services
> > University of Sydney
> > ph: 9351-5946
> >
> >
> > > -----Original Message-----
> > > From: wardy277 [mailto:ch...@ico3.com]
> > > Sent: Thursday, 13 August 2009 6:03 PM
> > > To: dspace-tech@lists.sourceforge.net
> > > Subject: Re: [Dspace-tech] problem installing dspace
> > >
> > >
> > >
> > > Thank for your reply,
> > >
> > > I have installed ant-nodeps (well downloaded it to
> > > /share/ant/lib/ant-nodeps.jar.) i think that worked but i not
> > > get a different error:
> > >
> > > BUILD FAILED
> > > /var/lib/tomcat5.5/webapps/dspace-1.5.2-release/dspace/target/
> > > dspace-1.5.2-build.dir/build.xml:585:
> > > Java returned: 1
> > >
> > > What does thsi mean? also the ant clean returns BUILD FAILED
> > > Target "clean" does not exist in the project "DSpace".
> > >
> > > any ideas?
> > >
> > > Chris
> > >
> > >
> > >
> > >
> > >
> > > PAUL A S NEEDHAM wrote:
> > > >
> > > > Hi Chris
> > > >
> > > > I ran into this problem and fixed it by installing ant-nodeps.
> > > >
> > > > Hope this helps!
> > > >
> > > > Cheers
> > > > Paul
> > > >
> > > > -----------------------------
> > > > Paul A S Needham
> > > > Research & Innovation Manager
> > > > Kings Norton Library
> > > > Cranfield University
> > > > Cranfield
> > > > MK43 0AL
> > > >
> > > > The Kings Norton Library has been awarded Charter Mark, the UK
> > > > Government standard for excellent customer service.
> > > >
> > > > -----Original Message-----
> > > > From: wardy277 [mailto:ch...@ico3.com]
> > > > Sent: 12 August 2009 14:03
> > > > To: dspace-tech@lists.sourceforge.net
> > > > Subject: [Dspace-tech] problem installing dspace
> > > >
> > > >
> > > > Hi i am having trouble installing dspace on a new server. i have
> > > > followed the instructions but if failed on the ant  
> fresh_install.
> > > >
> > > > I installed dependencies and tools,
> > > > created users and postgre users and database, got source of
> > > dspace and
> > > > used namaven to coompile it.
> > > >
> > > > When i ran the ant fresh install, it failed with this error:
> > > >
> > > > BUILD FAILED
> > > >
> > > >
> > > /home/dspace/dspace-1.5.2-src-release/dspace/target/ 
> dspace-1.5.2-build
> > > > .dir/b
> > > > uild.xml:88:
> > > > No supported regular expression matcher found:
> > > > java.lang.ClassNotFoundException:
> > > > org.apache.tools.ant.util.regexp.Jdk14RegexpRegexp
> > > >
> > > > Not sure what this nmeans, might be a problem with the java
> > > dependencies.
> > > > i
> > > > have tried it with both java 5 and 6 with no provail. also,
> > > navigating
> > > > to the tomcat folder manager/html gives me a blank page,
> > > could there
> > > > be a error with tomcat alos?
> > > >
> > > > Chris
> > > >
> > > > .
> > > >
> > > > --
> > > > View this message in context:
> > > >
> > > http://www.nabble.com/problem-installing-dspace- 
> tp24919745p24919745.ht
> > > > ml Sent from the DSpace - Tech mailing list archive at  
> Nabble.com.
> > > >
> > > >
> > > >
> > >  
> ----------------------------------------------------------------------
> > > > ------
> > > > --
> > > > Let Crystal Reports handle the reporting - Free Crystal
> > > Reports 2008
> > > > 30-Day trial. Simplify your report design, integration and
> > > deployment
> > > > - and focus on what you do best, core application coding.  
> Discover
> > > > what's new with Crystal Reports now. http://p.sf.net/sfu/bobj- 
> july
> > > > _______________________________________________
> > > > DSpace-tech mailing list
> > > > DSpace-tech@lists.sourceforge.net
> > > > https://lists.sourceforge.net/lists/listinfo/dspace-tech
> > > >
> > > >
> > > >
> > >  
> ----------------------------------------------------------------------
> > > > -------- Let Crystal Reports handle the reporting - Free Crystal
> > > > Reports 2008 30-Day trial. Simplify your report design,  
> integration
> > > > and deployment - and focus on what you do best, core application
> > > > coding. Discover what's new with Crystal Reports now.
> > > > http://p.sf.net/sfu/bobj-july
> > > > _______________________________________________
> > > > DSpace-tech mailing list
> > > > DSpace-tech@lists.sourceforge.net
> > > > https://lists.sourceforge.net/lists/listinfo/dspace-tech
> > > >
> > > >
> > >
> > > --
> > > View this message in context:
> > > http://www.nabble.com/problem-installing-dspace-tp24919745p249
> > > 50609.html
> > > Sent from the DSpace - Tech mailing list archive at Nabble.com.
> > >
> > >
> > > --------------------------------------------------------------
> > > ----------------
> > > Let Crystal Reports handle the reporting - Free Crystal
> > > Reports 2008 30-Day
> > > trial. Simplify your report design, integration and
> > > deployment - and focus on
> > > what you do best, core application coding. Discover what's new  
> with
> > > Crystal Reports now. http://p.sf.net/sfu/bobj-july
> > > _______________________________________________
> > > DSpace-tech mailing list
> > > DSpace-tech@lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/dspace-tech
> > >
> >
> >  
> ---------------------------------------------------------------------- 
> --------
> > Let Crystal Reports handle the reporting - Free Crystal Reports  
> 2008 30-Day
> > trial. Simplify your report design, integration and deployment -  
> and focus on
> > what you do best, core application coding. Discover what's new with
> > Crystal Reports now. http://p.sf.net/sfu/bobj-july
> > _______________________________________________
> > DSpace-tech mailing list
> > DSpace-tech@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/dspace-tech
> >
> >
> >  
> ---------------------------------------------------------------------- 
> --
> >
> >  
> ---------------------------------------------------------------------- 
> --------
> > Let Crystal Reports handle the reporting - Free Crystal Reports  
> 2008 30-Day
> > trial. Simplify your report design, integration and deployment -  
> and focus on
> > what you do best, core application coding. Discover what's new with
> > Crystal Reports now. http://p.sf.net/sfu/bobj-july
> >
> >
> >  
> ---------------------------------------------------------------------- 
> --
> >
> > _______________________________________________
> > DSpace-tech mailing list
> > DSpace-tech@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/dspace-tech
>
> ---------------------------------------------------------------------- 
> --------
> Let Crystal Reports handle the reporting - Free Crystal Reports  
> 2008 30-Day
> trial. Simplify your report design, integration and deployment -  
> and focus on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj- 
> july_______________________________________________
> DSpace-tech mailing list
> DSpace-tech@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/dspace-tech

Van Ly
vly at usyd dot edu dot au





------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to