Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problems in my code

 
Higor Zardo
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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é
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Didn't you leave an old SimpleTagSupport.class in your webapps\ch10\WEB-INF\classes\foo directory ?
 
Higor Zardo
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No, it`s Ok =/
 
Rufus Addis
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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é
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Christophe Verre and Rufus Addis thank you!!!
It was solved now, thanks you!!

Higor
 
Rufus Addis
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Higor Zardo, can you tell us how you fixed yours?
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
N.Gandhi Rajan
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Clear the container cache and retrying resolved the issue for me as mentioned earlier....

Regards,
Gandhi
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic