1 2 3 4 Previous Next 49 Replies Latest reply: Dec 2, 2008 6:27 AM by Anil Saldhana Go to original post RSS
  • 30. Re: Missing org.jnp.server.NamingServer_Stub
    Anil Saldhana Master

    We are past that error now. But I am seeing the following error.

    java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
     java.lang.ClassNotFoundException: No ClassLoaders found for: org.jboss.security.plugins.JBossSecurityContext (no security manager: RMI class loader disabled)
     at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:285)
     at sun.rmi.transport.Transport$1.run(Transport.java:153)
     at java.security.AccessController.doPrivileged(Native Method)
     at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
     at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:466)
     at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:707)
     at java.lang.Thread.run(Thread.java:595)
    Caused by: java.lang.ClassNotFoundException: No ClassLoaders found for: org.jboss.security.plugins.JBossSecurityContext (no security manager: RMI class loader disabled)
     at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:371)
     at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:165)
     at java.rmi.server.RMIClassLoader$2.loadClass(RMIClassLoader.java:620)
     at org.jboss.system.JBossRMIClassLoader.loadClass(JBossRMIClassLoader.java:91)
     at java.rmi.server.RMIClassLoader.loadClass(RMIClassLoader.java:247)
     at sun.rmi.server.MarshalInputStream.resolveClass(MarshalInputStream.java:197)
     at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1544)
     at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1466)
     at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1699)
     at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
     at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
     at org.jboss.invocation.MarshalledInvocation.readExternal(MarshalledInvocation.java:665)
     at java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1755)
     at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1717)
     at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
     at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
     at sun.rmi.server.UnicastRef.unmarshalValue(UnicastRef.java:290)
     at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:279)
     ... 6 more
    


    I am not sure how to solve this as JBossSecurityContext is both part of jbosssx.jar and jbosssx-client.jar.

    What are the 4.2.x test cases using?

  • 31. Re: Missing org.jnp.server.NamingServer_Stub
    Dimitris Andreadis Master

     

    "anil.saldhana@jboss.com" wrote:
    We are past that error now. But I am seeing the following error.

    Caused by: java.lang.ClassNotFoundException: No ClassLoaders found for: org.jboss.security.plugins.JBossSecurityContext (no security manager: RMI class loader disabled)
    


    I am not sure how to solve this as JBossSecurityContext is both part of jbosssx.jar and jbosssx-client.jar.

    What are the 4.2.x test cases using?


    I think the whole client/*.jars are put on the classpath on the client side.

  • 32. Re: Missing org.jnp.server.NamingServer_Stub
    Anil Saldhana Master

     

    anil@localhost:~/jboss-5.0/jboss-head/build/output/jboss-5.0.0.GA/client$ jar tvf jbosssx-client.jar
    
    
     0 Tue Nov 25 22:16:50 CST 2008 META-INF/
     438 Tue Nov 25 22:16:48 CST 2008 META-INF/MANIFEST.MF
     0 Tue Nov 25 22:16:50 CST 2008 org/
     0 Tue Nov 25 22:16:50 CST 2008 org/jboss/ ...
     1167 Tue Nov 25 22:15:28 CST 2008 org/jboss/security/Util$RuntimeActions$1.class
     8097 Tue Nov 25 22:15:32 CST 2008 org/jboss/security/plugins/JBossSecurityContext.class
     3702 Tue Nov 25 22:15:30 CST 2008 org/jboss/security/plugins/PBEUtils.class
     5409 Tue Nov 25 22:15:30 CST 2008 org/jboss/security/plugins/JBossSecurityContextUtil.class
     1934 Tue Nov 25 22:15:28 CST 2008 org/jboss/security/plugins/DefaultSecurityManagement.class
     230 Tue Nov 25 22:15:28 CST 2008 org/jboss/security/CertificatePrincipal.class
    


    It is there in the jbosssx-client.jar in the client dir. Adrian/Scott?

  • 33. Re: Missing org.jnp.server.NamingServer_Stub
    Scott Stark Master

    How are tests tests run?

  • 34. Re: Missing org.jnp.server.NamingServer_Stub
    Dimitris Andreadis Master

    You need to have a base directory under which the client libraries of the various jboss x.y.z are stored, e.g.

    jboss-versions
    4_2_0_GA
    4_2_x
    5_0_x

    The from the branch_4_2/testsuite directory try:

    build tests-matrix -Dnojars=true -Dmatrix-versions=x:\jboss-versions -Djdk14=X:\tools\j2sdk1.4.2_09 -Djdk15=c:\home\tools\jdk1.5.0_09

    I usually comment out in the testsuite/build.xml all the combinations that do not interest me. In this case you can leave only the 5_0_x tests to run.

  • 35. Re: Missing org.jnp.server.NamingServer_Stub
    Scott Stark Master

    The exception is happening on the server where the class is not available. The JBossSecurityContext is being passed to the server when it should not be.

  • 36. Re: Missing org.jnp.server.NamingServer_Stub
    Anil Saldhana Master

     

    "scott.stark@jboss.org" wrote:
    The exception is happening on the server where the class is not available. The JBossSecurityContext is being passed to the server when it should not be.


    We send the SecurityContext over the invocation in AS5. Now how is AS4 getting involved? How can we send the SC to AS4? I will try to run the tests myself to see what is happening. Thanks Scott for the headsup. :)

  • 37. Re: Missing org.jnp.server.NamingServer_Stub
    Scott Stark Master

    It can't be sent to AS4. Only the old principal and credentials can be sent. The tests are run using the AS5 client jars talking to an AS4 server.

  • 38. Re: Missing org.jnp.server.NamingServer_Stub
    Anil Saldhana Master

     

    "scott.stark@jboss.org" wrote:
    It can't be sent to AS4. Only the old principal and credentials can be sent. The tests are run using the AS5 client jars talking to an AS4 server.


    I do not understand this compatibility here. Why use AS5 client jars to talk to AS4 server? It should be AS5 client jars used to talk to AS5 server.

  • 39. Re: Missing org.jnp.server.NamingServer_Stub
    Anil Saldhana Master

     

    "scott.stark@jboss.org" wrote:
    It can't be sent to AS4. Only the old principal and credentials can be sent. The tests are run using the AS5 client jars talking to an AS4 server.


    If this is a valid requirement (AS5 client jars talking to AS4 servers), then can we add a system property indicating non-AS5 server such that we do not send the SC in the invocation?

  • 40. Re: Missing org.jnp.server.NamingServer_Stub
    Scott Stark Master

    The test is to validate legacy deployment can still be accessed from AS5 deployments. It should not be a system property that precludes AS5 to AS5 communication from passing the extended information. You have to expect that both legacy and current communication will happen within the server.

  • 41. Re: Missing org.jnp.server.NamingServer_Stub
    Anil Saldhana Master

    Historically, how has this issue of extended information on the invocation been solved in terms of compatibility? Or is this the first usecase?

    Should we be introducing a new proxy interceptor for the extended information?

  • 42. Re: Missing org.jnp.server.NamingServer_Stub
    Anil Saldhana Master

    Scott, I have tested that an introduction of new interceptor to follow the "proxy.SecurityInterceptor" in the proxy, allows the compatibility test to go fine.

    What do you think? Is this the right approach? If you agree, I will make the necessary changes on Monday.

    anil@localhost:~/jboss-4.2/Branch_4_2/testsuite$ ant tests-matrix -Dnojars=true -Dmatrix-versions=/home/anil/jboss-4.2/client/ -Djdk14=/opt/java/j2sdk1.4.2_18 -Djdk15=/opt/java/jdk1.5.0_15
    Buildfile: build.xml
    
    maybejars:
    
    tests-matrix:
     [echo] creating legacy-invokers config
     [echo] Overwriting config descriptors
     [copy] Copying 1 file to /home/anil/jboss-4.2/Branch_4_2/build/output/jboss-4.2.4.GA/server/legacy-invokers
     [echo] Will start the jboss instance localhost with default, dist=/home/anil/jboss-4.2/Branch_4_2/build/output/jboss-4.2.4.GA
     [echo] Waiting for localhost to start...
    
    tests-standard-unit-matrix-version-pooled:
    
    execute-matrix-unit-target:
     [echo] >>>>>> Executing test=pooled-invoker filter=org/jboss/test/pooled/test/**/BeanStressTestCase.class
     [junit] Running org.jboss.test.compatibility.test.matrix.MatrixTestContainer
     [junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 3.975 sec
     [echo] Will stop the jboss instance at url jnp://localhost:1099
     [java] The jvmargs attribute is deprecated. Please use nested jvmarg elements.
     [java] Shutdown message has been posted to the server.
     [java] Server shutdown may take a while - check logfiles for completion
     [echo] Waiting for 'default' server to stop...
    
    BUILD SUCCESSFUL
    Total time: 35 seconds
    


    UPDATE: The new interceptor will be org.jboss.proxy.ejb.SecurityContextInterceptor as the extended information (SecurityContext) on the invocation is meant to be used by the ejb security interceptors on the server side.

  • 43. Re: Missing org.jnp.server.NamingServer_Stub
    Anil Saldhana Master

    Dimitris,

    anil@localhost:~/jboss-4.2/Branch_4_2/testsuite$ ant tests-matrix -Dnojars=true -Dmatrix-versions=/home/anil/jboss-4.2/client/ -Djdk14=/opt/java/j2sdk1.4.2_18 -Djdk15=/opt/java/jdk1.5.0_15
    Buildfile: build.xml
    
    maybejars:
    
    tests-matrix:
     [echo] creating legacy-invokers config
     [copy] Copying 328 files to /home/anil/jboss-4.2/Branch_4_2/build/output/jboss-4.2.4.GA/server/legacy-invokers
     [echo] Overwriting config descriptors
     [copy] Copying 1 file to /home/anil/jboss-4.2/Branch_4_2/build/output/jboss-4.2.4.GA/server/legacy-invokers
     [echo] Will start the jboss instance localhost with default, dist=/home/anil/jboss-4.2/Branch_4_2/build/output/jboss-4.2.4.GA
     [echo] Waiting for localhost to start...
    
    tests-standard-unit-matrix-version50x:
    
    execute-matrix-unit-target:
     [echo] >>>>>> Executing test=testbyvalue filter=org/jboss/test/testbyvalue/test/**/*TestCase.class
     [junit] Running org.jboss.test.compatibility.test.matrix.MatrixTestContainer
     [junit] Tests run: 4, Failures: 0, Errors: 0, Time elapsed: 12.481 sec
    
    execute-matrix-unit-target:
     [echo] >>>>>> Executing test=bmp filter=org/jboss/test/bmp/**/*TestCase.class
     [junit] Running org.jboss.test.compatibility.test.matrix.MatrixTestContainer
     [junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 12.779 sec
    
    execute-matrix-unit-target:
     [echo] >>>>>> Executing test=cmp2 filter=org/jboss/test/cmp2/**/*TestCase.class
     [junit] Running org.jboss.test.compatibility.test.matrix.MatrixTestContainer
     [junit] Tests run: 253, Failures: 0, Errors: 0, Time elapsed: 79.466 sec
     [echo] Will stop the jboss instance at url jnp://localhost:1099
     [java] The jvmargs attribute is deprecated. Please use nested jvmarg elements.
     [java] Shutdown message has been posted to the server.
     [java] Server shutdown may take a while - check logfiles for completion
     [echo] Waiting for 'default' server to stop...
     [echo] Will start the jboss instance localhost with default, dist=/home/anil/jboss-4.2/Branch_4_2/build/output/jboss-4.2.4.GA
     [echo] Waiting for localhost to start...
    
    tests-standard-unit-matrix-version-pooled:
    
    execute-matrix-unit-target:
     [echo] >>>>>> Executing test=pooled-invoker filter=org/jboss/test/pooled/test/**/BeanStressTestCase.class
     [junit] Running org.jboss.test.compatibility.test.matrix.MatrixTestContainer
     [junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 3.866 sec
     [echo] Will stop the jboss instance at url jnp://localhost:1099
     [java] The jvmargs attribute is deprecated. Please use nested jvmarg elements.
     [java] Shutdown message has been posted to the server.
     [java] Server shutdown may take a while - check logfiles for completion
     [echo] Waiting for 'default' server to stop...
    
    BUILD SUCCESSFUL
    Total time: 2 minutes 54 seconds
    anil@localhost:~/jboss-4.2/Branch_4_2/testsuite$
    


  • 44. Re: Missing org.jnp.server.NamingServer_Stub
    Scott Stark Master

     

    "anil.saldhana@jboss.com" wrote:
    Historically, how has this issue of extended information on the invocation been solved in terms of compatibility? Or is this the first usecase?

    Should we be introducing a new proxy interceptor for the extended information?

    We have no history of change as its been the same over the previous versions. Introducing a separate interceptor so that we can choose the legacy information or the extended information is the right approach.