aspose file tools*
The moose likes Servlets and the fly likes java.lang.ClassCastException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "java.lang.ClassCastException" Watch "java.lang.ClassCastException" New topic
Author

java.lang.ClassCastException

shivangi mathur
Greenhorn

Joined: Jul 07, 2001
Posts: 10
Hello
I am using JavaWebServer2.0 and when i try to load one servlet
"ConnectionPool" into the webserver it is giving the error :
Can not Update The Servlet ConnectionPool:
java.lang.ClassCastException.
What should I do.
Please Help.
Thanks in advance.
Shivangi
Cherry Mathew
Ranch Hand

Joined: Dec 26, 2000
Posts: 159
Shivangi,
Im not very sure about the answer. This error can be beacause of the different version of class that is with the class loader.
Do u get this problem when u reastart the server?.
Cherry
Sarath Mohan
Ranch Hand

Joined: Mar 17, 2001
Posts: 213
Hi Shivangi,
You didn't specify the purpose of the 'ConnectionPool' servlet.
In the server's classpath there may be one more Class having the same Name with a differetn class heirarchy. So plz analyze all classes that could come across when server starts its JVM.

Does it create try to create a pool of db connections, then plz check the server have the required class files for connection pool.
Hope this will help you,
Binu

Originally posted by shivangi mathur:
Hello
I am using JavaWebServer2.0 and when i try to load one servlet
"ConnectionPool" into the webserver it is giving the error :
Can not Update The Servlet ConnectionPool:
java.lang.ClassCastException.
What should I do.
Please Help.
Thanks in advance.
Shivangi


Sarath Mohan
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: java.lang.ClassCastException