hi,
 
Just started doing servlet programming and using Orion.
I made this servlet which compiles just fine but at runtime
the server responde with a ClassCastException and I just
canīt understand why.  Here is where I get the errors:
 
cpool = (ConnectionPool)context.getAttribute("cpool");
 
org.gjt.mm.mysql.Statement state = (org.gjt.mm.mysql.Statement)statement;
 
the ConnectionPool class is placed in the same package as the
Servlet and the jdbc driver is in the /lib dir.
 
I hope this explains my problem, hope anyone can help me
I have spent alot of time trying to find out what can be wrong.
The casts is legal for sure.
 
thanks,
 
-erik

Reply via email to