Thread: Tomcat problem
hello there, server crashed, had reinstall again.
it's been long time since i've looked @ how i've managed tomcat working , , right maybe have tomcat running, nothing been deployed. not war file nor examples, docs , manager.
don't have clue why.
here's server.xml:
here's my log files:code:<?xml version='1.0' encoding='utf-8'?> <!-- licensed apache software foundation (asf) under 1 or more contributor license agreements. see notice file distributed work additional information regarding copyright ownership. asf licenses file under apache license, version 2.0 (the "license"); may not use file except in compliance license. may obtain copy of license @ http://www.apache.org/licenses/license-2.0 unless required applicable law or agreed in writing, software distributed under license distributed on "as is" basis, without warranties or conditions of kind, either express or implied. see license specific language governing permissions , limitations under license. --> <!-- note: "server" not "container", may not define subcomponents such "valves" @ level. documentation @ /docs/config/server.html --> <server port="8005" shutdown="shutdown"> <!--apr library loader. documentation @ /docs/apr.html --> <!-- <listener classname="org.apache.catalina.core.aprlifecyclelistener" sslengine="on" /> --> <!--initialize jasper prior webapps loaded. documentation @ /docs/jasper-howto.html --> <listener classname="org.apache.catalina.core.jasperlistener" /> <!-- prevent memory leaks due use of particular java/javax apis--> <listener classname="org.apache.catalina.core.jrememoryleakpreventionlistener" /> <!-- jmx support tomcat server. documentation @ /docs/non-existent.html --> <listener classname="org.apache.catalina.mbeans.serverlifecyclelistener" /> <listener classname="org.apache.catalina.mbeans.globalresourceslifecyclelistener" /> <!-- global jndi resources documentation @ /docs/jndi-resources-howto.html --> <globalnamingresources> <!-- editable user database can used userdatabaserealm authenticate users --> <resource name="userdatabase" auth="container" type="org.apache.catalina.userdatabase" description="user database can updated , saved" factory="org.apache.catalina.users.memoryuserdatabasefactory" pathname="conf/tomcat-users.xml" /> </globalnamingresources> <!-- "service" collection of 1 or more "connectors" share single "container" note: "service" not "container", may not define subcomponents such "valves" @ level. documentation @ /docs/config/service.html --> <service name="catalina"> <!--the connectors can use shared executor, can define 1 or more named thread pools--> <!-- <executor name="tomcatthreadpool" nameprefix="catalina-exec-" maxthreads="150" minsparethreads="4"/> --> <!-- "connector" represents endpoint requests received , responses returned. documentation @ : java http connector: /docs/config/http.html (blocking & non-blocking) java ajp connector: /docs/config/ajp.html apr (http/ajp) connector: /docs/apr.html define non-ssl http/1.1 connector on port 8080 --> <connector port="8888" protocol="http/1.1" connectiontimeout="20000" uriencoding="utf-8" redirectport="8443" /> <!-- "connector" using shared thread pool--> <!-- <connector executor="tomcatthreadpool" port="8080" protocol="http/1.1" connectiontimeout="20000" redirectport="8443" /> --> <!-- define ssl http/1.1 connector on port 8443 connector uses jsse configuration, when using apr, connector should using openssl style configuration described in apr documentation --> <!-- <connector port="8443" protocol="http/1.1" sslenabled="true" maxthreads="150" scheme="https" secure="true" clientauth="false" sslprotocol="tls" /> --> <!-- define ajp 1.3 connector on port 8009 --> <connector port="8009" protocol="ajp/1.3" redirectport="8443" /> <!-- engine represents entry point (within catalina) processes every request. engine implementation tomcat stand alone analyzes http headers included request, , passes them on appropriate host (virtual host). documentation @ /docs/config/engine.html --> <!-- should set jvmroute support load-balancing via ajp ie : <engine name="catalina" defaulthost="localhost" jvmroute="jvm1"> --> <engine name="catalina" defaulthost="localhost"> <!--for clustering, please take @ documentation at: /docs/cluster-howto.html (simple how to) /docs/config/cluster.html (reference documentation) --> <!-- <cluster classname="org.apache.catalina.ha.tcp.simpletcpcluster"/> --> <!-- request dumper valve dumps useful debugging information request , response data received , sent tomcat. documentation at: /docs/config/valve.html --> <!-- <valve classname="org.apache.catalina.valves.requestdumpervalve"/> --> <!-- realm uses userdatabase configured in global jndi resources under key "userdatabase". edits performed against userdatabase available use realm. --> <realm classname="org.apache.catalina.realm.userdatabaserealm" resourcename="userdatabase"/> <!-- define default virtual host note: xml schema validation not work xerces 2.2. --> <host name="localhost" appbase="webapps" unpackwars="true" autodeploy="true" xmlvalidation="false" xmlnamespaceaware="false"> <!-- singlesignon valve, share authentication between web applications documentation at: /docs/config/valve.html --> <!-- <valve classname="org.apache.catalina.authenticator.singlesignon" /> --> <!-- access log processes example. documentation at: /docs/config/valve.html --> <!-- <valve classname="org.apache.catalina.valves.accesslogvalve" directory="logs" prefix="localhost_access_log." suffix=".txt" pattern="common" resolvehosts="false"/> --> </host> </engine> </service> </server>
/var/log/apache2.error.log
/var/log/catalina.2010-09-05.logcode:[sun sep 05 19:56:19 2010] [notice] suexec mechanism enabled (wrapper: /usr/lib/apache2/suexec) [sun sep 05 19:56:20 2010] [notice] apache/2.2.14 (ubuntu) mod_fcgid/2.3.4 php/5.3.2-1ubuntu4.2 suhosin-patch mod_ssl/2.2.14 openssl/0.9.8k configured -- resuming normal operations [sun sep 05 21:00:57 2010] [error] [client 82.171.16.94] file not exist: /var/www/favicon.ico
code:sep 5, 2010 12:09:26 pm org.apache.catalina.core.aprlifecyclelistener init info: apr based apache tomcat native library allows optimal performance in production environments not found on java.library.path: /usr/lib/jvm/java-6-openjdk/jre/lib/amd64/server:/usr/lib/jvm/java-6-openjdk/jre/lib/amd64:/usr/lib/jvm/java-6-openjdk/jre/../lib/amd64:/usr/java/packages/lib/amd64:/usr/lib/jni:/lib:/usr/lib sep 5, 2010 12:09:26 pm org.apache.coyote.http11.http11protocol init info: initializing coyote http/1.1 on http-8888 sep 5, 2010 12:09:26 pm org.apache.catalina.startup.catalina load info: initialization processed in 2078 ms sep 5, 2010 12:09:26 pm org.apache.catalina.core.standardservice start info: starting service catalina sep 5, 2010 12:09:26 pm org.apache.catalina.core.standardengine start info: starting servlet engine: apache tomcat/6.0.24 sep 5, 2010 12:09:27 pm org.apache.catalina.startup.hostconfig deploydescriptor info: deploying configuration descriptor root.xml sep 5, 2010 12:09:27 pm org.apache.catalina.startup.hostconfig deploydescriptor info: deploying configuration descriptor docs.xml sep 5, 2010 12:09:27 pm org.apache.catalina.startup.hostconfig deploydescriptor info: deploying configuration descriptor host-manager.xml sep 5, 2010 12:09:27 pm org.apache.catalina.startup.hostconfig deploydescriptor info: deploying configuration descriptor examples.xml sep 5, 2010 12:09:28 pm org.apache.catalina.startup.hostconfig deploydescriptor info: deploying configuration descriptor manager.xml sep 5, 2010 12:09:28 pm org.apache.coyote.http11.http11protocol start info: starting coyote http/1.1 on http-8888 sep 5, 2010 12:09:29 pm org.apache.jk.common.channelsocket init info: jk: ajp13 listening on /0.0.0.0:8009 sep 5, 2010 12:09:29 pm org.apache.jk.server.jkmain start info: jk running id=0 time=0/33 config=null sep 5, 2010 12:09:29 pm org.apache.catalina.startup.catalina start info: server startup in 2180 ms
bump
Forum The Ubuntu Forum Community Ubuntu Official Flavours Support General Help [SOLVED] Tomcat problem
Ubuntu
Comments
Post a Comment