Issue Details (XML | Word | Printable)

Key: SAMPLES-3
Type: Bug Bug
Status: Open Open
Priority: Minor Minor
Assignee: Unassigned
Reporter: Francis ANDRE
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Samples

Jobfilter: got JasperException Unable to read TLD "META-INF/displaytag.tld from JAR file jobfilter/WEB-INF/lib/displaytag-1.2.jar

Created: 10/Apr/11 08:58 AM   Updated: 10/Apr/11 08:58 AM
Component/s: None
Affects Version/s: None
Fix Version/s: None

Environment: WXP SP3 Sun JDK 1.6 Tomcat 6.0.29

Datastore: PostgreSQL
Severity: Proof of Concept


 Description  « Hide
Hi

got this exception


org.apache.jasper.JasperException: /index.jsp(10,0) Unable to read TLD "META-INF/displaytag.tld" from JAR file "file:/C:/Program%20Files/Apache%20Software%20Foundation/Tomcat%206.0/webapps/jobfilter/WEB-INF/lib/displaytag-1.2.jar": org.apache.jasper.JasperException: Impossible de charger ou d'instancier la classe TagExtraInfo: org.displaytag.tags.TableTagExtraInfo
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40)
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:88)
org.apache.jasper.compiler.Parser.processIncludeDirective(Parser.java:300)
org.apache.jasper.compiler.Parser.parseIncludeDirective(Parser.java:333)
org.apache.jasper.compiler.Parser.parseDirective(Parser.java:441)
org.apache.jasper.compiler.Parser.parseElements(Parser.java:1396)
org.apache.jasper.compiler.Parser.parse(Parser.java:130)
org.apache.jasper.compiler.ParserController.doParse(ParserController.java:255)
org.apache.jasper.compiler.ParserController.parse(ParserController.java:103)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:185)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:347)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:327)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:314)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:592)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)


which is fixed by adding scope=provided to the war/pom.xml as

<dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
<version>${servlet-api.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>javax.servlet.jsp</groupId>
<artifactId>jsp-api</artifactId>
<version>${jsp-api.version}</version>
<scope>provided</scope>
</dependency>


Sort Order: Ascending order - Click to sort in descending order
There are no comments yet on this issue.