I am trying to migrate the JCA connector code developed for weblogic server to Jboss eap 6.0.1 , but i am getting following error in the jboss eap 6.0 console when i deployed the code after made some changes.
15:52:47,726 WARNING [com.tiscon.bpm.clusterbridge.BPMClusterBridgeBean] (Thread-171) Error while loadWorkItems for FC-SYSTEM-IPP: com.tiscon.bpm.connector.BPMException: com.tiscon.bpm.connector.staffware.ConnectionFactory cannot be cast to com.tiscon.bpm.connector.BPMConnectionFactory
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.6.0_45]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [rt.jar:1.6.0_45]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [rt.jar:1.6.0_45]
at java.lang.reflect.Method.invoke(Method.java:597) [rt.jar:1.6.0_45]
Isn't the cited exception the cast you made? IF it is, check out what is the Object that you get from JNDI (which if it is only this execption in the log, i would say that JCA is creating a proxy for another class/interface that you are not spectating but it will work fine without that cast). As it is a third party JCA, you need to find out with your vendor how to get a more fine grain log using that. Maybe enabling the trace log level in jboss can help if my assumption around the only problem is the cast is wrong.. I will post this message in your post in https://community.jboss.org/message/868901 just to reach you faster
I am getting "com.tiscon.bpm.connector.staffware.ConnectionFactory" object from jndi instead of "BPMConnectionFactory" object and due to which i am getting
If you see the ejb-jar.xml,i have pasted above has entry for resource type , which is "com.tiscon.bpm.connector.BPMConnectionFactory" ,but the jboss is
returning "com.tiscon.bpm.connector.staffware.ConnectionFactory" object. The class "com.tiscon.bpm.connector.staffware.ConnectionFactory" is implementing
The same code is running properly in weblogic server and the server is returning the "BPMConnectionFactory" object. This is the only exception i am getting
in the jboss log file.
If jboss is not able to return the "BPMConnectionFactory" object ,then how it is returning proxy of another class (i.e
I have seen the log file , which contains only the cast exception which is caused by the jboss server returning the wrong object.
I am not able to find out any configuration mistake that i have made so that the jboss is returning wrong object or is there any class loading issue?
Already pasted ra.xml and ironjacamar.xml above.
Sanjeev Kumar Mandal.
Time is the best teacher, but unfortunately, it kills all of its students - Robin Williams. tiny ad:
how do I do my own kindle-like thing - without amazon