Sunday, August 15, 2010

Inception Walls





Tuesday, August 3, 2010

Apache Tomcat Listener error solution

i believe the error looks like dis

Aug 3, 2010 9:35:16 PM org.apache.catalina.core.AprLifecycleListener init
INFO: Loaded APR based Apache Tomcat Native library 1.1.20.
Aug 3, 2010 9:35:16 PM org.apache.catalina.core.AprLifecycleListener init
INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], ra
ndom [true].
Aug 3, 2010 9:35:18 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1862 ms
Aug 3, 2010 9:35:18 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
Aug 3, 2010 9:35:18 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.0
Aug 3, 2010 9:35:18 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive epcis-repository-0.4.2.war
Aug 3, 2010 9:35:22 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Error listenerStart
Aug 3, 2010 9:35:22 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Context [/epcis-repository-0.4.2] startup failed due to previous errors
Aug 3, 2010 9:35:22 PM org.apache.catalina.loader.WebappClassLoader clearThreadL
ocalMap
SEVERE: The web application [/epcis-repository-0.4.2] created a ThreadLocal with
key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@91b9b0]) and
a value of type [org.apache.cxf.bus.CXFBusImpl] (value [org.apache.cxf.bus.CXFBu
sImpl@1360c93]) but failed to remove it when the web application was stopped. Th
is is very likely to create a memory leak.
Aug 3, 2010 9:35:22 PM org.apache.catalina.startup.HostConfig deployDirectory

INFO: Deploying web application directory docs
Aug 3, 2010 9:35:22 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory examples
Aug 3, 2010 9:35:22 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory host-manager
Aug 3, 2010 9:35:22 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory manager
Aug 3, 2010 9:35:22 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory ROOT
Aug 3, 2010 9:35:22 PM org.apache.coyote.http11.Http11AprProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Aug 3, 2010 9:35:22 PM org.apache.coyote.http11.Http11AprProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Aug 3, 2010 9:35:22 PM org.apache.coyote.ajp.AjpAprProtocol init
INFO: Initializing Coyote AJP/1.3 on ajp-8009
Aug 3, 2010 9:35:22 PM org.apache.coyote.ajp.AjpAprProtocol start
INFO: Starting Coyote AJP/1.3 on ajp-8009
Aug 3, 2010 9:35:22 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 4679 ms


the solution to this error is as follows:

(1) you need to find out if at all u have jre6 folder in ur C:\Program Files\Java folder

(2) many of them after installing jdk find dat they have jdk 1.6.0 and jre 1.6.0(version may b different)

(3) u need to have jre6 folder for which download that from the following link

http://rapidshare.com/files/410807429/jre6.rar

(4) then go to the environmental variables and create a user variable JRE_HOME whose value should point to the jre6 folder u just now downloaded and extracted

eg:- C:\Program Files (x86)\Java\jre6 (variable value)

(5) run the tomcat.. it works wonderfully

hope it helped!!
please give ur comments