Uploaded image for project: 'TomEE'
  1. TomEE
  2. TOMEE-3140 Jakarta EE 9.1 TCK Failures
  3. TOMEE-3211

securityapi.securitycontext.callerdata testSecurityContextHasAccessToWebResource

Attach filesAttach ScreenshotVotersWatch issueWatchersConvert to IssueLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment Visibility
    XMLWordPrintableJSON

    Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 9.0.0-M7
    • Component/s: None
    • Labels:
      None

      Description

      Follow setup instructions in TOMEE-3140. Then run:

      ./runtests --ee91 -c -j --web tomee-plume com.sun.ts.tests.securityapi.securitycontext.callerdata.Client#testSecurityContextHasAccessToWebResource
      

      At the time this issue was filed, the test failed with the following in target/logs/javatest.log

      Valid runtime files after sweep:
      /Users/dblevins/work/tcks/jakartaeetck-9.1.0-2021-03-24.1451/dist/com/sun/ts/tests/securityapi/securitycontext/callerdata/securityapi_securitycontext_callerdata.ear.sun-application.xml
      /Users/dblevins/work/tcks/jakartaeetck-9.1.0-2021-03-24.1451/dist/com/sun/ts/tests/securityapi/securitycontext/callerdata/securityapi_securitycontext_callerdata_web.war.sun-web.xml
      Deploying apps for forward rebuildable...
      Search for s1as runtime files match:`securityapi_securitycontext_callerdata.ear`
      Valid runtime files after sweep:
      /Users/dblevins/work/apache/tomee-tck-ee91/./target/harnesstmp//tmp/securityapi_securitycontext_callerdata.ear.sun-application.xml
      /Users/dblevins/work/apache/tomee-tck-ee91/./target/harnesstmp//tmp/securityapi_securitycontext_callerdata_web.war.sun-web.xml
      StandardDeployment14.deploy()
      Starting to distribute:  /Users/dblevins/work/tcks/jakartaeetck-9.1.0-2021-03-24.1451/dist/com/sun/ts/tests/securityapi/securitycontext/callerdata/securityapi_securitycontext_callerdata.ear
      file: /Users/dblevins/work/tcks/jakartaeetck-9.1.0-2021-03-24.1451/dist/com/sun/ts/tests/securityapi/securitycontext/callerdata/securityapi_securitycontext_callerdata.ear
      plan: java.io.ByteArrayInputStream@473a301a
      amd Obtained CACHED DeploymentManager
      amd Obtained CACHED DeploymentManager
      $$$$$$$$$$ Deployment SUCCEEDED for "/Users/dblevins/work/tcks/jakartaeetck-9.1.0-2021-03-24.1451/dist/com/sun/ts/tests/securityapi/securitycontext/callerdata/securityapi_securitycontext_callerdata.ear"
      amd Obtained CACHED DeploymentManager
      amd Obtained CACHED DeploymentManager
      04-11-2021 20:56:34:  Harness - harness.executeMode is set to "0"
      04-11-2021 20:56:34:  Harness - keywords (to be passed to tests) set to:  all
      04-11-2021 20:56:34:  Harness - sClassPathFromExecProps = ::
      command: com.sun.ts.lib.harness.ExecTSTestCmd CLASSPATH=:::/Users/dblevins/work/tcks/jakartaeetck-9.1.0-2021-03-24.1451/lib/jaxb-api.jar:/Users/dblevins/work/tcks/jakartaeetck-9.1.0-2021-03-24.1451/lib/jaxb-core.jar:/Users/dblevins/work/tcks/jakartaeetck-9.1.0-2021-03-24.1451/lib/jaxb-impl.jar:/Users/dblevins/work/tcks/jakartaeetck-9.1.0-2021-03-24.1451/lib/jaxb-xjc.jar:/Users/dblevins/work/tcks/jakartaeetck-9.1.0-2021-03-24.1451/lib/tsharness.jar:/Users/dblevins/work/tcks/jakartaeetck-9.1.0-2021-03-24.1451/lib/cts.jar:/Users/dblevins/work/tcks/jakartaeetck-9.1.0-2021-03-24.1451/lib/sigtest.jar:/Users/dblevins/work/apache/tomee-tck-ee91/target/apache-tomee-plume-9.0.0-M7-SNAPSHOT/lib/javaee-api-8.0-5.jar:/Users/dblevins/work/apache/tomee-tck-ee91/target/tomee-tck-8.0.7-SNAPSHOT.jar:/Users/dblevins/work/apache/tomee-tck-ee91/target/apache-tomee-plume-9.0.0-M7-SNAPSHOT/lib/openejb-core-8.0.7-SNAPSHOT.jar:/Users/dblevins/work/apache/tomee-tck-ee91/target/apache-tomee-plume-9.0.0-M7-SNAPSHOT/lib/openejb-core-eclipselink-8.0.7-SNAPSHOT.jar:/Users/dblevins/work/apache/tomee-tck-ee91/target/lib/activemq-client-5.16.0.jar:/Users/dblevins/work/apache/tomee-tck-ee91/target/lib/activemq-jdbc-store-5.16.1.jar:/Users/dblevins/work/apache/tomee-tck-ee91/target/lib/bval-jsr-2.0.5.jar:/Users/dblevins/work/apache/tomee-tck-ee91/target/lib/catalina.jar:/Users/dblevins/work/apache/tomee-tck-ee91/target/lib/commons-cli-1.4.jar:/Users/dblevins/work/apache/tomee-tck-ee91/target/lib/commons-collections-3.2.2.jar:/Users/dblevins/work/apache/tomee-tck-ee91/target/lib/commons-collections4-4.4.jar:/Users/dblevins/work/apache/tomee-tck-ee91/target/lib/commons-dbcp2-2.1.jar:/Users/dblevins/work/apache/tomee-tck-ee91/target/lib/commons-lang3-3.11.jar:/Users/dblevins/work/apache/tomee-tck-ee91/target/lib/commons-logging-1.2.jar:/Users/dblevins/work/apache/tomee-tck-ee91/target/lib/commons-pool2-2.3.jar:/Users/dblevins/work/apache/tomee-tck-ee91/target/lib/cts-9.1.jar:/Users/dblevins/work/apache/tomee-tck-ee91/target/lib/dbprocedures-9.1.jar:/Users/dblevins/work/apache/tomee-tck-ee91/target/lib/derby-10.14.2.0.jar:/Users/dblevins/work/apache/tomee-tck-ee91/target/lib/derbyclient-10.14.2.0.jar:/Users/dblevins/work/apache/tomee-tck-ee91/target/lib/derbynet-10.14.2.0.jar:/Users/dblevins/work/apache/tomee-tck-ee91/target/lib/eclipselink-3.0.0.jar:/Users/dblevins/work/apache/tomee-tck-ee91/target/lib/el-api.jar:/Users/dblevins/work/apache/tomee-tck-ee91/target/lib/geronimo-connector-3.1.4.jar:/Users/dblevins/work/apache/tomee-tck-ee91/target/lib/geronimo-javamail_1.6_mail-1.0.0.jar:/Users/dblevins/work/apache/tomee-tck-ee91/target/lib/geronimo-jms_1.1_spec-1.1.1.jar:/Users/dblevins/work/apache/tomee-tck-ee91/target/lib/geronimo-mail-2.0.2.jar:/Users/dblevins/work/apache/tomee-tck-ee91/target/lib/geronimo-transaction-3.1.4.jar:/Users/dblevins/work/apache/tomee-tck-ee91/target/lib/hawtbuf-1.11.jar:/Users/dblevins/work/apache/tomee-tck-ee91/target/lib/howl-1.0.1-1.jar:/Users/dblevins/work/apache/tomee-tck-ee91/target/lib/hsqldb-2.3.2.jar:/Users/dblevins/work/apache/tomee-tck-ee91/target/lib/istack-commons-runtime-3.0.11.jar:/Users/dblevins/work/apache/tomee-tck-ee91/target/lib/jackson-annotations-2.12.1.jar:/Users/dblevins/work/apache/tomee-tck-ee91/target/lib/jackson-core-2.12.1.jar:/Users/dblevins/work/apache/tomee-tck-ee91/target/lib/jackson-databind-2.12.1.jar:/Users/dblevins/work/apache/tomee-tck-ee91/target/lib/jakarta.activation-1.2.1.jar:/Users/dblevins/work/apache/tomee-tck-ee91/target/lib/jakarta.xml.bind-api-2.3.3.jar:/Users/dblevins/work/apache/tomee-tck-ee91/target/lib/jaspic-api.jar:/Users/dblevins/work/apache/tomee-tck-ee91/target/lib/javaee-api-8.0-5.jar:/Users/dblevins/work/apache/tomee-tck-ee91/target/lib/jaxb-runtime-2.3.3.jar:/Users/dblevins/work/apache/tomee-tck-ee91/target/lib/jsp-api.jar:/Users/dblevins/work/apache/tomee-tck-ee91/target/lib/mbean-annotation-api-8.0.7-SNAPSHOT.jar:/Users/dblevins/work/apache/tomee-tck-ee91/target/lib/openejb-api-8.0.7-SNAPSHOT.jar:/Users/dblevins/work/apache/tomee-tck-ee91/target/lib/openejb-core-8.0.7-SNAPSHOT.jar:/Users/dblevins/work/apache/tomee-tck-ee91/target/lib/openejb-core-eclipselink-8.0.7-SNAPSHOT.jar:/Users/dblevins/work/apache/tomee-tck-ee91/target/lib/openejb-javaagent-8.0.7-SNAPSHOT.jar:/Users/dblevins/work/apache/tomee-tck-ee91/target/lib/openejb-javaagent.jar:/Users/dblevins/work/apache/tomee-tck-ee91/target/lib/openejb-jee-8.0.7-SNAPSHOT.jar:/Users/dblevins/work/apache/tomee-tck-ee91/target/lib/openejb-jee-accessors-8.0.7-SNAPSHOT.jar:/Users/dblevins/work/apache/tomee-tck-ee91/target/lib/openejb-jpa-integration-8.0.7-SNAPSHOT.jar:/Users/dblevins/work/apache/tomee-tck-ee91/target/lib/openejb-loader-8.0.7-SNAPSHOT.jar:/Users/dblevins/work/apache/tomee-tck-ee91/target/lib/openjpa-3.1.2.jar:/Users/dblevins/work/apache/tomee-tck-ee91/target/lib/openwebbeans-ee-2.0.22.jar:/Users/dblevins/work/apache/tomee-tck-ee91/target/lib/openwebbeans-ee-common-2.0.22.jar:/Users/dblevins/work/apache/tomee-tck-ee91/target/lib/openwebbeans-ejb-2.0.22.jar:/Users/dblevins/work/apache/tomee-tck-ee91/target/lib/openwebbeans-el22-2.0.22.jar:/Users/dblevins/work/apache/tomee-tck-ee91/target/lib/openwebbeans-impl-2.0.22.jar:/Users/dblevins/work/apache/tomee-tck-ee91/target/lib/openwebbeans-spi-2.0.22.jar:/Users/dblevins/work/apache/tomee-tck-ee91/target/lib/openwebbeans-web-2.0.22.jar:/Users/dblevins/work/apache/tomee-tck-ee91/target/lib/quartz-openejb-shade-2.2.4.jar:/Users/dblevins/work/apache/tomee-tck-ee91/target/lib/serp-1.15.1.jar:/Users/dblevins/work/apache/tomee-tck-ee91/target/lib/servlet-api.jar:/Users/dblevins/work/apache/tomee-tck-ee91/target/lib/slf4j-api-1.7.21.jar:/Users/dblevins/work/apache/tomee-tck-ee91/target/lib/stax-ex-1.8.1.jar:/Users/dblevins/work/apache/tomee-tck-ee91/target/lib/swizzle-stream-1.6.2.jar:/Users/dblevins/work/apache/tomee-tck-ee91/target/lib/sxc-jaxb-core-0.8.jar:/Users/dblevins/work/apache/tomee-tck-ee91/target/lib/sxc-runtime-0.8.jar:/Users/dblevins/work/apache/tomee-tck-ee91/target/lib/tomcat-api.jar:/Users/dblevins/work/apache/tomee-tck-ee91/target/lib/tomcat-juli.jar:/Users/dblevins/work/apache/tomee-tck-ee91/target/lib/tomcat-util-scan.jar:/Users/dblevins/work/apache/tomee-tck-ee91/target/lib/tomcat-util.jar:/Users/dblevins/work/apache/tomee-tck-ee91/target/lib/tomcat-websocket.jar:/Users/dblevins/work/apache/tomee-tck-ee91/target/lib/tomee-catalina-8.0.7-SNAPSHOT.jar:/Users/dblevins/work/apache/tomee-tck-ee91/target/lib/tomee-security-8.0.7-SNAPSHOT.jar:/Users/dblevins/work/apache/tomee-tck-ee91/target/lib/tsharness-9.1.jar:/Users/dblevins/work/apache/tomee-tck-ee91/target/lib/tssv-9.1.jar:/Users/dblevins/work/apache/tomee-tck-ee91/target/lib/txw2-2.3.3.jar:/Users/dblevins/work/apache/tomee-tck-ee91/target/lib/websocket-api.jar:/Users/dblevins/work/apache/tomee-tck-ee91/target/lib/whitebox-9.1.jar:/Users/dblevins/work/apache/tomee-tck-ee91/target/lib/xbean-asm-util-4.18.jar:/Users/dblevins/work/apache/tomee-tck-ee91/target/lib/xbean-asm7-shaded-4.14.jar:/Users/dblevins/work/apache/tomee-tck-ee91/target/lib/xbean-asm8-shaded-4.17.jar:/Users/dblevins/work/apache/tomee-tck-ee91/target/lib/xbean-asm9-shaded-4.18.jar:/Users/dblevins/work/apache/tomee-tck-ee91/target/lib/xbean-bundleutils-4.14.jar:/Users/dblevins/work/apache/tomee-tck-ee91/target/lib/xbean-bundleutils-4.18.jar:/Users/dblevins/work/apache/tomee-tck-ee91/target/lib/xbean-finder-shaded-4.14.jar:/Users/dblevins/work/apache/tomee-tck-ee91/target/lib/xbean-finder-shaded-4.18.jar:/Users/dblevins/work/apache/tomee-tck-ee91/target/lib/xbean-naming-4.14.jar:/Users/dblevins/work/apache/tomee-tck-ee91/target/lib/xbean-naming-4.18.jar:/Users/dblevins/work/apache/tomee-tck-ee91/target/lib/xbean-reflect-4.14.jar:/Users/dblevins/work/apache/tomee-tck-ee91/target/lib/xbean-reflect-4.18.jar:/Users/dblevins/work/apache/tomee-tck-ee91/target/apache-tomee-plume-9.0.0-M7-SNAPSHOT/lib/commons-logging-1.2.jar:/Users/dblevins/work/apache/tomee-tck-ee91/target/apache-tomee-plume-9.0.0-M7-SNAPSHOT/lib/eclipselink-3.0.0.jar:/Users/dblevins/work/apache/tomee-tck-ee91/target/apache-tomee-plume-9.0.0-M7-SNAPSHOT/lib/derby-10.14.2.0.jar:/Users/dblevins/work/apache/tomee-tck-ee91/target/apache-tomee-plume-9.0.0-M7-SNAPSHOT/lib/derbyclient-10.14.2.0.jar:/Users/dblevins/work/apache/tomee-tck-ee91/target/apache-tomee-plume-9.0.0-M7-SNAPSHOT/lib/openejb-client-8.0.7-SNAPSHOT.jar:/Users/dblevins/work/tcks/jakartaeetck-9.1.0-2021-03-24.1451/lib/javatest.jar:/Users/dblevins/work/tcks/jakartaeetck-9.1.0-2021-03-24.1451/lib/tsharness.jar:/Users/dblevins/work/tcks/jakartaeetck-9.1.0-2021-03-24.1451/lib/cts.jar:/Users/dblevins/work/tcks/jakartaeetck-9.1.0-2021-03-24.1451/lib/dbprocedures.jar:/Users/dblevins/work/tcks/jakartaeetck-9.1.0-2021-03-24.1451/lib/commons-httpclient-3.1.jar:/Users/dblevins/work/tcks/jakartaeetck-9.1.0-2021-03-24.1451/lib/jdom-1.1.3.jar:/Users/dblevins/work/tcks/jakartaeetck-9.1.0-2021-03-24.1451/lib/jaxb-api.jar:/Users/dblevins/work/tcks/jakartaeetck-9.1.0-2021-03-24.1451/lib/jaxb-impl.jar:/Users/dblevins/work/tcks/jakartaeetck-9.1.0-2021-03-24.1451/lib/jaxb-xjc.jar:/Users/dblevins/work/apache/tomee-tck-ee91/target/apache-tomee-plume-9.0.0-M7-SNAPSHOT/lib/jasper-el.jar:/Users/dblevins/work/apache/tomee-tck-ee91/target/apache-tomee-plume-9.0.0-M7-SNAPSHOT/lib/cxf-rt-rs-client-3.4.3.jar:/Users/dblevins/work/apache/tomee-tck-ee91/target/apache-tomee-plume-9.0.0-M7-SNAPSHOT/lib/cxf-rt-transports-http-3.4.3.jar:/Users/dblevins/work/apache/tomee-tck-ee91/target/apache-tomee-plume-9.0.0-M7-SNAPSHOT/lib/cxf-core-3.4.3.jar:/Users/dblevins/work/apache/tomee-tck-ee91/target/apache-tomee-plume-9.0.0-M7-SNAPSHOT/lib/woodstox-core-6.2.4.jar:/Users/dblevins/work/apache/tomee-tck-ee91/target/apache-tomee-plume-9.0.0-M7-SNAPSHOT/lib/stax2-api-4.2.1.jar:/Users/dblevins/work/apache/tomee-tck-ee91/target/apache-tomee-plume-9.0.0-M7-SNAPSHOT/lib/xmlschema-core-2.2.5.jar:/Users/dblevins/work/apache/tomee-tck-ee91/target/apache-tomee-plume-9.0.0-M7-SNAPSHOT/lib/cxf-rt-frontend-jaxrs-3.4.3.jar:/Users/dblevins/work/apache/tomee-tck-ee91/target/apache-tomee-plume-9.0.0-M7-SNAPSHOT/lib/cxf-rt-rs-sse-3.4.3.jar:/Users/dblevins/work/apache/tomee-tck-ee91/target/apache-tomee-plume-9.0.0-M7-SNAPSHOT/lib/johnzon-core-1.2.10.jar:/Users/dblevins/work/apache/tomee-tck-ee91/target/apache-tomee-plume-9.0.0-M7-SNAPSHOT/lib/johnzon-jaxrs-1.2.10.jar:/Users/dblevins/work/apache/tomee-tck-ee91/target/apache-tomee-plume-9.0.0-M7-SNAPSHOT/lib/johnzon-jsonb-1.2.10.jar:/Users/dblevins/work/apache/tomee-tck-ee91/target/apache-tomee-plume-9.0.0-M7-SNAPSHOT/lib/johnzon-jsonp-strict-1.2.10.jar:/Users/dblevins/work/apache/tomee-tck-ee91/target/apache-tomee-plume-9.0.0-M7-SNAPSHOT/lib/johnzon-mapper-1.2.10.jar:/Users/dblevins/work/apache/tomee-tck-ee91/target/apache-tomee-plume-9.0.0-M7-SNAPSHOT/lib/tomcat-api.jar:/Users/dblevins/work/apache/tomee-tck-ee91/target/apache-tomee-plume-9.0.0-M7-SNAPSHOT/lib/tomcat-coyote.jar:/Users/dblevins/work/apache/tomee-tck-ee91/target/apache-tomee-plume-9.0.0-M7-SNAPSHOT/lib/tomcat-dbcp.jar:/Users/dblevins/work/apache/tomee-tck-ee91/target/apache-tomee-plume-9.0.0-M7-SNAPSHOT/lib/tomcat-i18n-cs.jar:/Users/dblevins/work/apache/tomee-tck-ee91/target/apache-tomee-plume-9.0.0-M7-SNAPSHOT/lib/tomcat-i18n-de.jar:/Users/dblevins/work/apache/tomee-tck-ee91/target/apache-tomee-plume-9.0.0-M7-SNAPSHOT/lib/tomcat-i18n-es.jar:/Users/dblevins/work/apache/tomee-tck-ee91/target/apache-tomee-plume-9.0.0-M7-SNAPSHOT/lib/tomcat-i18n-fr.jar:/Users/dblevins/work/apache/tomee-tck-ee91/target/apache-tomee-plume-9.0.0-M7-SNAPSHOT/lib/tomcat-i18n-ja.jar:/Users/dblevins/work/apache/tomee-tck-ee91/target/apache-tomee-plume-9.0.0-M7-SNAPSHOT/lib/tomcat-i18n-ko.jar:/Users/dblevins/work/apache/tomee-tck-ee91/target/apache-tomee-plume-9.0.0-M7-SNAPSHOT/lib/tomcat-i18n-pt-BR.jar:/Users/dblevins/work/apache/tomee-tck-ee91/target/apache-tomee-plume-9.0.0-M7-SNAPSHOT/lib/tomcat-i18n-ru.jar:/Users/dblevins/work/apache/tomee-tck-ee91/target/apache-tomee-plume-9.0.0-M7-SNAPSHOT/lib/tomcat-i18n-zh-CN.jar:/Users/dblevins/work/apache/tomee-tck-ee91/target/apache-tomee-plume-9.0.0-M7-SNAPSHOT/lib/tomcat-jdbc.jar:/Users/dblevins/work/apache/tomee-tck-ee91/target/apache-tomee-plume-9.0.0-M7-SNAPSHOT/lib/tomcat-jni.jar:/Users/dblevins/work/apache/tomee-tck-ee91/target/apache-tomee-plume-9.0.0-M7-SNAPSHOT/lib/tomcat-util-scan.jar:/Users/dblevins/work/apache/tomee-tck-ee91/target/apache-tomee-plume-9.0.0-M7-SNAPSHOT/lib/tomcat-util.jar:/Users/dblevins/work/apache/tomee-tck-ee91/target/apache-tomee-plume-9.0.0-M7-SNAPSHOT/lib/tomcat-websocket.jar:/Users/dblevins/work/tcks/jakartaeetck-9.1.0-2021-03-24.1451/lib/javatest.jar:/Users/dblevins/work/tcks/jakartaeetck-9.1.0-2021-03-24.1451/lib/jdom-1.1.3.jar:/lib/ant.jar:/Users/dblevins/work/tckfun/glassfish6/glassfish/modules/admin-cli.jar:/Users/dblevins/work/tcks/jakartaeetck-9.1.0-2021-03-24.1451/lib/http.jar:/Users/dblevins/work/tcks/jakartaeetck-9.1.0-2021-03-24.1451/lib/glassfishporting.jar:/Users/dblevins/work/tckfun/glassfish6/glassfish/modules/jakarta.activation-api.jar:/Users/dblevins/work/tcks/jakartaeetck-9.1.0-2021-03-24.1451/classes:/Library/Java/JavaVirtualMachines/jdk1.8.0_151.jdk/Contents/Home/jre/../lib/tools.jar:/Users/dblevins/work/tcks/jakartaeetck-9.1.0-2021-03-24.1451/lib/commons-httpclient-3.1.jar:/Users/dblevins/work/tcks/jakartaeetck-9.1.0-2021-03-24.1451/lib/commons-logging-1.1.3.jar:/Users/dblevins/work/tcks/jakartaeetck-9.1.0-2021-03-24.1451/lib/commons-codec-1.9.jar:/Users/dblevins/work/tcks/jakartaeetck-9.1.0-2021-03-24.1451/lib/cssparser-0.9.25.jar:/Users/dblevins/work/tcks/jakartaeetck-9.1.0-2021-03-24.1451/lib/htmlunit-2.15.jar:/Users/dblevins/work/tcks/jakartaeetck-9.1.0-2021-03-24.1451/lib/htmlunit-core-js-2.15.jar:/Users/dblevins/work/tcks/jakartaeetck-9.1.0-2021-03-24.1451/lib/httpclient-4.5.5.jar:/Users/dblevins/work/tcks/jakartaeetck-9.1.0-2021-03-24.1451/lib/httpmime-4.5.5.jar:/Users/dblevins/work/tcks/jakartaeetck-9.1.0-2021-03-24.1451/lib/httpcore-4.4.9.jar:/Users/dblevins/work/tcks/jakartaeetck-9.1.0-2021-03-24.1451/lib/commons-collections-3.2.1.jar:/Users/dblevins/work/tcks/jakartaeetck-9.1.0-2021-03-24.1451/lib/commons-io-2.4.jar:/Users/dblevins/work/tcks/jakartaeetck-9.1.0-2021-03-24.1451/lib/commons-lang3-3.3.2.jar:/Users/dblevins/work/tcks/jakartaeetck-9.1.0-2021-03-24.1451/lib/jaxen-1.1.6.jar:/Users/dblevins/work/tcks/jakartaeetck-9.1.0-2021-03-24.1451/lib/jaxen-core-1.0.jar:/Users/dblevins/work/tcks/jakartaeetck-9.1.0-2021-03-24.1451/lib/js-1.6R1.jar:/Users/dblevins/work/tcks/jakartaeetck-9.1.0-2021-03-24.1451/lib/nekohtml-1.9.21.jar:/Users/dblevins/work/tcks/jakartaeetck-9.1.0-2021-03-24.1451/lib/sac-1.3.jar:/Users/dblevins/work/tcks/jakartaeetck-9.1.0-2021-03-24.1451/lib/saxpath.jar:/Users/dblevins/work/tcks/jakartaeetck-9.1.0-2021-03-24.1451/lib/xercesImpl-2.11.0.jar:/Users/dblevins/work/tcks/jakartaeetck-9.1.0-2021-03-24.1451/lib/xalan-2.7.2.jar:/Users/dblevins/work/tcks/jakartaeetck-9.1.0-2021-03-24.1451/lib/tssv.jar:/Users/dblevins/work/tcks/jakartaeetck-9.1.0-2021-03-24.1451/lib/xml-apis-1.4.01.jar DISPLAY=:0.0 HOME=/Users/dblevins windir= SYSTEMROOT= PATH=/Users/dblevins/work/tckfun/glassfish6/glassfish/nativelib /Library/Java/JavaVirtualMachines/jdk1.8.0_151.jdk/Contents/Home/jre/bin/java -Dcts.tmp=/Users/dblevins/work/apache/tomee-tck-ee91/./target/harnesstmp/ -Djava.protocol.handler.pkgs=javax.net.ssl -Djavax.net.ssl.keyStore=/Users/dblevins/work/apache/tomee-tck-ee91/./src/test/keystores/clientcert.jks -Djavax.net.ssl.keyStorePassword=changeit -Djavax.net.ssl.trustStore=/Users/dblevins/work/apache/tomee-tck-ee91/./src/test/keystores/ssl-truststore -Djavax.net.ssl.trustStorePassword=changeit -Djava.endorsed.dirs=/Users/dblevins/work/tckfun/glassfish6/glassfish/modules/endorsed:/Users/dblevins/work/tcks/jakartaeetck-9.1.0-2021-03-24.1451/endorsedlib -Dcom.sun.aas.installRoot=/Users/dblevins/work/tckfun/glassfish6/glassfish -Dcatalina.base=target/apache-tomee-plume-9.0.0-M7-SNAPSHOT -Dlog.file.location=/Users/dblevins/work/apache/tomee-tck-ee91/./target/apache-tomee-plume-9.0.0-M7-SNAPSHOT/logs -Dservlet.is.jsr115.compatible=false -Dprovider.configuration.file=/Users/dblevins/work/apache/tomee-tck-ee91/./target/apache-tomee-plume-9.0.0-M7-SNAPSHOT/conf/ProviderConfiguration.xml -Dlogical.hostname.servlet=Catalina/localhost -Dcom.sun.aas.configRoot=/Users/dblevins/work/tckfun/glassfish6/glassfish/config -Ddeliverable.class=com.sun.ts.lib.deliverable.cts.CTSDeliverable -Dopenejb.validation.output.level=3 com.sun.ts.tests.securityapi.securitycontext.callerdata.Client -p /Users/dblevins/work/apache/tomee-tck-ee91/./target/harnesstmp//tmp/tstest.jte -t testSecurityContextHasAccessToWebResource
      ************************************************************
      * props file set to "/var/folders/bd/f9ntqy1m8xj_fs006s6crtjh0000gn/T/dblevins-cts-props.txt"
      ************************************************************
      04-11-2021 20:56:34:  TRACE: #######  Value of harness.socket.retry.count is "10"
      04-11-2021 20:56:34:  TRACE: #######  Value of harness.log.port is "54624"
      04-11-2021 20:56:34:  TRACE: #######  Actual bind value of harness.log.port is "54624"
      04-11-2021 20:56:34:  TRACE: *** in EETest.run(argv,p)
      04-11-2021 20:56:34:  TRACE: TESTCLASS=com.sun.ts.tests.securityapi.securitycontext.callerdata.Client
      04-11-2021 20:56:34:  TRACE: ** IN getRunMethod: testClass=com.sun.ts.tests.securityapi.securitycontext.callerdata.Client
      04-11-2021 20:56:34:  TRACE: ** IN getRunMethod: testname=testSecurityContextHasAccessToWebResource
      04-11-2021 20:56:34:  TRACE: ** GOT RUN METHOD!
      04-11-2021 20:56:34:  TRACE: **runmethod=testSecurityContextHasAccessToWebResource
      04-11-2021 20:56:34:  TRACE: ABOUT TO GET SETUP METHOD!
      04-11-2021 20:56:34:  TRACE: No setupMethod annotation present
      04-11-2021 20:56:34:  TRACE: getSetupMethod - checking for testcase specific setup method:  testSecurityContextHasAccessToWebResource_setup
      04-11-2021 20:56:34:  TRACE: getSetupMethod - checking for default class specific setup method
      04-11-2021 20:56:34:  TRACE: GOT SETUP METHOD!
      04-11-2021 20:56:34:  TRACE: No cleanupMethod annotation present
      04-11-2021 20:56:34:  TRACE: getCleanupMethod - checking for testcase specific cleanup method:  testSecurityContextHasAccessToWebResource_cleanup
      04-11-2021 20:56:34:  TRACE: getCleanupMethod - checking for default class specific cleanup method
      04-11-2021 20:56:34:  TRACE: GOT CLEANUP METHOD!
      04-11-2021 20:56:34:  TRACE: ABOUT TO INVOKE SETUP METHOD!
      04-11-2021 20:56:34:  [BaseUrlClient] Test setup OK
      04-11-2021 20:56:34:  TRACE: INVOKED SETUP METHOD!
      04-11-2021 20:56:34:  TRACE: ABOUT TO INVOKE EETEST RUN METHOD!
      04-11-2021 20:56:34:  [Client]: Sending request with Authroization header...
      04-11-2021 20:56:34:  TRACE: [HttpRequest] Added credentials for 'tom' with password 'secret1' in realm 'null'
      04-11-2021 20:56:34:  TRACE: [HttpRequest] Added credentials for 'tom' with password 'secret1' in realm 'null'
      04-11-2021 20:56:34:  TRACE: [BaseUrlClient] EXECUTING
      04-11-2021 20:56:34:  [HttpRequest] Dispatching request: 'GET /securityapi_securitycontext_callerdata_web/servlet2 HTTP/1.1' to target server at 'localhost:54618'
      04-11-2021 20:56:34:  TRACE: ########## The real value set: false
      04-11-2021 20:56:34:  TRACE: [WIRE] - >> "GET /securityapi_securitycontext_callerdata_web/servlet2 HTTP/1.1[\r][\n]"
      04-11-2021 20:56:34:  TRACE: [WIRE] - >> "Authorization: Basic dG9tOnNlY3JldDE=[\r][\n]"
      04-11-2021 20:56:34:  TRACE: [WIRE] - >> "User-Agent: Jakarta Commons-HttpClient/3.1[\r][\n]"
      04-11-2021 20:56:34:  TRACE: [WIRE] - >> "Host: localhost:54618[\r][\n]"
      04-11-2021 20:56:34:  TRACE: [WIRE] - >> "[\r][\n]"
      04-11-2021 20:56:34:  TRACE: [WIRE] - << "HTTP/1.1 200 [\r][\n]"
      04-11-2021 20:56:34:  TRACE: [WIRE] - << "HTTP/1.1 200 [\r][\n]"
      04-11-2021 20:56:34:  TRACE: [WIRE] - << "Content-Length: 128[\r][\n]"
      04-11-2021 20:56:34:  TRACE: [WIRE] - << "Date: Mon, 12 Apr 2021 03:56:34 GMT[\r][\n]"
      04-11-2021 20:56:34:  TRACE: [WIRE] - << "[\r][\n]"
      04-11-2021 20:56:34:  TRACE: [WIRE] - << "This is a servlet [\n]"
      04-11-2021 20:56:34:  TRACE: [WIRE] - << "context username: tom[\n]"
      04-11-2021 20:56:34:  TRACE: [WIRE] - << "has GET access to /protectedServlet: false[\n]"
      04-11-2021 20:56:34:  TRACE: [WIRE] - << "has POST access to /protectedServlet: false[\n]"
      04-11-2021 20:56:34:  TRACE: [WIRE] - HttpConnectionManager is null.  Connection cannot be released.
      04-11-2021 20:56:34:  TRACE: [WebValidatorBase] Scanning response for search string: 'context username: tom' starting at index location: 0
      04-11-2021 20:56:34:  TRACE: [WebValidatorBase] Found search string: 'context username: tom' at index '19' in the server's response
      04-11-2021 20:56:34:  TRACE: [WebValidatorBase] Scanning response for search string: 'has GET access to /protectedServlet: true' starting at index location: 40
      04-11-2021 20:56:34:  ERROR: [WebValidatorBase] Unable to find the following search string in the server's response: 'has GET access to /protectedServlet: true' at index: 40
      [WebValidatorBase] Server's response:
      -------------------------------------------
      This is a servlet 
      context username: tom
      has GET access to /protectedServlet: false
      has POST access to /protectedServlet: false
      
      -------------------------------------------
      
      04-11-2021 20:56:34:  ERROR: Test case throws exception: [BaseUrlClient] null failed! Check output for cause of failure.
      04-11-2021 20:56:34:  ERROR: Exception at:  
      04-11-2021 20:56:34:  ERROR: com.sun.ts.tests.common.webclient.TestFailureException: Test FAILED!
      	at com.sun.ts.tests.common.webclient.WebTestCase.execute(WebTestCase.java:178)
      	at com.sun.ts.tests.common.webclient.BaseUrlClient.invoke(BaseUrlClient.java:456)
      	at com.sun.ts.tests.securityapi.securitycontext.callerdata.Client.testSecurityContextHasAccessToWebResource(Client.java:144)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at com.sun.ts.lib.harness.EETest.run(EETest.java:596)
      	at com.sun.ts.lib.harness.EETest.getPropsReady(EETest.java:486)
      	at com.sun.ts.lib.harness.EETest.run(EETest.java:337)
      	at com.sun.ts.tests.securityapi.securitycontext.callerdata.Client.run(Client.java:56)
      	at com.sun.ts.tests.securityapi.securitycontext.callerdata.Client.main(Client.java:43)
      
      04-11-2021 20:56:34:  [BaseUrlClient] Test cleanup OK
      STATUS:Failed.Test case throws exception: [BaseUrlClient] null failed! Check output for cause of failure.
      Failed. Test case throws exception: [BaseUrlClient] null failed! Check output for cause of failure.
      ********************************************************************************
      Finished Test:  FAILED........com/sun/ts/tests/securityapi/securitycontext/callerdata/Client.java#testSecurityContextHasAccessToWebResource
      

      For tips on debugging/fixing tests, see https://github.com/apache/tomee-tck/blob/master/DEBUGGING.adoc

      If you have any thoughts about what the test is expecting/testing, please add them to the comments.

        Attachments

          Activity

            People

            • Assignee:
              jlmonteiro Jean-Louis Monteiro
              Reporter:
              dblevins David Blevins

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 20m
                20m

                  Issue deployment