Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

java.lang.ClassCastException

 
shivangi mathur
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 159
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 213
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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

 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic