[opencms-dev] Installation Problem - the requested resource (/opencms/ocsetup) is not available
David Pape [ Twinwave ]
d.pape at twinwave.net
Thu Nov 8 15:20:58 CET 2001
I have been looking in the log files and think that I have found the
problem, but I don't know how to fix it. Here is the logfile and blow this
is the web.xml - (sorry for the long post):
#--------LOG FILE--------------#
2001-11-08 14:34:31 StandardHost[localhost]: Installing web application at
context path /opencms from URL
jar:file:/usr/jakarta-tomcat-4.0.1/webapps/opencms.war!/
2001-11-08 14:34:31 WebappLoader[/opencms]: Deploying class repositories to
work directory /usr/jakarta-tomcat-4.0.1/work/localhost/opencms
2001-11-08 14:34:31 WebappLoader[/opencms]: Deploy JAR
/WEB-INF/lib/mm.mysql-2.0.4-bin.jar to
/usr/jakarta-tomcat-4.0.1/webapps/opencms/WEB-INF/lib/mm.mysql-2.0.4-bin.jar
2001-11-08 14:34:31 WebappLoader[/opencms]: Deploy JAR
/WEB-INF/lib/opencmsboot.jar to
/usr/jakarta-tomcat-4.0.1/webapps/opencms/WEB-INF/lib/opencmsboot.jar
2001-11-08 14:34:31 StandardManager[/opencms]: Seeding random number
generator class java.security.SecureRandom
2001-11-08 14:34:31 StandardManager[/opencms]: Seeding of random number
generator has been completed
2001-11-08 14:34:32 ContextConfig[/opencms] Parse error in application
web.xml org.xml.sax.SAXParseException: The content of element type "servlet"
must match
"(icon?,servlet-name,display-name?,description?,(servlet-class|jsp-file),ini
t-param*,load-on-startup?,security-role-ref*)".
at org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1196)
at
org.apache.xerces.validators.common.XMLValidator.reportRecoverableXMLError(X
MLValidator.java:1781)
at
org.apache.xerces.validators.common.XMLValidator.callEndElement(XMLValidator
.java:1425)
at
org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XM
LDocumentScanner.java:1204)
at
org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.
java:381)
at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1081)
at org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:143)
at org.apache.catalina.util.xml.XmlMapper.readXml(XmlMapper.java:275)
at
org.apache.catalina.startup.ContextConfig.applicationConfig(ContextConfig.ja
va:256)
at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:824)
at
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:
224)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
t.java:155)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1131)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3334)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:454)
at org.apache.catalina.core.StandardHost.install(StandardHost.java:712)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:647)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:777)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:463)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
t.java:155)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1131)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:612)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:307)
at org.apache.catalina.core.StandardService.start(StandardService.java:388)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:505)
at org.apache.catalina.startup.Catalina.start(Catalina.java:776)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
2001-11-08 14:34:32 ContextConfig[/opencms]: Occurred at line 19 column 16
2001-11-08 14:34:32 ContextConfig[/opencms]: Marking this application
unavailable due to previous error(s)
2001-11-08 14:34:32 StandardContext[/opencms]: Error initializing naming
context for context /opencms
2001-11-08 14:34:32 StandardContext[/opencms]: Context startup failed due to
previous errors
2001-11-08 14:34:32 StandardContext[/opencms]: Error initializing naming
context for context /opencms
#----------------------#
#-------web.xml file-------------#
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
"http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
<web-app>
<display-name>OpenCms</display-name>
<description>
OpenCms a open source contentmanagement solution. See
details on http://www.opencms.com/
</description>
<servlet>
<servlet-name>OpenCmsServlet</servlet-name>
<servlet-class>com.opencms.boot.OpenCmsServlet</servlet-class>
<description>
OpenCms is one servlet that handles all requests.
</description>
</servlet>
<servlet-mapping>
<servlet-name>OpenCmsServlet</servlet-name>
<url-pattern>/opencms/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>OpenCmsServlet</servlet-name>
<url-pattern>*.jsp</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>jsp</servlet-name>
<url-pattern>*.ocjsp</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>index.ocjsp</welcome-file>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
</welcome-file-list>
<session-config>
<session-timeout>30</session-timeout> <!-- 30 minutes -->
</session-config>
</web-app>
More information about the opencms-dev
mailing list