jQuery in Action, 2nd edition*
The moose likes JBoss/WildFly and the fly likes Unexpected exception while moving application from jboss 4.3.0 to jboss 5.1 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Unexpected exception while moving application from jboss 4.3.0 to jboss 5.1" Watch "Unexpected exception while moving application from jboss 4.3.0 to jboss 5.1" New topic
Author

Unexpected exception while moving application from jboss 4.3.0 to jboss 5.1

Saurabh Pol
Greenhorn

Joined: Dec 05, 2012
Posts: 12
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

Joined: May 14, 2008
Posts: 5823
    
    7

What JAR files are packaged with your application? Usually a class cast exception happens when you have packaged a JBoss JAR within your app.


JBoss In Action
Saurabh Pol
Greenhorn

Joined: Dec 05, 2012
Posts: 12
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

Joined: May 14, 2008
Posts: 5823
    
    7

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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Unexpected exception while moving application from jboss 4.3.0 to jboss 5.1