DX Application Performance Management

Expand all | Collapse all

Liberty ApplicationServer not working after (of course wrong) APM 10.3 agent installation

  • 1.  Liberty ApplicationServer not working after (of course wrong) APM 10.3 agent installation

    Posted Mar 29, 2017 01:03 PM

    Hello Community,

    I have installed an agent 10.3 (for WAS) on a linux box to monitor an IBM Liberty application server

    I have modified the jvm.options file as follows

    # Heap Size
    -Xms1024m
    -Xmx2048m
    -javaagent:/prod/CA/wily4liberty/AgentNoRedefNoRetrans.jar
    -Dcom.wily.introscope.agentProfile=/prod/CA/wily4liberty/core/config/IntroscopeAgent.NoRedef.profile
    -Dorg.osgi.framework.bootdelegation=com.wily*
    -Dcom.wily.introscope.agent.agentName=Liberty

     

    Then I copied the WebAppSupport.jar file in the ext directory of the agent but when i run the application server i get:

     

     

    [3/29/17 18:26:09:910 CEST] 00004399 com.ibm.ws.webcontainer E SRVE0232E: Internal Server Error. <br> Exception Message: [java.lang.NoClassDefFoundError: com/wily/introscope/agent/AgentShim]
    [3/29/17 18:27:10:178 CEST] 000043a8 com.ibm.ws.webcontainer.webapp E SRVE0315E: An exception occurred: java.lang.Throwable: java.lang.NoClassDefFoundError: com/wily/introscope/agent/AgentShim

     

    Do you have any idea where can be the error hiding?

     

    Thanks

     

    Luca Razzi

     

     



  • 2.  Re: Liberty ApplicationServer not working after (of course wrong) APM 10.3 agent installation

    Broadcom Employee
    Posted Mar 29, 2017 01:54 PM

    Luca:

       In the past this occurred with IBM Liberty Application Servers that were not supported (WAS 8.5 Liberty Profile Applications). Opening a case will be the best way to quick resolution

     

      Thanks

    Hal German



  • 3.  Re: Liberty ApplicationServer not working after (of course wrong) APM 10.3 agent installation

    Broadcom Employee
    Posted Mar 29, 2017 02:13 PM

    What is the JDK and JIT Compiler versions? Patch level?



  • 4.  Re: Liberty ApplicationServer not working after (of course wrong) APM 10.3 agent installation

    Posted Mar 29, 2017 02:28 PM

    Jdk is 1.8 the other two i will give you tomorrow

     

    Inviato dal mio dispositivo Huawei



  • 5.  Re: Liberty ApplicationServer not working after (of course wrong) APM 10.3 agent installation

    Broadcom Employee
    Posted Mar 29, 2017 02:30 PM

    Also for WebSphere, the WebAppSupport.jar file should remain in the common directory.  Please remove it from the ext directory and create a custom service inside the WebSphere console.  

     

    WebSphere - CA Application Performance Management - 10.3 - CA Technologies Documentation 



  • 6.  Re: Liberty ApplicationServer not working after (of course wrong) APM 10.3 agent installation

    Posted Mar 30, 2017 03:30 AM

    Hello Community.This is not WebSphere.

    Liberty profile has no console and so no custom profile can be added as in WAS.

    Anyway this is what i collected related to the jvm version:

     

    java version "1.8.0"
    Java(TM) SE Runtime Environment (build pxa6480sr4-20170127_01(SR4))
    IBM J9 VM (build 2.8, JRE 1.8.0 Linux amd64-64 Compressed References 20170117_333500 (JIT enabled, AOT enabled)
    J9VM - R28_20170117_0200_B333500
    JIT - tr.r14.java.green_20170115_130932
    GC - R28_20170117_0200_B333500_CMPRSS
    J9CL - 20170117_333500)
    JCL - 20170125_01 based on Oracle jdk8u121-b13

     

    Luca



  • 7.  Re: Liberty ApplicationServer not working after (of course wrong) APM 10.3 agent installation

    Broadcom Employee
    Posted Mar 30, 2017 08:13 AM

    Hi Luca:

    Please try Sergio's suggestion and let us know if that is helpful. If Sergio's suggestion does not help, please open a case as he suggested. Once a resolution is reached, please post the solution to help others that may have this situation.



  • 8.  Re: Liberty ApplicationServer not working after (of course wrong) APM 10.3 agent installation

    Posted Mar 30, 2017 09:01 AM
      |   view attached

    I have already replied with the solution

     

    I wrote : -Dorg.osgi.framework.bootdelegation=com.wily*

    which is wrong

    The correct entry is:

    -Dorg.osgi.framework.bootdelegation=com.wily.*  there is a full stop (.) MISSING

     

    Thank you for the replies

     

     

    Da: musma03

    Inviato: giovedì 30 marzo 2017 14:58

    A: RAZZI LUCA

    Oggetto: Reply marked as helpful on Liberty ApplicationServer not working after (of course wrong) APM 10.3 agent installation

     

    CA Communities <https://communities.ca.com/?et=watches.email.outcome>

     

     

    Liberty ApplicationServer not working after (of course wrong) APM 10.3 agent installation

     

    musma03<https://communities.ca.com/people/musma03?et=watches.email.outcome> marked HALLETT GERMAN<https://communities.ca.com/people/Hallett_German?et=watches.email.outcome>'s reply on Liberty ApplicationServer not working after (of course wrong) APM 10.3 agent installation<https://communities.ca.com/thread/241775117?et=watches.email.outcome> as helpful. View the full reply<https://communities.ca.com/message/241969002?commentID=241969002&et=watches.email.outcome#comment-241969002>



  • 9.  Re: Liberty ApplicationServer not working after (of course wrong) APM 10.3 agent installation
    Best Answer

    Broadcom Employee
    Posted Mar 30, 2017 04:43 AM

    Hi Luca,

    Your settings work in my WLP environment but mine is configured with 1.7 jvm

     

    Suggestions:

    1-check that the issue is not due to some encoding/char issues in the jvm.options file. If possible, try to recreate the file again.

    2.try setting bootdelegation = to:

    a) com.wily,com.wily.*

    b) ibm.*,com.ibm.*,com.wily.*

    c) ibm.* ,com.ibm.* ,com.wily ,com.wily.*,javax.jms.* ,javax.resource.*

    2-for testing purposes, try using a 1.7 jvm, it will hep you confirm that the issue is related to the environment, so compatibility issue

    3-run a quick test using latest 10.5

    4-check if you are using a framework on top such apache felix, Adobe Granite or any other, you might need to modify other config files such as osgi\felix\conf\config.properties and/or add additional jvm ags, such as -Dsling.bootdelegation.was=ibm.* ,com.ibm.* ,com.wily ,com.wily.*,javax.jms.* ,javax.resource.*

     

    If the problem persists, open a case and attach:

    -debug agent logs (if any)

    -appserver logs (console, messages and startup)

    -core or crash report if any

    -verbose classloading log - this is activated by adding the  -verbose:class option/jvm arg

     

    Thanks,

    Sergio



  • 10.  Re: Liberty ApplicationServer not working after (of course wrong) APM 10.3 agent installation

    Posted Mar 30, 2017 08:27 AM

    OK Everyone.

    I solved the case wiriting the jvm.option file correctly.

    I wrote : -Dorg.osgi.framework.bootdelegation=com.wily* 

    which is wrong

    The correct entry is:

    -Dorg.osgi.framework.bootdelegation=com.wily.*  there is a full stop (.) MISSING

     

    Thank you for the replies

     

    Case is solved .

    Liberty is fully supported by the Introscope Agent 10.3 or at least this release:

     

    java version "1.8.0"
    Java(TM) SE Runtime Environment (build pxa6480sr4-20170127_01(SR4))
    IBM J9 VM (build 2.8, JRE 1.8.0 Linux amd64-64 Compressed References 20170117_333500 (JIT enabled, AOT enabled)
    J9VM - R28_20170117_0200_B333500
    JIT - tr.r14.java.green_20170115_130932
    GC - R28_20170117_0200_B333500_CMPRSS
    J9CL - 20170117_333500)
    JCL - 20170125_01 based on Oracle jdk8u121-b13

     

     

    Thank you all

     

    Luca Razzi