Details

    • Type: Sub-task Sub-task
    • Status: Closed Closed (View Workflow)
    • Priority: Major Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: JBossAS-5.0.0.Beta3
    • Component/s: None
    • Security Level: Public (Everyone can see)
    • Labels:
      None
    • Similar Issues:
      Show 10 results 

      Description

      [tdiesler@tddell jbossws-native-2.0.2]$ ant -Dtest=jaxrpc/samples/jsr109ejb test

      Caused by: java.lang.IllegalStateException: No valid security context for the caller identity
      at org.jboss.ejb.EnterpriseContext$EJBContextImpl.getCallerPrincipalInternal(EnterpriseContext.java:398)
      at org.jboss.ejb.EnterpriseContext$EJBContextImpl.getCallerPrincipal(EnterpriseContext.java:359)
      at org.jboss.ejb.StatelessSessionEnterpriseContext$SessionContextImpl.getCallerPrincipal(StatelessSessionEnterpriseContext.java:228)
      at org.jboss.test.ws.jaxrpc.samples.jsr109ejb.JaxRpcEJBEndpoint.echoString(JaxRpcEJBEndpoint.java:48)

        Activity

        Hide
        Thomas Diesler
        added a comment -

        Tests may be excluded from the compile target by the exclude file

        https://svn.jboss.org/repos/jbossws/stack/native/branches/jbossws-native-2.0.2/src/test/resources/test-excludes-jboss500.txt

        This allows us to detect regression and have a unified testsuite across all supported containers
        You will need to comment the exclude before you run tests-main

        Show
        Thomas Diesler
        added a comment - Tests may be excluded from the compile target by the exclude file https://svn.jboss.org/repos/jbossws/stack/native/branches/jbossws-native-2.0.2/src/test/resources/test-excludes-jboss500.txt This allows us to detect regression and have a unified testsuite across all supported containers You will need to comment the exclude before you run tests-main
        Hide
        Anil Saldhana
        added a comment -

        The issue is that the unauthenticatedPrincipal from the ApplicationMetaData is null.

        ====================================
        org.jboss.ejb.EnterpriseContext$EJBContextImpl.getCallerPrincipalInternal

        // Check for an unauthenticated principal value
        else

        { ApplicationMetaData appMetaData = con.getBeanMetaData().getApplicationMetaData(); String name = appMetaData.getUnauthenticatedPrincipal(); if (name != null) caller = new SimplePrincipal(name); }

        ===================================

        Show
        Anil Saldhana
        added a comment - The issue is that the unauthenticatedPrincipal from the ApplicationMetaData is null. ==================================== org.jboss.ejb.EnterpriseContext$EJBContextImpl.getCallerPrincipalInternal // Check for an unauthenticated principal value else { ApplicationMetaData appMetaData = con.getBeanMetaData().getApplicationMetaData(); String name = appMetaData.getUnauthenticatedPrincipal(); if (name != null) caller = new SimplePrincipal(name); } ===================================
        Hide
        Scott Stark
        added a comment -

        The setting has been moved to the standardjboss.xml

        [starksm@valkyrie jbossws-native-2.0.2]$ ant -Dtest=jaxrpc/samples/jsr109ejb test one-test
        ...

        tests-run-internal:
        [junit] Running org.jboss.test.ws.jaxrpc.samples.jsr109ejb.DocEJBTestCase
        [junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 28.953 sec
        [junit] Running org.jboss.test.ws.jaxrpc.samples.jsr109ejb.RpcDIIConfiguredC
        allTestCase
        [junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 4.062 sec
        [junit] Running org.jboss.test.ws.jaxrpc.samples.jsr109ejb.RpcDIIUnconfigure
        dCallTestCase
        [junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 3.61 sec
        [junit] Running org.jboss.test.ws.jaxrpc.samples.jsr109ejb.RpcEJBTestCase
        [junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 4.188 sec
        [junit] Running org.jboss.test.ws.jaxrpc.samples.jsr109ejb.RpcProxyTestCase
        [junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 3.234 sec

        Show
        Scott Stark
        added a comment - The setting has been moved to the standardjboss.xml [starksm@valkyrie jbossws-native-2.0.2] $ ant -Dtest=jaxrpc/samples/jsr109ejb test one-test ... tests-run-internal: [junit] Running org.jboss.test.ws.jaxrpc.samples.jsr109ejb.DocEJBTestCase [junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 28.953 sec [junit] Running org.jboss.test.ws.jaxrpc.samples.jsr109ejb.RpcDIIConfiguredC allTestCase [junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 4.062 sec [junit] Running org.jboss.test.ws.jaxrpc.samples.jsr109ejb.RpcDIIUnconfigure dCallTestCase [junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 3.61 sec [junit] Running org.jboss.test.ws.jaxrpc.samples.jsr109ejb.RpcEJBTestCase [junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 4.188 sec [junit] Running org.jboss.test.ws.jaxrpc.samples.jsr109ejb.RpcProxyTestCase [junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 3.234 sec

          People

          • Assignee:
            Anil Saldhana
            Reporter:
            Thomas Diesler
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: