[jboss-user] [JCA/JBoss] - Re: Resource adapter deployment problem
adrian@jboss.org
do-not-reply at jboss.com
Fri Jul 6 09:53:46 EDT 2007
You've using the 1.0 xml, but spec-version="1.5". Why?
Choose which one you want (probably spec-version="1.0")
the xml is different according to the spec version.
For 1.5, you would need to add "outbound-resourceadapter"
and "connection-definition" elements.
e.g. From one of the jboss rars
| <connector xmlns="http://java.sun.com/xml/ns/j2ee"
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
| xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
| http://java.sun.com/xml/ns/j2ee/connector_1_5.xsd"
| version="1.5">
|
| <description>JBoss Resource Adapter for JDBC 3 XA drivers</description>
| <display-name>JBoss JDBC XATransaction ResourceAdapter</display-name>
|
| <vendor-name>JBoss, Inc</vendor-name>
| <eis-type>JDBC 3.0 XA Relational Database</eis-type>
| <resourceadapter-version>5.0</resourceadapter-version>
|
| <license>
| <description>
| JBoss, Home of Professional Open Source
| Copyright 2005, JBoss Inc., and individual contributors as indicated
| by the @authors tag. See the copyright.txt in the distribution for a
| full listing of individual contributors.
|
| This is free software; you can redistribute it and/or modify it
| under the terms of the GNU Lesser General Public License as
| published by the Free Software Foundation; either version 2.1 of
| the License, or (at your option) any later version.
|
| This software is distributed in the hope that it will be useful,
| but WITHOUT ANY WARRANTY; without even the implied warranty of
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
| Lesser General Public License for more details.
|
| You should have received a copy of the GNU Lesser General Public
| License along with this software; if not, write to the Free
| Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
| 02110-1301 USA, or see the FSF site: http://www.fsf.org.
| </description>
| <license-required>true</license-required>
| </license>
|
| <resourceadapter>
| <resourceadapter-class>org.jboss.resource.deployment.DummyResourceAdapter</resourceadapter-class>
|
| <outbound-resourceadapter>
| <connection-definition>
| <managedconnectionfactory-class>org.jboss.resource.adapter.jdbc.xa.XAManagedConnectionFactory</managedconnectionfactory-class>
| etc.
|
>From the parsing code (where it is failing):
| else if (localName.equals("connection-definition") ||
| (localName.equals("resourceadapter") && cmd.getVersion().equals("1.0")))
| {
| ConnectionDefinitionMetaData cdmd = new ConnectionDefinitionMetaData(cmd);
| cmd.addConnectionDefinition(cdmd);
| return cdmd;
| }
|
cmd.getVersion() is the spec-version in your xml.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4061315#4061315
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4061315
More information about the jboss-user
mailing list