1 Reply Latest reply on Dec 7, 2001 8:17 PM by luke_t

    Errors when running JAAS howto

    mfcollins3

      I am trying to run the examples for the JAAS howto. I am using JBoss 2.4.3 with Tomcat 3.2.3.

      I downloaded the example files and followed the instructions for compiling and deploying the files. When I run any of the examples, I am getting a configuration exception. The output from ant is below.

      Can anyone help me figure out what is going on here? I deployed the examples on a clean server that I built from the download. The only configuration change that I made was to the JAAS MBean in jboss.jcml to add the SecurityProxyFactoryClassName attribute to the security manager service.

      Thanks.

      ----------

      Buildfile: build.xml

      example1-test0:

      validate:

      fail_if_not_valid:

      init:
      [echo] Using jboss.dist=e:\java\JBoss-2.4.3_Tomcat-3.2.3/jboss
      [echo] Using classpath=E:\java\JBoss-2.4.3_Tomcat-3.2.3\jboss\client\jboss-j2ee.jar;E:\java\JBoss-2.4.3_Tomcat-3.2.3\jboss\client\jaas.jar;E:\java\JBoss-2.4.3_Tomcat-3.2.3\jboss\client\jbosssx-client.jar;E:\java\JBoss-2.4.3_Tomcat-3.2.3\jboss\client\jboss-client.jar;E:\java\JBoss-2.4.3_Tomcat-3.2.3\jboss\client\jnp-client.jar;E:\java\JBoss-2.4.3_Tomcat-3.2.3\tomcat\lib\servlet.jar;E:\jaas\build\classes

      compile:

      client-test0:
      [java] +++ Running SessionClient with username=scott, password=echoman, example=example1
      [java] Created LoginContext
      [java] Found StatelessSessionHome
      [java] java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
      [java] java.rmi.ServerException: Container exception. Notify the container developers :-); nested exception is:
      [java] java.lang.SecurityException: Configuration Error:
      [java] Line 133: expected 'option key', found 'null'
      [java] java.rmi.ServerException: Container exception. Notify the container developers :-); nested exception is:
      [java] java.lang.SecurityException: Configuration Error:
      [java] Line 133: expected 'option key', found 'null'
      [java] java.lang.SecurityException: Configuration Error:
      [java] Line 133: expected 'option key', found 'null'
      [java] at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:245)
      [java] at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:220)
      [java] at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:122)
      [java] at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker_Stub.invokeHome(Unknown Source)
      [java] at org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invokeHome(HomeProxy.java:258)
      [java] at org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invoke(HomeProxy.java:182)
      [java] at $Proxy0.create(Unknown Source)
      [java] at SessionClient.main(SessionClient.java:77)
      [java] Found StatefulSessionHome
      [java] java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
      [java] javax.transaction.TransactionRolledbackException: Configuration Error:
      [java] Line 152: expected 'option key', found 'null'; nested exception is:
      [java] java.lang.SecurityException: Configuration Error:
      [java] Line 152: expected 'option key', found 'null'
      [java] javax.transaction.TransactionRolledbackException: Configuration Error:
      [java] Line 152: expected 'option key', found 'null'; nested exception is:
      [java] java.lang.SecurityException: Configuration Error:
      [java] Line 152: expected 'option key', found 'null'
      [java] java.lang.SecurityException: Configuration Error:
      [java] Line 152: expected 'option key', found 'null'
      [java] at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:245)
      [java] at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:220)
      [java] at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:122)
      [java] at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker_Stub.invokeHome(Unknown Source)
      [java] at org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invokeHome(HomeProxy.java:258)
      [java] at org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invoke(HomeProxy.java:182)
      [java] at $Proxy0.create(Unknown Source)
      [java] at SessionClient.main(SessionClient.java:92)

      BUILD SUCCESSFUL

      Total time: 5 seconds