Layer 7 Access Management

Tech Tip : CA Single Sign-On : JBoss reports on application compilation error "The import de cannot be resolved"

  • 1.  Tech Tip : CA Single Sign-On : JBoss reports on application compilation error "The import de cannot be resolved"

    Posted 04-06-2018 10:08 AM

    Issue:


    We run a simple application protected with Agent for JBoss, and JBoss is unable to compile the application. Our Agent for JBoss is configured as a Global Module.

    - WithGlobalModules.log :

    JBWEB004061: An error occurred at line: 6 in the generated java file:

    /opt/jboss/jboss-eap-6.4/myapp/tmp/work/jboss.web/default-host/
    myapp/org/apache/jsp/hello_jsp.java

    The import de cannot be resolved

    JBWEB004060: An error occurred at line: 8 in the jsp file: /hello.jsp

    Logger cannot be resolved

    5: <%!
    6: public void log(String aStringValue)
    7: {
    8: Logger.getLogger().debug(aStringValue);
    9: }//eof log
    10: %>
    11: <html>

    How can we solve this?

     

    Environment:

     

    Agent for JBoss on JBoss 6.4.7 on RedHat 6.6 64bit
    jboss-12.52-sp01-cr06-linux.zip
    Java version 1.8.0_92 with JCE patch

    Cause:

     

    To generate the Agent for JBoss code, we use obfuscation. This might provoke conflict with package name and path from other applications. This problem will be solved in R12.52 SP1 CR09 which is expected
    to be released in Q2 2018

    Resolution:

     

    Upgrade to Agent for JBoss 12.52SP1CR09 when available to solve this problem.

    CA Single Sign-On fix strategy:
    https://support.ca.com/phpdocs/7/5262/5262_fixstrategy.pdf

    If you need to fix this while the CR09 has not been released yet, you can open a Support case to request a dev fix.

     

    KB : kb000075011