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)
     [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



http://www.ico3.com
[email protected]

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
> [email protected]
>
> 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:[email protected]]
> > Sent: Thursday, 13 August 2009 6:03 PM
> > To: [email protected]
> > 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:[email protected]]
> > > Sent: 12 August 2009 14:03
> > > To: [email protected]
> > > 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
> > > [email protected]
> > > 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
> > > [email protected]
> > > 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
> > [email protected]
> > 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
> [email protected]
> 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
> [email protected]
> 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
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to