well that version of animal sniffer is Kohsuke's I have not released the migrated to codehaus version yet
Looks like you are missing a dependency or two for your jar (probably jasper-runtime and servlet-api) -Stephen 2009/10/23 Jamie Whitehouse <jamie.whiteho...@genesyslab.com> > I recently discovered that animal sniffer will throw errors with > precompiled jsps. I've attached a sample project which can be used to > reproduce this. > > When I run mvn clean install it works fine, no errors, build successful. > Presumably because sniffer is running before the jsps are compiled and hence > not checked. If I then run mvn install right after that (note no > clean) sniffer will check the compiled jsp classes and give me errors such > as: > > [INFO] Checking unresolved references to > org.jvnet.animal-sniffer:java1.5:1.0 > [ERROR] Undefined reference: > org/apache/jasper/runtime/HttpJspBase.<init>()V in > /home/basil/work/eval/jspc-sniffer/target/classes/jsp/index_jsp.class > [ERROR] Undefined reference: > javax/servlet/jsp/JspFactory.getDefaultFactory()Ljavax/servlet/jsp/JspFactory; > in /home/basil/work/eval/jspc-sniffer/target/classes/jsp/index_jsp.class > [ERROR] Undefined reference: > javax/servlet/http/HttpServletResponse.setContentType(Ljava/lang/String;)V > in /home/basil/work/eval/jspc-sniffer/target/classes/jsp/index_jsp.class > [ERROR] Undefined reference: > javax/servlet/jsp/JspFactory.getPageContext(Ljavax/servlet/Servlet;Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;Ljava/lang/String;ZIZ)Ljavax/servlet/jsp/PageContext; > in /home/basil/work/eval/jspc-sniffer/target/classes/jsp/index_jsp.class > This is with the complier and signatures set to 1.5. > > I can usually figure out the signature errors for regular Java code, but > I'm baffled by this. > > Has anyone else run into this or have suggestions? > > Thanks, > Jamie. > > > > CONFIDENTIALITY NOTICE: This e-mail and any files attached may contain > confidential and proprietary information of Alcatel-Lucent and/or its > affiliated entities. Access by the intended recipient only is authorized. > Any liability arising from any party acting, or refraining from acting, on > any information contained in this e-mail is hereby excluded. If you are not > the intended recipient, please notify the sender immediately, destroy the > original transmission and its attachments and do not disclose the contents > to any other person, use it for any purpose, or store or copy the > information in any medium. Copyright in this e-mail and any attachments > belongs to Alcatel-Lucent and/or its affiliated entities. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org >