本文介绍了如何从IBM Websphere迁移到Tomcat?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将现有的IBM Websphere应用程序服务器迁移到等效的Tomcat应用程序服务器吗?

I want to migrate the existing IBM Websphere application server to equivalent Tomcat application server?

第二,如何使用IBM HTTP Server(ihs)配置此已迁移的Tomcat应用程序服务器?

Second, how to configure this migrated Tomcat application server with IBM HTTP Server (ihs)?

为了简要介绍当前系统,我们正在运行带有Servlets/JSP的简单Web应用程序以进行文件上传/下载

To brief the current system, We are running simple web application with Servlets/JSP's for file uploading/downloading

请让我知道.

推荐答案

想法是在保持相同级别的J2EE的情况下进行迁移,否则可能会破坏某些东西(不推荐使用的方法,新行为,..)

The idea is to migrate with keeping the same level of J2EE, or it could break some things (deprecated methods, new behaviours,..)

  • 检查双方的Java版本,即使它们来自不同的公司(IBM,Oracle),也可能使用相同的版本
  • 检查IBM Websphere支持的J2EE版本,相应地选择Tomcat
  • 一旦安装了Java和Tomcat,就将应用程序复制到Tomcat的webapps目录(无论它是:war文件还是目录)
  • 您可能有一些库要复制到lib目录(JDBC,javamail等)中,但是您没有讨论
  • 检查Tomcat的日志,尤其是catalina.out,以查看部署的结果
  • check Java versions on both sides, probably use the same versions even they are coming from different companies (IBM, Oracle)
  • check the J2EE version supported by IBM Websphere, choose Tomcat accordingly
  • once you have your Java and Tomcat installed, copy your application to Tomcat's webapps directory (whatever it is : a war file or a directory)
  • you might have some libraries to copy in lib directory (JDBC, javamail,..) but you didn't talk about
  • check Tomcat's logs, particularly catalina.out to see the deployment's result

Tomcat没有IHS,您将编辑一些文件.这些文件应被考虑:

There is no IHS for Tomcat, you will edit some files. These files should be considered :

  • conf/server.xml,您在其中定义侦听端口(默认连接器上为8080),默认情况下将其保留,但可能需要设置用于上传的属性
  • bin/setenv.sh是声明JVM选项(JAVA_HOME,内存设置(例如堆空间),日志详细程度(例如PrintGCDetails等))的地方

根据您的应用程序,可以用不同的方式配置上下文.

Depending on your application, the context can be configured in different ways.

首先,只需遵循第一个列表中的项目,然后查看它是否开始.如果它没有启动,请检查日志并可能在setenv文件附近变通以调整内存.

For the beginning, just follow the items from the first list and see if it starts. If it doesn't start, check the logs and probably work around the setenv file to adjust memory.

这篇关于如何从IBM Websphere迁移到Tomcat?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

05-26 18:40