AnsweredAssumed Answered

'HTTP Status 404' when accessing /alfresco

Question asked by butlerm1977 on Jul 21, 2010
I had a little trouble during the initial install on CentOS 5.4, but seemed to get through it with help from the forum (http://forums.alfresco.com/en/viewtopic.php?f=8&t=25276).  I had Alfresco share working for a couple of months before it just seemed to stop working one day after a reboot.

I'm getting "HTTP Status 404" when accessing http://server:8080/alfresco

HTTP Status 404 -
type Status report
message
description The requested resource () is not available.
Apache Tomcat/5.5.23

alfresco.log
[root@server tomcat5]# cat alfresco.log
08:17:32,922 ERROR [org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/share].[pageRendererServlet]] Servlet.service() for servlet pageRendererServlet threw exception
java.io.IOException: Unable to test document path: site-index.xml in remote store: alfresco due to error:
        at org.alfresco.web.scripts.RemoteStore.hasDocument(RemoteStore.java:351)
        at org.alfresco.web.framework.StoreModelObjectPersister.getObjectByPath(StoreModelObjectPersister.java:136)
        at org.alfresco.web.framework.StoreModelObjectPersister.getObject(StoreModelObjectPersister.java:108)
        at org.alfresco.web.framework.MultiModelObjectPersister.getObject(MultiModelObjectPersister.java:106)
        at org.alfresco.web.framework.ModelObjectManager.getObject(ModelObjectManager.java:136)
        at org.alfresco.web.site.Model.getObject(Model.java:513)
        at org.alfresco.web.site.Model.getPage(Model.java:165)
        at org.alfresco.web.site.SlingshotPageMapper.executeMapper(SlingshotPageMapper.java:188)
        at org.alfresco.web.site.AbstractPageMapper.execute(AbstractPageMapper.java:62)
        at org.alfresco.web.site.DefaultRequestContextFactory.newInstance(DefaultRequestContextFactory.java:109)
        at org.alfresco.web.site.FrameworkHelper.initRequestContext(FrameworkHelper.java:202)
        at org.alfresco.web.site.servlet.DispatcherServlet.service(DispatcherServlet.java:142)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870)
        at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
        at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
        at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
        at java.lang.Thread.run(Thread.java:619)

catalina.out
[root@server tomcat5]# cat catalina.out
08:17:32,922  ERROR [[localhost].[/share].[pageRendererServlet]] Servlet.service() for servlet pageRendererServlet threw exception
java.io.IOException: Unable to test document path: site-index.xml in remote store: alfresco due to error:
        at org.alfresco.web.scripts.RemoteStore.hasDocument(RemoteStore.java:351)
        at org.alfresco.web.framework.StoreModelObjectPersister.getObjectByPath(StoreModelObjectPersister.java:136)
        at org.alfresco.web.framework.StoreModelObjectPersister.getObject(StoreModelObjectPersister.java:108)
        at org.alfresco.web.framework.MultiModelObjectPersister.getObject(MultiModelObjectPersister.java:106)
        at org.alfresco.web.framework.ModelObjectManager.getObject(ModelObjectManager.java:136)
        at org.alfresco.web.site.Model.getObject(Model.java:513)
        at org.alfresco.web.site.Model.getPage(Model.java:165)
        at org.alfresco.web.site.SlingshotPageMapper.executeMapper(SlingshotPageMapper.java:188)
        at org.alfresco.web.site.AbstractPageMapper.execute(AbstractPageMapper.java:62)
        at org.alfresco.web.site.DefaultRequestContextFactory.newInstance(DefaultRequestContextFactory.java:109)
        at org.alfresco.web.site.FrameworkHelper.initRequestContext(FrameworkHelper.java:202)
        at org.alfresco.web.site.servlet.DispatcherServlet.service(DispatcherServlet.java:142)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870)
        at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
        at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
        at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
        at java.lang.Thread.run(Thread.java:619)

/etc/tomcat5/tomcat5.conf
[root@server tomcat5]# cat tomcat5.conf
# tomcat5 service configuration file

# you could also override JAVA_HOME here
# Where your java installation lives
JAVA_HOME="/usr/lib/jvm/java"

# Where your tomcat installation lives
# That change from previous RPM where TOMCAT_HOME
# used to be /var/tomcat.
# Now /var/tomcat will be the base for webapps only
CATALINA_HOME="/usr/share/tomcat5"
JASPER_HOME="/usr/share/tomcat5"
CATALINA_TMPDIR="/usr/share/tomcat5/temp"
JAVA_ENDORSED_DIRS="/usr/share/tomcat5/common/endorsed"

# You can pass some parameters to java
# here if you wish to
#JAVA_OPTS="-Xminf0.1 -Xmaxf0.3"

# Use JAVA_OPTS to set java.library.path for libtcnative.so
#JAVA_OPTS="-Djava.library.path=/usr/lib

# Bug 190:
# https://www.jpackage.org/bugzilla/show_bug.cgi?id=190
# System property catalina.ext.dirs should be set to its default value
# for ExtensionValidator to be functional.
JAVA_OPTS="$JAVA_OPTS -Dcatalina.ext.dirs=$CATALINA_HOME/shared/lib:$CATALINA_HOME/common/lib"

# What user should run tomcat
TOMCAT_USER="tomcat"

# You can change your tomcat locale here
#LANG=en_US

# Time to wait in seconds, before killing process
SHUTDOWN_WAIT=30

# Set the TOMCAT_PID location
CATALINA_PID=/var/run/tomcat5.pid

# Connector port is 8080 for this tomcat5 instance
#CONNECTOR_PORT=8080

# If you wish to further customize your tomcat environment,
# put your own definitions here
# (i.e. LD_LIBRARY_PATH for some jdbc drivers)
# Just do not forget to export them :)

Let me know if anything else needs to be posted to help troubleshoot.

Outcomes