我有一個運行在Tomcat 7中的web應用程序。 當我將tomcat默認庫(jsp-api.jar,servlet-api.jar等)放入我的它會拋出一個異常:java.lang.IllegalStateException: No org.apache.tomcat.InstanceManager set in ServletContext
爲什麼我們不應該在應用程序庫中放置tomcat庫
當我從我的lib中刪除這些jar並在build.xml中設置tomcat lib時,它工作正常。誰能向我解釋爲什麼會發生這種情況? 爲什麼我不能在我的lib文件夾中使用tomcat庫?
相關:http://stackoverflow.com/questions/4076601/how-do-i-import-the-javax-servlet-api-in-my-eclipse-project/4076706#4076706 – BalusC
每個人都在說你「應該「不是,但實際上你必須*不要,在你的網絡應用程序中包含JEE罐。 –