I have executed the startup.bat using administrative privileges and also tried installing at different locations, got the same error. i.e opened the cmd.exe (Run as Administrator) and then started tomcat by executing startup.bat.
On Tue, Jan 19, 2016 at 7:53 PM, André Warnier (tomcat) <a...@ice-sa.com> wrote: > On 19.01.2016 14:36, Anand wrote: > >> I tried to start the tomcat from command line by executing the >> startup.bat. >> > > Ok. Again, I am not the ultimate expert, but the key error below seems to > be around > > Caused by: java.lang.NoSuchMethodError: > org.apache.naming.NamingContext.setExceptionOnFailedWrite(Z)V > > I don't know exactly what that means, but since you are on Windows 7, I > would first make sure that you are not experiencing some conflict with > "User Account Control" or similar, and that the directories where Tomcat > needs to write (as it is started in a command window, under the user > account which you use to login into Windows), can actually be written by > this Tomcat (the "logs" directory, and the "work" directory for instance). > (This may not be the ultimate reason for the error, but it may be a > triggering factor). > > >> On Tue, Jan 19, 2016 at 6:40 PM, André Warnier (tomcat) <a...@ice-sa.com> >> wrote: >> >> On 19.01.2016 13:53, Anand wrote: >>> >>> I am trying to install Tomcat 8.0.18 from location: >>>> >>>> >>>> >>>> http://archive.apache.org/dist/tomcat/tomcat-8/v8.0.18/bin/apache-tomcat-8.0.18-windows-x64.zip >>>> >>>> >>>> >>>> JDK Used from below location >>>> >>>> >>>> >>>> http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html >>>> >>>> jdk-8u66-windows-x64.exe >>>> >>>> Environment - Windows 7, JDK 1.8 >>>> >>>> I am not modifying any files(like wevb.xml) during startup and also not >>>> added any 3rd party jars in tomcat lib directory. >>>> >>>> Tomcat is unable to start, fails with below error: >>>> Jan 18, 2016 4:28:05 PM >>>> org.apache.catalina.startup.VersionLoggerListener >>>> log >>>> INFO: Server version: Apache Tomcat/8.0.18 >>>> Jan 18, 2016 4:28:05 PM >>>> org.apache.catalina.startup.VersionLoggerListener >>>> log >>>> INFO: Server built: Jan 23 2015 11:56:07 UTC >>>> Jan 18, 2016 4:28:05 PM >>>> org.apache.catalina.startup.VersionLoggerListener >>>> log >>>> INFO: Server number: 8.0.18.0 >>>> Jan 18, 2016 4:28:05 PM >>>> org.apache.catalina.startup.VersionLoggerListener >>>> log >>>> INFO: OS Name: Windows 7 >>>> Jan 18, 2016 4:28:05 PM >>>> org.apache.catalina.startup.VersionLoggerListener >>>> log >>>> INFO: OS Version: 6.1 >>>> Jan 18, 2016 4:28:05 PM >>>> org.apache.catalina.startup.VersionLoggerListener >>>> log >>>> INFO: Architecture: amd64 >>>> Jan 18, 2016 4:28:05 PM >>>> org.apache.catalina.startup.VersionLoggerListener >>>> log >>>> INFO: Java Home: C:\Program Files\Java\jdk1.8.0_66\jre >>>> Jan 18, 2016 4:28:05 PM >>>> org.apache.catalina.startup.VersionLoggerListener >>>> log >>>> INFO: JVM Version: 1.8.0_66-b18 >>>> Jan 18, 2016 4:28:05 PM >>>> org.apache.catalina.startup.VersionLoggerListener >>>> log >>>> INFO: JVM Vendor: Oracle Corporation >>>> Jan 18, 2016 4:28:05 PM >>>> org.apache.catalina.startup.VersionLoggerListener >>>> log >>>> INFO: CATALINA_BASE: >>>> C:\Tomcat\apache-tomcat-8.0.18-windows-x64\apache-tomcat-8.0.18 >>>> Jan 18, 2016 4:28:05 PM >>>> org.apache.catalina.startup.VersionLoggerListener >>>> log >>>> INFO: CATALINA_HOME: >>>> C:\Tomcat\apache-tomcat-8.0.18-windows-x64\apache-tomcat-8.0.18 >>>> Jan 18, 2016 4:28:05 PM >>>> org.apache.catalina.startup.VersionLoggerListener >>>> log >>>> INFO: Command line argument: >>>> >>>> >>>> -Djava.util.logging.config.file=C:\Tomcat\apache-tomcat-8.0.18-windows-x64\apache-tomcat-8.0.18\conf\logging.properties >>>> Jan 18, 2016 4:28:05 PM >>>> org.apache.catalina.startup.VersionLoggerListener >>>> log >>>> INFO: Command line argument: >>>> -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager >>>> Jan 18, 2016 4:28:05 PM >>>> org.apache.catalina.startup.VersionLoggerListener >>>> log >>>> INFO: Command line argument: >>>> >>>> >>>> -Djava.endorsed.dirs=C:\Tomcat\apache-tomcat-8.0.18-windows-x64\apache-tomcat-8.0.18\endorsed >>>> Jan 18, 2016 4:28:05 PM >>>> org.apache.catalina.startup.VersionLoggerListener >>>> log >>>> INFO: Command line argument: >>>> >>>> >>>> -Dcatalina.base=C:\Tomcat\apache-tomcat-8.0.18-windows-x64\apache-tomcat-8.0.18 >>>> Jan 18, 2016 4:28:05 PM >>>> org.apache.catalina.startup.VersionLoggerListener >>>> log >>>> INFO: Command line argument: >>>> >>>> >>>> -Dcatalina.home=C:\Tomcat\apache-tomcat-8.0.18-windows-x64\apache-tomcat-8.0.18 >>>> Jan 18, 2016 4:28:05 PM >>>> org.apache.catalina.startup.VersionLoggerListener >>>> log >>>> INFO: Command line argument: >>>> >>>> >>>> -Djava.io.tmpdir=C:\Tomcat\apache-tomcat-8.0.18-windows-x64\apache-tomcat-8.0.18\temp >>>> Jan 18, 2016 4:28:05 PM org.apache.catalina.core.AprLifecycleListener >>>> lifecycleEvent >>>> INFO: Loaded APR based Apache Tomcat Native library 1.1.32 using APR >>>> version 1.5.1. >>>> Jan 18, 2016 4:28:05 PM org.apache.catalina.core.AprLifecycleListener >>>> lifecycleEvent >>>> INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters >>>> [false], random [true]. >>>> Jan 18, 2016 4:28:06 PM org.apache.catalina.core.AprLifecycleListener >>>> initializeSSL >>>> INFO: OpenSSL successfully initialized (OpenSSL 1.0.1j 15 Oct 2014) >>>> Jan 18, 2016 4:28:06 PM org.apache.coyote.AbstractProtocol init >>>> INFO: Initializing ProtocolHandler ["http-apr-8080"] >>>> Jan 18, 2016 4:28:06 PM org.apache.coyote.AbstractProtocol init >>>> INFO: Initializing ProtocolHandler ["ajp-apr-8009"] >>>> Jan 18, 2016 4:28:06 PM org.apache.catalina.startup.Catalina load >>>> INFO: Initialization processed in 1621 ms >>>> Jan 18, 2016 4:28:06 PM org.apache.catalina.startup.Catalina start >>>> SEVERE: The required Server component failed to start so Tomcat is >>>> unable >>>> to start. >>>> org.apache.catalina.LifecycleException: Failed to start component >>>> [StandardServer[8005]] >>>> at >>>> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154) >>>> at org.apache.catalina.startup.Catalina.start(Catalina.java:625) >>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >>>> at >>>> >>>> >>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) >>>> at >>>> >>>> >>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) >>>> at java.lang.reflect.Method.invoke(Method.java:497) >>>> at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:351) >>>> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:485) >>>> Caused by: java.lang.NoSuchMethodError: >>>> org.apache.naming.NamingContext.setExceptionOnFailedWrite(Z)V >>>> at >>>> >>>> >>>> org.apache.catalina.core.NamingContextListener.lifecycleEvent(NamingContextListener.java:249) >>>> at >>>> >>>> >>>> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117) >>>> at >>>> >>>> >>>> org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90) >>>> at >>>> >>>> >>>> org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:761) >>>> at >>>> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) >>>> ... 7 more >>>> >>>> Jan 18, 2016 4:28:06 PM org.apache.catalina.util.LifecycleBase destroy >>>> WARNING: Calling stop() on failed component [StandardServer[8005]] to >>>> trigger clean-up did not complete. >>>> org.apache.catalina.LifecycleException: Failed to stop component >>>> [StandardServer[8005]] >>>> at >>>> org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:236) >>>> at >>>> org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:272) >>>> at org.apache.catalina.startup.Catalina.start(Catalina.java:629) >>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >>>> at >>>> >>>> >>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) >>>> at >>>> >>>> >>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) >>>> at java.lang.reflect.Method.invoke(Method.java:497) >>>> at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:351) >>>> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:485) >>>> Caused by: org.apache.catalina.LifecycleException: An invalid Lifecycle >>>> transition was attempted ([before_stop]) for component >>>> [StandardService[Catalina]] in state [INITIALIZED] >>>> at >>>> >>>> >>>> org.apache.catalina.util.LifecycleBase.invalidTransition(LifecycleBase.java:409) >>>> at >>>> org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:219) >>>> at >>>> >>>> >>>> org.apache.catalina.core.StandardServer.stopInternal(StandardServer.java:790) >>>> at >>>> org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:232) >>>> ... 8 more >>>> >>>> Jan 18, 2016 4:28:06 PM org.apache.coyote.AbstractProtocol destroy >>>> INFO: Destroying ProtocolHandler ["http-apr-8080"] >>>> Jan 18, 2016 4:28:06 PM org.apache.coyote.AbstractProtocol destroy >>>> INFO: Destroying ProtocolHandler ["ajp-apr-8009"]. >>>> >>>> Thoughts? >>>> >>>> >>>> No real expert here, but one thing that you failed to indicate in your >>> otherwise excellent description above, is /how/ you tried to start >>> Tomcat.. >>> >>> >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org >>> For additional commands, e-mail: users-h...@tomcat.apache.org >>> >>> >>> >> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > > -- Thanks & Regards Anand