0 Replies Latest reply on Apr 23, 2003 3:06 PM by workl

    JBoss Examples

    workl

      I am trying to run Chapter 8 Example 1 from the JBoss Documentation distr. I am using an unmodified jboss-3.0.7_jakarta-tomcat-4.1.24 installation. The command that I am running: ant -Dchap=8 -Dex=1 run-example
      I think this is a config problem. Any ideas?
      Two questions:
      1.) Where is the logging for this example?
      2.) The example fails on both test cases (One using “hello” the other using “four”) below is a snippet from the client output and JBoss output.
      Client Output
      run-example1:
      [copy] Copying 1 file to C:\jboss\server\default\deploy
      [echo] Waiting for 5 seconds for deploy...
      [java] java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
      [java] java.rmi.ServerException: RuntimeException; nested exception is:
      [java] java.lang.SecurityException: No 4 letter words
      [java] at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:292)
      [java] at sun.rmi.transport.Transport$1.run(Transport.java:148)
      [java] at java.security.AccessController.doPrivileged(Native Method)
      [java] at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
      [java] at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)

      JBoss Output
      12:30:44,109 INFO [Server] JBoss (MX MicroKernel) [3.0.7 (CVSTag=JBoss_3_0_7 Date=200304081816)] Started in 0m:7s:625ms
      12:32:59,140 INFO [MainDeployer] Starting deployment of package: file:/C:/jboss/server/default/deploy/chap8-ex1.jar
      12:32:59,187 INFO [SecurityConfig] Creating
      12:32:59,187 INFO [SecurityConfig] Created
      12:32:59,234 INFO [EjbModule] Creating
      12:32:59,265 INFO [EjbModule] Deploying EchoBean
      12:32:59,281 INFO [JaasSecurityManagerService] Created securityMgr=org.jboss.security.plugins.JaasSecurityManager@6b62d1
      12:32:59,281 INFO [JaasSecurityManagerService] setCachePolicy, c=org.jboss.util.TimedCachePolicy@24c414
      12:32:59,281 INFO [JaasSecurityManagerService] Added chap8-ex1, org.jboss.security.plugins.SecurityDomainContext@1c4ff2c to map
      12:32:59,296 INFO [SecurityProxyInterceptor] Initialized SecurityProxy=org.jboss.chap8.ex1.EchoSecurityProxy@5e7020
      12:32:59,296 INFO [EjbModule] Created
      12:32:59,296 INFO [SecurityConfig] Starting
      12:32:59,296 INFO [SecurityConfig] Using JAAS AuthConfig: jar:file:/C:/jboss/server/default/tmp/deploy/server/default/deploy/chap8-ex1.jar/21.chap
      8-ex1.jar-contents/chap8-ex1.sar!/META-INF/login-config.xml
      12:32:59,296 INFO [XMLLoginConfig] Starting
      12:32:59,296 INFO [XMLLoginConfig] Started
      12:32:59,312 INFO [SecurityConfig] Started
      12:32:59,312 INFO [EjbModule] Starting
      12:32:59,343 INFO [EjbModule] Started
      12:32:59,343 INFO [MainDeployer] Deployed package: file:/C:/jboss/server/default/deploy/chap8-ex1.jar
      12:33:02,640 ERROR [SecurityProxyInterceptor] SecurityProxy.invoke exception, principal=null
      java.lang.SecurityException: No 4 letter words
      at org.jboss.chap8.ex1.EchoSecurityProxy.invoke(EchoSecurityProxy.java:66)
      at org.jboss.ejb.plugins.SecurityProxyInterceptor.invoke(SecurityProxyInterceptor.java:176)
      at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:186)
      at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:77)
      at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:107)