Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to create an ant task to compile JSPs. Here are the excerpts from the build.xml related to the task:


<fileset dir="${java.home}/lib">
  <include name="tools.jar"/>

<java classname="weblogic.jspc" fork="yes">
  <classpath refid="weblogic.jsp.classpath" />

  <sysproperty key="" value="false"/>

  <arg line="-forceGeneration -keepgenerated -compileAll -webapp ${jsp.src.dir} -d ${jsp.generated.src.dir}"/>

When I try to run wl.jsp.generate task, I get:


 [java] [jspc] warning: expected file /WEB-INF/web.xml  not found, tag

libraries cannot be resolved.

 [java] [jspc] Overriding  default descriptor option 'keepgenerated' with

value specified on command-line 'true'

 [java] Exception encountered while compiling

C:\workspace\smcmw\smcmw_browser\jsp\smcesearchprogress.jsp [java] java.lang.NoSuchMethodError: javax.servlet.jsp.tagext.TagAttributeInfo.(Ljava/lang/String;ZLjava/lang/String;ZZLjava/lang/String;ZZLjava/lang/String;Ljava/lang/String;)V

 [java]  at weblogic.jsp.internal.jsp.tag.TagAttrInfoEx.<init>(
 [java]  at weblogic.jsp.internal.jsp.tag.TagAttrInfoEx.<init>(
 [java]  at weblogic.jsp.internal.jsp.tag.TagAttrInfoEx.<init>(
 [java]  at

Looks like it fails because it can't find WEB-INF/web.xml file and tag libraries. How can I fix this?

share|improve this question
This question would probably have more success on SO – emills Oct 31 '09 at 14:02

This might be helpful...

hope it helps!

I would also ask you to consider why you would want to pre-compile your jsp pages anyway. The only cost is in the performance of the very first person who hits your jsp pages and that should probably be your Dev team for sanity testing after a deployment. Eric

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.