You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Peter Costello <pe...@yahoo.com> on 2001/05/23 19:23:54 UTC

How to fix ClassCastException in Windows

When trying to execute Tomcat4.0-b5 from DOS, I
received ClassCastExceptions. After searching the
mail, I saw someone mention that classes loaded by
different classloaders are treated as different
classes
even though the names may match.

I made the following changes to 'catalina.bat' and
it works now.
   1) Explicitly added every ".jar" or directory to
      source/.class to classpath defined in 
      catalina.bat
   2) Changed the start class from 
      org.apache.catalina.startup.BootStrap  to
      org.apache.catalina.startup.Catalina
   3) No .jar files in magic directories "server/lib"
      or "common/lib".  Don't know if this matters.


__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/