error in executing StaticCheck
I want to use AVK. So, I installed J2EE server first (successfully). Then I tried to install JAVKE 1.4 (beta). Thereafter, I was unable to start default server. Server logs give the following errors:
[#|2004-05-11T17:14:16.459-0700|SEVERE|sun-appserver-pe8.0|javax.enterprise.system.container.web|_ThreadID=10;|WebModule[/asadmin]StandardWrapper.Throwable
java.lang.NullPointerException
at com.sun.enterprise.appverification.tools.InstrumentLoggerImpl.doInstrumentForWeb(InstrumentLoggerImpl.java:125)
......
.......
Also, when I tried to execute StaticCheck from command line, like:
c:\sun\javke1.4_beta\bin> StaticCheck -b c:\myexample.war
It gives me "ERROR: Set JAVKE_HOME before running this script". I also tried to set JAVKE_HOME as:
c:\sun\javke1.4_beta\bin> set JAVKE_HOME=c:\sun\javke1.4_beta
But then it gives me new error: "ERROR: Set JAVKE_HOME to the path of a valid Application Verification Kit"
Please help! It would be great if I can get some more documents regarding AVK.
Thanks and Regards,
Sumit Gupta
[1141 byte] By [
sumitg_in] at [2007-9-30 8:28:23]

Hi,
Would you mind trying out the final release(a.k.a. FCS release) of AVK 1.4 instead of the beta release? You may be facing one of the bugs that have been fixed after the beta release. AVK 1.4 FCS release bits are available to download at http://java.sun.com/j2ee/avk/.
One of the differences between beta and final release is that now when you download the AVK product, it cobundles a compatible Sun application server inside it. So when you install AVK, it installs the application server and configures it for its use. That way as a user you do not have to install an application server separately. If you install AVK in let's say C:\avk, then the appserver is installed automatically at C:\avk\appserver.
Since you are a Windows user, you may like to know that all your "application server" related short cuts in Windows desktop and task bar now point to the new application server that AVK installs.
Thanks,
Sahoo
Hi,
For some reason the app server can not find the classes for the AVK.The AVK installation needs the location of the app server in order to modify the app server config files. Looks like you installed the AVK in the default location and the server was modified yet it still can not find it. Where is the server installed and does it have access to the place where the AVK is installed?
If you want to stick with the beta release see the AVK user's guide on setting up the enviornment for running the commands.
I would recommend that you download the latest AVK release which includes the AVK and the app server. Both will be installed for you at the same time and this will avoid problems with setup. This latest release uses Ant tasks to run the static checking tests. See the samples directory for more information. See http://java.sun.com/j2ee/avk for downloading the latest release.
Regards