java JBoss 5.0.1 上的 servlet jar 文件在哪里?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/731571/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-29 13:33:23  来源:igfitidea点击:

Where is the servlet jar file on JBoss 5.0.1?

javaservletsjbossbuild

提问by Matt Solnit

Hi All: I'm trying to set up my build file to be run for deployment on JBossAS 5.0.1, and I need to find the servlet jar file that I should use for the build..

大家好:我正在尝试设置我的构建文件以在 JBossAS 5.0.1 上运行以进行部署,我需要找到我应该用于构建的 servlet jar 文件。

All of the web pages I've looked at seem to indicate that the file is javax.servlet.jar and it should be in the C:\< install dir >\server\default\lib directory. I'm looking in this (and every other directory I can think of), but this file cannot be found.

我看过的所有网页似乎都表明该文件是 javax.servlet.jar,它应该在 C:\< install dir >\server\default\lib 目录中。我正在查看这个(以及我能想到的所有其他目录),但是找不到这个文件。

I'm either going crazy, have a wonky jboss install, or have bad info. Would someone be able to help me out?

我要么疯了,要么安装了一个不稳定的 jboss,要么有错误的信息。有人可以帮助我吗?

回答by Matt Solnit

The file you are looking for is JBOSS_HOME/common/lib/servlet-api.jar.

您要查找的文件是JBOSS_HOME/common/lib/servlet-api.jar.

From the JBossAS 5.0.0 release notes: "Another notable change is that the majority of the libraries common to the different configurations have moved to a new shared location, JBOSS_HOME/common/lib/. This is so we avoid having multiple copies of the same libraries in the distribution."

来自 JBossAS 5.0.0发行说明:“另一个值得注意的变化是,不同配置通用的大多数库已移动到新的共享位置,JBOSS_HOME/common/lib/。这样我们就可以避免拥有多个副本发行版中的相同库。”

Hope this helps!

希望这可以帮助!

回答by sach

in Jboss 6.2 find the required jar on the path:

在 Jboss 6.2 中找到路径上需要的 jar:

/jboss-eap-6.2/modules/system/layers/base/javax/servlet/api/main/jboss-servlet-api_3.0_spec-1.0.2.Final-redhat-1.jar

/jboss-eap-6.2/modules/system/layers/base/javax/servlet/api/main/jboss-servlet-api_3.0_spec-1.0.2.Final-redhat-1.jar