| Author |
Problems in my code
|
Higor Zardo
Ranch Hand
Joined: Feb 16, 2008
Posts: 59
|
|
Hello friends, I dont know why it dont work. This is my class (webapps\ch10\WEB-INF\classes\foo) This is my tld (webapps\ch10\WEB-INF\tagSimple.tld) This is my JSP page Tomcat say for me that I dont know why it dont work, if somebody can help me I thank you. Thank you. Higor
|
 |
Christophe Verré
Marshal
Joined: Nov 24, 2005
Posts: 14361
|
|
|
Didn't you leave an old SimpleTagSupport.class in your webapps\ch10\WEB-INF\classes\foo directory ?
|
[SCBCD Wall of Fame] [My Blog]
All roads lead to JavaRanch
Help Japan. Make a donation.
|
 |
Higor Zardo
Ranch Hand
Joined: Feb 16, 2008
Posts: 59
|
|
|
No, it`s Ok =/
|
 |
Rufus Addis
Ranch Hand
Joined: Aug 21, 2008
Posts: 83
|
|
Curious! I copied and pasted your code, compiled it, and it worked flawlessly under tomcat. So it's not a code issue. I'm a little worried that the error makes reference to doEndTag() which looks very much like the container thinks you want to play with classic tags rather than SimpleTagSupport. Is it possible that somewhere, either in your class compilation or your tomcat setup you are refering to old versions of servlet-api or other core jar files? It just sounds like something is picking up a version of the servlet api prior to 2.4! Sorry not much help, but it might give you some hints as to where to look! Rufus.
|
 |
Christophe Verré
Marshal
Joined: Nov 24, 2005
Posts: 14361
|
|
Sorry, I meant an old SimpleTagTest1.class, not SimpleTagSupport.class. Clear the container cache and retry.
It just sounds like something is picking up a version of the servlet api prior to 2.4!
But SimpleTagSupport comes from J2EE1.4. Anything prior to it would cause a compiler exception at the import statement.
|
 |
Higor Zardo
Ranch Hand
Joined: Feb 16, 2008
Posts: 59
|
|
Christophe Verre and Rufus Addis thank you!!! It was solved now, thanks you!! Higor
|
 |
Rufus Addis
Ranch Hand
Joined: Aug 21, 2008
Posts: 83
|
|
Glad to hear it's been solved, but what was the solution? Posting details will help anyone else who has the same problem in the future. Rufus.
|
 |
Anda Clarke
Greenhorn
Joined: Oct 09, 2009
Posts: 1
|
|
I have the same problem, but I can't solve it. I am using Tomcat 6 and InteliJ Idea. I cleared all their caches, looked over my dependencies to make sure I have no dependency to an old servlet jar and still I get the error.
Higor Zardo, can you tell us how you fixed yours?
Or if anyone has some ideas, please post them.
|
 |
Tooyond Locke
Greenhorn
Joined: Dec 16, 2009
Posts: 2
|
|
|
Higor Zardo, can you tell us how you fixed yours?
|
 |
Christophe Verré
Marshal
Joined: Nov 24, 2005
Posts: 14361
|
|
Tooyond Locke wrote:Higor Zardo, can you tell us how you fixed yours?
Is it exactly the same problem ? Please post your error message, and also show your tag's class.
|
 |
Tooyond Locke
Greenhorn
Joined: Dec 16, 2009
Posts: 2
|
|
Christophe Verré wrote:
Tooyond Locke wrote:Higor Zardo, can you tell us how you fixed yours?
Is it exactly the same problem ? Please post your error message, and also show your tag's class.
Sorry,my English is very poor,so.....
but We have the same intention
|
 |
g raj
Greenhorn
Joined: Sep 25, 2007
Posts: 4
|
|
Clear the container cache and retrying resolved the issue for me as mentioned earlier....
Regards,
Gandhi
|
 |
 |
|
|
subject: Problems in my code
|
|
|