在啟動Jboss 4.2 時,在載入自己開發的 web時出現下列錯誤: Caused by: java.lang.SecurityException: Servlet of class org.apache.catalina.servlets.InvokerServlet is privileged and cannot be loaded by this web application at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1134) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:981) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4069) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4366) ...以下省略 解決方式: 修改:deploy\jboss-web.deployer\context.xml 原來的:Context cookies="true" crossContext="true" 加上: privileged="true"