Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jca-dev] [jakartaee-tck-dev] Connector TCK test deployment failures after updating from connector_1_0.dtd to connector_2_0.xsd
  • From: "Steve Millidge (Payara)" <steve.millidge@xxxxxxxxxxx>
  • Date: Thu, 27 Aug 2020 16:19:55 +0000
  • Accept-language: en-GB, en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=payara.fish; dmarc=pass action=none header.from=payara.fish; dkim=pass header.d=payara.fish; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=eANxB302EnS5L/qs2vHYWDvSQ8Z3DghmqHcUUN4X5Qo=; b=ms0VsVPNeuJQdEEhmKuqqtQSq8pt8GDzxrpzYFC2cDphtDNBOvhQiCvJtlzgLkBTukgeK7qTiN7QYHAi2v8vj8KGTihzO/vH2I32kEKgHGcRCIeOIxlIRcJ5GacvQ7nBFQTjjpWaF4Dr2BrzjI9u194viTHubBqDbo7yWPmW2DCfTRTmgBdjoVr1hX7TuS8hXMMHmCo6jF2RBilNCoupXKA5O1ZjKdStXqLBhVs3Tk+bIk6pKbe5au+LP3TV8+mNQtkeTM4KswK8drlRHGNEH+IyyfOAqTFQ9FDdjn9NMtUK/WT22SRIcdsfdkFf23tXqazkGH+fREMfa5gsp644hA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CrBilm6QkraFXFEY4640OQtjtyxuX+3gtJ2LMtRtbVdUji7hc9UBvUGBLnq7tQYfw4IiFxLlD90/bGWpL5O4UaDfRDPMeyGk1M/aiukBYpocd/ztq9L5VWlUQO5wqwxEKn72294ccnp+rs/yH3HzSAKvRadlC8yrCQr+8pHtzePm+qu2ei6fEKCZppWJvcG/a5agzs+1YTpCVbJ3zqjkDJSoRxIVcrS44jcn7MIth+FAUV43pxAxz1kvEjKYtiMINJnHcdABEcJUOw2viEYsniz9cen18+H/JrQqWS2pAzR/+TqFOBSRvCfwY3vAhl8slQW78okt1p/An0TxkG6qLA==
  • Delivered-to: jca-dev@xxxxxxxxxxx
  • List-archive: <https://www.eclipse.org/mailman/private/jca-dev>
  • List-help: <mailto:jca-dev-request@eclipse.org?subject=help>
  • List-subscribe: <https://www.eclipse.org/mailman/listinfo/jca-dev>, <mailto:jca-dev-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://www.eclipse.org/mailman/options/jca-dev>, <mailto:jca-dev-request@eclipse.org?subject=unsubscribe>
  • Thread-index: AQHWe7CkLk+asU7+RkGxuPmLst4c2alMIZ8A
  • Thread-topic: [jakartaee-tck-dev] Connector TCK test deployment failures after updating from connector_1_0.dtd to connector_2_0.xsd

I don’t think the connector team have changed the schema. That schema was likely changed in bulk to the new namespace.

 

From a quick search the connector 1.6 xsd does not have the spec-version element.

 

From: Scott Marlow <smarlow@xxxxxxxxxx>
Sent: 27 August 2020 15:47
To: jakartaee-tck developer discussions <jakartaee-tck-dev@xxxxxxxxxxx>; Steve Millidge (Payara) <steve.millidge@xxxxxxxxxxx>
Cc: jca-dev@xxxxxxxxxxx
Subject: Re: [jakartaee-tck-dev] Connector TCK test deployment failures after updating from connector_1_0.dtd to connector_2_0.xsd

 

 

 

On Wed, Aug 26, 2020 at 9:55 AM Scott Marlow <smarlow@xxxxxxxxxx> wrote:



On 8/26/20 4:44 AM, Steve Millidge (Payara) wrote:
> I've had a quick check and commented on the issue;
>
> https://github.com/eclipse-ee4j/jakartaee-tck/pull/474
>
> To summarise the issue seems to be a classloading issue and the exception is thrown after doing a Class.forName on the class specified. Therefore this isn't being thrown from a schema check.

Steve, thanks for checking!

Since the only change that we made was to update from the
connector_1_0.dtd to connector_2_0.xsd, I am guessing that we need to
make additional changes in the
https://github.com/eclipse-ee4j/jakartaee-tck/blob/6be543f6f5fdf62a7189e0570c5c80b4df0360a9/src/com/sun/ts/tests/common/connector/whitebox/ra-compat-tx.xml

Although, I'm not sure which setting would likely be causing the
Class.forName to fail on the specified class
("com.sun.ts.tests.common.connector.whitebox.TSConnectionFactory").

Some settings in the ra-compat-tx.xml that look like they could be updated:

1.  <spec-version>1.0</spec-version> which is not present in
connector_2_0.xsd.  I'm guessing that we should remove the spec-version
from ra-compat-tx.xml and see if that has any impact.

 

Since https://jakarta.ee/xml/ns/jakartaee/connector_2_0.xsd does not support the  "spec-version" anymore, we are removing use of "spec-version" for relevant Platform TCK connector tests.  This should help avoid the "org.xml.sax.SAXParseException; lineNumber: 28; columnNumber: 19; Deployment descriptor file META-INF/ra.xml in archive [old-dd-whitebox-notx-param.rar]. cvc-complex-type.2.4.a: Invalid content was found starting with element 'spec-versio

n'. One of '{"https://jakarta.ee/xml/ns/jakartaee":eis-type, "https://jakarta.ee/xml/ns/jakartaee":resourceadapter-version, "https://jakarta.ee/xml/ns/jakartaee":license, "https://jakarta.ee/xml/ns/jakartaee":resourceadapter}' is expected" failure.

 

It still would be good to hear from the Jakarta Connectors team if that was an expected connector change for https://jakarta.ee/xml/ns/jakartaee/connector_2_0.xsd?

 


2.  <version>1.6</version> should matter as that is supposed to be the
version of the connector resource adapter.

 

Sorry, I mean to say that "<version>1.6</version>" shouldn't be causing TCK test failures for us.

 


Any recommendations for what we should try updating in
https://github.com/eclipse-ee4j/jakartaee-tck/blob/6be543f6f5fdf62a7189e0570c5c80b4df0360a9/src/com/sun/ts/tests/common/connector/whitebox/ra-compat-tx.xml?

Scott

>
> Steve
>
> -----Original Message-----
> From: jakartaee-tck-dev-bounces@xxxxxxxxxxx <jakartaee-tck-dev-bounces@xxxxxxxxxxx> On Behalf Of Scott Marlow
> Sent: 26 August 2020 00:27
> To: jakartaee-tck-dev@xxxxxxxxxxx
> Cc: jca-dev@xxxxxxxxxxx
> Subject: Re: [jakartaee-tck-dev] Connector TCK test deployment failures after updating from connector_1_0.dtd to connector_2_0.xsd
>
> Adding Jakarta Connectors ml...
>
> On 8/25/20 4:54 PM, Scott Marlow wrote:
>> Hi,
>>
>> If the connector tests are failing due to connector_1_0.dtd [1] being
>> less strict than connector_2_0.xsd [2] about the
>> `connection-interface` type, should the TCK connector tests adjust for
>> the stricter connector_2_0.xsd [2] requirement that
>> `connection-interface` be of type "jakartaee:fully-qualified-classType"?
>>
>> Does connector_2_0.xsd  require the `connection-interface` class to be
>> in the jakarta namespace?
>>
>> The test failure is mentioned in jakartaee-tck/pull#474 [3] (see
>> second paragraph in comment) and also in test result [4].
>>
>> Connector 2.0 spec [5] shows that connection-interface could be at
>> least one of { jakarta.resource.cci.Connection,
>> jakarta.jms.QueueConnection, jakarta.jms.TopicConnection, jakarta.jms.Connection }.
>>
>> So perhaps the connector TCK tests should update
>> `com.sun.ts.tests.common.connector.whitebox.TSConnectionFactory` to be
>> of type jakarta.resource.cci.Connection.
>>
>> For reference [6] shows the pull/474 ([3])
>> connector/whitebox/ra-compat-tx.xml file that may need more changes.
>>
>> Scott
>>
>> [1] http://java.sun.com/dtd/connector_1_0.dtd
>> [2] https://jakarta.ee/xml/ns/jakartaee/connector_2_0.xsd
>> [3]
>> https://github.com/eclipse-ee4j/jakartaee-tck/pull/474#issuecomment-68
>> 0238740
>> [4]
>> https://ci.eclipse.org/jakartaee-tck/job/jakartaee-tck-alw/job/pr%252F
>> 474/2/testReport/com.sun.ts.tests.connector.connManager/connManagerCli
>> ent1/jakartaeetck_run___connector___testTransactionSupportLevels_from_
>> jsp
>> [5]
>> https://jakarta.ee/specifications/connectors/2.0/connectors-spec-2.0-R
>> C2.html
>> [6]
>> https://github.com/eclipse-ee4j/jakartaee-tck/blob/6be543f6f5fdf62a718
>> 9e0570c5c80b4df0360a9/src/com/sun/ts/tests/common/connector/whitebox/r
>> a-compat-tx.xml
>
> _______________________________________________
> jakartaee-tck-dev mailing list
> jakartaee-tck-dev@xxxxxxxxxxx
> To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/jakartaee-tck-dev
> _______________________________________________
> jakartaee-tck-dev mailing list
> jakartaee-tck-dev@xxxxxxxxxxx
> To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/jakartaee-tck-dev
>


Back to the top