DO NOT REPLY [Bug 31249] - Using a custom taglib causes strange NoSuchMethodException

2004-09-17 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=31249.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=31249

Using a custom taglib causes strange NoSuchMethodException

[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|RESOLVED|REOPENED
 Resolution|FIXED   |



--- Additional Comments From [EMAIL PROTECTED]  2004-09-17 18:14 ---
It actually appears to be an out-of-date servlet.jar in the Java SDK. I changed 
the Java Home path in the Tomcat Configuration program to the JRE installed by 
Tomcat (\Program Files\Java\jre..) and the NoSuchMethodException has 
disappeared.

However I am now receiving another exception:

exception 

javax.servlet.ServletException: javax/servlet/jsp/tagext/TagSupport
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:244)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
com.cetacademicprograms.servlets.StudentAppFormServlet.dispatchToUrl
(StudentAppFormServlet.java:251)
com.cetacademicprograms.servlets.StudentAppFormServlet.actionDefaultHand
ler(StudentAppFormServlet.java:149)
com.cetacademicprograms.servlets.StudentAppFormServlet.doGet
(StudentAppFormServlet.java:81)
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


root cause 

java.lang.NoClassDefFoundError: javax/servlet/jsp/tagext/TagSupport
java.lang.ClassLoader.defineClass0(Native Method)
java.lang.ClassLoader.defineClass(Unknown Source)
java.security.SecureClassLoader.defineClass(Unknown Source)
java.net.URLClassLoader.defineClass(Unknown Source)
java.net.URLClassLoader.access$100(Unknown Source)
java.net.URLClassLoader$1.run(Unknown Source)
java.security.AccessController.doPrivileged(Native Method)
java.net.URLClassLoader.findClass(Unknown Source)
java.lang.ClassLoader.loadClass(Unknown Source)
sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
java.lang.ClassLoader.loadClass(Unknown Source)
org.apache.catalina.loader.WebappClassLoader.loadClass
(WebappClassLoader.java:1255)
org.apache.catalina.loader.WebappClassLoader.loadClass
(WebappClassLoader.java:1189)
org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:1316)
org.apache.jasper.compiler.Parser.parseElements(Parser.java:1560)
org.apache.jasper.compiler.Parser.parse(Parser.java:126)
org.apache.jasper.compiler.ParserController.doParse
(ParserController.java:220)
org.apache.jasper.compiler.ParserController.parse
(ParserController.java:101)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:203)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:470)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
org.apache.jasper.JspCompilationContext.compile
(JspCompilationContext.java:511)
org.apache.jasper.servlet.JspServletWrapper.service
(JspServletWrapper.java:295)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
com.cetacademicprograms.servlets.StudentAppFormServlet.dispatchToUrl
(StudentAppFormServlet.java:251)
com.cetacademicprograms.servlets.StudentAppFormServlet.actionDefaultHand
ler(StudentAppFormServlet.java:149)
com.cetacademicprograms.servlets.StudentAppFormServlet.doGet
(StudentAppFormServlet.java:81)
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


The class javax.servlet.jsp.tagext.TagSupport is in the jsp-api.jar and I have 
verified that the JAR exists and have put in the Java Classpath field in the 
Tomcat Configuration program. I have copied and unJARed the jsp-api.jar file 
under my WEB-INF/classes folder and still the same error occurs? Does anyone 
have a clue?

Thanks,

Kelly

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 31249] - Using a custom taglib causes strange NoSuchMethodException

2004-09-17 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=31249.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=31249

Using a custom taglib causes strange NoSuchMethodException

[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|REOPENED|RESOLVED
 Resolution||INVALID



--- Additional Comments From [EMAIL PROTECTED]  2004-09-17 18:41 ---
servlet.jar in the Java SDK?  This makes no sense to me, unless you are
talking about a really old j2ee SDK.  Anyway, jsp-api.jar is already in
common/lib, and you need not make a copy of it and include it in your application.

Bugzilla is not the place to ask for help for debugging you application.  If you
can come up with a simple test case that does not include any jars, I'll look at it.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 31249] - Using a custom taglib causes strange NoSuchMethodException

2004-09-17 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=31249.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=31249

Using a custom taglib causes strange NoSuchMethodException

[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|RESOLVED|REOPENED
 Resolution|INVALID |



--- Additional Comments From [EMAIL PROTECTED]  2004-09-17 19:17 ---
I am not asking for technical help in debugging my application, only for 
answers to why Tomcat is acting very weird. If you are not interested in 
helping then I'll look for help elsewhere or possibly look for an alternative 
to Tomcat. 

I downloaded the newest version of the JSDK from Sun (1.4.2-03) and uninstalled 
the older. I believe I had an out-of-date version that Tomcat was running on.

Yes, the Java SDK downloaded at Sun's website contains a servlet-api.jar under 
the jre/lib/ext directory. The old version had a servlet.jar file instead. I 
apologize for not realizing earlier that the JSDK was too old. But this does 
not explain Tomcat not being able to find a class within its own libraries. 
Other JSP pages (that do not rely on custom taglibs) compile and run just fine.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 31249] - Using a custom taglib causes strange NoSuchMethodException

2004-09-17 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=31249.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=31249

Using a custom taglib causes strange NoSuchMethodException

[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|REOPENED|RESOLVED
 Resolution||LATER



--- Additional Comments From [EMAIL PROTECTED]  2004-09-17 19:42 ---
I apologize again. I believe the servlet-api.jar I copied to the JSDK directory 
was not removed during the removal of the older JDK version and was just left 
with the new files. But, I am giving up on the taglib idea and using a 
different (slightly messier) way of doing what I intended. It seems that the 
problem has to do with the Tomcat and the classpath variable. This is just too 
frustating (and a waste of a lot of time) to keep pursuing.

Thanks for you help.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 31249] - Using a custom taglib causes strange NoSuchMethodException

2004-09-16 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=31249.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=31249

Using a custom taglib causes strange NoSuchMethodException





--- Additional Comments From [EMAIL PROTECTED]  2004-09-16 13:59 ---
Actually we have not JARed up any packages as of yet. I did a file search and 
did not find any apparent duplicates or conflicts. I am thinking about 
installing Tomcat on my system at home and trying it out without adding any JAR 
files or CLASS files period. I did realize that I did download several JAR 
files for PDF generation and JSF. I think I'll rename these files to something 
like __.javajar to keep Java from recognizing them.

Unless these JAR files have Tomcat 4.0 versions of JSP-API in them, I don't 
know where the conflicts are. I may try to remove all of the JAR files in the 
Tomcat directories and reinstall it to make sure that packaged JARs are 
reinstalled freshly.

Thanks. I'll keep you posted.

Kelly

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 31249] - Using a custom taglib causes strange NoSuchMethodException

2004-09-15 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=31249.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=31249

Using a custom taglib causes strange NoSuchMethodException





--- Additional Comments From [EMAIL PROTECTED]  2004-09-15 18:21 ---
So you only have one JSP API jar?  You're not bundling jsp.jar, j2ee.jar, or 
another jar with the JSP API classes in your webapp?

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



DO NOT REPLY [Bug 31249] - Using a custom taglib causes strange NoSuchMethodException

2004-09-15 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=31249.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=31249

Using a custom taglib causes strange NoSuchMethodException

[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED



--- Additional Comments From [EMAIL PROTECTED]  2004-09-15 20:59 ---
The missing constructor in TagInfo is new in Tomcat 5.  Looks like you are
linking compiled (in Tomcat 5) JSP code with Tomcat 4 library.  Try removing any
tomcat 4 jar files and any generated files.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]