hi thanks for reply, The <DataSource> details is in "applicationContext.xml" (spring). There is no data moved from context.xml/server.xml from tomcat 4.1 to tomcat 5.5. (i just don't have it...) succeeded run on the default 4.1 version.
I'm using the default files as they created by tomcat 5.5. Tomcat ignore servlet.jar so it removed by me from the lib folder. (in Apache only) * In eclipse i still need it to compile!! i do want to work with the new jar (servlet-api.jar) but when i removed the servlet.jar from the class path i got this error on one of the classes: The type javax.servlet.jsp.tagext.TagSupport cannot be resolved. It is indirectly referenced from required .class files *The application is up and running but when click on the application from tomcat manager i got the followiong error: java.lang.NoSuchMethodError: javax.servlet.jsp.tagext.TagAttributeInfo.<init>(Ljava/lang/String;ZLjava/lang/String;ZZ)V org.apache.jasper.compiler.TagLibraryInfoImpl.createAttribute(TagLibraryInfoImpl.java:581) org.apache.jasper.compiler.TagLibraryInfoImpl.createTagInfo(TagLibraryInfoImpl.java:402) org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD(TagLibraryInfoImpl.java:249) org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:180) org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:424) org.apache.jasper.compiler.Parser.parseDirective(Parser.java:493) org.apache.jasper.compiler.Parser.parseElements(Parser.java:1557) org.apache.jasper.compiler.Parser.parse(Parser.java:127) org.apache.jasper.compiler.ParserController.doParse(ParserController.java:212) org.apache.jasper.compiler.ParserController.parse(ParserController.java:101) org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:156) org.apache.jasper.compiler.Compiler.compile(Compiler.java:296) org.apache.jasper.compiler.Compiler.compile(Compiler.java:277) org.apache.jasper.compiler.Compiler.compile(Compiler.java:265) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:564) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:299) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322) com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:142) com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87) com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200) com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117) javax.faces.webapp.FacesServlet.service(FacesServlet.java:198) org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:691) org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:661) org.apache.jsp.index_jsp._jspService(index_jsp.java:48) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:328) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) On 10/30/07, Christopher Schultz <[EMAIL PROTECTED]> wrote: > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Itay, > > itay sahar wrote: > > i have an application running on tomcat 4.1. > > i want to make a huge addings to this application but first i want to > work > > on tomcat 5.5 version. > > is there a way i can do it ? (i know it's not easy). > > I recently upgraded 5 applications from 4.1.36 to 5.5.23 and it was > relatively smooth. The best advice I can give you is: > > 1. Move any <Realm> and/or <DataSource> elements from server.xml to > [yourwebapp]/META-INF/context.xml (yes, that's META-INF, not WEB-INF) > > 2. Throw out your old server.xml. Start again with the one that ships > with Tomcat 5.5 and customize it to meet your needs. You may find > that, after doing #1 above that you no longer need any customizations > to the server.xml file. > > 3. Throw out servlet-api.jar and servlet.jar from your application. > Tomcat will ignore them at best (which I think is the case) and fail > at worst. > > > commons-beanutils.jar > > commons-collections-2.1.jar > > commons-dbcp-1.1.jar > > commons-digester.jar > > commons-logging.jar > > You might want to check that you have the most recent (compatible) > versions of these libraries. I know that some of them have newer > versions. I wouldn't do this until after you have TC 5.5 working, though. > > > mysql-connector-java-3.0.9-stable-bin.jar > > Latest MySQL connector is 5.0.something (I have 5.0.7 right now). I > strongly recommend upgrading after you get everything else working. Note > that from 3.0 to 5.0 a lot of JDBC spec stuff was fixed (MySQL had not > been compliant in several instances) so some behavior has changed (for > instance, inserting more data than will fit into a character column now > throws an exception instead of issuing a warning). Check the docs to see > how to deal with these changes. In most cases, you can configure the > JDBC driver to revert to the old (non-JDBC-compliant) behavior. > > > but i cannot use:javax.servlet.jsp.tagext.TagSupport > > and also javax.servlet.jsp.JspException is not available. > > Do you have a problem compiling, or a problem deploying? Can you post a > full stack trace of the first error you encounter? > > - -chris > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.7 (MingW32) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org > > iD8DBQFHJ1Hs9CaO5/Lv0PARAlJiAKC4qUzX3yago9BSc04tE03h7k/yYQCgmElL > z/Y6O2l2yvLSkWp8zi4TtVA= > =8jqv > -----END PGP SIGNATURE----- > > --------------------------------------------------------------------- > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >