简体   繁体   English

Tomcat 7:从Tomcat 6迁移-Invoker Servlet

[英]Tomcat 7: Migration from Tomcat 6 - Invoker Servlet

Actually i'm working with an old Web Application (it's development has 10 years). 实际上,我正在使用旧的Web应用程序(它的开发已有10年)。 Earlier, the webapp worked in Tomcat 5.x and, actually it's working in Tomcat 6 (6.0.28) and it's using the " evil " Invoker Servlet. 早先,该Web应用程序在Tomcat 5.x中工作,实际上在Tomcat 6(6.0.28)中工作,并且使用的是“ 邪恶的 ” Invoker Servlet。

We are trying to migrate to Tomcat 7, and searching a way to get invoker servlet work we've seen that it's complicated (And, the "solution" it's quite similar to map every Servlet in web.xml file). 我们正在尝试迁移到Tomcat 7,并寻找一种使调用程序servlet 工作的方法,我们已经发现它很复杂(而且,“解决方案”与将web.xml文件中的每个Servlet映射非常相似)。

Today, the project has about 2600 classes, and we have a serious problem: Map every servlet. 今天,该项目大约有2600个类,我们遇到了一个严重的问题:映射每个servlet。

Question: is there a way to "optimize" the mapping of the complete application? 问题:有没有一种方法可以“优化”整个应用程序的映射? I don't know, some tool that can help me to get the qualified name of every servlet. 我不知道,有什么工具可以帮助我获取每个servlet的合格名称。 I'm on charge of this project, and i don't know how to begin with this... 我负责这个项目,但我不知道如何开始...

Another Problem: We don't have the complete source code, actually, if i want to do any change in the webapp, i must "Decompile" the .class file (we're using Gel for decompile .class files), repair any error and compile the file again, so, Servlet 3.0 Annotations for mapping doesn't seems a good idea. 另一个问题:我们没有完整的源代码,实际上,如果我想在Webapp中进行任何更改,则必须“反编译” .class文件(我们使用Gel来反编译.class文件),修复任何错误并再次编译文件,因此,用于映射的Servlet 3.0注释似乎不是一个好主意。

Any suggestions are gladly accepted. 任何建议都很高兴被接受。

Edit: Now, i will try to Map every servlet. 编辑:现在,我将尝试映射每个servlet。 But, i have a question: This task can be done in a different file than web.xml? 但是,我有一个问题:可以在与web.xml不同的文件中完成此任务吗? This question is because of the extense list of servlets, and the future management of this file. 这个问题是由于servlet的列表过多以及该文件的将来管理所致。

Thanks in advance 提前致谢

Ok. 好。 I'm sorry if i've asked a "no-sense" question. 如果我问“无意义”问题,我感到很抱歉。 The Only way to solve this was mapping every servlet in web.xml file. 解决此问题的唯一方法是映射web.xml文件中的每个servlet。

After an extensive search googling and, through stackoverflow, there's no other option than the WebServlet annotation or web.xml mapping. 经过广泛的搜索,并通过stackoverflow进行搜索之后,除了WebServlet批注或web.xml映射, 别无选择

There's no easy way, and "recreate" the invoker servlet wasn't a practical option. 没有简单的方法,并且“重新创建”调用者servlet并不是一个可行的选择。

Thanks to everyone. 谢谢大家。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM