I have a web application which uses webwork, hibernate and c3p0 which was working on apache tomcat.
I do not have any data source configured.
On jetty when i deploy the same war, the deployment was fine.
But when i try to use the dynamic content where a server side action tries to access database i get this exception
14:14:29,718 ERROR DispatcherUtils: Could not execute action
java.lang.reflect.InvocationTargetException
the cause or it is,
Caused by: java.lang.LinkageError: loader constraint violation: loader (instance
of org/mortbay/jetty/webapp/WebAppClassLoader) previously initiated loading for
a different type with name "javax/management/MBeanServer"
down the stack trace I see c3p0 classes and hibernate ones.
So I am assuming some how the application is not bale to access database.
I have searched a lot for this could not find any useful results some of the relevant links that i found are
1.
http://www.nabble.com/Help-a-sysadmin-smile-today-%3A)-tt16031477.html#a160314772.
http://inventorsparadox.blogspot.com/2008_11_01_archive.htmlI have tried the second link mentioned but without any success.
Can any body help me on this.