• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Unexpected exception while moving application from jboss 4.3.0 to jboss 5.1

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic