Tomcat Admin-Oberfläche Status 503

Sensonaut

New Member
Hallo Ihr!

Ich habe versucht, auf meinem VServer mit Suse 9.3 und Apache 2 die Admin-Oberfläche für Tomcat zu installieren. Wie im Buch beschrieben habe ich dazu das Verzeichnis admin nach .../webapps kopiert, die Datei admin.xml nach .../conf/Catalina/localhost kopiert und die Datei tomcat-users erweitert. Wenn ich nun im Browser auf die Admin-Oberfläche zugreifen möchte, erhalte ich Status 503. Könnte mir evtl. jemand helfen?

Ich habe schon mal in die Protokolle geschaut, werde aber nicht schlau draus. Bei Bedarf kann ich daraus gerne eine Auszug posten.

Abgesehen davon würde ich gerne wissen, ob es sicherheitstechnisch überhaupt sinnvoll ist, die Admin-Oberfläche zu installieren. :o

Danke schonmal für jeden Tipp.

Titus
 
Ich wollte die Admin-Obeflächer installieren, damit ich einen besseren Überblick über Tomcat habe und sehen kann, welche Anwendungen deployed und aktiv sind. Außerdem bin ich diese Oberfläche von meiner lokalen Tomcat-Installation auf Windows gewohnt. Mein Ziel ist aber im Grunde nur, Java-Servlets ausführen zu können.


Wie gewünscht nun aber catalina.out:

Code:
Aug 29, 2007 9:24:10 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Aug 29, 2007 9:24:10 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1848 ms
Aug 29, 2007 9:24:11 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Aug 29, 2007 9:24:11 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.0
Aug 29, 2007 9:24:11 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Aug 29, 2007 9:24:11 PM org.apache.catalina.core.StandardHost getDeployer
INFO: Create Host deployer for direct deployment ( non-jmx ) 
Aug 29, 2007 9:24:11 PM org.apache.catalina.core.StandardHostDeployer install
INFO: Processing Context configuration file URL file:/etc/tomcat5/base/Catalina/localhost/admin.xml
Aug 29, 2007 9:24:11 PM org.apache.commons.digester.Digester endElement
SEVERE: End event threw exception
java.lang.reflect.InvocationTargetException
	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:324)
	at org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:216)
	at org.apache.commons.digester.SetNextRule.end(SetNextRule.java:208)
	at org.apache.commons.digester.Rule.end(Rule.java:228)
	at org.apache.commons.digester.Digester.endElement(Digester.java:1067)
	at org.apache.catalina.util.CatalinaDigester.endElement(CatalinaDigester.java:76)
	at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
	at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source)
	at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
	at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
	at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
	at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
	at org.apache.commons.digester.Digester.parse(Digester.java:1591)
	at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:488)
	at org.apache.catalina.core.StandardHost.install(StandardHost.java:863)
	at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:483)
	at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:427)
	at org.apache.catalina.startup.HostConfig.start(HostConfig.java:983)
	at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:349)
	at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1091)
	at org.apache.catalina.core.StandardHost.start(StandardHost.java:789)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
	at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478)
	at org.apache.catalina.core.StandardService.start(StandardService.java:480)
	at org.apache.catalina.core.StandardServer.start(StandardServer.java:2313)
	at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
	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:324)
	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
Caused by: java.lang.IllegalArgumentException: Context path is required
	at org.apache.catalina.core.StandardHostDeployer.addChild(StandardHostDeployer.java:890)
	... 38 more
Aug 29, 2007 9:24:11 PM org.apache.catalina.startup.HostConfig deployDescriptors
SEVERE: Error deploying configuration descriptor admin.xml
java.io.IOException: java.lang.IllegalArgumentException: Context path is required
	at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:494)
	at org.apache.catalina.core.StandardHost.install(StandardHost.java:863)
	at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:483)
	at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:427)
	at org.apache.catalina.startup.HostConfig.start(HostConfig.java:983)
	at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:349)
	at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1091)
	at org.apache.catalina.core.StandardHost.start(StandardHost.java:789)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
	at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478)
	at org.apache.catalina.core.StandardService.start(StandardService.java:480)
	at org.apache.catalina.core.StandardServer.start(StandardServer.java:2313)
	at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
	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:324)
	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
Aug 29, 2007 9:24:11 PM org.apache.catalina.core.StandardHostDeployer install
INFO: Installing web application at context path /kap02 from URL file:/srv/www/tomcat5/base/webapps/kap02
Aug 29, 2007 9:24:11 PM org.apache.catalina.core.StandardHostDeployer install
INFO: Installing web application at context path  from URL file:/srv/www/tomcat5/base/webapps/ROOT
Aug 29, 2007 9:24:12 PM org.apache.catalina.core.StandardHostDeployer install
INFO: Installing web application at context path /jsp-examples from URL file:/srv/www/tomcat5/base/webapps/jsp-examples
Aug 29, 2007 9:24:12 PM org.apache.catalina.core.StandardHostDeployer install
INFO: Installing web application at context path /servlets-examples from URL file:/srv/www/tomcat5/base/webapps/servlets-examples
Aug 29, 2007 9:24:12 PM org.apache.catalina.core.StandardHostDeployer install
INFO: Installing web application at context path /tomcat-docs from URL file:/srv/www/tomcat5/base/webapps/tomcat-docs
Aug 29, 2007 9:24:12 PM org.apache.catalina.core.StandardHostDeployer install
INFO: Installing web application at context path /webdav from URL file:/srv/www/tomcat5/base/webapps/webdav
Aug 29, 2007 9:24:12 PM org.apache.catalina.core.StandardHostDeployer install
INFO: Installing web application at context path /admin from URL file:/srv/www/tomcat5/base/webapps/admin
Aug 29, 2007 9:24:12 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Aug 29, 2007 9:24:13 PM org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on /0.0.0.0:8009
Aug 29, 2007 9:24:13 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=4/38  config=/usr/share/tomcat5/conf/jk2.properties
Aug 29, 2007 9:24:13 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 2616 ms

Und hier noch localhost_log:

Code:
2007-08-29 21:24:11 StandardHost[localhost]: Error deploying application at context path null
java.lang.IllegalArgumentException: Context path is required
	at org.apache.commons.digester.Digester.createSAXException(Digester.java:2792)
	at org.apache.commons.digester.Digester.createSAXException(Digester.java:2818)
	at org.apache.commons.digester.Digester.endElement(Digester.java:1070)
	at org.apache.catalina.util.CatalinaDigester.endElement(CatalinaDigester.java:76)
	at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
	at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source)
	at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
	at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
	at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
	at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
	at org.apache.commons.digester.Digester.parse(Digester.java:1591)
	at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:488)
	at org.apache.catalina.core.StandardHost.install(StandardHost.java:863)
	at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:483)
	at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:427)
	at org.apache.catalina.startup.HostConfig.start(HostConfig.java:983)
	at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:349)
	at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1091)
	at org.apache.catalina.core.StandardHost.start(StandardHost.java:789)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
	at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478)
	at org.apache.catalina.core.StandardService.start(StandardService.java:480)
	at org.apache.catalina.core.StandardServer.start(StandardServer.java:2313)
	at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
	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:324)
	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)

2007-08-29 21:24:12 StandardContext[/jsp-examples]ContextListener: contextInitialized()
2007-08-29 21:24:12 StandardContext[/jsp-examples]SessionListener: contextInitialized()
2007-08-29 21:24:12 StandardContext[/servlets-examples]ContextListener: contextInitialized()
2007-08-29 21:24:12 StandardContext[/servlets-examples]SessionListener: contextInitialized()

Ich möchte noch dazu sagen, dass ich die Admin-Oberfläche nur für Version 5.5 gefunden habe. Auf meinem Server scheint aber Tomcat 5.0 installiert zu sein. Ich hoffe, das ist kein Problem?!?


Titus
 
SEVERE: Error deploying configuration descriptor admin.xml
java.io.IOException: java.lang.IllegalArgumentException: Context path is required
Ich denke diese Fehlermeldung hilft weiter. :)

dass ich die Admin-Oberfläche nur für Version 5.5 gefunden habe. Auf meinem Server scheint aber Tomcat 5.0 installiert zu sein.
Ja, das kann durchaus ein Problem sein.

huschi.
 
Ich denke diese Fehlermeldung hilft weiter. :)

Ja, ich habe die admin.xml angepasst, nun läuft's. :D

Ich hätte auch gerne den Tomcat auf Version 5.5 upgedated. Weil ich mich mit diesen Dingen aber nicht so gut auskenne, läuft danach vermutlich garnix mehr.

Ein kleines Problem habe ich noch: Wenn ich im Admin auf eine Anwendung klicke (z.B. Context (/jsp-examples)) erhalte ich immer Status 500 "Error retrieving attribute antiJARLocking". Was bedeutet das?

Titus
 
Back
Top