| Author |
Problem running JSP 2.0
|
Raja Kannappan
Ranch Hand
Joined: May 08, 2002
Posts: 83
|
|
I am new to JSP and I just downloaded Netbeans 5.5 and I'm using the bundled tomcat (5.5.17) that came with Netbeans as my server. I created the project by doing File->New Project->Samples->Web->Tomcat JSP Example. I can run this project and from the samples page I'm able to run the JSP 1.2 examples in there. But if I try to run any of the JSP 2.0 examples, then I get the following exception. Am I missing anything? I did not modify the project and I'm just running the project as it is in Netbeans. Any ideas on fixing this is greatly appreciated. Thanks. HTTP Status 500 - -------------------------------------------------------------------------------- type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: javax.servlet.jsp.tagext.TagInfo.<init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljavax/servlet/jsp/tagext/TagLibraryInfo;Ljavax/servlet/jsp/tagext/TagExtraInfo;[Ljavax/servlet/jsp/tagext/TagAttributeInfo;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;[Ljavax/servlet/jsp/tagext/TagVariableInfo;Z)V org.apache.jasper.servlet.JspServlet.service(JspServlet.java:272) javax.servlet.http.HttpServlet.service(HttpServlet.java:853) org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:368) root cause java.lang.NoSuchMethodError: javax.servlet.jsp.tagext.TagInfo.<init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljavax/servlet/jsp/tagext/TagLibraryInfo;Ljavax/servlet/jsp/tagext/TagExtraInfo;[Ljavax/servlet/jsp/tagext/TagAttributeInfo;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;[Ljavax/servlet/jsp/tagext/TagVariableInfo;Z)V org.apache.jasper.compiler.TagLibraryInfoImpl.createTagInfo(TagLibraryInfoImpl.java:435) org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD(TagLibraryInfoImpl.java:248) org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:162) org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:423) org.apache.jasper.compiler.Parser.parseDirective(Parser.java:492) org.apache.jasper.compiler.Parser.parseElements(Parser.java:1552) org.apache.jasper.compiler.Parser.parse(Parser.java:126) org.apache.jasper.compiler.ParserController.doParse(ParserController.java:211) org.apache.jasper.compiler.ParserController.parse(ParserController.java:100) org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:155) org.apache.jasper.compiler.Compiler.compile(Compiler.java:295) org.apache.jasper.compiler.Compiler.compile(Compiler.java:276) org.apache.jasper.compiler.Compiler.compile(Compiler.java:264) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:303) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) javax.servlet.http.HttpServlet.service(HttpServlet.java:853) org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:368) note The full stack trace of the root cause is available in the Apache Tomcat/5.5.17 logs. -------------------------------------------------------------------------------- Apache Tomcat/5.5.17
|
 |
Adeel Ansari
Ranch Hand
Joined: Aug 15, 2004
Posts: 2874
|
|
It look like TLD issue to me. Do you have JSTL library under your classpath? [ December 20, 2006: Message edited by: Adeel Ansari ]
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56554
|
|
And if so, are you sure that you've got the right versions? The error you are getting is sometimes indicative of mis-matched libraries.
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
Raja Kannappan
Ranch Hand
Joined: May 08, 2002
Posts: 83
|
|
|
I've got JSTL in my classpath. These are the libraries I have in my classpath: jstl.jar, standard.jar, jdk 1.5 and the bundled tomcat (5.5.17). Am i missing anything? The puzzling thing is, this is a Netbeans example program to illustrate JSP. I couldn't understand how it could be wrong. Any ideas are greatly appreciated. Thanks.
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56554
|
|
Yes, but are Eclipse and Tomcat compiling against the same version of the servlet and JSP libraries? What happens if you work outside of Eclipse?
|
 |
Raja Kannappan
Ranch Hand
Joined: May 08, 2002
Posts: 83
|
|
I'm using Netbeans 5.5 and this is the example which came with Netbeans 5.5 and even all the classpath and libraries are set in this example. I don't understand why it has problem with JSP 2.0 examples. Thanks.
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56554
|
|
Oh, sorry. Just substitute Netbeans when I said Eclipse. It may be that you are running the JSPs against a different version of the JSP libraires than they were compiled against. I'd suggest cutting the apron strings of the IDE and setting up a stand-alone instance of Tomcat to test upon.
|
 |
 |
|
|
subject: Problem running JSP 2.0
|
|
|