我们刚刚从地铁升级到最新的jax-ws代码,但由于某种原因,我们现在不得不运送蚂蚁。这似乎是jsp编译所需的。Jetty + jax-ws影响jsp编译 - 它现在需要ant吗?
没有它,我们得到
java.lang.NoClassDefFoundError: org/apache/tools/ant/BuildListener
at org.apache.jasper.compiler.Compiler.initJavaCompiler(Compiler.java:742)
at org.apache.jasper.compiler.Compiler.<init>(Compiler.java:131)
at org.apache.jasper.JspCompilationContext.createCompiler(JspCompilationContext.java:288)
at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:605)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:360)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:486)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:380)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:390)
at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:440)
......
有什么办法,以消除蚂蚁的依赖?
jax-ws如何影响未更改的jsp库?
感谢 尼尔
它是使用ant而不是Metro的Jasper(JSP编译器)。 – 2012-07-09 15:32:00
我们没有改变jsp jar只有jax-ws jar。不知何故,看起来jax-ws会更改默认使用的编译器。 – 2012-07-09 15:40:48
你能提供的最小的例子是什么? – 2012-07-09 15:44:00