Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Unexpected exception while moving application from jboss 4.3.0 to jboss 5.1

 
Saurabh Pol
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I moved my application from jBoss 4.3.0 to jBoss 5.1, it got deployed correctly,
Even I am able to fetch data for some of my screens in the application.

but while trying to save data in to database I am getting this Exception.

java.lang.ClassCastException
org.jboss.resource.adapter.jdbc.jdk6.WrappedConnectionJDK6 cannot be cast to org.jboss.resource.adapter.jdbc.WrappedConnection

Please help me to get out from this exception. I have spent lot of time to resolve this :-(

Thanks and Regards,
Saurabh Pol.
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What JAR files are packaged with your application? Usually a class cast exception happens when you have packaged a JBoss JAR within your app.
 
Saurabh Pol
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Peter,

Thank for reply and sorry for delay,

I have packaged only ojdbc6.jar from server's default lib.
used all other jars from war/lib.
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think I know what you wrote, but I'm not sure. What I was asking you was what files did you package in your WAR's WEB-INF/lib directory? Please run "jar -tf xxx.war" for your war file and post the results.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic