aspose file tools*
The moose likes JBoss/WildFly and the fly likes Tomcat  to JBoss Migration. 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 "Tomcat  to JBoss Migration." Watch "Tomcat  to JBoss Migration." New topic
Author

Tomcat to JBoss Migration.

Milan Jagatiya
Ranch Hand

Joined: Jan 01, 2007
Posts: 164
Hi all,
I am migrating my application from tomcat to JBoss. M getting below error while running JBoss.


==>> Why its not casting (org.jboss.tm.usertx.client.ServerVMClie
ntUserTransaction cannot be cast to javax.transaction.UserTransaction)
as ServerVMClientUserTransaction is implementing javax.transaction.UserTransaction.

Thank,
[ January 29, 2008: Message edited by: Milan Jagatiya ]

Milan.<br />I can because I think I can...
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9317
    
109

Do you have any jta.jar or any other jar which is packaged with your application? If yes, then remove them. I would recommend, you go through the following articles and configure a classloader for your application, so that you dont run into similar issues later:


JBossClassLoadingUseCases

ClassLoadingConfiguration

ClassCastExceptions


[My Blog] [JavaRanch Journal]
Milan Jagatiya
Ranch Hand

Joined: Jan 01, 2007
Posts: 164
Thanks Jaikiran.. it works. now.. getting another error . let me fight with it otherwise will back to you

once again thanks a lot...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tomcat to JBoss Migration.
 
Similar Threads
Hibernate wrong number of column. should be 1
spring 2.5.3 / hibernate 3 sessionFactory NullPointerException
Exception thrown : org.springframework.beans.factory.BeanCreationException
Exception in thread "main" org.springframework.beans.factory.BeanCreationException
Struts 2 + Spring 2 + JPA + AJAX