Issue Details (XML | Word | Printable)

Key: GLASSFISH-13568
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Sanjeeb Sahoo
Reporter: Dies Koper
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
glassfish

verifier.bat doesn't work on Windows

Created: 22/Sep/10 02:26 AM   Updated: 12/Nov/10 05:00 PM   Resolved: 12/Nov/10 05:00 PM
Component/s: verifier
Affects Version/s: 3.1
Fix Version/s: 3.1_ms07

Time Tracking:
Not Specified

Environment:

Operating System: Windows XP
Platform: All


Issuezilla Id: 13,568
Tags:
Participants: Dies Koper and Sanjeeb Sahoo


 Description  « Hide

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)));



Sanjeeb Sahoo added a comment - 12/Oct/10 04:02 AM

All verifier bugs will be addressed by 3.1_ms7


Sanjeeb Sahoo added a comment - 12/Oct/10 04:04 AM

All verifier bugs will be addressed by 3.1_ms7


Sanjeeb Sahoo added a comment - 09/Nov/10 09:57 AM
      • Issue 14200 has been marked as a duplicate of this issue. ***

Sanjeeb Sahoo added a comment - 09/Nov/10 06:43 PM

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.


Dies Koper added a comment - 12/Nov/10 03:31 PM

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.


Sanjeeb Sahoo added a comment - 12/Nov/10 05:00 PM

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 "%*"