java.lang.NoClassDefFoundError on Glassfish 3.1
  • Hi.
    After enabling the agent for Glassfish 3.1 and launching the application I recieve the following exception:
    java.lang.NoClassDefFoundError: com/singularity/ee/agent/appagent/entrypoint/bciengine/MethodExecutionEnvironment

    the structure of /opt/AppDynamics/AppServerAgentLite:
    conf
    lib (appagent.jar, singularity-log4j.jar)
    logs
    javaagent.jar

    My javaagent setting:
    -javaagent:/opt/AppDynamics/AppServerAgentLite/javaagent.jar


    Thanks, Anton
  • Hello Anton,

    does your lib folder has also 2 jars ? By any chance have you done any manual changes in directory structure ?

    Regards,
    Arpit Patel
  • Hi.

    Here is some directory structure with sizes:

    user@Ubuntu-1104-natty-64-minimal:/opt/AppDynamics/AppServerAgentLite$ ls -la
    total 44
    drwxr-xr-x 5 user user 4096 2011-08-05 18:22 .
    drwxr-xr-x 4 user root 4096 2011-08-05 18:22 ..
    drwxr-xr-x 3 user user 4096 2011-03-24 17:09 conf
    -rw-r--r-- 1 user user 16790 2011-03-24 17:10 javaagent.jar
    drwxr-xr-x 3 user user 4096 2011-03-24 17:10 lib
    drwxr-xr-x 3 user user 4096 2011-08-05 18:31 logs
    -rw-r--r-- 1 user user 1662 2011-03-24 17:10 readme.txt


    user@Ubuntu-1104-natty-64-minimal:/opt/AppDynamics/AppServerAgentLite$ ls -la lib/
    total 3044
    drwxr-xr-x 3 user user 4096 2011-03-24 17:10 .
    drwxr-xr-x 5 user user 4096 2011-08-05 18:22 ..
    -rw-r--r-- 1 user user 2742191 2011-03-24 17:10 appagent.jar
    -rw-r--r-- 1 user user 352245 2011-03-24 17:10 singularity-log4j.jar
    drwxr-xr-x 2 user user 4096 2011-03-24 17:10 tp

    The process is launched by user "user", so there can be no permissions issues

    I can send server.log (from GF) and agent.log. Agent has no errors, but GF fails to work ok.

  • can you please send the logs to apatel@appdynamics.com . I will need zipped version of all the logs.

    Please send it to apatel@appdynamics.com

    Regards,
    Arpit Patel
  • Thanks for the logs and further information . You can run with -Dappdynamics.evaluate.
    runtime.bci.rules=false argument .

    This should solve the issue.

    Regards,
    Arpit Patel
  • I added the following parameters:

    < jvm-options>-Dappdynamics.evaluate.runtime.bci.rules=false< /jvm-options>
    < jvm-options>-javaagent:/opt/AppDynamics/AppServerAgentLite/javaagent.jar< /jvm-options>


    this didn't help
  • Hello ,

    The flag that I gave u should stop bci fixer. Can you please send me the logs again so that I can confirm the behaviour.

    Please send me the logs at apatel@appdynamics.com .
  • HI Arpit Patel

    I am also facing the same issue and waiting for the solution. can you please share the solution of the same..
  • Hello Dhrunil,

    Can you please send me the zipped version of agent logs ? agent logs can be found at /logs

    Regards,
    Arpit Patel
  • I'm having the very same problem, even though I added the suggested java parameter.

    Regards,
    Alexander.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!