3 Replies Latest reply on Aug 10, 2005 5:11 PM by Bruno Borges

    Build problem JBoss 4.0.2 + security patch

    prakash babu Newbie

      I have a build problem with JBoss 4.0.2. The problem is with the security patch jbas-1875-patch.zip that comes with JBoss 4.0.2. The patch does not contain the changes for the file GetPrincipalInfoAction.java

      In 4.0.2 version this member function is not present and this causes the error on all platforms (LINUX, HPUXiv1, HPUXiv2).

      [javac] Compiling 21 source files to /disk1/release5/jboss/4.0.2/Source/src/connector/output/classes
      /disk1/release5/jboss/4.0.2/Source/src/connector/src/main/org/jboss/resource/security/CallerIdentityLoginModule.java:146: cannot resolve symbol
      symbol : method peekRunAsIdentity ()
      location: class org.jboss.resource.security.GetPrincipalInfoAction
      RunAsIdentity runAs = GetPrincipalInfoAction.peekRunAsIdentity();
      1 error

      This problem does not exist in 4.0.3rc1 since the class GePrincipalInfo has the member function peekRunAsIdentity

      I applied the patch using the following steps

      1. Renamed the JBoss source directory
      #mv jboss-4.0.2-src src
      2. Extracted the patch file jbas-1875-patch.zip
      #jar -xvf jbas-1875-patch.zip
      which overwrites the Jboss source files

      Am I going wrong somewhere or is there anything wrong with the security patch ?