• 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

Tomcat states class is abstract when it's not

 
Ranch Hand
Posts: 567
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I'm getting this weird error with sun.jdbc.rowset.CachedRowSet that I have been using for weeks without problem on Allaire Jrun.
I moved my code over to Tomcat 4.0.1 and now it won't compile. It says that the CachedRowSet class is abstract and won't let me instantiate it.
This is patently not the case according to the docs and to the fact that I've been running it on another server without problem.
Am I going mad, or is Tomcat?
The code is very simple. I am just declaring the object as sun.jdbc.rowset.CachedRowSet, instantiating an instance and returning it from a static function in a JSP (bad practice I know but I am changing it now).
I'm pretty sure I've got the jar in the right place. I can't think of anything else that could be relevant. Any suggestions?

Thanks
Adam
 
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Do you have an earlier "early access release" of that API somewhere in your classpath, before the rowset.jar file? Perhaps in this hypothetical release, that class was abstract.
 
Adam Hardy
Ranch Hand
Posts: 567
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In that case, wouldn't it tell me that the class was ambiguous?
OK though, I'll try searching for it. Not quite sure how though. Is there some way of using jar or javap to look inside jar files?
Thanks
Adam
 
Mike Curwen
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It wouldn't say the class was ambiguous. javac will take the first entry for the class it finds on the CLASSPATH.

Whenever I want to see what's inside a jar, I just open it with Winzip. But that's me being windows-centric.
 
reply
    Bookmark Topic Watch Topic
  • New Topic