Forums Register Login

java.lang.ClassCastException

+Pie Number of slices to send: Send
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
+Pie Number of slices to send: Send
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
+Pie Number of slices to send: Send
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


What's wrong? Where are you going? Stop! Read this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 940 times.
Similar Threads
Maintaining scalability in servlets programming
Dynamic Connection Pool
How to share a user-connection between two projects
Running servlet from bean
What is Connection pool?
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 16:37:19.