permaculture playing cards*
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 5772
    
    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: 5772
    
    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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Unexpected exception while moving application from jboss 4.3.0 to jboss 5.1
 
Similar Threads
PageListServlet migration from 3.5 to 5.1
Application works with JBoss 5.0 but not working with JBoss 5.1
Namespace dump in JBoss
Exception Can't find a persistence unit named 'null'
How to run a server (.war) file separate from application (another .war)