failed to start admin page on glassfish 3.1.1
  • Hi,

    I tried to install AppServerAgentLite-3.3.3.2GA with glassfish 3.1.1 but got "java.lang.NoClassDefFoundError:com/singularity/ee/agent/appagent/entrypoint/bciengine/FastMethodInterceptorDelegator" error.

    I followed every steps in the installation guide, and everything looks fine.
    But got an error when opening admin page or any other page.
    I found several posts about it but does not give any solution.

    Does anybody solve it?


    Here is glassfish Error
    [#|SEVERE|glassfish3.1.1|org.apache.catalina.connector.CoyoteAdapter|_ThreadID=23;_ThreadName=Thread-5;|PWC3989: An exception or error occurred in the container during the request processing
    java.lang.NoClassDefFoundError: com/singularity/ee/agent/appagent/entrypoint/bciengine/FastMethodInterceptorDelegator
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java)
    at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1539)
    at org.apache.catalina.core.ApplicationDispatcher.doInvoke(ApplicationDispatcher.java:787)
    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:649)
    at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:483)
    ...

    I'm pretty sure that AppServerAgentLite's javaagent.jar was loaded.

    com.sun.enterprise.admin.launcher.GFLauncherLogger info
    Info: JVM invocation command line:
    C:\jdk1.6.0_30\bin\java.exe
    -cp
    C:/glassfish3/glassfish/modules/glassfish.jar
    -XX:+UnlockDiagnosticVMOptions
    -XX:MaxPermSize=192m
    -XX:NewRatio=2
    -Xmx512m
    -client
    -javaagent:c:/AppServerAgentLite-3.3.3.2GA/javaagent.jar
    -javaagent:C:/glassfish3/glassfish/lib/monitor/flashlight-agent.jar
    ....
    -Dcom.sun.enterprise.config.config_environment_factory_class=com.sun.enterprise.config.serverbeans.AppserverConfigEnvironmentFactory
    -Dosgi.shell.telnet.ip=127.0.0.1
    -Dcom.sun.aas.instanceRoot=C:\glassfish3\glassfish\domains\domain1
    -Dcom.sun.aas.installRoot=C:\glassfish3\glassfish
    -Djava.ext.dirs=C:\jdk1.6.0_30/lib/ext;C:\jdk1.6.0_30/jre/lib/ext;C:\glassfish3\glassfish\domains\domain1/lib/ext
    -Dfelix.fileinstall.bundles.new.start=true
    -Dorg.glassfish.additionalOSGiBundlesToStart=org.apache.felix.shell,org.apache.felix.gogo.runtime,org.apache.felix.gogo.shell,org.apache.felix.gogo.command,org.apache.felix.fileinstall



    Here is AppServerAgentLite log:
    [main] 05 1월 2012 16:32:03,113 INFO JavaAgent - Agent Directory [C:\AppServerAgentLite-3.3.3.2GA]
    [main] 05 1월 2012 16:32:03,113 INFO JavaAgent - Using Agent Version [Server Agent Lite v3.3.3.2 GA Build Date 2011-12-20 16:51]
    [main] 05 1월 2012 16:32:03,120 INFO AgentKernel - Starting Agent at Thu Jan 05 16:32:03 KST 2012 ...
    [main] 05 1월 2012 16:32:03,121 INFO AgentKernel - JVM Runtime:
    java.home=C:\jdk1.6.0_30\jre
    java.vm.vendor=Sun Microsystems Inc.
    java.vm.name=Java HotSpot(TM) 64-Bit Server VM
    java.runtime.version=1.6.0_30-b12
    [main] 05 1월 2012 16:32:03,121 INFO AgentKernel - OS Runtime:
    os.name=Windows 7
    os.arch=amd64
    os.version=6.1
    [main] 05 1월 2012 16:32:03,123 INFO AgentKernel - JVM Args : -XX:+UnlockDiagnosticVMOptions | -XX:MaxPermSize=192m | -XX:NewRatio=2 | -Xmx512m | -javaagent:c:/AppServerAgentLite-3.3.3.2GA/javaagent.jar | -javaagent:C:/glassfish3/glassfish/lib/monitor/flashlight-agent.jar | -Dfelix.fileinstall.disableConfigSave=false | -Djavax.net.ssl.keyStore=C:\glassfish3\glassfish\domains\domain1/config/keystore.jks | -Djava.awt.headless=true | -Dfelix.fileinstall.poll=5000 | -Djava.endorsed.dirs=C:\glassfish3\glassfish/modules/endorsed;C:\glassfish3\glassfish/lib/endorsed | -Dfelix.fileinstall.bundles.startTransient=true | -Djavax.net.ssl.trustStore=C:\glassfish3\glassfish\domains\domain1/config/cacerts.jks | -Dcom.sun.enterprise.security.httpsOutboundKeyAlias=s1as | -Djava.security.auth.login.config=C:\glassfish3\glassfish\domains\domain1/config/login.conf | -DANTLR_USE_DIRECT_CLASS_LOADING=true | -Dgosh.args=--nointeractive | -Dosgi.shell.telnet.maxconn=1 | -Djdbc.drivers=org.apache.derby.jdbc.ClientDriver | -Dfelix.fileinstall.dir=C:\glassfish3\glassfish/modules/autostart/ | -Dosgi.shell.telnet.port=6666 | -Djava.security.policy=C:\glassfish3\glassfish\domains\domain1/config/server.policy | -Dfelix.fileinstall.log.level=2 | -Dcom.sun.enterprise.config.config_environment_factory_class=com.sun.enterprise.config.serverbeans.AppserverConfigEnvironmentFactory | -Dosgi.shell.telnet.ip=127.0.0.1 | -Dcom.sun.aas.instanceRoot=C:\glassfish3\glassfish\domains\domain1 | -Dcom.sun.aas.installRoot=C:\glassfish3\glassfish | -Djava.ext.dirs=C:\jdk1.6.0_30/lib/ext;C:\jdk1.6.0_30/jre/lib/ext;C:\glassfish3\glassfish\domains\domain1/lib/ext | -Dfelix.fileinstall.bundles.new.start=true | -Dorg.glassfish.additionalOSGiBundlesToStart=org.apache.felix.shell,org.apache.felix.gogo.runtime,org.apache.felix.gogo.shell,org.apache.felix.gogo.command,org.apache.felix.fileinstall | -Djava.library.path=C:/glassfish3/glassfish/lib;C:/Windows/System32;C:/Windows/Sun/Java/bin;C:/Windows;C:/Program | Files | (x86)/NVIDIA | Corporation/PhysX/Common;C:/Windows/System32/wbem;C:/Windows/System32/WindowsPowerShell/v1.0;C:/jdk1.6.0_30/bin;C:/Program | Files/TortoiseSVN/bin;C:/Program | Files/MySQL/MySQL | Server | 5.5/bin;C:/Program | (x86)/ESTsoft/ALSee/x64;C:/glassfish3/bin |
    [main] 05 1월 2012 16:32:03,124 INFO AgentKernel - Running obfuscated agent
    [main] 05 1월 2012 16:32:03,165 INFO XMLConfigManager - Default Controller Info Resolver is running
    [main] 05 1월 2012 16:32:03,165 INFO XMLConfigManager - Default Controller Info Resolver using system property [appdynamics.controller.hostName] for controller host name [127.0.0.1]

    ...

    [main] 05 1월 2012 16:32:07,818 INFO MQExitPointDelegate - MQ put/get rules registered
    [main] 05 1월 2012 16:32:07,887 INFO BCIFixer - Scheduling BCIFixer at [900000] ms intervals.
    [main] 05 1월 2012 16:32:07,887 INFO TransactionConfigChannel - Applying out of the box exit point rules
    [main] 05 1월 2012 16:32:07,900 INFO ExitPointRuleApplier - OOTB rules added for exit point type [SAP, LDAP, MongoDB, Mail]
    [main] 05 1월 2012 16:32:07,903 INFO JavaAgent - Started AppDynamics Java Agent Successfully.


  • Ooops, navermind. It was osgi configuration problem. I made a mistake on osgi conf. Sorry for bothering you all.
  • I'm having this problem too but without modifying the osgi conf. What did you do to get rid of it?
  • In my case, it was not a big deal.

    I wrote like this.

    org.osgi.framework.bootdelegation=com.singularity.*
    But, I should have done this way.
    put "com.singularity.*" together with other delegations

    org.osgi.framework.bootdelegation=${eclipselink.bootdelegation}, \
    com.sun.btrace, com.sun.btrace.*, \
    org.netbeans.lib.profiler, org.netbeans.lib.profiler.*, \
    com.singularity.*

Howdy, Stranger!

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