John, dspace-dir should be set to the location you want to deploy the install
/to/, not where you've extracted the initial download. The ant task (#9) will
copy the constructed dspace files (which will have ${dspace.dir} substituted
appropriate) to that final install directory you specify via dspace.dir.
You should make that adjustment and run through the install again. Be aware,
though, that since you've already run fresh_install, the database has already
been set up, so you may just want to drop/recreate the db.
--
sands fish
Software Engineer
MIT Libraries
Technology Research & Development
[email protected]<mailto:[email protected]>
E25-131
On Aug 26, 2010, at 12:09 PM, John Hufnagle wrote:
Hi,
I'm running into problems performing the install of dpsace 1.6.2
I downloaded dspace-1.6.2-src-release.tar
expanded it into /dspace-install (it contained as expected a dpsace dir and
the pom.xml)
>From the installation guide I did:
1. added a space user
2. downloaded the space release (already did that!)
3. unpacked the software (already did that)
4. Postgresql created user and db for dpsace
5. edited /dspace-install/dspace/config/dspace.cfg and set
dspace.dir=/dspace-install
also edited the other values
6. cd dspace-install/dspace
7. mvn package (seemed to go fine)
8. cd dspace-install/dspace/target/dspace-1.6.2-build.dir
9. ant fresh_install (seemed to build fine)
10. copied the generated web app dir trees over to my jetty-6.1.24
installation...fine
11. ran
dspace-install/dspace/target/dspace-1.6.2-build.dir/bin/create-administrator.....ran
fine
Tried to start Jetty and get the following in the error log (shown below at the
bottom)
Couple of questions.
1. There are 2 dspace.cfg, in my case /dspace-install/dspace/config/dspace.cfg
and also in
dspace-install/dspace/target/dspace-1.6.2-build.dir/config/dspace.cfg.
2. What should the value of dspace.dir be in each of them. The doc is
confusing (at least to me....)
It says in 3.3.2 Overview of DSpace Directories
1. The installation directory, referred to as [dspace] is the location where
DSpace is installed and running....so I assume this means in my case
/dspace-install/dspace/target/dspace-1.6.2-build.dir ??
Yet later on in the doc where it says in step 5 of section 3.3.3 Installation
5. Initial Configuration to edit the [dspace-source]/dspace/config/dspace.cfg
and to set:
dspace.dir -- must be set to the [dspace] (installation) directory. But if
this is to be /dspace-install/dspace/target/dspace-1.6.2-build.dir then that
directory doesn't exist yet since that gets created during the Maven process no?
I see that in the deployed jetty/webapps/jspui/WEB-INF/web.xml there is a app
context config parm:
<context-param>
<description>
The location of the main DSpace configuration file
</description>
<param-name>dspace-config</param-name>
<param-value>${dspace.dir}/config/dspace.cfg</param-value>
</context-param>
That looks like the ${dspace.dir} value was not resolved yet?
Wondering where I goofed up!
459 [main] INFO org.dspace.servicemanager.DSpaceServiceManager - Registered
9 service's mixins from loaded core services
460 [main] INFO org.dspace.servicemanager.DSpaceKernelImpl - DSpace kernel
startup completed in 456 ms and registered as MBean:
org.dspace:name=dd6bc090-adca-47e1-98e7-9bcb0979035c,type=DSpaceKernel
463 [main] INFO org.dspace.core.ConfigurationManager - Loading provided
config file: ${dspace.dir}/config/dspace.cfg
464 [main] FATAL org.dspace.core.ConfigurationManager - Can't load
configuration:
file:/Users/johnhufnagle/Downloads/jetty-6.1.24/${dspace.dir}/config/dspace.cfg
java.io.FileNotFoundException:
/Users/johnhufnagle/Downloads/jetty-6.1.24/${dspace.dir}/config/dspace.cfg (No
such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:106)
at java.io.FileInputStream.<init>(FileInputStream.java:66)
at
sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:70)
at
sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:161)
at java.net.URL.openStream(URL.java:1010)
at
org.dspace.core.ConfigurationManager.loadConfig(ConfigurationManager.java:656)
at
org.dspace.app.util.DSpaceContextListener.contextInitialized(DSpaceContextListener.java:127)
at
org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:548)
at org.mortbay.jetty.servlet.Context.startContext(Context.java:136)
at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250)
at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517)
at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:467)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at
org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
at
org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at
org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
at org.mortbay.jetty.Server.doStart(Server.java:224)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at org.mortbay.xml.XmlConfiguration.main(XmlConfiguration.java:985)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.mortbay.start.Main.invokeMain(Main.java:194)
at org.mortbay.start.Main.start(Main.java:534)
at org.mortbay.start.Main.start(Main.java:441)
at org.mortbay.start.Main.main(Main.java:119)
2010-08-26 11:47:35.256:WARN::Failed startup of context
org.mortbay.jetty.webapp.webappcont...@2f8fc9ba{/jspui,file:/Users/johnhufnagle/Downloads/jetty-6.1.24/webapps/jspui/}
java.lang.RuntimeException: ||DSpace has failed to initialize, during stage 2.
Error while attempting to read the |DSpace configuration file (Path:
'${dspace.dir}/config/dspace.cfg'). |This has likely occurred because either
the file does not exist, or it's permissions |are set incorrectly, or the path
to the configuration file is incorrect. The path to |the DSpace configuration
file is stored in a context variable, 'dspace-config', in |either the local
servlet or global context.||
at
org.dspace.app.util.DSpaceContextListener.contextInitialized(DSpaceContextListener.java:131)
I then edited /dspace-install/config/dspace.cfg and set
dspace.dir=/dspace-install
<ATT00001..c><ATT00002..c>
------------------------------------------------------------------------------
Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
Be part of this innovative community and reach millions of netbook users
worldwide. Take advantage of special opportunities to increase revenue and
speed time-to-market. Join now, and jumpstart your future.
http://p.sf.net/sfu/intel-atom-d2d
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech