Migrate to Tomcat 6

Soon I will be upgrading from Tomcat 4 to Tomcat 6.
Can I reload my wars from Tomcat 4 into Tomcat 6?
Does Tomcat 6.0.18 come with the jdbc drivers (mysql, oracle) and mail.jar or do I need to install them?
Please advise any other info I should know before making the upgrade?

Can I reload my wars from Tomcat 4 into Tomcat 6?Theoretically, yes. Tomcat has been written to be backwards compatible. If you keep your web.xml declared as it is currently, then it will treat it as a "Servlet2.3/JSP1.2" application.
In practice: try it and see if it breaks or not.
The only thing I can think of that might be even slightly different was a bug fix related to request.getRequestURI().
The functionality of getRequestURI changed so you might have to replace references to getRequestURI with request.getAttribute("javax.servlet.forward.request_uri");
Does Tomcat 6.0.18 come with the jdbc drivers (mysql, oracle) and mail.jar or do I need to install them?You need to install them
I take it you would also be upgrading the underlying java version as well as the container?
ie Java 1.4 to Java 5 or Java 6?
Are you going to be upgrading these webapps for JSP2.0 using EL and JSTL or keeping them "as is"?

Similar Messages

  • Will Portal migrate to Tomcat?

    I have a question regarding iAS and Portals use of Jserv.
    A few quotes from www.apache.org:
    "Our most widely used project, JServ, will also be migrated, but as it has already been noted, JServ is in a bug fix only mode. No new features will be added and no new development will occur. As a replacement for JServ, we recommend that you please evaluate the Tomcat servlet engine for your needs as it implements the latest Servlet API specifications and that is where all active development is occuring."
    "3 July 2000 Apache JServ has been chosen (along with Apache httpd) by Oracle for use in their Internet Application Server product. The Java Apache Project is proud to have our software commercially endorsed. Hopefully they will also migrate to the Jakarta Tomcat servlet engine which supports the latest Servlet API and JSP specifications out of the box."
    My question is: will Oracle migrate to Tomcat, and if so: When?
    Best regards,
    Rune Lxvnfseth

    I've passed your question on to the Application Server Product Managers. Look for a reply directly from them. This discussion is focused on Oracle9iAS Portal rather than the Application Server.

  • Migration from tomcat to weblogic 10.3.2

    Hi,
    I am developing a web application, its a servlet which basically acts as a front end for a web service,
    and I use CXF for the web service client, tested under a development tomcat instance and worked fine.
    I have the spring framework and the rest jars in the lib:
    wsdl4j-1.6.1.jar
    wss4j-1.5.8.jar
    jaxb-api-2.0.jar
    cxf-2.2.3.jar
    while I try to migrate to weblogic 10.3.2 follow the change as in
    http://cxf.apache.org/docs/application-server-specific-configuration-guide.html#ApplicationServerSpecificConfigurationGuide-WebLogic
    Then I got the exception:
    java.lang.IncompatibleClassChangeError: Class com.ibm.wsdl.DefinitionImpl does not implement the requested interface javax.wsdl.extensions.AttributeExtensible
    at org.apache.cxf.wsdl11.WSDLServiceBuilder.copyExtensionAttributes(WSDLServiceBuilder.java:137)
    at org.apache.cxf.wsdl11.WSDLServiceBuilder.buildServices(WSDLServiceBuilder.java:277)
    I have been research on this problem for a while, found some posts from experts like Dan on Nable...
    but I still didn't get it, could anyone help on this.
    Joelking

    can u let us know how did you resolve this?

  • Migrating from Tomcat to WebSphere

    I have a JSF application which works correctly under tomcat web-server. But when I tried to migrate this application to IBM WebSphere I was suprised to dicover that it didn't work at all. I found a lot of differences between how WS and Tomcat interprete faces-config. Moreover WS parser doesn't understand tags like "<tagname \>".
    Maybe somebody has already faced with such a problem and can tell me something how to solve it.

    WebSphere version is 6.

  • JSPX Migration from Tomcat to OC4J

    We are migrating the web tier of our application from Tomcat 5 to OC4J 10.1.3.0.0. We are having a problem in our jspx files. The code below works in Tomcat but not in oc4j.
    <gc3:viewFieldText name="invoice/invoice_xid" valueIndicator="invoice/indicator">
    <jsp:attribute name="label">
    <x:when select="$mainNode/invoice_type = 'B'">field.invoice/bill_xid</x:when>
    <x:otherwise>field.invoice/invoice_xid</x:otherwise>
    </x:choose>
    </jsp:attribute>
    </gc3:viewFieldText>
    We are trying to dynamically set the label attribute of one of our custom tags using <jsp:attribute> and the jstl xtags. mainNode is a variable bound in the request and based on the result of the XPath expression, we want to dynamically set the label attribute. The XPath expression is correctly evaluated, however instead of passing the text within the x:when or x:otherwise to our custom tag, it just writes it out to the screen.
    If I remove the xtags from the code and hard code the label it works as shown below.
    <gc3:viewFieldText name="invoice/invoice_xid" valueIndicator="invoice/indicator">
    <jsp:attribute name="label">
    field.invoice/bill_xid
    </jsp:attribute>
    </gc3:viewFieldText>
    Let me know if you need any further information.

    Chad,
    10.1.3.0.0 was buggy.
    Try 10.1.3.1.0 or the latest: 10.1.3.2.0
    (Just a suggestion.)
    Good Luck,
    Avi.

  • ATG Dynamo migration to Tomcat server

    Hi All,
    I got a new task of migration ATG dynamo to Tomcat server. Can we able to do it?? I would appreciate f you can provide some documents regarding this.
    Thanks in advance.

    Refer to the article at
    http://developers.sun.com/webserver/reference/techart/tomcat_migration.html

  • JAX-RPC on OC4J (Migrating from TOMCAT to OC4J) Problems

    I am attempting to compile and build a simple web service
    to using wsdeploy from Sun's JWSDP1.2. It works fine on Tomcat but when I try to deploy it to OC4J. I get the following error:
    7/23/03 11:58 AM Internal error in HttpServer
    java.lang.ClassCastException: com.evermind.naming.ContextClassLoader
         at com.sun.xml.rpc.server.http.JAXRPCContextListener.contextInitialized(JAXRPCContextListener.java:52)
         at com.evermind.server.http.HttpApplication.initDynamic(HttpApplication.java:583)
         at com.evermind.server.http.HttpApplication.<init>(HttpApplication.java:374)
         at com.evermind.server.Application.getHttpApplication(Application.java:657)
         at com.evermind.server.http.HttpServer.getHttpApplication(HttpServer.java:663)
         at com.evermind.server.http.HttpSite.getApplication(HttpSite.java:387)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:378)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:243)
         at com.evermind.util.ThreadPoolThread.run(ThreadPoolThread.java:64)7/23/03 3:53 PM 9.0.2.0.0
    I've come to notice that Oracle's WebServicesAssembler doesn't use com.sun.xml.rpc.server.http.JAXRPCContextListener but instead uses something else. When the JAXRPCContextListener starts to initialize it trys to perform the following operation:
    classLoader = (URLClassLoader)Thread.currentThread().getContextClassLoader();
    Is there any way to remedy this?? Or is there anything I can do to get this to work??
    Thanks
    Mike

    Have you deployed JAX-RPC onto OC4J? We currently do not have JAX-RPC available on OC4J.
    Mike.

  • Migrating from Tomcat to OC4J

    We are currently just using Tomcat for both HTTP and Servlet engine duties on our web server. The HTTP side is quite slow so
    we have just purchased the 9iAS with OC4J (v.1.0.2.2). The documentation say OC4J is "100%" Tomcat compatible. That's great but current setup uses HTML to build 3 frames then puts an HTML menu in one which has the javascript commands to run java classes via a servlet. We have our index.html in the top level folder, then the menu files in a sub-folder (menu), graphics in another (misc), javascript in another (lib), then the class files are below that in :
    /Web-inf/classes/html...
    /Web-inf/classes/database
    /Web-inf/classes/objecttypes
    /Web-inf/classes/Utils
    Anyone set up this style of application? as the examples only show running servlets directly.

    Sure. Are you having a specific problem, or just wondering if it will work? YOu class files are fine in those subdirectories so long as they correspond correctly with the package names. As far as referencing a servlet whose class is in a package, you do it in OC4J just like in Tomcat - by defining the servlet name and class and mappings in the web.xml file. If you can build a war using Ant and deploy that war to Tomcat, you will find that that war will deploy very nicely to Orion. The only additional work is to add any custom application setup to the Orion configuration files (server.xml, default-web-site.xml, etc) similar to what you would do in the Tomcat server.xml and worker.xml files.
    John H.

  • Migrate from Tomcat to OC4J

    Hi! Everyone,
    I developed a Servlet/JSP application on tomcat, now I am going to deploy it to OC4J. In OC4J, directly under default-web-apps, I created a directory called misc, and put my servlets (in default-web-apps/misc/WEB-INF/classes), jsp (in default-web-apps/misc/jsp), beans (in default-web-apps/misc/WEB-INF/classes/beans) there (no EJB). The OC4J server can run jsp correctly, but it can not locate servlets. It can only locate servlets under default-web-apps/WEB-INF/classes directory.
    It means it is not scalable if I put my servlets directly in default-web-apps/WEB-INF/classes, because if I deploy another project, which has a servlet, I also need to put it in the same directory.
    All in all, OC4J can locate the servlet by "http://127.0.0.1:port/servlet/myservlet", but if I put the servlet in misc/WEB-INF/classes directory, it can not locate the servlet by "http://127.0.0.1:port/misc/servlet/myservlet".
    In tomcat, it is good because every time I created a new project, I just create a new directory "misc" parallel to "examples", and I can access that project by "http://127.0.0.1:port/misc/servlet/myservlet". By doing this way, different projects are in different directory. But in OC4J, different projects' servlet has to be in the same directory (I know I can create a directory under WEB-INF/classes called misc, and then call my servlet by "http://127.0.0.1:port/servlet/misc.myservlet, but this is not what I want).
    Is there a way to let OC4J to deploy projects like tomcat? The documentation said OC4J is 100% compatible with tomcat, but I think it is not.
    Thanks a lot if you can provide help.
    Jingzhi

    Hi! Everyone,
    I developed a Servlet/JSP application on tomcat, now I am going to deploy it to OC4J. In OC4J, directly under default-web-apps, I created a directory called misc, and put my servlets (in default-web-apps/misc/WEB-INF/classes), jsp (in default-web-apps/misc/jsp), beans (in default-web-apps/misc/WEB-INF/classes/beans) there (no EJB). The OC4J server can run jsp correctly, but it can not locate servlets. It can only locate servlets under default-web-apps/WEB-INF/classes directory.
    It means it is not scalable if I put my servlets directly in default-web-apps/WEB-INF/classes, because if I deploy another project, which has a servlet, I also need to put it in the same directory.
    All in all, OC4J can locate the servlet by "http://127.0.0.1:port/servlet/myservlet", but if I put the servlet in misc/WEB-INF/classes directory, it can not locate the servlet by "http://127.0.0.1:port/misc/servlet/myservlet".
    In tomcat, it is good because every time I created a new project, I just create a new directory "misc" parallel to "examples", and I can access that project by "http://127.0.0.1:port/misc/servlet/myservlet". By doing this way, different projects are in different directory. But in OC4J, different projects' servlet has to be in the same directory (I know I can create a directory under WEB-INF/classes called misc, and then call my servlet by "http://127.0.0.1:port/servlet/misc.myservlet, but this is not what I want).
    Is there a way to let OC4J to deploy projects like tomcat? The documentation said OC4J is 100% compatible with tomcat, but I think it is not.
    Thanks a lot if you can provide help.
    Jingzhi

  • Migration Tomcat to Oracle

    Actually, we have an open source architecture but, I'm trying to convince everyone change to Application Server 10G.
    We have an Apache HTTP Server on front-end redirecting requests to different instances of Tomcat by mod_jk feature. How can I adapt this architecture for using Oracle Application Server?
    Exists some documentantion how-to migrate from Tomcat to Oracle Application Server?
    thanks a lot
    André

    Andre,
    Here is a document that discuss migrating Tomcat to OC4J.
    You can use the existing HTTP load balancing to then distribute calls
    to your Application Server Middle Tiers.
    Regards
    Roelie Viviershttp://download.oracle.com/docs/cd/B32110_01/web.1013/b28959/develop.htm#CHDFJJDA<a/>
    You can use the existing HTTP load balancing to then distribute calls
    to your Application Server Middle Tiers.
    Regards
    Roelie Viviers

  • HELP PLEASE: Tomcat 3 - Sun ONE Migration Problems

    Hi everybody. We are new Sun One users. We are trying unsuccessfully to migrate our tomcat application to this environment. in order to deploy it we have created a WAR file from the Netbeans Ide and we are trying to load it into Sun One AS... but it seems there is something wrong with the process becouse we don't have access to the defined jdbc resources. Any help would be very apreciated... and please, excuse my English.
    Javier Moreno

    Thanks a lot of for your fast answer, but we haven't don't too much progress...
    dbping shows a message about "java.lang.NoSuchMethodException: setdataSourceName"
    wich probably means mysql driver isn't fully implemented. anyway i will try
    to describe the steps we make to create de pool hoping you will be able to
    help us...
    That's what we do:
         - first, we create a Connection pool:
              name -> MySQLPool
              database vendor -> Other
              datasource class -> com.mysql.jdbc.jdbc2.optional.MysqlDataSource
    serverName -> localhost
    portNumber -> 3306
    user -> test
    password -> test
    databasename -> jdbc:mysql://localhost/pol
    datasourcename -> pol
         - then, we define the resource:
              jndi name -> jdbc/jdbc-pol01
              pool name -> MySQLPool
              data source enabled -> true
         - in the web.xml of the application we got (just before /webapp):
              <resource-ref>
              <description>DB Connection</description>
              <res-ref-name>jdbc/jdbc-pol01</res-ref-name>
              <res-type>javax.sql.DataSource</res-type>
              <res-auth>Container</res-auth>
    </resource-ref>
         - and we obtain the connection with a chunk of code like this:
    ctx = new InitialContext();
    dsName = "java:comp/env/jdbc/jdbc-pol01";
    ds = (javax.sql.DataSource) ctx.lookup(dsName);
    con = ds.getConnection();
    If we don't write the resource-ref element at web.xml it fails at the lookup
    step (not finding the resource). but when we add the element the appserver
    claims "Error loading new module in virtual server: javax.naming.InvalidNameException: Real jndi name cannot beempty for jdbc/jdbc-polds.
    We don't know what to do and the death line is comming here fast... any help
    would be very much apreciated.          
    Thanks in advance, good karma.
    jv

  • Migrating WebServices app from Tomcat to Glassfish...

    Hello!
    I've a WebService app. which now runs on Tomcat 5.5.23 and was written using JAX-WS. I've install Sun Java System App. Server 9.0 and I intend to migrate our app. here.
    The application is delivered as a war file which I've already deployed in glassfish using admin GUI of asadmin. I can see our app. at WebApplications section but I can't see it under WebServices section, although it seems at a first view that the application works and respond to client's request.
    I'd like to ask you if I need to use a special tool for migrating our aplication or what I did is enough and there is no need for other changes.
    Thank you very much
    With best regards,
    Sorin

    If I understand correctly, you are trying to load a few properties files on WLS that is specific to an application that you are migrating from tomcat to WLS. If that is the case, then as per my understanding we have the following options:
    a. Add all the properties in a jar file and add the same to the classpath or place the same in the lib directory of the server which can be picked at the server start-up.
    b. Place the properties file in the domain home which should help.
    Refer: loading a new properties file without restarting the managed server
    c. Else place the properties files in the web-inf of the application, that should help.

  • Tomcat 6 stop running while Oracle XE runs

    Hi All,
    =========
    My Env:
    Ubuntu 10
    =========
    After a full day's research & work I managed to install Tomcat 6, Cocoon & Java files successfully. The following is my problem.
    I have an existing Oracle XE running with Apex 3.2.
    When I start Tomcat 6 it gets started fine, but in few seconds it stops running and gives the message " Tomcat servlet engine is not running, but pid file exists.". I can stop & start this, or restart this but the same problem happens again after few seconds with the same message ( I know this by checking the status). During this few seconds running I am able to access it via the browser by http://localhost:8180 ( I modified the port from 8080 to 8180). Apex uses port 8080. During this time I don't have any problem with Apex (set to run at start up).
    When I stop the Oracle Database and start Tomcat 6 it works fine, it continues to run perfectly. Again when I start the database, I am unable to access Apex via port 8080 & get the message "can't establish a connection to the server at 127.0.0.1:8080."
    Can anyone please help me?
    Thanks ever so much
    Naushad

    Hi Naushad,
    you probably have missed a setting to migrate the tomcat to port 8180. The behaviour you describe fits to the one I'd expect for a port conflict - either service runs perfectly when he's "alone", but doesn't work if the other one started before.
    You can fix this on both sides. Reconfiguration of the port your EPG hosts your APEX may be a little easier. You just have to login as sys and execute the following block:
    begin
      dbms_xdb.sethttpport(8081);
    end;
    commit;Change the port to whatever value you want.
    To change your Tomcat port configuration, you probably edited the following piece in your server.xml
    <Connector port="8080" protocol="HTTP/1.1"
    ...You'll find other ports used by the Tomcat in that file as well. Make sure you don't have a conflict with some other service.
    I'm running a Tomcat next to XE on Ubuntu 8.04. Since I had to reconfigure the Tomcats default SSL Port (8443 was already used by another web server on that machine), I moved all Tomcat ports from 80XX to 100XX, keeping the EPG on port 8080, and it works fine for me.
    -Udo

  • URGENT!!!!!!!! Tomcat 5.0 does not connect to the database !!!!!!

    We had an already existing system on tomcat 4.1.18. Since migrating to Tomcat 5.0, we are facing lots of problem while trying to connect to the database. The database in SQL Server 2000.
    The first time i try to connect (after restarting tomcat service) the system is able to connect to the database but after sometime it again stops connecting.
    The beans on our system are able to connect to the database without any problem but when we try using the same via http, it doesnt connect. The classpath is set properly. Also the database drivers are also the latest ones and in the proper place. We have placed them in the common/lib folder. We have checked that normal jsp pages which are not connecting to the database are working fine.
    Please HELP!!!!!!!!!!!
    Thanks in advance

    well.....Tomcat is not a database connecting engines.....U would need to check your db connection codes to check if you have missed anything.....so the first question will be
    1. How do u connect to the DB
    2. Which type of JDBC drivers are u using.
    Finaly, tomcat is not at fault...its the fault of you configuration
    Cheers,
    Manjun ath

  • How to set docBase in Tomcat-Catalina

    hello
    I have been facing trouble with deployingh my servlet on the tomcat5.5.
    I want to know te syntax for the .xml file that should be included in
    Tomcat5.5/conf/catalina/localhost/

    anirudh_gupta:
    Please refer to the post in my blog for the detail.
    http://trexlim.blogspot.com/2005/01/migrating-from-tomcat-5028-to-tomcat.html

Maybe you are looking for

  • Could not register a HeartbeatMonitorListener

    Hi!           Saw a different posting on this subject and have exactly the same           problem. I have 2 local servers, one WLS 7 server and the other is           Weblogic 8. I want messages sent to the WLS7 queue accessible from the           WL

  • Disable "Delete" button only at project definition level

    Dear Gurus, Is anybody have any idea regarding how to disable "delete" button at project definition level (and remain enabled for phases, tasks,...)? I tried it through Web dynpro application, but it got disabled for entire hierarchy. Regards, Ravind

  • 40% of images missing when shooting tethered

    I'm testing LR3 as a possible alternative to C1, and I like what I see so far.  However, there is one big problem. We're shooting with a 5d Mk2, and used LR3.  After waiting a while for a low-pressure shoot to test LR3 with, we got it running and tet

  • My iphone 5 is having problems with syncing

    My Iphone 5 updated to the version 6 is having problems syncing music from the library. However on the computer it has the songs there in and says that its on the iphone but when i go to listen to it on the iphone its not there. I have tried to resto

  • Errors running dual instances of SAPR3

    Hello, We've migrated our SAP environment to a new server in QA and are adapting Cronacle to run jobs in the two (old and new) envirnoments simultaneously for the next three weeks. That said, we have installed the new process server, and it's up and