Hi,
I am just in the process of installing DSpace 1.5 on RedHat EL 5 (64
Bit) an have principally all basics done: setup DB (PostgreSQL 8.2),
Tomcat (5.5.2) is running, i have done all settings in dspace.cfg and
the 'ant fresh_install' of DSpace is done successfully. But now Tomcat
can not access '/jspui' (server response: HTTP-Sataus 404; "description:
The requested resource (/jspui) is not available"). I tried to set up
the connectors in server.xml and alternatively copied the
[dspace]/webapps/jspui to the tomcat directory $CATALINA_BASE/webapps/.
But nothing works. The permissions are right. As user 'dspace' and as
user 'tomcat' all files are readable. When I look into the Tomcat-log
there seems to be trouble reading configurations - but it is not clear
for me which file causes the problem: a Java class file or a Tomcat
configuration file edited by me:
13. Mai 08 11:27:20 org.apache.catalina.core.AprLifecycleListener
lifecycleEvent
INFO: The Apache Tomcat Native library which allows optimal performance
in production environments was not found on the java.library.path:
/usr/lib64/gcj-4.1.2
13. Mai 08 11:27:20 org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8081
13. Mai 08 11:27:20 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 746 ms
13. Mai 08 11:27:20 org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
13. Mai 08 11:27:20 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.20
13. Mai 08 11:27:20 org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
13. Mai 08 11:27:21 org.apache.catalina.core.ApplicationContext log
INFO: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain:
[org.apache.webapp.balancer.RuleChain:
[org.apache.webapp.balancer.rules.URLStringMatchRule: Target string:
News / Redirect URL:
http://www.cnn.com],
[org.apache.webapp.balancer.rules.RequestParameterRule: Target param
name: paramName / Target param value: paramValue / Redirect URL:
http://www.yahoo.com],
[org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL:
http://jakarta.apache.org]]
13. Mai 08 11:27:21 org.apache.catalina.core.StandardContext start
SEVERE: Error in dependencyCheck
java.util.jar.JarException: Section should start with a Name header:
unexpected '^@'
at gnu.java.util.jar.JarUtils.readSectionName(libgcj.so.7rh)
at gnu.java.util.jar.JarUtils.readIndividualSections(libgcj.so.7rh)
at java.util.jar.Manifest.read(libgcj.so.7rh)
at java.util.jar.Manifest.<init>(libgcj.so.7rh)
[snip]
at
org.apache.catalina.core.StandardServer.start(
catalina-5.5.23.jar.soas0s7u.so)
at
org.apache.catalina.startup.Catalina.start(
catalina-5.5.23.jar.soas0s7u.so)
at java.lang.reflect.Method.invoke(libgcj.so.7rh)
at org.apache.catalina.startup.Bootstrap.start(
bootstrap.jar.so)
at org.apache.catalina.startup.Bootstrap.main(
bootstrap.jar.so)
13. Mai 08 11:27:21 org.apache.catalina.core.StandardContext start
SEVERE: Error getConfigured
13. Mai 08 11:27:21 org.apache.catalina.core.StandardContext start
SEVERE: Context [/jspui] startup failed due to previous errors
13. Mai 08 11:27:21 org.apache.catalina.core.StandardContext stop
INFO: Container
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/jspui]
has not been started
13. Mai 08 11:27:22 org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
13. Mai 08 11:27:22 org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
13. Mai 08 11:27:22 org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
13. Mai 08 11:27:22 org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
13. Mai 08 11:27:22 org.apache.coyote.http11.Http11BaseProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8081
13. Mai 08 11:27:22 org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /
0.0.0.0:8009
So at the end Tomcat starts successful but not jspui. :-(
I configured the following parameters for Tomcat in
/etc/tomcat5/tomcat5.conf:
JAVA_OPTS="-Xmx512M -Xms64M -Dfile.encoding=UTF-8"
TOMCAT_USER="dspace"
CONNECTOR_PORT=8081
The running Tomcat process looks like this:
$ ps -eF | grep tomcat
tomcat 760 1 0 169102 133064 0 May09 ? 00:00:08
/usr/lib/jvm/java/bin/java -Xmx512M -Xms64M -Dfile.encoding=UTF-8
-Dcatalina.ext.dirs=/usr/share/tomcat5/shared/lib:/usr/share/tomcat5/common/lib
-Dcatalina.ext.dirs=/usr/share/tomcat5/shared/lib:/usr/share/tomcat5/common/lib
-Djava.endorsed.dirs=/usr/share/tomcat5/common/endorsed -classpath
/usr/lib/jvm/java/lib/tools.jar:/usr/share/tomcat5/bin/bootstrap.jar:/usr/share/tomcat5/bin/commons-logging-api.jar:/usr/share/java/mx4j/mx4j-impl.jar:/usr/share/java/mx4j/mx4j-jmx.jar
-Dcatalina.base=/usr/share/tomcat5 -Dcatalina.home=/usr/share/tomcat5
-Djava.io.tmpdir=/usr/share/tomcat5/temp
org.apache.catalina.startup.Bootstrap start
This is strange too, because tomcat should run as user 'dspace'. So may
be there are more then 1 problem hiding each other...
Can someone help me?
Best regards
Robert
--
===================================
Robert Roggenbuck
Universitaetsbibliothek Osnabrueck
Germany
===================================