Menu

need help in jensor in server

Help
Anonymous
2010-08-12
2013-05-13
  • Anonymous

    Anonymous - 2010-08-12

    I have installed Jensor at my desktop it worked fine. I also have installed the jensor in the server(Solaris), that is also working fine.
    I am not able to start the app server with jensor probe.

    I copied jensorjdk14-v113-unix32.jar to JBOSS/lib
    follwoing i have included in JBOSS/bin/run.sh  -  JBOSS_CLASSPATH=`$JBOSS_HOME/lib/jensorjdk14-v113-unix32.jar "$JBOSS_CLASSPATH"`

    my server is not starting, and giving following error.

    Exception in thread "main" java.lang.NoClassDefFoundError: org/jboss/Main
    Caused by: java.lang.ClassNotFoundException: org.jboss.Main
            at java.net.URLClassLoader$1.run(Unknown Source)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
    Could not find the main class: org.jboss.Main.  Program will exit.

     
  • Amol Khanapurkar

    Hi,

    Message above has no Jensor related errors. So I am going to have to speculate here.

    Jensor deployment has only the following requirements

    1) Environment $JENSOR_HOME should be available from within JBoss and should point to Jensor installation directory
    2) Jensor jar needs to be loaded before any instrumented class is loaded. So it is important that no library or JBoss platform classes are instrumented.

    Check if $JENSOR_HOME is set correctly. Since you have placed Jensor jar in JBoss/lib the jar is guaranteed to be loaded before all application classes. Ensure that you havent instrumented JBOSS platform classes.

    Finally, java.lang.NoClassDefFoundError points to some classpath issue. Check that all required JBOSS classes are in classpath.

    - Amol

     

Log in to post a comment.