[jboss-user] [Tomcat, HTTPD, Servlets & JSP] - Error in reloading jsp with taglib directive
qiqbal
do-not-reply at jboss.com
Thu Aug 31 02:51:45 EDT 2006
Hi,
Can anyone help me with a strange issue.
I have a simple jsp with a taglib directive.
<%@ taglib uri = "WEB-INF/myTaglib.tld" prefix = "output" %>
| <html>
| <body>
| Hello
| </body>
| </html>
I saved the taglib at:
\jboss-4.0.3\server\default\deploy\myApp.war\WEB-INF
I saved the jsp at the root of my web application, so it is accessible as:
http://localhost:8080/myApp/myJsp.jsp
Whenever i make the slighest change in this jsp and restart my jboss server, it gives an error. The strangest thing is that the error comes only once. Even if i simply refresh the page, its gone. It only happens once when I make changes and restart the server at the same time.
The exception thrown is:
10:47:50,609 ERROR [[jsp]] Servlet.service() for servlet jsp threw exception
| java.util.zip.ZipException: invalid entry size (expected 2683 but got 2686 bytes)
| at java.util.zip.ZipInputStream.readEnd(ZipInputStream.java:368)
| at java.util.zip.ZipInputStream.read(ZipInputStream.java:141)
| at java.util.jar.JarInputStream.read(JarInputStream.java:171)
| at java.util.zip.ZipInputStream.closeEntry(ZipInputStream.java:91)
| at java.util.zip.ZipInputStream.getNextEntry(ZipInputStream.java:69)
| at java.util.jar.JarInputStream.getNextEntry(JarInputStream.java:118)
| at java.util.jar.JarInputStream.getNextJarEntry(JarInputStream.java:149)
| at org.jboss.web.tomcat.tc5.jasper.TagLibCache.scanJar(TagLibCache.java:319)
| at org.jboss.web.tomcat.tc5.jasper.TagLibCache.processTldsInFileSystem(TagLibCache.java:263)
| at org.jboss.web.tomcat.tc5.jasper.TagLibCache.processTldsInFileSystem(TagLibCache.java:256)
| at org.jboss.web.tomcat.tc5.jasper.TagLibCache.init(TagLibCache.java:100)
| at org.jboss.web.tomcat.tc5.jasper.TagLibCache.getLocation(TagLibCache.java:88)
| at org.apache.jasper.JspCompilationContext.getTldLocation(JspCompilationContext.java:519)
| at org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:417)
| at org.apache.jasper.compiler.Parser.parseDirective(Parser.java:483)
| at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1543)
| at org.apache.jasper.compiler.Parser.parse(Parser.java:126)
| at org.apache.jasper.compiler.ParserController.doParse(ParserController.java:211)
| at org.apache.jasper.compiler.ParserController.parse(ParserController.java:100)
| at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:146)
| at org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
| at org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
| at org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
| at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:556)
| at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:293)
| at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
| at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
|
Please note the error in bold. It is coming due to taglib directive.
I tried following things and it worked
1> Make changes in jsp but do not restart server
2> Restart server but no changes in jsp
3> Simply refresh the page after first access
Please someone help me, it is most urgent.
Thanks in advance
Qaisar Iqbal
qiqbal at folio3.com
Sr. Software Engineer
Folio3 Pvt. Ltd.
Karachi, Pakistan
www.folio3.com
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3968536#3968536
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3968536
More information about the jboss-user
mailing list