Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [glassfish-dev] AppClient Failures

Hi Gurkan,

I created https://github.com/eclipse-ee4j/jakartaee-tck/pull/465 to fix the appclient tests. Looks like the last update was missing the "metadata-complete" attribute.
The tests do pass with this tck change. At least to pass these tests there is no change required from glassfish side.

Regards,
Alwin

On 21/08/20 3:12 am, Gurkan Erdogdu wrote:
I think we need to update the code in com.sun.enterprise.deployment.node.appclient.AppClientNode#initSystemIDs to add version 9.
+1


On Fri, Aug 21, 2020 at 12:34 AM Gurkan Erdogdu <cgurkanerdogdu@xxxxxxxxx> wrote:
Hi Alwin
As you mentioned, I have updated application-client.xml with the

<application-client version="8" metadata-complete="true" xmlns="http://xmlns.jcp.org/xml/ns/javaee"
                    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                    xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/application-client_8.xsd">

And all of the tests are passed
Correct. This was the old schema. https://jakarta.ee/xml/ns/jakartaee is the new one.

I think we need to update some parsing source code in GF codebase
Regards.
Gurkan

On Thu, Aug 20, 2020 at 9:25 PM Gurkan Erdogdu <cgurkanerdogdu@xxxxxxxxx> wrote:
Thanks for the update.

On 20 Aug 2020 Thu at 21:24 Alwin Joseph <alwin.joseph@xxxxxxxxxx> wrote:

Hi Gurkan,

I suspect this is due to the schema updates in the tck files made recently.
src/com/sun/ts/tests/appclient/deploy/metadatacomplete/testapp/application-client.xml
src/com/sun/ts/tests/appclient/deploy/metadatacomplete/testapp/application.xml

I will revert back this change if I confirm this.

Regards,
Alwin

On 20/08/20 1:15 pm, Gurkan Erdogdu wrote:
Hi

I debugged the code and it throws deployment exception in ApplicationClientDescriptor#getResourceDescriptors in switch case CFD

Any idea?

    @Override
    public Set<ResourceDescriptor> getResourceDescriptors(JavaEEResourceType type) {
        switch(type) {
            case CFD:
                throw new UnsupportedOperationException(localStrings.getLocalString(
                            "enterprise.deployment.exceptionappclientnotsupportconnectionfactorydefinition",
                            "The application client [{0}] do not support connection factory definitions",
                                new Object[] {getName()}));
            case AODD:
                throw new UnsupportedOperationException(localStrings.getLocalString(
                            "enterprise.deployment.exceptionappclientnotsupportadministeredobjectdefinition",
                            "The application client [{0}] do not support administered object definitions",
                                new Object[] {getName()}));

        }
        return super.getResourceDescriptors(type);
    }

--


--


--

Back to the top