Where is the servlet jar file on JBoss 5.0.1?

旧街凉风 提交于 2020-01-12 05:42:05

问题


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..

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.

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


回答1:


The file you are looking for is 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."

Hope this helps!




回答2:


in Jboss 6.2 find the required jar on the path:

/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



来源:https://stackoverflow.com/questions/731571/where-is-the-servlet-jar-file-on-jboss-5-0-1

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!