In my WEB-INF/lib I have the following (sorry the list is quite long): activation.jar axis.jar BTDslCheckerLib.jar (this is one of our java projects) commons-beanutils.jar commons-codec-1.3.jar commons-collections.jar commons-digester.jar commons-discovery-0.2.jar commons-fileupload.jar common-httpclient-3.0.1.jar commons-logging-1.0.4.jar commons-validator.jar ditchnet-tabs-taglib.jar itext-1.4.jar jaxen-core.jar jaxen-jdom.jar jaxrpc.jar jbossall-client.jar jcifs-1.2.17dynamic-dc.jar jcifs-1.3.17.jar jdom.jar jstl.jar log4j-1.2.13.jar mail.jar poi-2.5.1-final-20040804.jar poi-3.7-20101029.jar poi-contrib-2.5.1-final-20040804.jar saaj.jar saxpath.jar SOPortalCommon.jar (this is one of our java projects) standard.jar struts.jar struts-el.jar commonlib.jar (this is one of our java projects) portalcommonlib.jar (this is one of our java projects) wsclients.jar (this is one of our java projects) wsdl4j-1.5.1.jar yahoo-toolkit.jar (this is one of our java projects that uses the yahoo toolkit yui stuff)
In terms of upgrading, I downloaded jre7 and installed it, changed the projects to use jre7 and in eclipse I pointed the installed JREs to use jre7. I then downloaded Tomcat7, changed the server.xml file to have the Resource tags/elements in GlobalNamingResources tag to point to my databases (9 Resource tags in total, all taken from the server.xml file in Tomcat 5.5). In Service tag/element, I have added the following: <Connector port="8088" maxHttpHeaderSize="8192" maxThreads="150" minSpareThreads="10" enableLookups="false" redirectPort="8443" acceptCount="100" connectionTimeout="20000" disableUploadTimeout="true" /> I have commented out: <Connector connectionTimeout="20000" port="8088" protocol="HTTP/1.1" redirectPort="8443"/> In the Engine tag/element I have added: <Realm className="org.apache.catalina.realm.JNDIRealm" connectionURL="ldap://xxx:3268" connectionName="xxx@xxx.local" connectionPassword="xxx" referrals="follow" userBase="dc=xxx,dc=local" userSearch="(sAMAccountName={0})" userSubtree="true" roleBase="dc=xxx,dc=local" roleSearch="(member={0})" roleName="cn" roleSubtree="true" /> which is just before the Host tag/element. In Tomcat7.0/lib directory I have (I have grouped them alphabetically so it doesn't make the list too long downwards, like the above list) (some of which I have added, but not sure if they're needed): activation.jar, annotations-api.jar catalina.jar, catalina-ant.jar, catalina-ha.jar, catalina-tribes.jar ecj-4.2.2.jar, el-api.jar j2ee.jar jasper.jar, jasper-el.jar jaxen-core.jar, jaxen-jdom.jar, jdom.jar, jsp.jar, jtds-1.2.jar log4j-1.2.13.jar mysql-connector-java-5.0.8-bin.jar naming-factory.jar, naming-facotry-dbcp.jar, naming-resources.jar servlet-api.jar tomcat-api.jar, tomcat-coyote.jar, tomcat-dbcp.jar, tomcat-i18n-es.jar, tomcat-i18n-fr.jar, tomcat-i18n-ja.jar, tomcat-jdbc.jar, tomcat-util.jar xmlrpc-1.2-b1.jar I believe that's everything I have done, but I may have left something out, as I have been trying to get it working for the pass 2 days and may have changed something that I don't remember. If there is anything more you need to know then please let me know. Thanks Seema > Date: Fri, 9 Aug 2013 09:07:48 -0400 > From: ch...@christopherschultz.net > To: users@tomcat.apache.org > Subject: Re: Upgrade to Tomcat 7 Issues > > -----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 >