Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.1
    • Fix Version/s: 3.1_ms07
    • Component/s: verifier
    • Labels:
      None
    • Environment:

      Operating System: Windows XP
      Platform: All

    • Issuezilla Id:
      13,568

      Description

      I've installed the verifier add-on through the updatetool.
      I get an error when I run it:

      D:\GFv3.1\glassfish-3.1-b21\glassfishv3>glassfish\bin\verifier.bat
      Exception in thread "main" java.lang.NoClassDefFoundError:
      com/sun/enterprise/tools/verifier/VerifierOSGiMain
      Caused by: java.lang.ClassNotFoundException:
      com.sun.enterprise.tools.verifier.VerifierOSGiMain
      at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
      at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
      Could not find the main class:
      com.sun.enterprise.tools.verifier.VerifierOSGiMain. Program will exit.

      I found one issue in the batch file:

      -Dorg.osgi.framework.storage="%TMPDIR\verifier-cache\"

      has "%TMPDIR" without a closing '%'. But %TMPDIR% is not set anywhere so it
      still looks suspicious. Shouldn't it be %TMP% or %TEMP%?

      I've tried making those changes but then it fails with a NPE:

      Exception in thread "main" java.lang.NullPointerException
      at java.io.File.<init>(File.java:222)
      at
      com.sun.enterprise.glassfish.bootstrap.StartupContextUtil.getInstallRoot(StartupContextUtil.java:64)
      at
      com.sun.enterprise.glassfish.bootstrap.ASMainOSGi.start(ASMainOSGi.java:84)
      at
      com.sun.enterprise.tools.verifier.VerifierOSGiMain.main(VerifierOSGiMain.java:87)

      The line is the following, with the constant being com.sun.aas.installRoot. I
      tried setting it as a system property but that didn't help.

      return absolutize(new
      File(p.getProperty(Constants.INSTALL_ROOT_PROP_NAME)));

        Activity

        Hide
        Sanjeeb Sahoo added a comment -

        All verifier bugs will be addressed by 3.1_ms7

        Show
        Sanjeeb Sahoo added a comment - All verifier bugs will be addressed by 3.1_ms7
        Hide
        Sanjeeb Sahoo added a comment -

        All verifier bugs will be addressed by 3.1_ms7

        Show
        Sanjeeb Sahoo added a comment - All verifier bugs will be addressed by 3.1_ms7
        Hide
        Sanjeeb Sahoo added a comment -
            • Issue 14200 has been marked as a duplicate of this issue. ***
        Show
        Sanjeeb Sahoo added a comment - Issue 14200 has been marked as a duplicate of this issue. ***
        Hide
        Sanjeeb Sahoo added a comment -

        svn -m "Verifier is now working on both Windows and Unix after switching to
        using new embedded api. These are the issues fixed:
        11394, 11572, 11573, 11595, 11596, 13568, 13569." commit

        Sending deployment/dol/osgi.bundle
        Sending persistence/cmp/support-ejb/osgi.bundle
        Sending verifier/verifier-impl/pom.xml
        Adding
        verifier/verifier-impl/src/main/java/com/sun/enterprise/tools/verifier/VerifierMain.java
        Sending
        verifier/verifier-impl/src/main/java/com/sun/enterprise/tools/verifier/VerifierModuleStartup.java
        Deleting
        verifier/verifier-impl/src/main/java/com/sun/enterprise/tools/verifier/VerifierOSGiMain.java
        Sending
        verifier/verifier-impl/src/main/java/com/sun/enterprise/tools/verifier/tests/webservices/WSSchemaLocation.java
        Sending verifier/verifier-scripts/src/main/resources/glassfish/bin/verifier
        Sending
        verifier/verifier-scripts/src/main/resources/glassfish/bin/verifier.bat
        Transmitting file data ........
        Committed revision 42661.

        Show
        Sanjeeb Sahoo added a comment - svn -m "Verifier is now working on both Windows and Unix after switching to using new embedded api. These are the issues fixed: 11394, 11572, 11573, 11595, 11596, 13568, 13569." commit Sending deployment/dol/osgi.bundle Sending persistence/cmp/support-ejb/osgi.bundle Sending verifier/verifier-impl/pom.xml Adding verifier/verifier-impl/src/main/java/com/sun/enterprise/tools/verifier/VerifierMain.java Sending verifier/verifier-impl/src/main/java/com/sun/enterprise/tools/verifier/VerifierModuleStartup.java Deleting verifier/verifier-impl/src/main/java/com/sun/enterprise/tools/verifier/VerifierOSGiMain.java Sending verifier/verifier-impl/src/main/java/com/sun/enterprise/tools/verifier/tests/webservices/WSSchemaLocation.java Sending verifier/verifier-scripts/src/main/resources/glassfish/bin/verifier Sending verifier/verifier-scripts/src/main/resources/glassfish/bin/verifier.bat Transmitting file data ........ Committed revision 42661.
        Hide
        Dies Koper added a comment -

        It's still not working:

        D:\GFv3.1\glassfish-3.1-b30-11_12_2010\glassfish3\glassfish>bin\verifier
        \shared\JavaEE\isjee_verifier_ejb1.jar
        Exception in thread "main" java.lang.NoClassDefFoundError:
        com/sun/enterprise/tools/verifier/VerifierOSGiMain
        Caused by: java.lang.ClassNotFoundException:
        com.sun.enterprise.tools.verifier.VerifierOSGiMain
        at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
        Could not find the main class:
        com.sun.enterprise.tools.verifier.VerifierOSGiMain. Program will exit.

        Show
        Dies Koper added a comment - It's still not working: D:\GFv3.1\glassfish-3.1-b30-11_12_2010\glassfish3\glassfish>bin\verifier \shared\JavaEE\isjee_verifier_ejb1.jar Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/enterprise/tools/verifier/VerifierOSGiMain Caused by: java.lang.ClassNotFoundException: com.sun.enterprise.tools.verifier.VerifierOSGiMain at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) Could not find the main class: com.sun.enterprise.tools.verifier.VerifierOSGiMain. Program will exit.
        Hide
        Sanjeeb Sahoo added a comment -

        Either you have downloaded the wrong package from update centre or update centre
        is not updated with the right content, because I have committed a different
        verifier.bat. The new one does not even reference VerifierOSGiMain.class. It has
        the following line:

        java -cp
        "%~dp0..\lib\embedded\glassfish-embedded-static-shell.jar;%~dp0..\modules\verifier.jar;%~dp0..\lib\javahelp.jar"
        com.sun.enterprise.tools.verifier.VerifierMain "%*"

        Show
        Sanjeeb Sahoo added a comment - Either you have downloaded the wrong package from update centre or update centre is not updated with the right content, because I have committed a different verifier.bat. The new one does not even reference VerifierOSGiMain.class. It has the following line: java -cp "%~dp0..\lib\embedded\glassfish-embedded-static-shell.jar;%~dp0..\modules\verifier.jar;%~dp0..\lib\javahelp.jar" com.sun.enterprise.tools.verifier.VerifierMain "%*"

          People

          • Assignee:
            Sanjeeb Sahoo
            Reporter:
            Dies Koper
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: