Hi,
I tried to run the TxConnect Socket Connector
(http://txconnect.sourceforge.net/) on Geronimo 2.1.3, a test servlet gets
the ConnectionFactory, but on the second line below there is an exception:
ConnectionFactory connectionFactory = (ConnectionFactory)obj;
Connection connection = connectionFactory.getConnection();
Connection: com.dsoft.jca.eis.EisConnectionFactory
17:05:40,981 ERROR [EisConnectionFactory] Problem when getting a connection
java.lang.ClassCastException: $Proxy33 cannot be cast to
com.dsoft.jca.eis.EisConnection
at
com.dsoft.jca.eis.EisConnectionFactory.getConnection(EisConnectionFactory.java:69)
Anybody an idea what went wrong?
Thanks,
Juergen
geronimo-ra.xml
------------
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<conn:connector
xmlns:app="http://geronimo.apache.org/xml/ns/j2ee/application-2.0"
xmlns:client="http://geronimo.apache.org/xml/ns/j2ee/application-client-2.0"
xmlns:conn="http://geronimo.apache.org/xml/ns/j2ee/connector-1.2"
xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.2"
xmlns:ejb="http://openejb.apache.org/xml/ns/openejb-jar-2.2"
xmlns:name="http://geronimo.apache.org/xml/ns/naming-1.2"
xmlns:pers="http://java.sun.com/xml/ns/persistence"
xmlns:pkgen="http://openejb.apache.org/xml/ns/pkgen-2.1"
xmlns:sec="http://geronimo.apache.org/xml/ns/security-2.0"
xmlns:web="http://geronimo.apache.org/xml/ns/j2ee/web-2.0.1">
<dep:environment>
<dep:moduleId>
<dep:groupId>default</dep:groupId>
<dep:artifactId>LinuxRA</dep:artifactId>
<dep:version>1.0</dep:version>
<dep:type>car</dep:type>
</dep:moduleId>
</dep:environment>
<conn:resourceadapter>
<conn:resourceadapter-instance>
<conn:resourceadapter-name>LinuxRA</conn:resourceadapter-name>
<conn:config-property-setting name="hostname">
ubuntu
</conn:config-property-setting>
<name:workmanager>
<name:gbean-link>DefaultWorkManager</name:gbean-link>
</name:workmanager>
</conn:resourceadapter-instance>
<conn:outbound-resourceadapter>
<conn:connection-definition>
<conn:connectionfactory-interface>
javax.resource.cci.ConnectionFactory
</conn:connectionfactory-interface>
<conn:connectiondefinition-instance>
<conn:name>MyLinuxConnectionFactory</conn:name>
<conn:config-property-setting
name="driver">com.dsoft.socket.SocketAdapter</conn:config-property-setting>
<conn:config-property-setting
name="hostname">ubuntu</conn:config-property-setting>
<conn:config-property-setting
name="port">18136</conn:config-property-setting>
<conn:connectionmanager>
<conn:no-transaction />
<conn:no-pool />
</conn:connectionmanager>
</conn:connectiondefinition-instance>
</conn:connection-definition>
</conn:outbound-resourceadapter>
</conn:resourceadapter>
</conn:connector>
--
View this message in context:
http://www.nabble.com/%24Proxy33-cannot-be-cast-to-com.dsoft.jca.eis.EisConnection-tp19610387s134p19610387.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.