You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@geode.apache.org by "Barrett Oglesby (Jira)" <ji...@apache.org> on 2020/08/24 17:09:00 UTC
[jira] [Commented] (GEODE-8452) The ra.xml in the
geode-jca-1.12.0.rar fails to load in Websphere Liberty
[ https://issues.apache.org/jira/browse/GEODE-8452?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17183472#comment-17183472 ]
Barrett Oglesby commented on GEODE-8452:
----------------------------------------
The file should look more like:
{noformat}
<?xml version="1.0" encoding="UTF-8"?>
<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">
<display-name>GFE JCA Adaptor</display-name>
<vendor-name></vendor-name>
<spec-version>1.5</spec-version>
<eis-type>GFE JCA</eis-type>
<version>1.5</version>
<resourceadapter>
<config-property>
<config-property-name>ProductName</config-property-name>
<config-property-type>java.lang.String</config-property-type>
<config-property-value>GemFire</config-property-value>
</config-property>
<config-property>
<config-property-name>UserName</config-property-name>
<config-property-type>java.lang.String</config-property-type>
<config-property-value/>
</config-property>
<config-property>
<config-property-name>Version</config-property-name>
<config-property-type>java.lang.String</config-property-type>
<config-property-value>8.0</config-property-value>
</config-property>
<outbound-resourceadapter>
<connection-definition>
<managedconnectionfactory-class>org.apache.geode.internal.ra.spi.JCAManagedConnectionFactory</managedconnectionfactory-class>
<connectionfactory-interface>org.apache.geode.ra.GFConnectionFactory</connectionfactory-interface>
<connectionfactory-impl-class>org.apache.geode.internal.ra.GFConnectionFactoryImpl</connectionfactory-impl-class>
<connection-interface>org.apache.geode.ra.GFConnection</connection-interface>
<connection-impl-class>org.apache.geode.internal.ra.GFConnectionImpl</connection-impl-class>
</connection-definition>
<transaction-support>LocalTransaction</transaction-support>
<reauthentication-support>false</reauthentication-support>
</outbound-resourceadapter>
</resourceadapter>
</connector>
{noformat}
> The ra.xml in the geode-jca-1.12.0.rar fails to load in Websphere Liberty
> -------------------------------------------------------------------------
>
> Key: GEODE-8452
> URL: https://issues.apache.org/jira/browse/GEODE-8452
> Project: Geode
> Issue Type: Bug
> Components: transactions
> Reporter: Barrett Oglesby
> Priority: Major
>
> The ra.xml file in the geode-jca-xxx.rar file in the product tree looks like:
> {noformat}
> <?xml version="1.0" encoding="UTF-8"?>
> <!--
> Licensed to the Apache Software Foundation (ASF) under one or more
> contributor license agreements. See the NOTICE file distributed with
> this work for additional information regarding copyright ownership.
> The ASF licenses this file to You under the Apache License, Version 2.0
> (the "License"); you may not use this file except in compliance with
> the License. You may obtain a copy of the License at
> http://www.apache.org/licenses/LICENSE-2.0
> Unless required by applicable law or agreed to in writing, software
> distributed under the License is distributed on an "AS IS" BASIS,
> WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
> See the License for the specific language governing permissions and
> limitations under the License.
> -->
> <!DOCTYPE connector PUBLIC '-//Sun Microsystems, Inc.//DTD Connector 1.0//EN' 'http://java.sun.com/j2ee/dtds/connector_1_0.dtd'>
> <connector>
> <display-name>GFE JCA Adaptor</display-name>
> <vendor-name></vendor-name>
> <spec-version>1.5</spec-version>
> <eis-type>GFE JCA</eis-type>
> <version>1.5</version>
> <resourceadapter>
> <managedconnectionfactory-class>org.apache.geode.internal.ra.spi.JCAManagedConnectionFactory</managedconnectionfactory-class>
> <config-property>
> <config-property-name>ProductName</config-property-name>
> <config-property-type>java.lang.String</config-property-type>
> <config-property-value>GemFire</config-property-value>
> </config-property>
> <config-property>
> <config-property-name>UserName</config-property-name>
> <config-property-type>java.lang.String</config-property-type>
> <config-property-value/>
> </config-property>
> <config-property>
> <config-property-name>Version</config-property-name>
> <config-property-type>java.lang.String</config-property-type>
> <config-property-value>8.0</config-property-value>
> </config-property>
> <connectionfactory-interface>org.apache.geode.ra.GFConnectionFactory</connectionfactory-interface>
> <connectionfactory-impl-class>org.apache.geode.internal.ra.GFConnectionFactoryImpl</connectionfactory-impl-class>
> <connection-interface>org.apache.geode.ra.GFConnection</connection-interface>
> <connection-impl-class>org.apache.geode.internal.ra.GFConnectionImpl</connection-impl-class>
> <transaction-support>LocalTransaction</transaction-support>
> <reauthentication-support>false</reauthentication-support>
> </resourceadapter>
> </connector>
> {noformat}
> Attempting to load it into Websphere Liberty fails with:
> {noformat}
> [ERROR ] CWWKZ0114E: Application jta-websphere-liberty encountered an error when accessing the contents of module /geode-jca-9.10.2.rar of type connector: com.ibm.wsspi.adaptable.module.UnableToAdaptException: javax.xml.bind.UnmarshalException
> - with linked exception:
> [org.xml.sax.SAXParseExceptionpublicId: -//Sun Microsystems, Inc.//DTD Connector 1.0//EN; systemId: http://www.oracle.com/webfolder/technetwork/jsc/j2ee/dtds/connector_1_0.dtd; lineNumber: 1; columnNumber: 1; The markup declarations contained or pointed to by the document type declaration must be well-formed.]
> at com.ibm.ws.jca.internal.ConnectorAdapter.adapt(ConnectorAdapter.java:107)
> at [internal classes]
> Caused by: javax.xml.bind.UnmarshalException
> - with linked exception:
> [org.xml.sax.SAXParseExceptionpublicId: -//Sun Microsystems, Inc.//DTD Connector 1.0//EN; systemId: http://www.oracle.com/webfolder/technetwork/jsc/j2ee/dtds/connector_1_0.dtd; lineNumber: 1; columnNumber: 1; The markup declarations contained or pointed to by the document type declaration must be well-formed.]
> at javax.xml.bind.helpers.AbstractUnmarshallerImpl.createUnmarshalException(AbstractUnmarshallerImpl.java:335)
> at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.createUnmarshalException(UnmarshallerImpl.java:563)
> at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:249)
> at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:214)
> at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:140)
> at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:123)
> at com.ibm.ws.jca.utils.metagen.DeploymentDescriptorParser.parseResourceAdapterXml(DeploymentDescriptorParser.java:178)
> ... 1 more
> Caused by: org.xml.sax.SAXParseExceptionpublicId: -//Sun Microsystems, Inc.//DTD Connector 1.0//EN; systemId: http://www.oracle.com/webfolder/technetwork/jsc/j2ee/dtds/connector_1_0.dtd; lineNumber: 1; columnNumber: 1; The markup declarations contained or pointed to by the document type declaration must be well-formed.
> at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:203)
> at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:177)
> at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:400)
> at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:327)
> at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(XMLScanner.java:1473)
> at com.sun.org.apache.xerces.internal.impl.XMLDTDScannerImpl.scanDecls(XMLDTDScannerImpl.java:2070)
> at com.sun.org.apache.xerces.internal.impl.XMLDTDScannerImpl.scanDTDExternalSubset(XMLDTDScannerImpl.java:307)
> at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDriver.dispatch(XMLDocumentScannerImpl.java:1174)
> at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDriver.next(XMLDocumentScannerImpl.java:1045)
> at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:959)
> at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:602)
> at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:112)
> at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:505)
> at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:842)
> at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:771)
> at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141)
> at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1213)
> at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:643)
> at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:357)
> at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:243)
> ... 5 more
> {noformat}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)