• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Problems in my code

 
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
No, it`s Ok =/
 
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Higor Zardo, can you tell us how you fixed yours?
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Clear the container cache and retrying resolved the issue for me as mentioned earlier....

Regards,
Gandhi
 
reply
    Bookmark Topic Watch Topic
  • New Topic