Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

TCK Failure - positiveXPathToJavaTypesTest #223

Closed
volosied opened this issue Mar 10, 2022 · 0 comments · Fixed by #224
Closed

TCK Failure - positiveXPathToJavaTypesTest #223

volosied opened this issue Mar 10, 2022 · 0 comments · Fixed by #224
Assignees
Labels
bug Something isn't working JakartaEE10

Comments

@volosied
Copy link
Contributor

volosied commented Mar 10, 2022

java.lang.ClassCastException: class java.lang.Boolean cannot be cast to class org.w3c.dom.Node (java.lang.Boolean is in module java.base of loader ‘bootstrap’; org.w3c.dom.Node is in module java.xml of loader ‘bootstrap’)"

Looks to be caused by:
984725c#diff-b492b3399d4ced47922892f3485b967906c7d50b27ebca6eec456ab8ad332faeR321

Test code from TCK ( positiveXPathToJavaTypesTest.jsp)

    <x:parse var="doc">
        <Server port="8005" shutdown="SHUTDOWN" debug="0">
            <GlobalNamingResources>
                <Environment name="simpleValue" type="java.lang.Integer" value="30"/>
                <Resource name="UserDatabase" auth="Container"
                    description="User database that can be updated and saved">
                </Resource>
                <ResourceParams name="UserDatabase">
                    <parameter>
                        <name>factory</name>
                        <value>some.factory</value>
                    </parameter>
                    <parameter>
                        <name>pathname</name>
                        <value>users.xml</value>
                    </parameter>
                </ResourceParams>
            </GlobalNamingResources>
        </Server>
    </x:parse>

    <!--  The variable defined by var will have different types
              dending on the XPath expression applied.
              The mapping is defined as follows:
              XPath      Java
              boolean    java.lang.Boolean
              number     java.lang.Number
              String     java.lang.String
              node-set   Implementation specified - will check java.lang.Object -->
    XPath expression: boolean(/Server/GlobalNamingResources/ResourceParams) - Result should be of type Boolean<br>
    <x:set var="reBool" select="boolean($doc/Server/GlobalNaming/Resources/ResourceParams)"/>

jstl_xml_types_web.war.zip

@volosied volosied added bug Something isn't working JakartaEE10 labels Mar 10, 2022
@volosied volosied changed the title TCK Failure TCK Failure - positiveXPathToJavaTypesTest Mar 10, 2022
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working JakartaEE10
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant