-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Seema,
On 8/9/13 5:17 AM, Seema Patel wrote: > I've upgraded my tomcat from 5.5 to 7.0. I've also upgraded the jre > from 1.5 to 7. > > I'm trying to get my existing struts/servlets projects to run, but > I'm getting the following error when running tomcat in my > tomcat7-stderr...log file: > > INFO: Deploying configuration descriptor C:\Tomcat > 7.0\conf\Catalina\localhost\common.xml 09-Aug-2013 10:11:44 > org.apache.catalina.core.ContainerBase addChildInternal SEVERE: > ContainerBase.addChild: start: > org.apache.catalina.LifecycleException: Failed to start component > [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/common]] > > at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154) > at > org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901) > > at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877) > at > org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633) > > at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:656) > at > org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1635) > > at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) > at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at > java.util.concurrent.FutureTask.run(Unknown Source) at > java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown > Source) at > java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) > at java.lang.Thread.run(Unknown Source) Caused by: > java.lang.NoSuchMethodError: > javax.servlet.ServletContext.getSessionCookieConfig()Ljavax/servlet/SessionCookieConfig; > > at org.apache.catalina.deploy.WebXml.configureContext(WebXml.java:1374) > at > org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1346) > > at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:878) > at > org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:376) > > at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) > at > org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90) > > at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5322) > at > org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) > > ... 11 more > > Any ideas? Have I missed something? Sounds like you have a library in your WEB-INF/lib directory that you should not have. Can you give us a listing of what you have there? Tomcat should be protecting itself against loading javax.servlet.* classes from your webapp, but that sure looks like what is happening. Or maybe you copied old (Tomcat) libraries from your Tomcat 5.5 install to Tomcat 7.0? Can you tell us exactly how you upgraded from one to another (be as specific as possible without writing a 50-page description). - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.14 (Darwin) Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBCAAGBQJSBOmkAAoJEBzwKT+lPKRYBkcP/j3SfgL5v0KbZa37blpSu3pt 9yUsosdIcy36baBdxefOZKyRhLVSQusdm7egj3SbY2O7/GofcoCPrU17iF4jltqL S0czwXKFItmX+H+44siEJO295oC91GF6ogBQPdOveJXI96bbZo1DTs/TqeFVK66R x6MO0Xp/KYBYYx06bLU/kqbUA1WpvZ47x5y69JCJ88beCvhFjixFIKNJmlxZ6xLZ hxUjery+59Ao/lVKSRhVsY5ytuI66rKgaCwYEsO57c+gBkO0Ex8QCdOUFIBYuj8/ AXOOuyElbxri1jAnoaqG81nVPK1KdPkNAlueYBt1ke0j+bxl/H+VOjz2siyjJB3j o4Uag/z8e5APLautD+0b37TjMZWrxy7sm5AMrKCsSgYEuX88VU26kpkFlqTy6OQI BDqqvnTf0mHFfQPO96+vOnhpGKRkXFxORAfGynixeoKw8n13YKdyV6wxKfLne6gc cbR01SRMXe3O71o5+jH1PB6ZhGh9PRA4wgUDuUuht96Jdv6lmizOpl8ZZWHIRtjU v4KQu6X9akHLNM29JWVD/6XuhwD7Tr4tiHHQHHR8ozLt6hg7SdAiDSUBQw7RkF6s NUK2FkUDUA6ICncZ61TiHkaxyH+SCh4c5Z6ThP8pvbUTmWV2UZ1VLJ/6T9GvCyPY 5+XsswfHm40lBbprZn2F =7d1+ -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org