Geet Srivastava wrote:CATALINA_HOME = parent of the lib folder where you have catalina.jar.
when you run it from command-line, does it show correct values for java and tomcat environment variables? if not, check if you have setenv.bat in bin folder.
why do not you just comment AprLifecycleListener in server.xml first and see if the error still comes? If it still comes, it means tomcat is reading some other server.xml. It may throw up some other error if classloader is confused. In that case, check catalina.policy for permissions and catalina.properties for jar folders.
Chris Beckey wrote:You have something completely wrong in your install. There is no "jar" directory under CATALINA_HOME, the jar files should be in the "lib" directory. CATALINA_HOME has bin, conf, lib, logs, webapp, and work directories. The "bin" directory has the batch files to start, stop and set the environment.
Step back and tell us how you installed, and what you did after the installation. In particular, what did you download (include the link) and where did you find the installation instructions (again, include the link)?
Installing Tomcat should be a 5 minute task. Run the installer (if on Windows) and then start it. If you are doing a lot more than that then you're making it too difficult.
Geet Srivastava wrote:CATALINA_HOME = parent of the lib folder where you have catalina.jar.
when you run it from command-line, does it show correct values for java and tomcat environment variables? if not, check if you have setenv.bat in bin folder.
why do not you just comment AprLifecycleListener in server.xml first and see if the error still comes? If it still comes, it means tomcat is reading some other server.xml. It may throw up some other error if classloader is confused. In that case, check catalina.policy for permissions and catalina.properties for jar folders.
Krishna Pratap Singh wrote:Hi,
I am facing this error message when instaloling tomcat6
"Failed to install Tomcat6 services
Check your setting And Permissions"
Can any one please help me.
Thanks,
KP Singh
Chris Beckey wrote:Are you running "startup" or running "catalina start"?
Are you running it from the "bin" directory within the tomcat directory?
Check that there is a "lib" directory within tomcat and that at least the catalina.jar file is in there. The missing class is in that JAR.
If that file is there and you didn't modify it, and did not modify the server.xml file then the problem is in the startup, catalina or setenv batch files. Somewhere in there the CATALINA_HOME is either not getting set or is being set incorrectly. Try removing the "echo off" at the start of the files and see where CATALINA_HOME gets set to.
By the way, did you modify the server.xml file at all?
Geet Srivastava wrote:is org.apache.catalina.core.AprLifecycleListener class present in your catalina.jar?
Abhay Adgurwar wrote:
Chris Beckey wrote:What platform are you running on?
Working on windows XP Service pack - 2
Chris Beckey wrote:What platform are you running on?
Abhay Adgurwar wrote:
Chris Beckey wrote:The Tomcat libaries (jar files) are not available on the classpath. Where to look depends on whether you are starting Tomcat as a service or from a command line. If you are starting it as a service then try starting it from the command line and see if that works. If it doesn't work from the command line then trace through the startup script or batch file and look for the classpath settings (hint, search for CATALINA_HOME).
I had run that service from command prompt also , but it is giving the same error mention above.
William Brogden wrote:
Yes its installed work for 1-2 days
If it worked before and doesn't work now, something must have changed.
Like Chris said, this really sounds like a classpath problem
I have try tomcat 6.0.29 and tomcat 7.0.8
Switching back and forth between Tomcat versions provides ample opportunity for getting classpaths and libraries mixed up.
Bill
Chris Beckey wrote:The Tomcat libaries (jar files) are not available on the classpath. Where to look depends on whether you are starting Tomcat as a service or from a command line. If you are starting it as a service then try starting it from the command line and see if that works. If it doesn't work from the command line then trace through the startup script or batch file and look for the classpath settings (hint, search for CATALINA_HOME).
William Brogden wrote:
java.lang.ClassNotFoundException: org.apache.catalina.core.AprLifecycleListener
at org.apache.commons.digester.Digester.createSAXException(Digester.java:2792)
at org.apache.commons.digester.Digester.createSAXException(Digester.java:2818)
Would appear to be the critical message.
Exactly how are you trying to start Tomcat?
Was Tomcat installed as a service?
Exactly which version of Tomcat are we talking about?
Which version of Java?
Has this installation of Tomcat ever worked?
Bill